doevent and donpcevent script commands
Forum rules
This forum houses many years of development, tracing back to some of the earliest posts that exist on the board.
Its current use is for the continued development of the server and game it has always served: TMW Classic.
doevent and donpcevent script commands
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!!!
Any help with figuring this out would be greatly appreciated!!!
- Freeyorp101
- Archivist Prime
- Posts: 766
- Joined: 04 Nov 2008, 09:17
- Location: New Zealand
Re: doevent and donpcevent script commands
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
---Freeyorp
(09:58:17) < tux9th> Freeyorp: your sig on the forums is kind of outdated
Re: doevent and donpcevent script commands
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
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.
- former Manasource Programmer
- former TMW Pixel artist
- NOT a game master
Please do not send me any inquiries regarding player accounts on TMW.
You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.