doevent and donpcevent script commands

Content and general development discussion, including quest scripts and server code. TMW Classic is a project comprising the Legacy tmwAthena server & the designated improved engine server based on evolHercules.


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.

Post Reply
nmaligec
Warrior
Warrior
Posts: 253
Joined: 08 Apr 2010, 01:55

doevent and donpcevent script commands

Post 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!!!
User avatar
Freeyorp101
Archivist Prime
Archivist Prime
Posts: 765
Joined: 04 Nov 2008, 09:17
Location: New Zealand

Re: doevent and donpcevent script commands

Post 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
(09:58:17) < tux9th> Freeyorp: your sig on the forums is kind of outdated
nmaligec
Warrior
Warrior
Posts: 253
Joined: 08 Apr 2010, 01:55

Re: doevent and donpcevent script commands

Post 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.
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 16:08
Location: Germany

Re: doevent and donpcevent script commands

Post 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.
  • 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.
Post Reply