Jump to content

crazyarashi

Developer
  • Posts

    761
  • Joined

  • Last visited

  • Days Won

    19

Community Answers

  1. crazyarashi's post in monster teleporting when it suffers attacks was marked as the answer   
    If you don't want to change the skill_db just use the mapflag 
    monster_noteleport  
  2. crazyarashi's post in Dynamic Checkquest Question. was marked as the answer   
    Found this for the solution 
     
  3. crazyarashi's post in Random Box/Egg Function Script was marked as the answer   
  4. crazyarashi's post in How can I find/build a data GRF and Hexed client was marked as the answer   
    Note: The Client Above is a 2018 Client and not suggested for people who are kinda new.
  5. crazyarashi's post in rAthena totally support IMPORT folders/files? was marked as the answer   
    db and conf is the only that has import folder.
    Import-tmpl is import template when you compile your server the exact copy of the template will be the import folder ( if doesn't exist) 
  6. crazyarashi's post in Warper for Item/-Item was marked as the answer   
    I believe that is not a rA script, so here.
    [email protected]_in,74,144,3 script Casino Employee 109,{ [email protected] = 7539; mes "[Casino Employee]"; mes "Welcome to Jazeera Casino."; mes "Casino entry cost: ^0000FF3 "+getitemname(7539)+"^000000."; next; if(select("Enter Casino:Cancel") == 1){ if(countitem([email protected]) < 3){ mes "[Casino Employee]"; mes "You don't have enough ^0000FF"+getitemname([email protected])+"^000000."; close; } mes "[Casino Employee]"; mes "Let's go!"; delitem [email protected],3; warp "[email protected]_in",68,170; end; } mes "[Casino Employee]"; mes "Okay, have a nice day."; close; }  
  7. crazyarashi's post in How can I find the packet_db_ver ? was marked as the answer   
    There is no packet_db_ver anymore, to edit the packet version you can find it at src/config/packets.h and make sure you diff it to match your configuration (Packet Obfuscation)
  8. crazyarashi's post in Atcommand @VIP doesn't work anymore was marked as the answer   
    Works fine  
    is your VIP enabled?
  9. crazyarashi's post in skill tree issue was marked as the answer   
    you need to remove it in  your skilltreeview.lub/lua in your grf. so it won't be displayed in the standard skill tree :))
  10. crazyarashi's post in client zoom help was marked as the answer   
    the client zoom depends on the diff you make it on nemo :)) you just need to rediff your client to have the zoom patch in it.
  11. crazyarashi's post in Sprites of unidentified items was marked as the answer   
    each unidentified item sprite is define in iteminfo.lua/lub so i wont really call it main sprites. you can change the sprite to your liking inside the lua/lub files :))

     
  12. crazyarashi's post in How to set an Item perm in ItemDB? was marked as the answer   
    I believe its not in the item_db 
    the perm should be set in item_trade db :))

     
  13. crazyarashi's post in Help with my script, how to add if conditions and dialogs after a quest is given (checkquest) was marked as the answer   
    you can just use checkquest(number) = 1 = Quest has been given and state is active. something like this
     
    if(checkquest(8507) = 1 || checkquest(8508) = 1 || checkquest(8509) = 1 || checkquest(8510) = 1){ mes "Im glad you helped us please hunt"; close; }  
  14. crazyarashi's post in About new Rathena packets.h key no change was marked as the answer   
    you need to recompile :))
  15. crazyarashi's post in R>Item Script consume level up was marked as the answer   
    501,Red_Potion,Red Potion,0,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ set BaseLevel, BaseLevel + 1; },{},{}  
  16. crazyarashi's post in VIP System was marked as the answer   
    prontera,255,55,5 script Premium Changer 456,{ mes "^0055FF[ Premium Exchanger ]^000000"; mes "Good day, Im Riza and I can make you a premium user"; mes "For a premium ticket"; next; mes "^0055FF[ Premium Exchanger ]^000000"; mes "A premium user will be able to use the premium buffs of the healer and other boosts"; mes "It includes Imposition Manus/Assumptio/+10 Food Buffs/Soul Link Buffs"; mes "and a boost of drop rate by 50%"; next; mes "^0055FF[ Premium Exchanger ]^000000"; mes "Do you want to be a premium user?"; switch(select("Yes!:No Im just looking around.")) { Case 1: goto Ontalk; close; Case 2: mes "^0055FF[ Premium Exchanger ]^000000"; mes "Okay, Have a nice day!"; close; } OnTalk: [email protected]$ = "^0055FF[ Premium Exchanger ]^000000" if ( vip_status(0) ) { mes "[email protected]$"; mes "You're already a [Premium User]"; next; mes "[email protected]$"; mes "Come back when your Premium already expired!"; close; } else { [email protected] = select( .vip_day[0] + "Days", .vip_day[1] + "Days", .vip_day[2] + "Days" ) - 1; mes "[email protected]$"; mes "Your account will be premium for "+.vip_day[[email protected]]+" Days"; mes "You will need a .vip_item[[email protected]] for that."; switch(select("Yes i want to exchange my ticket:No Im just looking around.")) { case 1: if (countitem(.vip_item) > 0) delitem .vip_item[[email protected]],1 vip_time ( .vip_day[[email protected]] * 1440 ); mes "[email protected]$"; mes "You are now a Premium User for "+.vip_day[[email protected]]+" Days!"; end; case 2: mes "[email protected]$"; mes "Okay, Have a nice day!"; close; } } OnCheck: if (vip_status(0)) { dispbottom "Expire Time : "+vip_status(3); } end; OnInit: setarray .vip_day,7,14,31; setarray .vip_item,33110,33111,33112; //Set The VIP Item here bindatcmd("vipstatus", strnpcinfo(3)+"::OnCheck"); end; } Use this one just add the items needed  in the array  
    Credits to Emistry for the script :))
  17. crazyarashi's post in Download Error was marked as the answer   
  18. crazyarashi's post in After changing the exp in the battle folder what is next? was marked as the answer   
    After changing anything in the conf/battle folder you need to use @reload battle to reload the changes in the battle folder :))
  19. crazyarashi's post in Help Dynamic Shop was marked as the answer   
    - shop tax10 -1,501:10000 prontera,255,55,4 script Dealer#tax10 123,{ set [email protected],80; if (getgmlevel() >= [email protected]) { 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 [email protected],[email protected] + $collectedtax; set Zeny,Zeny + [email protected]; dispbottom "You have collected a total of "[email protected]+"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 [email protected],0; for(set [email protected],0; [email protected] < getarraysize( @bought_nameid ); set [email protected],[email protected]+1) for(set [email protected],0; [email protected] < getarraysize( .item ); set [email protected],[email protected]+1) if( .item[[email protected]] == @bought_nameid[[email protected]] ) set [email protected],[email protected] + ( .price[[email protected]] * @bought_quantity[[email protected]] ); set [email protected],(([email protected] * .rates) / 100); set [email protected],[email protected] + ([email protected] + [email protected]); if( Zeny >= [email protected] ){ set Zeny,Zeny - [email protected]; for(set [email protected],0; [email protected] < getarraysize( @bought_nameid ); set [email protected],[email protected]+1) getitem @bought_nameid[[email protected]],@bought_quantity[[email protected]]; set $collectedtax,$collectedtax + [email protected]; dispbottom "You have paid an additional "[email protected]+"z for this purchase"; close; } else { set [email protected],[email protected] + ([email protected] - Zeny); mes "Your zeny is not enough for this purchase"; dispbottom "You need "[email protected]+"z more for this purchase"; close; } OnSellItem: set [email protected],0; for(set [email protected],0; [email protected] < getarraysize( .bitem ); set [email protected],[email protected]+1) if( @sold_nameid[[email protected]] == .bitem[[email protected]] ) { set [email protected],[email protected] + ( .bprice[[email protected]] * @sold_quantity[[email protected]] ); set [email protected],[email protected] + (([email protected] * .rates) / 100); set [email protected],[email protected] + ([email protected] - [email protected]); set Zeny,Zeny + [email protected]; for(set [email protected],0; [email protected] < getarraysize( @sold_nameid ); set [email protected],[email protected]+1) delitem @sold_nameid[[email protected]],@sold_quantity[[email protected]]; set $collectedtax,$collectedtax + [email protected]; dispbottom "Your Total Earnings is "[email protected]+"."; dispbottom "You earnings have been reduced by "[email protected]+"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 [email protected],0; [email protected] < getarraysize( .item ); set [email protected],[email protected]+1) npcshopadditem "tax10",.item[[email protected]],.price[[email protected]]; 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 :))
  20. crazyarashi's post in king poring database was marked as the answer   
    //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
  21. crazyarashi's post in tool dealer with options was marked as the answer   
    prontera,255,55,5 script Tool Dealer#prt 125,{ mes "What do you like to buy?"; switch( select( "Ammunition Box", "Single Ammo", "Identify My Items", "Nothing" ) ) { next; case 1: callshop "AmmunitionBox",1; end; case 2: callshop "SingleAmmo",1; end; case 3: mes "Here you go"; callfunc "identify123"; end; case 4: mes "Okay, have a nice day"; close; } } - shop Tool Dealer#shop::AmmunitionBox -1,501:-1 // Add ammo box here - shop Tool Dealer#shop::SingleAmmo -1,502:-1 //single ammo add here function script identify123 { getinventorylist; while( [email protected] < @inventorylist_count ){ if ( [email protected]_identify[[email protected]] ){ delitem2 @inventorylist_id[[email protected]],1,0,0,0,0,0,0,0; getitem @inventorylist_id[[email protected]],1; } [email protected]++; } close; }  
  22. crazyarashi's post in newbie gift for 1 IP. was marked as the answer   
    prontera,255,55,5 script Freebies NPC 655,{ query_sql ("SELECT `last_ip` FROM `login` WHERE `account_id`=" + getcharid(3) + "", [email protected]$); mes "[Freebies NPC]"; mes "Welcome to Server Name!!"; next; if ( getd("$" + [email protected]$ + "_NA") > 0 || #NewbieGift > 0) { mes "[Freebies NPC]"; mes "Your IP have already recieved a freebies."; close; } mes "Here are your freebies!:"; getitem 501,1000; //item id and amount getitem 502,1000; set #NewbieGift, 1; setd "$" + [email protected]$ + "_NA", getd("$" + [email protected]$ + "_NA") + 1; end; }  
  23. crazyarashi's post in DB Cleaner was marked as the answer   
    A Simple SQL Query Will Do for deleting an account that hasnt been log in yet
    DELETE FROM `login` WHERE `logincount` = 0;  
  24. crazyarashi's post in How to change portal color? was marked as the answer   
    Warp Portal Topic
  25. crazyarashi's post in Movement Speed was marked as the answer   
    Automatic speed change on map topic
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.