Jump to content

crazyarashi

Developer
  • Posts

    763
  • Joined

  • Last visited

  • Days Won

    20

Everything posted by crazyarashi

  1. Reproduced it in ubuntu 14.04 - Trusty, the initial gcc version installed is 4.8.4 updating your gcc will solve the issue :))
  2. Oh I thought you're using 17.04 Okie then ill up a 14.04 test server and try to replicate your error :))
  3. prontera,150,181,4<TAB>script<TAB>VIP Healer#h1-1::Healer<TAB>533,{ Renamed the npc :)) A guide for Basic NPC Creation :))
  4. May you provide more information like what ubuntu are you using
  5. You have enabled the auction feature in the battle/feature.conf since you're using an old client which doesn't support it which is the cause of the system disabling it automatically :))
  6. After changing anything in the conf/battle folder you need to use @reload battle to reload the changes in the battle folder :))
  7. - shop tax10 -1,501:10000 prontera,255,55,4 script Dealer#tax10 123,{ set .@GM,80; if (getgmlevel() >= .@GM) { mes "Hi, Tax Collector How can i help you today?"; mes "You're not excluded from the tax though"; next; switch(select("Open Buying Shop:Open Selling Shop:View Tax Earned:Collect Tax")){ case 1: callshop "tax10",1; npcshopattach "tax10"; end; case 2: callshop "tax10",2; npcshopattach "tax10"; end; case 3: mes "Your shop have now earned a total of ^ff0000"+ $collectedtax +"^000000."; close; case 4: if($collectedtax <= 0){ mes "Are you crazy you have nothing to collect!"; close; } else { set .@TotalCollected,.@TotalCollected + $collectedtax; set Zeny,Zeny + .@TotalCollected; dispbottom "You have collected a total of "+.@TotalCollected+"z Taxes"; set $collectedtax,0; close; } } } mes "Hi, Im a traveling merchant I sell everything as cheap as it can be and buy everything as high as I can be"; mes "But every purchase/sold will have an additional 10% tax"; next; switch(select("Open Buying Shop:Open Selling Shop:Nothing")){ case 1: callshop "tax10",1; npcshopattach "tax10"; end; case 2: callshop "tax10",2; npcshopattach "tax10"; end; case 3: mes "Stop wasting my time!"; close; } OnBuyItem: set .@TotalCost,0; for(set .@i,0; .@i < getarraysize( @bought_nameid ); set .@i,.@i+1) for(set .@j,0; .@j < getarraysize( .item ); set .@j,.@j+1) if( .item[.@j] == @bought_nameid[.@i] ) set .@TotalCost,.@TotalCost + ( .price[.@j] * @bought_quantity[.@i] ); set .@tax,((.@TotalCost * .rates) / 100); set .@FinalCost,.@FinalCost + (.@TotalCost + .@tax); if( Zeny >= .@FinalCost ){ set Zeny,Zeny - .@FinalCost; for(set .@i,0; .@i < getarraysize( @bought_nameid ); set .@i,.@i+1) getitem @bought_nameid[.@i],@bought_quantity[.@i]; set $collectedtax,$collectedtax + .@tax; dispbottom "You have paid an additional "+.@tax+"z for this purchase"; close; } else { set .@lack,.@lack + (.@FinalCost - Zeny); mes "Your zeny is not enough for this purchase"; dispbottom "You need "+.@lack+"z more for this purchase"; close; } OnSellItem: set .@TotalEarn,0; for(set .@j,0; .@j < getarraysize( .bitem ); set .@j,.@j+1) if( @sold_nameid[.@i] == .bitem[.@j] ) { set .@TotalEarn,.@TotalEarn + ( .bprice[.@j] * @sold_quantity[.@i] ); set .@btax,.@btax + ((.@TotalEarn * .rates) / 100); set .@FinalEarn,.@FinalEarn + (.@TotalEarn - .@btax); set Zeny,Zeny + .@FinalEarn; for(set .@i,0; .@i < getarraysize( @sold_nameid ); set .@i,.@i+1) delitem @sold_nameid[.@i],@sold_quantity[.@i]; set $collectedtax,$collectedtax + .@btax; dispbottom "Your Total Earnings is "+.@FinalEarn+"."; dispbottom "You earnings have been reduced by "+.@tax+"z because of the 10% tax"; close; } else { mes "Sorry I dont buy that kind of item"; close; } OnInit: set .rates,10; //set tax here setarray .item[0],501,502,503; setarray .price[0],10000,15000,20000; setarray .bitem[0],748,969; setarray .bprice[0],27500,100000; npcshopitem "tax_Shop",512,1000; npcshopdelitem "tax_Shop",512; for(set .@i,0; .@i < getarraysize( .item ); set .@i,.@i+1) npcshopadditem "tax10",.item[.@i],.price[.@i]; end; } test this and give me feedback :)) apparently i cant make all selling items have tax(i cant think of a logic for it) so just add the items you want to be sellable in the shop in bitem and the bprice for the price of it :))
  8. prontera,150,181,4<TAB>script<TAB>Healer#h1-1::Healer<TAB>533,{ you need to use proper syntax :))
  9. it needs to match the password of your sql/phpmyadmin since it needs the user and pass to connect to get the data of your database :))
  10. do you want the tax to be withdrawable and get tax from sell items too? :))
  11. - shop tax10 -1,501:10000 prontera,255,55,4 script Dealer#tax10 123,{ mes "Hi, Im a traveling merchant I sell everything as cheap as it can be"; mes "But every purchase will have an additional 10% tax"; next; switch(select("Open Shop:Nothing")){ case 1: callshop "tax10",1; npcshopattach "tax10"; end; case 2: mes "Stop wasting my time!"; close; } OnBuyItem: set .@TotalCost,0; for(set .@i,0; .@i < getarraysize( @bought_nameid ); set .@i,.@i+1) for(set .@j,0; .@j < getarraysize( .item ); set .@j,.@j+1) if( .item[.@j] == @bought_nameid[.@i] ) set .@TotalCost,.@TotalCost + ( .price[.@j] * @bought_quantity[.@i] ); set .@tax,((.@TotalCost * .rates) / 100); set .@FinalCost,.@FinalCost + (.@TotalCost + .@tax); if( Zeny >= .@FinalCost ){ set Zeny,Zeny - .@FinalCost; for(set .@i,0; .@i < getarraysize( @bought_nameid ); set .@i,.@i+1) getitem @bought_nameid[.@i],@bought_quantity[.@i]; dispbottom "You have paid an additional "+.@tax+"z for this purchase"; close; } else { set .@lack,.@lack + (.@FinalCost - Zeny); mes "Your zeny is not enough for this purchase"; dispbottom "You need "+.@lack+"z more for this purchase"; close; } OnInit: set .rates,10; //set tax here setarray .item[0],501,502,503; setarray .price[0],10000,15000,20000; npcshopitem "tax_Shop",512,1000; npcshopdelitem "tax_Shop",512; for(set .@i,0; .@i < getarraysize( .item ); set .@i,.@i+1) npcshopadditem "tax10",.item[.@i],.price[.@i]; end; } this shop have configurable tax percentage but i dont get the part
  12. Pet Evolution System is not yet supported by rA
  13. You can add 2hours WOE in Euphy's WOE Controller, but the maximum time for WOE is until 23:00 Only or 11PM Because 00:00 or 12AM is a start of another day. If you want to add 2 hours WOE you can set the WOE to start at 21:00 or less
  14. im not really sure with this one, i can't confirm that will happen or not
  15. you just need to edit the day and time it will start and day and time the rates will go back to normal
  16. OnSat2100: // saturday 9PM rates goes back to normal .base_exp_rate = getbattleflag("base_exp_rate"); .job_exp_rate = getbattleflag("job_exp_rate"); .item_rate_common = getbattleflag("item_rate_common"); .item_rate_heal = getbattleflag("item_rate_heal"); .item_rate_use = getbattleflag("item_rate_use"); .item_rate_equip = getbattleflag("item_rate_equip"); callsub( L_rate,1 ); //calls normal rate end; OnSat2000: // saturday 8PM x2 rates start callsub( L_rate,2 ); //calls x2 rate end; Emistry's Different Floating Rates
  17. you should recheck the link again for the download :))
  18. are you running on renewal perhaps? :))
  19. //conf/battle/monster.conf // Display some mob info next to their name? (add as needed) // (does not works on guardian or Emperium) // 1: Display mob HP (Hp/MaxHp format) // 2: Display mob HP (Percent of full life format) // 4: Display mob's level show_mob_info: 0 // Change This to 2
  20. it should be available in kRO's data.grf
  21. //Sample 2538,E_KING_PORING,King Poring,King Poring,100,1000000,5000,10000,10000,3,2500,3800,150,120,100,100,100,80,150,60,8,10,2,0,80,102779031,100,336,290,720,7500,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 you should be able to make it just follow the Structure of Database in the top of mob_db.txt
×
×
  • Create New...