Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   playerdarts--; bug? (https://forums.graalonline.com/forums/showthread.php?t=48811)

ZeLpH_MyStiK 10-25-2003 10:23 PM

playerdarts--; bug?
 
Im using playerdarts--; in a bow npc, and it works fine when I shoot an arrow. It subtracts from playerdarts. However, once I reconnect, the number of playerdarts returns back to the original ammount. Can any help?

ForgottenLegacy 10-25-2003 10:31 PM

This needs to be done serverside. I don't think I can show you how to do it without violating the 'cannot post complete scripts' rule.

Loriel 10-25-2003 10:33 PM

Does indeed seem like a bug, but actually I expected the server to automatically reduce the amount of playerdarts once the shootarrow command or alike ones are called.

osrs 10-25-2003 10:34 PM

Your problem is, you're executing "playerdarts--" client-side.

Edit: ForgottenLegacy points ++; ;)

ZeLpH_MyStiK 10-26-2003 06:50 PM

O.o ok thanks everyone. I tried it using triggeraction, and it worked. But i was thinking, why would you want this to be a serverside action? It would be easier in the first place and it only affects one player. You would have to call actionserverside then use the with commands with yourself, it seems out of order.

Dach 10-26-2003 07:50 PM

having it server-side prevents certain types of hacking

ZeLpH_MyStiK 10-26-2003 08:08 PM

O.O I heard from a lot of people that actionserverside was hackable, although I don't know or see how.

adam 10-26-2003 09:02 PM

Quote:

Originally posted by ZeLpH_MyStiK
O.O I heard from a lot of people that actionserverside was hackable, although I don't know or see how.

That's becouse a lot of lame people with jobs on servers all over wrote triggeractions to the control npc that were easy to use and kinda standardized. Thus re-implementing clientside manipulation of the variables.


All times are GMT +2. The time now is 01:30 AM.

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