![]() |
Triggering DB-NPCs
Okay, so this has been annoying me for a while now.
Basically, I want to trigger a script in a DB-NPC called... Test, let's say. I want to trigger it from a class NPC, if this is possible. I've seen the triggersever() command used like this: NPC Code:triggerserver("npc",name,...); Does the "npc" part trigger DB-NPCs, and as for the string variable in the triggerserver command, does it need to be the name of the DB-NPC you want to trigger? And one more thing, is there a certain command I would need to put into the DB-NPC to make it work? Thanks! |
If I am not wrong, you can do something like this on the serverside:
PHP Code:
|
whenever triggerserver is used, it always passed to the event
PHP Code:
PHP Code:
If all this is already happening on the serverside instead of the clientside, as Seich said, you can directly access the function in the NPC itself as long as the function is defined as a public function |
Thanks very much!
I love you guys! ^^ |
All times are GMT +2. The time now is 12:10 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.