I need help with this script pls.. i am get error with this reference: getitemisequipable(.@Items note: attached the full codec!
case 7: // Weapons
if( Welcome_W > 0 )
{
mes "[^FFA500Chronos Girl^000000]";
mes "You already have received 3 weapons. Sorry!!";
close;
}
mes "[^FFA500Chronos Girl^000000]";
mes "What kind of weapon do you want to build?";
next;
switch( select("Axes:Spears:Swords:Book:Bow:Dagger:Fist:Katar:Maces:Instruments/Whips:Staff:Guns:Shurikens") )
{
case 1: // Axes
setarray .@Items[0],1366,1387,1371,1363;
break;
case 2: // Spears
setarray .@Items[0],1408,1471,1420,1422;
break;
case 3: // Swords
setarray .@Items[0],1128,13405,13400;
break;
case 4: // Books
setarray .@Items[0],1564,1557,1555,1553,1554,1556;
break;
case 5: // Bow
setarray .@Items[0],1716,1705,1734;
break;
case 6: // Dagger
setarray .@Items[0],1208,1231,1232,13011;
break;
case 7: // Fist
setarray .@Items[0],1807,1814,1819,1818;
break;
case 8: // Katar
setarray .@Items[0],1261,1251,1259,1270,1265;
break;
case 9: // Maces
setarray .@Items[0],1544,1525,1528;
break;
case 10: // Instruments
setarray .@Items[0],1902,1920,1925,1910,1951,1980,1979;
break;
case 11: // Staffs
setarray .@Items[0],1602,1625,1624,1626,1618,1620;
break;
case 12: // Guns
setarray .@Items[0],13150,13161,13153,13170,13107,13169;
break;
case 13: // Shurikens
setarray .@Items[0],13302,13303,13304;
break;
}
setarray .@Cards[0],4002,4072,4004,4452,4076,4017,4024,4026,4082,4085;
break;
}
// Build Item
set .@MenuI$, "";
set .@Sepa$, "";
for( set .@i, 0; .@Items[.@i] != 0; set .@i, .@i + 1 )
{
if( getiteminfo(.@Items[.@i], 10) > 0 )
set .@MenuI$, .@MenuI$ + .@Sepa$ + getitemname(.@Items[.@i]) + "[" + getiteminfo(.@Items[.@i], 10) + "]";
else
set .@MenuI$, .@MenuI$ + .@Sepa$ + getitemname(.@Items[.@i]);
set .@Sepa$, ":";
}
set .@Item, select(.@MenuI$) - 1;
setarray .@Card[0], 0, 0, 0, 0;
if( !checkweight(.@Items[.@Item], 1) )
{
mes "[^FFA500Chronos Girl^000000]";
mes "You cannot hold this weapons because of weight limits on your character. Please free some weight.";
close;
}
if( !getitemisequipable(.@Items[.@Item]) ) //<--The Error Show Here
{
mes "[^FFA500Chronos Girl^000000]";
mes "This items cannot be used by your class.";
close;
}
set .@MenuC$, "";
set .@Sepa$, "";
for( set .@i, 0; .@Cards[.@i] != 0; set .@i, .@i + 1 )
{
set .@MenuC$, .@MenuC$ + .@Sepa$ + getitemname(.@Cards[.@i]);
set .@Sepa$, ":";
}
for( set .@i, 0; .@i < getiteminfo(.@Items[.@Item], 10); set .@i, .@i + 1 )
{ // Cards
mes "[^FFA500Chronos Girl^000000]";
mes "Please, choose a card for slot [" + (.@i + 1) + "]";
next;
set .@Card[.@i], .@Cards[select(.@MenuC$) - 1];
}
mes "[^FFA500Chronos Girl^000000]";
mes "You want to build a : ^0000FF" + getitemname(.@Items[.@Item]) + "^000000.";
set .@Refine, 0;
if( getitemisrefinable(.@Items[.@Item]) )
{
switch( getiteminfo(.@Items[.@Item], 13) )
{
case 0: set .@Refine, 5; break;
case 1: set .@Refine, 5; break;
case 2: set .@Refine, 5; break;
case 3: set .@Refine, 5; break;
case 4: set .@Refine, 5; break;
}
}
mes "It will receive a ^0000FF" + .@Refine + "^000000 refine.";
for( set .@i, 0; .@i < getiteminfo(.@Items[.@Item], 10); set .@i, .@i + 1 )
{ // Info de Cards
mes "Card on slot [" + (.@i + 1) + "] ^0000FF" + getitemname(.@Card[.@i]) + "^000000";
}
mes "Is this ok?";
next;
if( select("Yes, give me the item.:No, i will try another build...") == 1 )
{
mes "[^FFA500Chronos Girl^000000]";
mes "Here is your item.";
itembound2 .@Items[.@Item],1,1,.@Refine,0,.@Card[0],.@Card[1],.@Card[2],.@Card[3];
switch( .@Build )
{
case 1: set Welcome_H, Welcome_H + 1; break;
case 2: set Welcome_G, Welcome_G + 1; break;
case 3: set Welcome_Ar, Welcome_Ar + 1; break;
case 4: set Welcome_F, Welcome_F + 1; break;
case 5: set Welcome_Ac, Welcome_Ac + 1; break;
case 6: set Welcome_S, Welcome_S + 1; break;
case 7: set Welcome_W, Welcome_W + 1; break;
}
}
else
{
mes "[^FFA500Chronos Girl^000000]";
mes "No items received.";
}
close;
Hi team,
I need help with this script pls.. i am get error with this reference: getitemisequipable(.@Items
note: attached the full codec!
Welcome_JobEquip.txt
Edited by OmarAceroShare this post
Link to post
Share on other sites