Jump to content

nanakiwurtz

Members
  • Posts

    1654
  • Joined

  • Last visited

  • Days Won

    66

Community Answers

  1. nanakiwurtz's post in For loop problem help me. was marked as the answer   
    for( set .@i, 0; .@i < getarraysize(.@Gitem); set .@i, .@i + 1 ){ set .@am,.@GAmount[.@i] * .@greward;
    getitem .@Gitem[.@i],.@am;
    }
    if ($@members > 14){
    for( set .@i, 0; .@i < getarraysize(.@Aitem); set .@i, .@i + 1 ){
    set .@amm,.@AAmount[.@i] * .@areward;
    getitem .@Aitem[.@i],.@amm;
    }
    }
  2. nanakiwurtz's post in gold room with a twist was marked as the answer   
    // Just change map whatever you want geffen,67,63,4 script Farm Zone 900,{ mes "This is a Farm Zone."; mes "You are able to Hunt Budots Coin inside this Room."; mes "But please be careful, this room is PK Enabled."; next; menu "Are you sure to go? [" + getmapusers("guild_vs5.gat") +"/5]", L_Go, "Nevermind", L_nvm; L_Go: next; if (getmapusers("guild_vs5") >= 5) { mes "This map is currently full."; close; } warp "guild_vs5",23,50; end; L_nvm: mes "No problem come back again"; close; end; } // -------------------------------------------------------------- - script Monsters -1,{ OnInit: OnNPCKillEvent: if ( strcharinfo(3) == "guild_vs5" ) { if( killedrid == 1369){ getitem 607,1; } end; } } guild_vs5,0,0,52,52 monster Grand Peco 1369,20,10,10; I think you're missing a 'close', otherwise even there are more than 5 people on the room, other people can still join the room.. 
  3. nanakiwurtz's post in Query Insert HELP was marked as the answer   
    set .@acc_idl, getcharid(3) ; I believe it's a typo?
    set .@acc_id, getcharid(3) ;
  4. nanakiwurtz's post in Soul Linker job description problem was marked as the answer   
    Check your langtype in client.xml
  5. nanakiwurtz's post in make the rock paper scissor every 1 hour was marked as the answer   
    // = Script made by RIKIMARU on rathena.org // = Profile Link : // = http://rathena.org/board/user/434-rikimaru/ // = ENJOY THIS SCRIPT! //=================================================================================== // //=====// /==/ /==/ /==/ // // // /==/ /==/ /=/ /==/ // //=====// /==/ /=/ /==============/ /========/ /==//===/ /==/ /==/ // //=////// /==/ /==//=/ /==/ /==/==/==/==/==/ / / / /==/ /==/ /==/ // // == /==/ /==//=/ /==/ /==/ /==/ /==/ ======/ / /==/ /==/ /==/ // // == /==/ /==/ /=/ /==/ /==/ /==/ /==/ / /===/ / /==/ /==/ /==/ // // == /==/ /==/ /=/ /==/ /==/ /==/ /==/ / /===/ / /==/ /==/=====/==/ // // == /==/ /==/ /=/ /==/ /==/ /==/ /==/ /========/ /==/ /==///////==/ // ================ rAthena Script ================================================== // ============== Information ======================================================= // = Rock,Paper,Scissors Game // = Made by : // = Rikimaru //===== Current Version: =============================================== //= 1.0 //===== Compatible With: =============================================== //= any rAthena SVN //===== Description: =================================================== //= Rock,Paper,Scissors game with a chance of 10 Prizes //===== Additional Comments: =========================================== //= 1.0 Finished Scripting the NPC [Rikimaru] //====================================================================== //= DO NOT REMOVE MY CREDITS AND CLAIM MY WORK AS YOURS //====================================================================== prontera,192,154,3    script    Rock,Paper,Scissors    100,{ // ================ Settings ================================== set .@n$,"^0000FF[ Rock,Paper,Scissors ]^000000"; set .cost,1000; set .@player1$,"Rock"; set .@player2$,"Paper"; set .@player3$,"Scissors"; // ============== End of Settings ============================= OnMenu: mes .@n$; set .@delay, gettimetick(2)-rpsgame; if (.@delay < 3600) { mes "You have to wait for "+ callfunc("Time2Str",.@delay); close; } mes "Hello,do you want to play"; mes "some Rounds of Rock,Paper,"; mes "Scissors?It just costs "+.cost+" Zenny."; next; switch(select("Yes:Cancel")) {     case 1:     mes .@n$;     if(Zeny < .cost) goto l_nozeny;     set Zeny, Zeny - .cost;     mes "Okay,get ready.";     set $@ran, rand(1,3);     if ($@ran == 3) set .@npcpick$,"Rock";     if ($@ran == 2) set .@npcpick$,"Paper";     if ($@ran == 1) set .@npcpick$,"Scissors";     next;     mes .@n$;     mes "What do you want to use?";     next;     set rpsgame,gettimetick(2);     switch(select("Rock:Paper:Scissors")) {         case 1:         mes .@n$;         mes "Okay you've picked Rock";         mes "and I've picked "+.@npcpick$+"!";         next;         if(.@npcpick$ == .@player3$) goto l_win;         if(.@npcpick$ == .@player2$) goto l_loose;         if(.@npcpick$ == .@player1$) goto l_draw;         close;         case 2:         mes .@n$;         mes "Okay you've picked Paper";         mes "and I've picked "+.@npcpick$+"!";         next;         if(.@npcpick$ == .@player3$) goto l_loose;         if(.@npcpick$ == .@player2$) goto l_draw;         if(.@npcpick$ == .@player1$) goto l_win;         close;         case 3:         mes .@n$;         mes "Okay you've picked Scissors";         mes "and I've picked "+.@npcpick$+"!";         next;         if(.@npcpick$ == .@player3$) goto l_draw;         if(.@npcpick$ == .@player2$) goto l_win;         if(.@npcpick$ == .@player1$) goto l_loose;         close;         }     case 2:     close;     }     l_win:     mes .@n$;     mes "Congrats you won!";     set rpswin, rpswin+1;     if (rpswin>=10) {     set rpswin,0;     mes "You got the Grand Prize because you have won 10 times in a row!";     announce ""+strcharinfo(0)+" has won the Grand Prize from Rock Paper Scissors Game!",bc_npc|bc_area;     getitem 501,10;     }     set $@ran2, rand(1,10);     if ($@ran2 == 10) set @prize,7451 ;     if ($@ran2 == 9) set @prize,12103;     if ($@ran2 == 8) set @prize,969;     if ($@ran2 == 7) set @prize,4001;     if ($@ran2 == 6) set @prize,909;     if ($@ran2 == 5) set @prize,501;     if ($@ran2 == 4) set @prize,502;     if ($@ran2 == 3) set @prize,503;     if ($@ran2 == 2) set @prize,504;     if ($@ran2 == 1) set @prize,505;     set $@ran3, rand(1,3);     if ($@ran3 == 3) set @amount,5;     if ($@ran3 == 2) set @amount,3;     if ($@ran3 == 1) set @amount,1;     next;     mes .@n$;     mes "Take this Prize!";     getitem @prize,@amount;     goto OnMenu;     close;     l_loose:     mes .@n$;     set rpswin,0;     mes "You lost!Let's play another round!";     goto OnMenu;     close;     l_draw:     mes .@n$;     mes "This was a draw,you'll get your money back!";     mes "but let's play another Round!";     set Zeny, Zeny + .cost;     goto OnMenu;     l_nozeny:     mes "Hey,are you kidding me?You need more Money!";     close; } The win count will reset to 0 again if you lose the game 
  6. nanakiwurtz's post in Apple of Idun was marked as the answer   
    (2*skill level) + (player's vit/10) + 5
  7. nanakiwurtz's post in Tribe Set in eA Mod was marked as the answer   
    You should post your question on their site.
  8. nanakiwurtz's post in [How?] Drop other item instead of skulls in PVP was marked as the answer   
    I prefer to use script rather than changing the source file, because it will be overwritten everytime I do an 'SVN Update' 
    Something like this maybe:
    OnPCDieEvent: getmapxy( .@map$, .@x, .@y, 0 ); if (.@map$ == "your_pvp_map") { makeitem 909, 1, .@map$, .@x, .@y; end;
  9. nanakiwurtz's post in help error rfyl was marked as the answer   
    Use proper tabbing.
  10. nanakiwurtz's post in Hidding Slot Enchant NPC was marked as the answer   
    I don't know your 'Heroism badge' Item ID, so you have to edit the code a little and it's done 
    guild_vs3,68,65,4    script    Enchant Armor    73,{     if (Zeny > 10) {         mes "[Apprentice Craftsman]";         mes "Atravez de los años estudie como encantar las weas.";         next;         mes "[Apprentice Craftsman]";         mes "Enchanting is an awesome skill that infuses a mysterious status power into the armor's hidden socket.";         next;         mes "[Apprentice Craftsman]";         mes "However, you have to keep in mind that if there are two armors of the same kind in your possession, the Enchantment will be applied in the order they are placed in your inventory.";         next;         mes "[Apprentice Craftsman]";         mes "In that case, the Enchantment may be applied to an item which you didn't mean to Enchant. So just bring ^5555ffONE Armor^000000 you want enchanted to be safe..";         next;         mes "[Apprentice Craftsman]";         mes "I'm not responsible for what would happen if you have more than one of the same kind in your inventory.";         next;         switch(select("Non Slotted Armor.:Slotted Armor.:High Grade Armor.:Maybe next time.")) {         case 1:             switch(select("Mantle:Coat:Chain Mail:Full Plate:Silk Robe:Saint's Robe:Holy Robe:Wooden Mail:Tights:Silver Robe:Mage Coat:Thief Clothes:Legion Plate Armor:Lucius's Fierce Armor of Volcano:Saphien's Armor of Ocean:Aebeccee's Raging Typhoon Armor:Claytos Cracking Earth Armor:Ninja Suit:Chameleon Armor:Glorious Suit:Glorious Popularized Suit:Glorious Mass-Production Suit")) {             case 1:                 callsub S_EnchantArmor,2307,6;             case 2:                 callsub S_EnchantArmor,2309,6;             case 3:                 callsub S_EnchantArmor,2314,6;             case 4:                 callsub S_EnchantArmor,2316,6;             case 5:                 callsub S_EnchantArmor,2321,6;             case 6:                 callsub S_EnchantArmor,2325,6;             case 7:                 callsub S_EnchantArmor,2327,6;             case 8:                 callsub S_EnchantArmor,2328,6;             case 9:                 callsub S_EnchantArmor,2330,6;             case 10:                 callsub S_EnchantArmor,2332,6;             case 11:                 callsub S_EnchantArmor,2334,6;             case 12:                 callsub S_EnchantArmor,2335,6;             case 13:                 callsub S_EnchantArmor,2341,6;             case 14:                 callsub S_EnchantArmor,2344,6;             case 15:                 callsub S_EnchantArmor,2346,6;             case 16:                 callsub S_EnchantArmor,2348,6;             case 17:                 callsub S_EnchantArmor,2350,6;             case 18:                 callsub S_EnchantArmor,2337,6;             case 19:                 callsub S_EnchantArmor,2386,6;             case 20:                 callsub S_EnchantArmor,2394,6;             case 21:                 callsub S_EnchantArmor,2395,6;             case 22:                 callsub S_EnchantArmor,2396,6;             }         case 2:             switch(select("Mink Coat:Lord's Clothes:Glittering Jacket:Formal Suit:Mantle(1):Coat(1):Chain Mail(1):Full Plate(1):Silk Robe(1):Scapulare(1):Saint's Robe(1):Tights(1):Silver Robe(1):Thief Clothes(1):Legion Plate Armor(1):Lucius's Fierce Armor of Volcano(1):Saphien's Armor of Ocean(1):Aebeccee's Raging Typhoon Armor(1):Claytos Cracking Earth Armor(1)")) {             case 1:                 callsub S_EnchantArmor,2311,6;             case 2:                 callsub S_EnchantArmor,2318,6;             case 3:                 callsub S_EnchantArmor,2319,6;             case 4:                 callsub S_EnchantArmor,2320,6;             case 5:                 callsub S_EnchantArmor,2308,6;             case 6:                 callsub S_EnchantArmor,2310,6;             case 7:                 callsub S_EnchantArmor,2315,6;             case 8:                 callsub S_EnchantArmor,2317,6;             case 9:                 callsub S_EnchantArmor,2322,6;             case 10:                 callsub S_EnchantArmor,2324,6;             case 11:                 callsub S_EnchantArmor,2326,6;             case 12:                 callsub S_EnchantArmor,2331,6;             case 13:                 callsub S_EnchantArmor,2333,6;             case 14:                 callsub S_EnchantArmor,2336,6;             case 15:                 callsub S_EnchantArmor,2342,6;             case 16:                 callsub S_EnchantArmor,2345,6;             case 17:                 callsub S_EnchantArmor,2347,6;             case 18:                 callsub S_EnchantArmor,2349,6;             case 19:                 callsub S_EnchantArmor,2351,6;             }         case 3:             switch(select("Meteo Plate Armor:Orlean's Gown:Life Link:Diablos Robe:Diablos Armor:Assaulter Plate:Elite Engineer Armor:Assassin Robe:Warlock's Battle Robe:Medic's Robe:Elite Archer Suit:Elite Shooter Sit:Sprint Mail:Kandura:Armor of Naga:Improved Tights")) {             case 1:                 callsub S_EnchantArmor,2364,6;             case 2:                 callsub S_EnchantArmor,2365,6;             case 3:                 callsub S_EnchantArmor,2391,6;             case 4:                 callsub S_EnchantArmor,2374,6;             case 5:                 callsub S_EnchantArmor,2375,6;             case 6:                 callsub S_EnchantArmor,2376,6;             case 7:                 callsub S_EnchantArmor,2377,6;             case 8:                 callsub S_EnchantArmor,2378,6;             case 9:                 callsub S_EnchantArmor,2379,6;             case 10:                 callsub S_EnchantArmor,2380,6;             case 11:                 callsub S_EnchantArmor,2381,6;             case 12:                 callsub S_EnchantArmor,2382,6;             case 13:                 callsub S_EnchantArmor,2387,6;             case 14:                 callsub S_EnchantArmor,2388,6;             case 15:                 callsub S_EnchantArmor,2389,6;             case 16:                 callsub S_EnchantArmor,2390,6;             }         case 4:             mes "[Apprentice Craftsman]";             mes "Please come back when you have any interest in enchanting your armor.";             close;         }     }     else {         mes "[Apprentice Craftsman]";         mes "I am in charge of Enchanting Armors. Simply put, I've been studying ways to power-up armor.";         next;         mes "[Apprentice Craftsman]";         mes "If by any chance, you would want to enchant your armor, bring me 400,000 zeny and the armor you want to enchant and you are all set to go.";         close;     } S_EnchantArmor:     set .@itemid,getarg(0);//este numero toma el item     set .@failrate,getarg(1);//este numero max en el random del enchant +3 a poner     if ((countitem(.@itemid) > 0) && (countitem(.@itemid) < 2)) {         mes "[Apprentice Craftsman]";         mes "Socket enchant wil cost you 250 Bravery, 250 Valor and 100 Heroism Badges. And there will be a random option enchanted. Of course, there is a chance of breaking your armor.";         next;         mes "[Apprentice Craftsman]";         mes "First and most importantly.";         mes "^ff5555Existing Refine Level of the Armor";         mes "and Cards will be GONE.^000000";         mes "Do you still want to try an Enchant?";         next;         switch(select("Hmm... Let me think it over.:Go ahead.")) {         case 1:             mes "[Apprentice Craftsman]";             mes "Well, I can't blame you. Safety first, Ey?";             mes "Now you have a nice day.";             close;         case 2:             mes "[Apprentice Craftsman]";             mes "Quite of an adventurer huh? Well, shall we?";             close2;             specialeffect2 EF_MAPPILLAR;             if (countitem(7828) < 250) {                 mes "[Apprentice Craftsman]";                 mes "Sorry, but you don't have enough Bravery badges.";                 close;             }             if (countitem(7829) < 250) {                 mes "[Apprentice Craftsman]";                 mes "Sorry, but you don't have enough Valor badges.";                 close;             }             if (countitem(<yourheroismbadgeid>) < 100) {                 mes "[Apprentice Craftsman]";                 mes "Sorry, but you don't have enough Heroism badges.";                 close;             }                          progressbar "ffff00",0;             set .@enc_ran,rand(1,.@failrate);             delitem .@itemid,1;             delitem 7828,250; delitem 7829,250; delitem <yourheroismbadgeid>,100;             if (.@enc_ran == 1) {//ID's enchants +3 Str,Agi,Vit,Int,Dex y Luk respectivamente                 set .@addpart,4702;             }             else if (.@enc_ran == 2) {                 set .@addpart,4712;             }             else if (.@enc_ran == 3) {                 set .@addpart,4722;             }             else if (.@enc_ran == 4) {                 set .@addpart,4732;             }             else if (.@enc_ran == 5) {                 set .@addpart,4742;             }             else if (.@enc_ran == 6) {                 set .@addpart,4752;             } //            else if ((.@enc_ran > 6) && (.@enc_ran < 9)) {// estos siguientes 7 son los +2 //                set .@addpart,4701; //            } //            else if ((.@enc_ran > 8) && (.@enc_ran < 11)) { //                set .@addpart,4711; //            } //            else if ((.@enc_ran > 10) && (.@enc_ran < 13)) { //                set .@addpart,4721; //            } //            else if ((.@enc_ran > 12) && (.@enc_ran < 15)) { //                set .@addpart,4731; //            } //            else if ((.@enc_ran > 14) && (.@enc_ran < 17)) { //                set .@addpart,4741; //            } //            else if ((.@enc_ran > 16) && (.@enc_ran < 19)) { //                set .@addpart,4751; //            } //            else if ((.@enc_ran > 18) && (.@enc_ran < 22)) {// y estos ultimos 7 son los +1 //                set .@addpart,4700; //            } //            else if ((.@enc_ran > 21) && (.@enc_ran < 25)) { //                set .@addpart,4710; //            } //            else if ((.@enc_ran > 24) && (.@enc_ran < 28)) { //                set .@addpart,4720; //            } //            else if ((.@enc_ran > 27) && (.@enc_ran < 31)) { //                set .@addpart,4730; //            } //            else if ((.@enc_ran > 30) && (.@enc_ran < 34)) { //                set .@addpart,4740; //            } //            else if ((.@enc_ran > 33) && (.@enc_ran < 37)) { //                set .@addpart,4750; //            } //            else {// esto de aqui abajo se desactiva si no quieres que se rompan. //                specialeffect2 EF_PHARMACY_FAIL; //                mes "[Apprentice Craftsman]"; //                mes "Well that's too bad."; //                mes "The requested equipment has failed to enchant."; //                close;             }             getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart;         }     }     else {         mes "[Apprentice Craftsman]";         mes "Hmm? There's nothing to be enchanted!";         mes "Please come back with just ONE equipment to be enchanted.";         close;     }
  11. nanakiwurtz's post in Item Scripts please let me know is scritable ^_^ was marked as the answer   
    {if(BaseClass == Job_Mage) bonus bNoMagicDamage,75; else if(BaseClass == Job_Ninja) bonus bNoMagicDamage,95; else bonus bNoMagicDamage,99;},{},{}
  12. nanakiwurtz's post in Changing base stat point counter. was marked as the answer   
    Easy, just edit your 'trunk/src/map/pc.c'
    int pc_need_status_point(struct map_session_data* sd, int type, int val) { int sp = 1; // <-- Change this to any value you want. return sp; } And don't forget to recompile
  13. nanakiwurtz's post in PVP DEATHMATCH MODE was marked as the answer   
    prontera,148,166,6    script    Arena Master    808,{ if( select("PVP Room [ "+getmapusers("pvp_n_8-5")+"/50 ]:Cancel") == 1 ) {     if( getmapusers("pvp_n_8-5") >= 50 ) { mes "[Arena Master]", "I'm sorry but the PVP Room is already full!"; close; }     warp "pvp_n_8-5",0,0;     } close; OnPCDieEvent: if(strcharinfo(3) == "pvp_n_8-5") {     dispbottom "You will respawn in 3 Seconds.";     sleep2 3000;     atcommand "@alive";     atcommand "@heal";     warp "pvp_n_8-5",0,0; } end; }
  14. nanakiwurtz's post in Help for Simple Script was marked as the answer   
    Put this below the onpcdieevent label.
    if (strcharinfo(3) != "guild_vs3") end;
  15. nanakiwurtz's post in Permanent Monster Spawning was marked as the answer   
    Or simply use this script:
    - script AreaMonster -1,{ OnInit:
    areamonster "prontera",1,2,3,4,"Drops",1113,100,strnpcinfo(0)+"::OnMobKill";
    end;
    OnMobKill:
    areamonster "prontera",1,2,3,4,"Drops",1113,1,strnpcinfo(0)+"::OnMobKill";
    end;
    }
  16. nanakiwurtz's post in VIP system? was marked as the answer   
    atcommand "@adjgroup 0 "+strcharinfo(0); set #VIP_expire, 0;
  17. nanakiwurtz's post in Platinum Skill? was marked as the answer   
    In 'trunk\npc\custom\jobmaster.txt'
    set .Platinum,1;        // Get platinum skills automatically? (1: yes / 0: no)
  18. nanakiwurtz's post in Miruku RORE Client 02092013 was marked as the answer   
    The current stable client that is supported by rAthena is 2012-04-10.
    When a newer client has been released by Gravity, there's always some change in the packets, and when those 'new packets' hasn't been found, then it's called as an 'unsupported' client.
    And when you use an unsupported clien, it can crashes anytime.
    So, what I suggest here is to not use a newer client as starter, just use the stable one and develop your server first.
    You can use client from kRO or Miruku client, then diff your client according to your preferences..
  19. nanakiwurtz's post in Trick Dead for all jobs? was marked as the answer   
    if(getskilllv(143)==0) skill 143,1,0;
  20. nanakiwurtz's post in @autotrade was marked as the answer   
    Edit your groups.conf, deny the use of autotrade for gmlevel 0, then create a new script with bindatcmd.
    - script denyautotrade -1,{ OnInit: bindatcmd("trade","denyautotrade::OnActivate"); setarray .allow[0],4058,4064,4071,4078,4086,4087,4100,4107,4112; end; OnActivate: for( set .@i, 0; .@i < getarraysize(.allow); set .@i, .@i +1 ) { if(class != .allow[.@i]) { dispbottom "Autotrade function is available only for Mechanics and Genetics."; end; } } atcommand "@autotrade"; end; }

    The current command is @trade, but you can change it to anything you want.
  21. nanakiwurtz's post in Request PVP ROOM was marked as the answer   
    case 1: // Normal Pvp if (getmapusers("pvp_y_1-2") > 99) callsub S_full; if (class == 4049) {mes "[PvP Warper]"; mes "Soul Linkers are not allowed to enter this room"; close;} sc_end SC_ALL; percentheal 100,100; sc_start SC_BLESSING,300000,10; sc_start SC_INCREASEAGI,300000,10; specialeffect2 EF_BLESSING; specialeffect2 EF_INCAGILITY; warp "pvp_y_1-2",0,0; end;
  22. nanakiwurtz's post in BGM on custom maps was marked as the answer   
    If the file isn't in your GRF, then you can create it by yourself using Notepad.
    Just follow the format

    alberta.rsw#bgm\\54.mp3# alberta_in.rsw#bgm\\54.mp3#
    And save the file as mp3nametable.txt
  23. nanakiwurtz's post in Problem with skills in client 2012 was marked as the answer   
    It looks like you have put your lua files in wrong folder
    (ex: c:\kRO\data\luafiles514\lua files)
×
×
  • Create New...