Jump to content
  • 0

[SOLVED]Quest shop success rate mod


pajodex

Question


  • Group:  Members
  • Topic Count:  78
  • Topics Per Day:  0.03
  • Content Count:  436
  • Reputation:   167
  • Joined:  12/12/17
  • Last Seen:  

hi,

im currently modifying quest shop. i added a success rate when requirements are submitted. it works well especially if its an equipment but when i start making useable items such as potions, here comes the problem:

i tried making 503(quest item) x 10pcs. yes, success rate worked however, it works as bundle. i mean success rates applied to all 10 pcs of 503. the way how i wanted the success rate is to work on each of the 10x of 503 item i crafted. so probably around 5-7pcs will successfully be crafted and everything else wont. 

here is how I coded it. (i cant copy paste the code since im on mobile cuz our internet connection is under repair)

.@rate = 50;

if(.@rate >= rand(0,100)) {

getitem .@q[0],.@q[2];

}

note: this is from quest_shop of euphy at npc/custom/quest/ folder

thanks

 

edit: SOLVED BY USING LOOP

Edited by pajodex
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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