Im trying to make an enchanter but i want only certain runes to be allowed to be put garmet armor headgear ect.But im having trouble getting it to go to a diffrent menu depending on were the item selected is equiped.
prontera,156,179,5 script Special Enchanter 100,{
if (EnchantTutorial == 1){
mes "[^0000FFSpecial Enchant^000000]";
mes "Welcome back!";
mes "Ready to get started?";
if ( select ( "Yes", "No" ) == 2 ) close;
mes "Please select the item you wish to enchant.";
next;
setarray .@position$[1],"Head","Body","Left hand","Right hand","Robe","Shoes","Accessory 1","Accessory 2","Head 2","Head 3";
set .@menu$,"";
for(set .@i,1; .@i<=10; set .@i,.@i+1) {
if (getequipisequiped(.@i)) {
set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]";
set .@equipped,1;
}
set .@menu$, .@menu$ + ":";
}
if (.@equipped == 0) {
mes "[^0000FFSpecial Enchant^000000]";
mes "I don't think I can enchant any items you have.";
mes "Sorry,Try again later.";
close;
}
set .@item, select(.@menu$);
set .@enchantitemid, getequipid(.@item);
set .@refinerycnt, getequiprefinerycnt(.@item);
set .@enchantitemloc, Where the item location varible is suppose to go);
if (.@enchantitemloc == 1) {
mes "Im a headgear";
close;
}
else if (.@enchantitemloc == 2) {
mes "Im a weapon";
close;
}
So can someone tell me how exactly i would do that? ty
I feel like a moron I had set
.@enchantitemloc, getiteminfo(.@enchantitemid,5);
in the script but only did slot 1 and 2 to test and was clicking my top head gear to try to get to
if (.@enchantitemloc == 1) {
thinking 1 was top but it was lower zzzz.Sorry to waste your time pls close
Question
rom3r
Im trying to make an enchanter but i want only certain runes to be allowed to be put garmet armor headgear ect.But im having trouble getting it to go to a diffrent menu depending on were the item selected is equiped.
So can someone tell me how exactly i would do that? ty
I feel like a moron I had set
in the script but only did slot 1 and 2 to test and was clicking my top head gear to try to get to
thinking 1 was top but it was lower zzzz.Sorry to waste your time pls close
Link to comment
Share on other sites
0 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.