![]() |
I feel stupid
I feel stupid posting this, I really do, it's gotta be some thing small X_X here we go again:
whats wrong with this script: NPC Code: |
If this is a level NPC, you should do all of that serverside.
The most compelling reason for this is security. Do you really want to trust the client's perception of clientr.eventcoin? Other than that, there are three main flaws with your script as-is: 1) You're triggering to playerx and playery instead of somewhere on the surface of the NPC. 2) The serverside part of your NPC has no surface to trigger onto (unless there's an image set). Use a setshape to remedy this. 3) Your serverside code has no error-checking. This kinda goes along with the security thing I mentioned. What do you suppose might happen if someone has 10 event coins and says the purchase line twice in a row before the server finishes processing the first triggeraction? |
oh thanks, didn't know i would still need setshape for this i origionally used x,y but it didn't work (no setshape) and the coin thing? GP, ill set a check in there for that thanks!
|
Quote:
|
| All times are GMT +2. The time now is 12:22 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.