Jump to content

Cyro

Members
  • Posts

    1138
  • Joined

  • Last visited

  • Days Won

    30

Everything posted by Cyro

  1. check your item details idnum2 files in your grf
  2. prontera,137,177,6 script Freebies 717,{ if( !#Reward == 1 ) { mes "Hey there here you get your freebie items.."; getitem2 1208,1,1,7,0,0,0,0,0; getitem2 2102,1,1,7,0,0,0,0,0; getitem2 1208,1,1,7,0,0,0,0,0; getitem2 2402,1,1,7,0,0,0,0,0; getitem2 2502,1,1,7,0,0,0,0,0; getitem2 12208,1,1,7,0,0,0,0,0; set #Reward, 1; }else{ mes "You already taken freebie items,"; } close; OnInit: waitingroom "Freebies",0; end; } just change the values as your need https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L4397-L4400
  3. you can use getitem2 https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L4397-L4400
  4. https://rathena.org/board/forum/117-web-releases/
  5. Its about typo's, tabs in your groups.conf, check it or use fresh groups.conf, it will fixed
  6. I already answered your question as i remember, find the default file in your grf, replace it with your custom one
  7. Cyro

    Refill NPC

    i think you are looking for @restock system from emistry, i was about to download and check your script, by then you have removed script you attached in your post
  8. Just replacing the third job aura file with simply aura in grf changes 3rd job aura permanently
  9. I tried this one before was working fine And yeah, it won't give reward for the one who already changed job, this script will give rewards while changing job only
  10. As secrets mentioned you need find that particular permanent monster spawning script to change monster names
  11. Check your packet db and mmo.h matching with your client version
  12. what is not working? dont forget to recompile after you make modifications in SRC
  13. This happened to me once when i made typo's in msgstringtable.txt Try using fresh msgstringtable
  14. Cyro

    Request npc Bank

    it didn't gave me any error and your error message says you are missing " } " in your script, recheck
  15. // http://rathena.org/board/topic/83017-pro-lotti-girl-refine-master/ prontera,141,226,6 script Lotti Girl 714,{ mes "[Lotti Girl]"; mes "Hello Sir! Are you out"; mes "shopping in the city?!"; next; mes "[Lotti Girl]"; mes "I'm Lotti! I'll exchange cool"; mes "random prizes for every"; mes "^ff00001 Premium Ticket^000000."; next; mes "[Lotti Girl]"; mes "Our Grand prize is:"; mes "^ff0000+8 Armor Refine Deed^000000"; mes "Special prizes are:"; mes "^ff0000+7 Armor Refine Deed^000000"; mes "^ff0000+10 Weapon Refine Deed^000000"; mes "and ^ff0000+6 Armor Refine Deed^000000"; next; mes "[Lotti Girl]"; mes "You can still get random item"; mes "if you failed to get the grand"; mes "prize and special prizes."; if (countitem(7608) < 1) close; next; if(select("Deal me in!:No way...")==2) close; mes "[Lotti Girl]"; mes "Here we go..."; delitem 7608,1; set .@Total,8; //<%>,<ItemID>,<Amount> setarray .@P1[0],0,8012,1; setarray .@P2[0],1,8011,1; setarray .@P3[0],5,8006,1; setarray .@P4[0],20,8010,1; setarray .@P5[0],90,13517,5; setarray .@P6[0],80,12080,10; setarray .@P7[0],90,30110,5; setarray .@P8[0],80,12075,10; setarray .@Default[0],30095,5; set .@i, rand(1,.@Total); if (rand(1,100) > getd(".@P"+.@i+"[0]")) { for(set .@j,0; .@j<getarraysize(.@Default); set .@j,.@j+2) { getitem .@Default[.@j], .@Default[.@j+1]; if(!.@k[0]) setarray .@k[0], .@Default[.@j], .@Default[.@j+1]; } } else{ for(set .@j,1; .@j<getarraysize(getd(".@P"+.@i)); set .@j,.@j+2) { getitem getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]"); if (!.@k[0]) { set .@gz,.@i; setarray .@k[0], getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]"); break; } } } if(1<=.@gz&&.@gz<=4) announce "Congratulations! "+strcharinfo(0)+" just received "+getitemname(.@k[0])+" x "+.@k[1]+" from Lotti Girl (prontera 139 173)!",0; specialeffect2 248; close; }
  16. Cyro

    Request npc Bank

    prontera,158,173,4 script Coin Trader 860,{ // ---------------------- // - Core Code // ---------------------- cutin "kafra_08",2; mes "[" + .colors$[1] + .npc_name$ + .colors$[0] + "]"; mes "What would you like to do today?"; set .@trade_type, select("- Coins -> Zeny:- Zeny -> Coins"); mes "Very well. Here is the list on how much each coin is worth:"; for (set .@a, 0; .@a < getarraysize(.coin_id); set .@a, .@a + 1) { mes .colors$[3 + .@a] + getitemname(.coin_id[.@a]) + .colors$[0] + ": " + .coin_to_zeny_format$[.@a] + "z"; set .@coin_menu$, .@coin_menu$ + (.@coin_menu$ == "" ? "" : ":") + .colors$[3 + .@a] + getitemname(.coin_id[.@a]) + .colors$[0]; } mes "Tell me, what coin would you like to exchange?"; next; set .@coin_choice, select(.@coin_menu$) - 1; next; mes "[" + .colors$[1] + .npc_name$ + .colors$[0] + "]"; switch(.@trade_type) { case 1: // Coins -> Zeny mes "How much coins would you like to give up?"; input .@amount; if (.@amount <= 0) { // Invalid Number? mes .colors$[2] + "Please Input a number greater than 0:"; cutin "",255; close; } else if (countitem(.coin_id[.@coin_choice]) < .@amount) { mes .colors$[2] + "I'm sorry, you do not have " + .@amount + " " + getitemname(.coin_id[.@coin_choice]) + (.@amount == 1 ? "" : "s"); cutin "",255; close; } else { // Ok! Checks Passed, Let's Trade! if(Zeny >= 2000000000) goto L_FullZeny; //Checks to see if the player has more than 1.8b set Zeny,Zeny + (.coin_to_zeny[.@coin_choice] * .@amount); delitem .coin_id[.@coin_choice],.@amount; cutin "",255; break; } case 2: // Zeny -> Coins mes "How much coins would you like?"; input .@amount; if (.@amount <= 0) { // Invalid Number? mes .colors$[2] + "Please Input a number greater than 0:"; cutin "",255; close; } else if (!checkweight(.coin_id[.@coin_choice],.@amount)) { // Will it Make Char Overweight? mes .colors$[2] + "I'm Sorry, but you can't carry this due to weight restrictions"; cutin "",255; close; } else if (Zeny < .coin_to_zeny[.@coin_choice] * .@amount) { mes .colors$[2] + "I'm sorry, you do not have enough zeny..."; cutin "",255; close; } else { // Checks OK! Let's trade! set Zeny, Zeny - (.coin_to_zeny[.@coin_choice] * .@amount); getitem .coin_id[.@coin_choice], .@amount; cutin "",255; } } mes "[" + .colors$[1] + .npc_name$ + .colors$[0] + "]"; mes "Pleasure doing business with you."; close2; cutin "", 255; close; L_FullZeny: next; mes "[" + .colors$[1] + .npc_name$ + .colors$[0] + "]"; mes "I'm sorry, but I can't allow you to exchange Coins into Zeny when you have over 1.8b zeny."; close; // ---------------------- // - Soft Code // ---------------------- OnInit: // Store NPC Name set .npc_name$, "Coin Master"; // Storing Colours // Order of Array: Default Text, NPC Name, Error, coin_type1, coin_type2, coin_type3, coin_type4, etc... // Note: If you plan on adding additional coins, simply add a new color here setarray .colors$[0],"^000000", "^336699", "^550000", "^996633", "^666666", "^FFFF66", "^99CCCC"; // Set Coin Item ID's // In Order coin_id1, coin_id2, coin_id3, coin_id4, etc... setarray .coin_id[0],674, 671, 675, 670; // Coin -> Zeny Value // Change the Value you want the coins to be worth | Order: Mithril Coin, Gold Coin, Silver Coin, Bag of Gold Coin setarray .coin_to_zeny[0],1000000,10000000,200000000,1000000000; // Currency Formatted String of Zeny | Order: Bronze Coin, Gold Coin, Platinum Coin, Mithril Coin setarray .coin_to_zeny_format$[0],"1,000,000","10,000,000","200,000,000","1,000,000,000"; }
  17. - script autojoin -,{ OnPCLoginEvent: atcommand "@join #main"; atcommand "@join #support"; atcommand "@join #trade"; end; }
  18. Done how? Posting your solutions here might be helpful for future reference
  19. as i asked already, paste errors here from your console if any
  20. <map name>,<x>,<y>,<xs>,<ys>%TAB%monster%TAB%<monster name>%TAB%<mob id>,<amount>,<delay1>,<delay2>,<event>
  21. You can check rAthena officially supported clients list here I've tested 2016-12-28 so far its working fine,
  22. If you are using fluxcp without any custom thend you can edit it with 'pages' option
×
×
  • Create New...