View Full Version : [SOLVED] Npc event

08-12-2015, 10:31 PM
Hey I'm trying to create a simple creature script, yet I'm having some problems with it..
Here's the script, if anyone would take a look at it and maybe help me out, I'd be glad


Basically the creature spawns with a ice prison, and player need to use item on it to set the npc free, yet it's not working as it should... The npc just says "Finally.." and that's it..

Got no errors, and so on..

08-13-2015, 12:10 AM
What should it do that it doesnt do?
The aura not being removed?

08-13-2015, 01:31 AM
Aura is not removed, also items are not added/removed.. All that happens is the NPC say "Finally.." after using the item on him..

08-13-2015, 01:43 AM
so the areatriggermessage doesnt get sent either?
Have you tried seeing if the Disable function is reached at all? And if it is then if it stops at some point?

You have a possible nil error with target being nil.

08-13-2015, 03:14 AM
The player should use the item to remove the aura, then the item used should be removed, aura should be removed, npc should say something and item should be added. That's it, can't sort it out, I had it working in some point but then I added more stuff, edited some lines and got lost .. I added that else in case player will have 2 items that are used in this event (the one to remove aura)

I'll try to rewrite the script again........

Apparently didn't need to do a creature script, most of it can be handled with item scripts. Thanks, solved:P