• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] Npc event

Status
Not open for further replies.

EmuNoob

Exalted Member
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

http://pastebin.com/mRMm3J6n


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..
 
Last edited:

EmuNoob

Exalted Member
Aura is not removed, also items are not added/removed.. All that happens is the NPC say "Finally.." after using the item on him..
 
Last edited:

Rochet2

Moderator / Eluna Dev
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.
 

EmuNoob

Exalted Member
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
 
Status
Not open for further replies.
Top