pano ko sya ma duduplicate gusto ko kc gwin bukod bukod eh gagawa aq ng Pods Trader na Weapon ,Pods trader na Wing
kc kada gagawin ko sya na lilipat lang din ung item nung nasa kabila napupunta dun sa wing shop
example
gumawa aq notepad paste ko yan podtrader2.txt pag click ko sxa npc kung ano ung item na nakalagay dun sa podtrader1.txt nandun din sa podtrader2 gusto ko sana gawin ung bukod bukod pano un?
quiz_02,341,63,5 script Donate Trader 403,{
mes .name$;
mes "You currently have "+countitem(.pod_item)+" Proof of Donation.";
mes "Would you like to look at the shop?";
next;
if(select("Yes:No") == 2) {
close;
}
close2;
callshop "Donator_SHOP",1;
npcshopattach "Donator_SHOP";
dispbottom "You currently have "+countitem(.pod_item)+" Proof of Donation.";
end;
OnBuyItem:
for(set @i,0; @i < getarraysize(@bought_nameid); set @i,@i+1) {
for(set @j,0; @j < getarraysize(.POD_ITEMS); set @j,@j+2) {
if(.POD_ITEMS[@j] == @bought_nameid[@i]) {
set @itemcost,(.POD_ITEMS[(@j+1)]*@bought_quantity[@i]);
set @totalcost,(@totalcost+@itemcost);
break;
}
}
}
if(@totalcost > countitem(.pod_item)) {
dispbottom "You don't have enough Proof of Donation.";
}
else {
for(set @i,0; @i < getarraysize(@bought_nameid); set @i,@i+1) {
getitem @bought_nameid[@i],@bought_quantity[@i];
}
delitem .pod_item,@totalcost;
dispbottom "Thank you for shopping.";
dispbottom "You now have "+countitem(.pod_item)+" Proof of Donation left.";
}
set @totalcost,0;
deletearray @bought_nameid[0],128;
deletearray @bought_quantity[0],128;
end;
OnInit:
npcshopdelitem "Donator_SHOP",0;
set .name$,"[POD Trader]";
set .pod_item,7179;
setarray .POD_ITEMS[0],1577,25,1640,25,1281,25,1187,25,1310,25,1641,25,2002,25,13177,25,13042,25,13179,25,1927,25,13418,25,1743,25,1282,25,1486,25,1981,25,13110,25,2774,25,13417,25,13176,25,13178,25,13307,25,1426,25,1576,25,1382,25,1425,30,5518,30,5374,30,5013,50,20212,25,20213,25,20214,25,20215,25,20216,25,20217,25,20400,20,20401,20,20402,20,20403,20,20404,20,20405,20,2383,50,2541,50,2629,10,2630,10,2410,10,1530,25,4128,20,4357,20,4359,20,4399,20,4361,20,4363,20,4365,20,20000,10,20001,10,20002,10,20003,10,20004,10,20005,10,20264,70,20265,50,20266,20,20267,20,20268,20,20269,20,20270,20,20272,20,20273,20; // Input as many items as you want (item::price)
for(set .@i,0; .@i < getarraysize(.POD_ITEMS); set .@i,.@i+2) {
npcshopadditem "Donator_SHOP",.POD_ITEMS[.@i],.POD_ITEMS[(.@i+1)];
}
}
- shop Donator_SHOP 139,909:1