Jump to content
  • 0

can someone help me


Byakuran

Question


  • Group:  Members
  • Topic Count:  110
  • Topics Per Day:  0.02
  • Content Count:  229
  • Reputation:   5
  • Joined:  12/16/11
  • Last Seen:  

can someone make me a script that if the player kills a 50demon monster it will give 50tcg and 50dragon for 20TCG

Link to comment
Share on other sites

1 answer 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:  


OnNPCKillEvent:

.@race = getmonsterinfo( killedrid,MOB_RACE );

if( .@race == RC_Undead || .@race == RC_Demon ){

setd( "@kill_race_"+.@race ),getd( "@kill_race_"+.@race ) + 1;

if( getd( "@kill_race_"+.@race ) % 50 == 0 )

if( .@race == RC_Undead ){

getitem 7227,50;

}else{

getitem 7227,20;

}

}

end;

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