Jump to content
  • 0

Mob Event Variables (Source Snippet)


Vach

Question


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  326
  • Reputation:   19
  • Joined:  09/27/12
  • Last Seen:  

In regards to the source mod here: http://rathena.org/wiki/Mob_event_variables

Do these variables get supplied with all mob kills? Or only those with scripts run afterwards from in-script mob summons? Also, if thats the case, how do you get the variables? Just

set .@MobName, monstername$;

Or some such?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

what you want to do with that ? elaborate more ?

as mentioned in the Mob_event_variables

this is the way to save the variable to assign a value / string to variable....

pc_setglobalreg(sd, "variable name", value);

how to determine the script to run in specific event ?

that will depend on how you add this into your source file....

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  326
  • Reputation:   19
  • Joined:  09/27/12
  • Last Seen:  

I'm trying to overcome the need to use the in-game Quest UI for hunting missions, without using the OnDeath label - which would make that called every time any monster dies anywhere. With some source modifications I could essentially run event labels that run functions for specific monsters and limit the amount of processing going on serverside.

I'm not sure if I even need these to do this, but I probably would so I could store the mobs GID and create some kind of switch that shuffles through mobs for players on specific hunting missions attached to them.

It's probably a lost cause, though.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

isnt that you can just use the Killedrid to check what monster they have killed ?

if you run another new npc label after each monster is killed.....it is the same as OnNPCKillEvent which run everytime a monster is killed.

so i think there is no need to add a new label if both work the same...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  326
  • Reputation:   19
  • Joined:  09/27/12
  • Last Seen:  

Yea, you are correct, that is exactly the issue I encountered. So I scrapped the idea.

Instead, I embedded the Quest UI in with my own quest system. It's cumbersome, but it gets the job done and makes everything look nice, plus adding quests ends up being simplier because I can use "checkquest" functions.

Well, I guess giving up wasn't so bad in this case.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...