Jump to content
  • 0

i need script Attack Race all Demi - human want to give away


NKCYBER

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  01/24/20
  • Last Seen:  

 

Attack all Demi-human types Get the items that they want to give away

 

sample  attack raydric  get item  drop Red potion 1ea  drop rate 2 % 

Edited by NKCYBER
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

if you want to add different item to each monster , than the fact that they are Demi human is somewhat useless , just edit the monsters drop in the database

if the same item for all the Demi human monsters than use this bonus with OnPCStatCalcEvent

bonus2 bDropAddRace,r,x;    Adds x% to player's drop rate when killing a monster with race r.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  01/24/20
  • Last Seen:  

2 hours ago, sader1992 said:

if you want to add different item to each monster , than the fact that they are Demi human is somewhat useless , just edit the monsters drop in the database

if the same item for all the Demi human monsters than use this bonus with OnPCStatCalcEvent

bonus2 bDropAddRace,r,x;    Adds x% to player's drop rate when killing a monster with race r.

i want creat  script  evevt  attack all monster Race Demi - Human   drop rate  give item  event   

 

samsple  

-    script    KillmonsterAutoDrop    -1,{
end;

OnNPCKillEvent:
if(rand(1,100) < 5) getitem 671,1;
end;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

getunitdata UMOB_RACE

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  01/24/20
  • Last Seen:  

18 hours ago, sader1992 said:

getunitdata UMOB_RACE

thx

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