Jump to content
  • 0

Item Option Script


Question

Posted

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.

6 answers to this question

Recommended Posts

  • 1
Posted (edited)
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
  • 0
Posted

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.

  • 0
Posted
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 ?

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...