![]() |
Specific flag from specific carried npc
Hello ^^
I want to make this npc set a flag when it is moved out of place and then unset it when it is returned back. Some help would be appreciated. What am I doing wrong? Thanks PHP Code:
|
Spot the difference:
NPC Code: |
Quote:
Your middle code block is not an event block. If you want to have such a variable check, do it in a timeout. |
Quote:
Either may work |
Quote:
|
This should work regardless of anything else, should it not?
PHP Code:
|
Quote:
1) When the NPC is created 2) When it receives another event This is certainly not the behavior you want. Create a timeout loop. |
canbecarried will not work online, anyway
x.x |
NPC Code: This worked online when I tested it. The event wasthrown doesn't work serverside though. |
Thank you for all of the information everyone. This NPC was going to be for a store where you pickup the item and talk to the shopkeeper to buy it. The wasthrown part was so that if you threw it it would go back to x y on the shelf. I also had it so that the shopkeeper would choose a random scolding to give you when you tried to walk out with his item without paying. ^^
I'm now thinking that a clickable store and buy button would be much better, as I have already made clickable things work offline. Quickly, is there anything I should know about mouse scripting as per using it in online mode? |
| All times are GMT +2. The time now is 03:46 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.