Jump to content
  • 0

count the mobs that some player kill only if the player have guild and only if the player is in prontera


Nana

Question


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

I want count the mobs that some player kill only if the player have guild and only if the player is in prontera

I think is something really easy and go something like this

OnPCLoadMapEvent:

{

if ((strcharinfo(2) != NULL) && (strcharinfo(3)=='prontera'){

OnNPCKillEvent:

.countProntera += 1;

end;

}

}

Is this ok??

Link to comment
Share on other sites

3 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:  

if( getcharid(2) && strcharinfo(3) == "prontera" )

  • Upvote 1
Link to comment
Share on other sites


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

Post #1 + Post #2

OnNPCKillEvent:
   if( getcharid(2) && strcharinfo(3) == "prontera" )
       .countProntera++;
   end;

  • Upvote 1
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:  

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