Jump to content
  • 0

Proper usage of random option


iubantot

Question


  • Group:  Members
  • Topic Count:  117
  • Topics Per Day:  0.03
  • Content Count:  312
  • Reputation:   34
  • Joined:  10/15/12
  • Last Seen:  

prontera,154,179,4	script	random-opt	461,{


setrandomoption(8,RDMOPT_VAR_MAXHPPERCENT,10,0,getcharid(0)); //give +10% maxhp
setrandomoption(8,RDMOPT_VAR_ATKPERCENT,10,1,getcharid(0)); //+10% atk perc
setrandomoption(8,RDMOPT_VAR_PLUSASPDPERCENT,100,2,getcharid(0)); //+100% aspd
setrandomoption(8,RDMOPT_VAR_AVOIDSUCCESSVALUE,5,3,getcharid(0)); // +5 avoid

end;



}

Capture_zpsjzvs6ged.png

 

 

please help how do i use it properly.

Edited by iubantot
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  141
  • Reputation:   45
  • Joined:  08/14/12
  • Last Seen:  

*setrandomoption(<equipment indice>,<index>,<id>,<value>,<param>{,<char id>});

index parameter can be 0 to MAX_ITEM_RDM_OPT-1 (default 0-4).

You're missing the <index> parameter, which is the value that tells you which slot to put it in (0 - 4).

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  117
  • Topics Per Day:  0.03
  • Content Count:  312
  • Reputation:   34
  • Joined:  10/15/12
  • Last Seen:  

*setrandomoption(<equipment indice>,<index>,<id>,<value>,<param>{,<char id>});

index parameter can be 0 to MAX_ITEM_RDM_OPT-1 (default 0-4).

You're missing the <index> parameter, which is the value that tells you which slot to put it in (0 - 4).

 

 

i see thanks!, what do i put in the <param>? can you give me an example?

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  141
  • Reputation:   45
  • Joined:  08/14/12
  • Last Seen:  

As of right now, I'm pretty sure you can leave it at 0, since none of the random options use that value.

  • Upvote 1
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...