Jump to content
  • 0

Count the number of mobs you kill in a map


Question

Posted

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!

2 answers to this question

Recommended Posts

Posted

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.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...