![]() |
Finding Params
I'm having issues with the placed NPC finding the right params...
On the placement.. PHP Code:
and in the NPC.. PHP Code:
The NPC just keeps saying 0.. I most likey have things in the wrong spots. Someone help me out please! :) |
hello!
in the provided example you are checking to see if the first parameter is "place" yet the one parameter which is defined is "dmg", in that case i dont see how an npc should be placed to begin with. i can only assume this is a mistake with the example the reason the npcs chat would be "0" though is because there simply are no parameters within the onCreated event on the npc object itself you can actually write the npcs chat at the same time you create it like so: PHP Code:
|
Quote:
I just fixed my thread post... The "dmged" was a typo.. I rewrite some stuff to make it easier to read on forums.. I just forgot to change that. With that being said, I want to do the chat within the "class" script. Not in the creation of the NPC. So I would need a PHP Code:
|
Quote:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
I appreciate the help :)
I actually figured it out last night! |
| All times are GMT +2. The time now is 04:53 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.