Jump to content
  • 0

Just a little Request.


Snap

Question


  • Group:  Members
  • Topic Count:  64
  • Topics Per Day:  0.01
  • Content Count:  186
  • Reputation:   0
  • Joined:  04/07/12
  • Last Seen:  

Does anyone has a Script that every time i kill a monster, the monster will drop a specific coin which is bronze coin?

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


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

[ Pastebin ] Monster Drop Extra Items when Killed

tr0n script will stop the script if the 1st monster ID in the list doesnt match with the killedrid

instead of "end" he can ty change it to "continue" to loop for the rest ID

anyway...

there is a easier way...but required a src mod..

cant remember what topic....but i just remember the topic is about mvp announcer..

and...you can find that src mod in the svn changelog..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  407
  • Reputation:   159
  • Joined:  11/18/11
  • Last Seen:  

- script OnNPCKillEvent -1,{
OnNPCKillEvent:
getitem 673,1;
end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  64
  • Topics Per Day:  0.01
  • Content Count:  186
  • Reputation:   0
  • Joined:  04/07/12
  • Last Seen:  

Lets be specific. Can be this for MVP Monster Only?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   152
  • Joined:  02/21/12
  • Last Seen:  

- script OnNPCKillEvent -1,{
OnNPCKillEvent:
if(killedrid!=<MONSTER ID HERE>)end;
getitem 673,1;
end;
}

if you want to use more then one monster id:

setarray .monsterids[0],<monster id here>,<monster id here>,...;

OnNPCKillEvent:
for(set .@i, 0; .@i<getarraysize(.monsterids);set.@i,.@i+1)
{
  if(killedrid==.monsterids[.@i])
  {
   getitem 673,1;
   end;
  }
}
end;

didn't tested but should work I think.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   152
  • Joined:  02/21/12
  • Last Seen:  

oh totally forgot that haha. Sry xD

I corrected it.

Link to comment
Share on other sites


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

wrong at the second script

 if(killedrid!=.monsterids[.@i]){   <----------Wrong
  getitem 673,1;
  end;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   152
  • Joined:  02/21/12
  • Last Seen:  

wrong at the second script

 if(killedrid!=.monsterids[.@i]){   <----------Wrong
  getitem 673,1;
  end;

now it's correct.

oh man I was too tired to write this easy sh*t

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