Hello, I'm trying to use this script on the test server, but I'm experiencing this error on the map server
Quote
here is the script
Quote
//===== Herc Script ==========================================//= Shop With Tax Collection//===== By: ==================================================//= ADM Floki (SARO - Sword Art Ragnarok Online)//===== Versão Atual: ========================================//= 1.0//===== Compatible With: =====================================//= Herc WS//===== Description: =========================================//= An NPC selling Red Potions in exchange for a coin worth 100 Zenys.//= The Defined Item is Copper_Coin (ID: 673)//= At the end of the transaction with the NPC will be stored a tax amount (Amount of Coins * 10)//= In this way each Red Potion purchased by any player in the amount of 1 coin of 100 Zenys will yield 10% in tax, that is to say 10 Zenys.//= The idea for the script is to put the tax collector NPC for the clans that dominate the regions collect the taxes.//===== Additional comments: ==============================//= 1.0 First version//============================================================
prontera,155,183,5 trader ItensSeller4_F_EDEN_OFFICER,{OnInit:
tradertype(NST_CUSTOM);
sellitem Red_Potion,1;
end;// Here you configure the item you will need to purchaseOnCountFunds:
setcurrency(countitem(Copper_Coin),countitem(Copper_Coin));
end;// Pays the value in bronze coinsOnPayFunds:
dispbottom "Hello: Price="+@price+" And Points="+@points;if( countitem(Copper_Coin)<@points|| countitem(Copper_Coin)<@price-@points)
end;
delitem Copper_Coin,@points;
delitem Copper_Coin,@price-@points;// Stores the amount of tax the clan can withdraw.set $taxes1, $taxes1+@price*10;set $taxes2, $taxes2+@price*10;
purchaseok();
end;}
prontera,144,321,6 trader TaxCollector#1 4_F_EDEN_OFFICER,{
mes "[Tax Collector]";
mes "You have: "+$taxes1+" Zenys to collect";
next;
mes "Would you like to collect that amount now?";if(select("Collect","No")==2) close;
mes "Tax collected successfully";setZeny,Zeny+$taxes1;set $taxes1,0;
close;}
prontera,144,340,6 trader TaxCollector#2 4_F_EDEN_OFFICER,{
mes "[Tax Collector]";
mes "You have: "+$taxes2+" Zenys to collect";
next;
mes "Would you like to collect that amount now?";if(select("Collect","No")==2) close;
mes "Tax collected successfully";setZeny,Zeny+$taxes2;set $taxes2,0;
close;}
Question
Hidan
Hello, I'm trying to use this script on the test server, but I'm experiencing this error on the map server
here is the script
Thanks in advance.
5 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.