Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-06-2001, 03:23 AM
fireball_dolphonia fireball_dolphonia is offline
Registered User
Join Date: Sep 2001
Location: Graalistan
Posts: 73
fireball_dolphonia is on a distinguished road
Exclamation Help!

how do i make it like it has 200 of this item
and u say buy item
it lowers how many items are left
__________________

ages.ccs.com/ccsimages/cat_
Reply With Quote
  #2  
Old 10-06-2001, 03:39 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Re: Help!

Quote:
Originally posted by fireball_dolphonia
how do i make it like it has 200 of this item
and u say buy item
it lowers how many items are left
show items left
say2 There are #s(itemcountstring) items left.

buy items
if(strequals(#c,buy item)&&playerchats){

setstring itemcountstring,strtofloat(#s(itemcountstring))-1;

}

make sure you add protection to be sure the amount does not go below zero and the player cant buy when the ammount is <1
Reply With Quote
  #3  
Old 10-06-2001, 05:00 AM
ZORG1986 ZORG1986 is offline
Registered User
ZORG1986's Avatar
Join Date: Jul 2001
Location: England - Yes thats the small Island in Europe that Ownz you all.
Posts: 783
ZORG1986 is on a distinguished road
Send a message via ICQ to ZORG1986 Send a message via AIM to ZORG1986
Re: Re: Help!

Quote:
Originally posted by btedji


show items left
say2 There are #s(itemcountstring) items left.

buy items
if(strequals(#c,buy item)&&playerchats){

setstring itemcountstring,strtofloat(#s(itemcountstring))-1;

}

make sure you add protection to be sure the amount does not go below zero and the player cant buy when the ammount is <1
LoL, I remember that old bug on Sanstrata with there money dropped you say a negative number and fire the weapon and your money increases, hense the rason i have over 1'000'000 on there
__________________


Zorg (Era Staff) - Contact : [email protected]
Reply With Quote
  #4  
Old 10-06-2001, 05:02 AM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
That glitch that zorg talked about is on a lot of servers..easily fixed with abs() though.
__________________

-=Shard IceFire=-
Reply With Quote
  #5  
Old 10-06-2001, 06:09 PM
ZORG1986 ZORG1986 is offline
Registered User
ZORG1986's Avatar
Join Date: Jul 2001
Location: England - Yes thats the small Island in Europe that Ownz you all.
Posts: 783
ZORG1986 is on a distinguished road
Send a message via ICQ to ZORG1986 Send a message via AIM to ZORG1986
Quote:
Originally posted by Shard_IceFire
That glitch that zorg talked about is on a lot of servers..easily fixed with abs() though.
SHARD!!! Dont tell them how to fix it, lol, you've just completley ruined my plans........
__________________


Zorg (Era Staff) - Contact : [email protected]
Reply With Quote
  #6  
Old 10-06-2001, 08:15 PM
Jinx Jinx is offline
Radioactive Cow
Jinx's Avatar
Join Date: Sep 2001
Location: I duno...
Posts: 1,217
Jinx is on a distinguished road
Send a message via AIM to Jinx
Yea, lol, that bug was funny =)

That was a long time ago tho.

-Jinx
__________________
Confucious2002: Cynical passed it's 2nd review! <3
InsaneFishP0sse: Yea =) Now if only Nemesis weren't dead
Confucious2002: *pokes nem*
InsaneFishP0sse: He got a severe paper cut last week and died of blood loss, very sad
Confucious2002: so unix took over his body?
InsaneFishP0sse: No, actually it was the NPC Server,
InsaneFishP0sse: Now if you PM Nemesis, he will go "I am Nemesis, the PW Admin, I handle almost all Playerworlds currently online"
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:34 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.