i made a script for my server about adding orbs on costume but the problem is i need to put all the costumes manually on the script. Can someone help me to make this npc that they will be choosing Top Headgear Costume , Middle Headgear Costume , Lower Headgear for example they choose Top Headgear Costume the one that they are wearing will be having a orb they like. Here's my script. TIA for those who will help.
amatsu,196,101,5 script Donation Orb Costume Enchanter 582,{
mes "Which Costume you want to Enchant ?";
mes "Make sure You have the Orb needed.";
next;
setarray .EquipID[0],18508,18543,18579,18580,18595,18529,18631,18637,18639,18693,18577,18647,18649,18657,18664,18690,18712,18737,18743,18747,18546,18627,18644,18643,18665,18670,18677,18683,18698,18746;
for( set .@i,0; .@i < getarraysize( .EquipID ); set .@i,.@i + 1 ){
set .@EquipMenu$,.@EquipMenu$ + getitemname( .EquipID[.@i] )+( !getitemslots(.EquipID[.@i])?"":"["+getitemslots(.EquipID[.@i])+"]" )+":";
}
set .@Equip,select( .@EquipMenu$ ) - 1;
if( !countitem( .EquipID[.@Equip] ) ){
mes "You didnt have this Costume Equipment with you.";
close;
}
mes "Equipment : ^FF0000"+getitemname( .EquipID[.@Equip] )+"^000000";
switch( select( "Creator Orb:Whitesmith Orb:Sniper Orb:Clown and Gypsy Orb:High Wizard and Scholar Orb:Assassin Cross Orb" )){
Case 1: setarray .RuneID[0],4743; delitem 4743,1; break;
Case 2: setarray .RuneID[0],4744; delitem 4744,1; break;
Case 3: setarray .RuneID[0],4745; delitem 4745,1; break;
Case 4: setarray .RuneID[0],4746; delitem 4746,1; break;
Case 5: setarray .RuneID[0],4747; delitem 4747,1; break;
Case 6: setarray .RuneID[0],4748; delitem 4748,1; break;
}
for( set .@i,0; .@i < getarraysize( .RuneID ); set .@i,.@i + 1 ){
set .@RuneMenu$,.@RuneMenu$ + getitemname( .RuneID[.@i] )+":";
}
set .@Rune,select( .@RuneMenu$ ) - 1;
mes "Rune : ^FF0000"+getitemname( .RuneID[.@Rune] )+"^000000";
next;
if( select("Confirm:Cancel") == 1 ){
delitem .EquipID[.@Equip],1;
getitem2 .EquipID[.@Equip],1,1,0,0,.RuneID[.@Rune],0,0,0;
mes "Done.";
mes "^0000FF"+getitemname( .EquipID[.@Equip] )+"^000000";
mes "Enchanted with ^FF0000"+getitemname( .RuneID[.@Rune] )+"^000000";
}
close;
}
Question
Eros
i made a script for my server about adding orbs on costume but the problem is i need to put all the costumes manually on the script. Can someone help me to make this npc that they will be choosing Top Headgear Costume , Middle Headgear Costume , Lower Headgear for example they choose Top Headgear Costume the one that they are wearing will be having a orb they like. Here's my script. TIA for those who will help.
Edited by Skormadded code bracket.
Link to comment
Share on other sites
10 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.