Jump to content
  • 0
xG000000

Item Option Script

Question

is there a script for scrolls that will enchant all gears including shadow gears like, I want to have a scroll that will give 1% - 10% random Max HP Percent to an item and i can choose which slot will i put it like Slot 1 to Slot 5. 

i dont know how to use setrandomoption as a script please help me thanks.

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 1
setarray .@indices[1], EQI_ACC_L,EQI_ACC_R,EQI_SHOES,EQI_GARMENT,EQI_HEAD_LOW,EQI_HEAD_MID,EQI_HEAD_TOP,EQI_ARMOR,EQI_HAND_L,EQI_HAND_R,EQI_COSTUME_HEAD_TOP,EQI_COSTUME_HEAD_MID,EQI_COSTUME_HEAD_LOW,EQI_COSTUME_GARMENT,EQI_SHADOW_ARMOR,EQI_SHADOW_WEAPON,EQI_SHADOW_SHIELD,EQI_SHADOW_SHOES,EQI_SHADOW_ACC_R,EQI_SHADOW_ACC_L;
for(.@i = 1; .@i<getarraysize(.@indices); ++.@i) {
	if(getequipisequiped(.@indices[.@i])) {
		.@menu$ = .@menu$ + F_getpositionname(.@indices[.@i]) + "-[" + getequipname(.@indices[.@i]) + "]";
		.@equipped = 1;
	}
	.@menu$ = .@menu$ + ":";
}
.@part = .@indices[select(.@menu$)];
setrandomoption(.@part,0,rand(1,220),rand(1,2),0);
setrandomoption(.@part,1,rand(1,220),rand(1,2),0);
setrandomoption(.@part,2,rand(1,220),rand(1,2),0);
setrandomoption(.@part,3,rand(1,220),rand(1,2),0);
setrandomoption(.@part,4,rand(1,220),rand(1,2),0);

 

Edited by Start_
  • Love 1

Share this post


Link to post
Share on other sites
  • 0

but i cant make it choose which slot im going to put the item option. i want it like a scroll that will give 1~10% MaxHP (or other options) to all gears including shadow gears.

Share this post


Link to post
Share on other sites
  • 0

can you show a simple example of the script for my reference.

Share this post


Link to post
Share on other sites
  • 0
13 hours ago, Start_ said:
setarray .@indices[1], EQI_ACC_L,EQI_ACC_R,EQI_SHOES,EQI_GARMENT,EQI_HEAD_LOW,EQI_HEAD_MID,EQI_HEAD_TOP,EQI_ARMOR,EQI_HAND_L,EQI_HAND_R,EQI_COSTUME_HEAD_TOP,EQI_COSTUME_HEAD_MID,EQI_COSTUME_HEAD_LOW,EQI_COSTUME_GARMENT,EQI_SHADOW_ARMOR,EQI_SHADOW_WEAPON,EQI_SHADOW_SHIELD,EQI_SHADOW_SHOES,EQI_SHADOW_ACC_R,EQI_SHADOW_ACC_L;
for(.@i = 1; .@i<getarraysize(.@indices); ++.@i) {
	if(getequipisequiped(.@indices[.@i])) {
		.@menu$ = .@menu$ + F_getpositionname(.@indices[.@i]) + "-[" + getequipname(.@indices[.@i]) + "]";
		.@equipped = 1;
	}
	.@menu$ = .@menu$ + ":";
}
.@part = .@indices[select(.@menu$)];
setrandomoption(.@part,0,rand(1,220),rand(1,2),0);
setrandomoption(.@part,1,rand(1,220),rand(1,2),0);
setrandomoption(.@part,2,rand(1,220),rand(1,2),0);
setrandomoption(.@part,3,rand(1,220),rand(1,2),0);
setrandomoption(.@part,4,rand(1,220),rand(1,2),0);

 

thanks bro 🙂

Share this post


Link to post
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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.