Jump to content
  • 0

About for NPC random get item


mayoadek

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  10/24/13
  • Last Seen:  

anyone can help me give a example script, like NPC script to get  random item i just need for my dungeon raid Thanks wish will you help guys thanks 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   4
  • Joined:  04/22/13
  • Last Seen:  

Try this

prontera,157,182,7 script Example 873,{
setarray .@item_id, 501,502,503;
getitem .@item_id[rand(getarraysize(.@item_id))], 1;
}
Edited by arievz
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  2
  • Reputation:   0
  • Joined:  02/19/17
  • Last Seen:  

Thanks.. it's work :)

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