Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Help! (https://forums.graalonline.com/forums/showthread.php?t=13897)

fireball_dolphonia 10-06-2001 03:23 AM

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

btedji 10-06-2001 03:39 AM

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

ZORG1986 10-06-2001 05:00 AM

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

Shard_IceFire 10-06-2001 05:02 AM

That glitch that zorg talked about is on a lot of servers..easily fixed with abs() though.

ZORG1986 10-06-2001 06:09 PM

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........:D

Jinx 10-06-2001 08:15 PM

Yea, lol, that bug was funny =)

That was a long time ago tho.

-Jinx


All times are GMT +2. The time now is 09:39 PM.

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