I have this npc, but it does not buy, nor does it sell, nor does it count the rate
Spoiler
//============================================================// shop to insert items into:- shop dyn_shop1 -1,501:50.
prontera,181,200,4 script DynamicShop123,{
callshop "dyn_shop1",0;
npcshopattach "dyn_shop1";
end;OnSellItem:// Stores the amount of tax the clan can withdraw.set $taxes1, $taxes1+@price*10;
mes "Imposto Coletado.";
end;OnBuyItem:// Stores the amount of tax the clan can withdraw.set $taxes1, $taxes1+@price*10;//mes "Tax collected successfully!";
dispbottom "Tax "+$taxes1+",";
end;OnInit://npcshopitem "dyn_shop1", 501,40,502,200;
npcshopitem "dyn_shop1",611,40,1750,1,501,50,502,200,503,550,504,1200,506,40,645,800,656,1500,601,60,602,300,1065,100,2239,10000;
$@rpotsleft =10;
$@opotsleft =10;
end;}
prontera,181,198,6 script tax collector#1 952,{
mes "[taxes]";
mes "You have: "+$taxes1+" Zenys to collect";
next;
mes "Would you like to collect this money now?";if(select("Coletar","Não")==2) close;
mes "Tax collected successfully";setZeny,Zeny+$taxes1;set $taxes1,0;
close;}
I want the npc to be equal to 1 normal npc shop, the difference is that it collects 10% of the value of each purchase, and saves so that the leader of the cl, retire and m seven in seven days value.
Question
Hidan
I have this npc, but it does not buy, nor does it sell, nor does it count the rate
I want the npc to be equal to 1 normal npc shop, the difference is that it collects 10% of the value of each purchase, and saves so that the leader of the cl, retire and m seven in seven days value.
Grateful to anyone who can help me.
Link to comment
Share on other sites
6 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.