Page 1 of 1
doevent and donpcevent script commands
Posted: 16 Mar 2011, 06:03
by nmaligec
Do either of these actually work? Again there are no existing examples in the npc script folder to go by. I tried the examples from an eAthena script manual but they do not work. If they do work, then how do I use them???
Any help with figuring this out would be greatly appreciated!!!
Re: doevent and donpcevent script commands
Posted: 16 Mar 2011, 07:56
by Freeyorp101
These do work and were used in last easter. There are examples there which you can look over. The syntax is doevent("NpcNameHere::OnEventNameHere"); donpcevent is the same but no RID is attached and there is an (untested) alternative wherein NpcNameHere can be omitted to call the event over all NPC scripts with this event.
---Freeyorp
Re: doevent and donpcevent script commands
Posted: 16 Mar 2011, 22:41
by nmaligec
Thanks for the help, I would not have been able to figure this one out on my own. The event labels in the manual had no special structure. As soon as I used a label that started with On, the script worked.
Re: doevent and donpcevent script commands
Posted: 17 Mar 2011, 07:21
by Crush
It seems to me like you really enjoy pushing the eAthena scripting language to its limits. I hope we can interest you in Manaserv scripting one day. We could really use the feedback and ideas from you.