I encountered this error when using Patsky's Dynamic shop script...
i changed my zeny to 0
and it says "you do not have enough zeny" but my currency is "#KILLPOINTS".
i don't understand why.
please do help.
Thanks in advance~
i changed my zeny to 0
and it says "you do not have enough zeny" but my currency is "#KILLPOINTS".
i don't understand why.
please do help.
Thanks in advance~
Code:
- shop dynamicshop -1,501:50prontera,150,150,4 script Dynamic Shop 100,{ callshop "dynamicshop",1; npcshopattach "dynamicshop"; end; OnBuyItem: for ( set .@j, 0; .@j < getarraysize(.items); set .@j, .@j + 2 ) { for ( set .@k, 0; .@k < getarraysize(@bought_nameid); set .@k, .@k + 1 ) { if ( @bought_nameid[.@k] == .items[.@j] ) { if ( checkweight( @bought_nameid[.@k], @bought_quantity[.@k] ) ) { if ( .currency < .items[.@j+1] ) dispbottom "You don't have enough kill points to purchase this item."; else { .currency -= .items[.@j+1] * @bought_quantity[.@k]; getitem @bought_nameid[.@k], @bought_quantity[.@k]; } } else dispbottom "You cannot carry out more items with you"; } } } deletearray @bought_quantity, getarraysize(@bought_quantity); deletearray @bought_nameid, getarraysize(@bought_nameid); end; OnInit: set .currency, "#KILLPOINTS"; // kill points is used to buy items setarray .items, 7227,5; // Usage : <item id>,<price> npcshopitem "dynamicshop",0,0; for ( set .@i, 0; .@i < getarraysize(.items); set .@i, .@i + 2 ) npcshopadditem "dynamicshop", .items[.@i], .items[.@i+1]; end;}