Jump to content
  • 0

Count the number of mobs you kill in a map


Nana

Question


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   6
  • Joined:  12/20/12
  • Last Seen:  

Is there any chanse to have a global variable that gets a counter of how many mobs you kill in certain map?

I think use onKillEvent that adds one to this variable or autoincrement everytime

but I don't know if exist a better way?

Thanks!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   616
  • Joined:  07/05/12
  • Last Seen:  

You can use event

prontera,96,50,2,2    monster    Strange Hydra    2081,5,5000,0,"uyihjko::OnPaf"
...
OnPaf:
   set @countM, @countM + 1;
...
   set .countM, .countM + 1;

or

...
OnNPCKillEvent:
   if( strcharinfo(3) != "prontera" ) end;
   set @countM, @countM + 1;
...

Well, it depends on what you want to do.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   6
  • Joined:  12/20/12
  • Last Seen:  

Great!!! thanks a lot!!! n_n!!!

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...