Jump to content
  • 0

Monster drops edit NPC


Saisho

Question


  • Group:  Members
  • Topic Count:  52
  • Topics Per Day:  0.01
  • Content Count:  185
  • Reputation:   20
  • Joined:  01/06/13
  • Last Seen:  

Ive been searching and found out that npc scripts can add drops w/o have to edit the monster itself but can it prevent specific drops from specific monsters?

 

Lets say i want to prevent Mistress from drop Gungnir or instead make it drop another item. Not an general drop like all mvps drops TCG.

 

Is that possible?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

OnNPCKillEvent:

if( killedrid == 1002 && rand(10000) < .@chance ) getitem 501,1;

 

 

this should give you a push in the right direction

Edited by Stolao
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  52
  • Topics Per Day:  0.01
  • Content Count:  185
  • Reputation:   20
  • Joined:  01/06/13
  • Last Seen:  

OnNPCKillEvent:

if( killedrid == 1002 && rand(10000) < .@chance ) getitem 501,1;

 

 

this should give you a push in the right direction

Ok im a complete idiot when the topic is scripting but correct me if im wrong...

 

This adds a % change of get item x when monster y is killed.

 

Thats the part i understand but theres actually how prevent a drop?

 

Like i know if i want to make it drop (not getting directly as reward) i need to use makeitem x,y or something but i have no clue if theres how to delete a item from the mob drop list.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  177
  • Reputation:   21
  • Joined:  01/31/12
  • Last Seen:  

This is not currently an option with the base rAthena release. A source mod would be required to accomplish this without doing some roundabout script workaround like you suggested.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

 

OnNPCKillEvent:

if( killedrid == 1002 && rand(10000) < .@chance ) getitem 501,1;

 

 

this should give you a push in the right direction

Ok im a complete idiot when the topic is scripting but correct me if im wrong...

 

This adds a % change of get item x when monster y is killed.

 

Thats the part i understand but theres actually how prevent a drop?

 

Like i know if i want to make it drop (not getting directly as reward) i need to use makeitem x,y or something but i have no clue if theres how to delete a item from the mob drop list.

 

 

you can use makeitem instead of getitem however it would drop from players location, not mobs location

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