![]() |
Mini Lotto
I'm making a mini lotto game for DR. The script works for 1 NPC, but put more than one in a level, and ALL of them trigger the test action. Why??
PHP Code:
|
GUI control names are shared across NPCs. Likely, each NPC is receiving roll.onAction().
|
also, I believe play only works clientside
also it would be play(file); |
Yeah, the GUI control names are probably conflicting with eachother. Try using something like "roll_" @ this.id or whatever.
also, findplayer(player.account) is the most redundant function call in GraalScript x_x |
Quote:
I really can't express how much I want with statements to be deprecated. |
Quote:
PHP Code:
|
Quote:
|
| All times are GMT +2. The time now is 04:17 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.