Jump to content

GM Winter

Members
  • Posts

    382
  • Joined

  • Last visited

Posts posted by GM Winter

  1. hello i would like to add some pvp map for champion jobs only how can i do that can someone help me thanks 

    heres the script :

     

    Quote

    // https://rathena.org/board/topic/107986-requesting-for-a-pvp-ranking-w-reset/

    /*
    ALTER TABLE `char` ADD `pvp_kill` INT(11) UNSIGNED NOT NULL DEFAULT '0'  AFTER `fame`;
    */

    prontera,158,195,4  script PVP Warper    753,{
        doevent "pvp_rank_main::OnTalk";
    }

    -    script    pvp_rank_main    -1,{

        OnTalk:
            mes "[PvP Room Master]";
            mes "Where do you wanna go?";
            next;
            switch ( select ( 
                "Izlude",
                "Prontera",
                "Death Match",
                "PVP Ranking",
                ( getgmlevel() >= 99 ) ? "^FF0000[GM] Reset PVP Ranking^000000":""
            )) {
        case 1:    // Izlude PVP Room
            if (getmapusers("pvp_y_1-2") > 99) callsub S_full;
            if (BaseLevel <98) { 
            mes "Excuse me, but";
            mes "did you not come prepared?";
            mes "you need to be";
            mes "atleast level 98 above!";
            close;
            }
            warp "pvp_y_1-2",0,0;
            announce ""+strcharinfo(0)+" entered Izlude PVP ROOM !",bc_all,0xCCFFFF;
            end;
            
        case 2:    // Prontera PVP Rooom
            if (getmapusers("prt_pvp") > 99) callsub S_full;
            if (BaseLevel <98) { 
            mes "Excuse me, but";
            mes "did you not come prepared?";
            mes "you need to be";
            mes "atleast level 98 above!";
            close;
            }
            warp "prt_pvp",0,0;
            announce ""+strcharinfo(0)+" entered Prontera PVP ROOM !",bc_all,0xCCFFFF;
            end;

        case 3:    // Death Match Arena
            if (getmapusers("bat_cc2") > 99) callsub S_full;
            if (BaseLevel <98) { 
            mes "Excuse me, but";
            mes "did you not come prepared?";
            mes "you need to be";
            mes "atleast level 98 above!";
            close;
            }    
            warp "bat_cc2",0,0;
            announce ""+strcharinfo(0)+" entered Death Match Arena !",bc_all,0xCCFFFF;
            end;
            
                default:
                    mes "[PvP Room Master]";
                    mes "PVP Ranking";
                    query_sql( "SELECT `name`,`pvp_kill` FROM `char` WHERE `pvp_kill` > 0 ORDER BY `pvp_kill` DESC LIMIT 10", [email protected]$, [email protected]_kill );
                    [email protected] = getarraysize( [email protected]$ );
                    for ( [email protected] = 0; [email protected] < [email protected]; [email protected]++ ) {
                        mes "["+([email protected] + 1 )+"] "[email protected]$[[email protected]]+" - "[email protected]_kill[[email protected]]+" kill(s)";
                    }
                    break;
                case 5:
                    mes "[PvP Room Master]";
                    mes "Reset Ranking? Action cant be undo. Confirm your action.";
                    if ( select( "Confirm","Cancel" ) == 1 ) {
                        query_sql( "UPDATE `char` SET `pvp_kill` = 0 WHERE `pvp_kill` > 0" );
                        mes "Done.";
                    }
                    break;
            }
            close;
        
        L_Enter:
            [email protected]$ = getarg( 0,"" );
            [email protected]$ = getarg( 1,"" );
            [email protected]_player = getarg( 2,0 );
            [email protected] = getmapusers( [email protected]$ );
            
            mes "[PvP Room Master]";
            if ( [email protected] == -1 ) {
                mes "Invalid map.";
            }
            else if ( [email protected]_player > 0 && [email protected] >= [email protected]_player ) {
                mes "I'm sorry but the PVP Room is already full!";
            }
            else {
                mes [email protected]$ + " ["[email protected]+"/"[email protected]_player+"]";
                if ( select( "Enter" ) == 1 ) {
                    warp [email protected]$,0,0;
                }
            }
            return;
            
        OnPCKillEvent:
            if ( getcharid(3) != killedrid ) {
                query_sql( "UPDATE `char` SET `pvp_kill` = `pvp_kill` + 1 WHERE `char_id` = "+getcharid(0)+" LIMIT 1" );
            }
            end;
    }


    // PvP Room ----------------------------------------------
    //prontera,163,198,4    duplicate(PVP Warper)    PVP Warper#prt    753
    payon,190,104,4    duplicate(PVP Warper)    PVP Warper#pay    753
    morocc,162,101,4    duplicate(PVP Warper)    PVP Warper#mrc    753
    geffen,124,68,4    duplicate(PVP Warper)    PVP Warper#gef    753
    alberta,32,238,5    duplicate(PVP Warper)    PVP Warper#alb    753
    izlude,134,96,4    duplicate(PVP Warper)    PVP Warper#izl    753
    aldebaran,145,113,4    duplicate(PVP Warper)    PVP Warper#ald    753
    turbo_room,111,117,4    duplicate(PVP Warper)    PVP Warper#tur    753

     

  2. hello i would like to ask for help regarding my thor patcher it was located in here /var/www/html

    it works fine but after i installed ssl certificate from cloudflare the thor patcher is always failed to communicate can somebody help me fix this error thank you in advance

  3. On 3/28/2017 at 6:56 AM, sikiro said:

    try putting the patcher under a subdomain i had a similar issue when ussing ssl cert on my site patcher would not work. but on a subdomain it would work. for example patch.yoursite.com and have .htaccess block indexing and you should be okay.

    hello can someone explain this more step by step thanks

     

  4. hello i need help about  this dice event script example one player will join the event even he not go to the numbers 1234 or stay on the upper part he still win i know the default rule of dice you must goto the no, box even when you are in the stairs your out can somebody find the bug since the script dont have error in serv

     

    Quote

    //=================================
    // Credits to the Original Creator
    // Modified by [Gerome]
    //===================================
    prontera,173,157,4    script    Dice Event    874,{
    cutin "zonda_01",2;
    if (getgmlevel() < 99)
    {
        goto L_Player_View;
    }

    mes "^3399FF[Dice Event]^000000";    
    mes "Hello GameMaster!";
    mes "What do you want to do?";
    switch(select("Start Event:Set prize^E50000 ["+getitemname($diceprize)+"]^000000 ^E50000 ["+ $diceprizecount + "]^000000:Test Player View:Nothing"))
    {
        case 1: 
        {
            next;
            mes "^3399FF[Dice Event]^000000";
            mes "Please confirm by typing START."; 
            input [email protected]$;          
            if ([email protected]$ == "START") 
            {
                donpcevent "Dannouncer::OnMinute00"; 
                close2;
                cutin "",255;
                end;
            }
            mes "Confirmation failed";
            close2;
            cutin "",255;
            end;
            break;
        }

        case 2:
        {
            next; mes "^3399FF[Dice Event]^000000";
            mes "Please type in the new prize id."; 
            input [email protected]
            if (getitemname([email protected]) == "null" || getitemname([email protected]) == "") {next; mes "^3399FF[Dice Event]^000000"; mes "Error"; mes "This item does not exist in the database..."; close;}
            set $diceprize, [email protected];
            next; mes "^3399FF[Dice Event]^000000";
            mes "Please type in the amount."; 
            input [email protected];
            if ([email protected]) set [email protected],1 ;
            set $diceprizecount,[email protected]
            next; mes "^3399FF[Dice Event]^000000";
            mes "Prize has been set to ^E50000 "+ getitemname($diceprize)+ "^000000 and the amount to ^E50000 " +$diceprizecount+"^000000";
            close2;
            cutin "",255;
            end;
        }
        case 3:
        {
            goto L_Player_View;
        
        }
                        
        case 4:
        {
            next; mes "^3399FF[Dice Event]^000000";
            mes "Good bye"; 
            close2;
            cutin "",255;
            end;
        }

    }

    L_Player_View:
        next;
        mes "^3399FF[Dice Event]^000000";    
        mes "-=Starts Every 30 Minutes=-";
        mes "Current Prize is ^000099"+$diceprizecount+" "+getitemname($diceprize)+"^000000.";
        close2;
        cutin "",255;
        end;


    }


    -    script    Dannouncer    -1,{

    OnInit:
        disablenpc "prtevent";
        disablenpc "Mr Dice";
        //setarray $kroitem[0],5316,5336,5337,5338,5346,5401,5297,5393,5423,5381,5417,5467,5495,5450,5506,5507,5508,5499,5500,5474,5472,5471,5738,5537,5538,5528,5527,5526,5554,5535,7179;
        end;
        

    //OnMinute30: //time every 30 mins
    //OnMinute00: //time every 1hour

    OnClock0300:
    OnClock0600:
    OnClock1500:
    OnClock2100:
        announce "Dice: We are going to have a Dice event.",0;
        sleep 10000;
        announce "Dice: For those who wants to join, Please proceed to the center of Prontera and enter the Warp Portal.",0;
        sleep 10000;
        announce "Dice: After 1 Minute the Portal will close.",0;
        sleep 10000;
        announce "Dice: So please go to the middle of Prontera and enter the Warp Portal now if you want to join.",0;
        enablenpc "prtevent";
        initnpctimer;
        end;

    OnTimer30000:
        announce "Dice: Last 30 seconds.",0;
        sleep 5000;
        announce "Dice: If you want to join please enter the Warp Portal here in Prontera.",0;
        end;
        
    OnTimer50000:
        announce "Dice: Last 10 seconds.",0;
        end;
        
    OnTimer55000:
        announce "Dice: 5.",0;
        end;
        
    OnTimer56000:
        announce "Dice: 4.",0;
        end;
        
    OnTimer57000:
        announce "Dice: 3.",0;
        end;
        
    OnTimer58000:
        announce "Dice: 2.",0;
        end;
        
    OnTimer59000:
        announce "Dice: 1.",0;
        end;
        
    OnTimer60000:
        announce "Dice: Time's up.",0;
        end;
        
    OnTimer61000:
        disablenpc "prtevent";
        donpcevent "Mr Dice::OnStart";
        stopnpctimer;
        end;
        
    OnTimer62000:
        announce "Dice: The next Dice event will begin after 30 minutes.",0;
        end;
        }
        
    //--------------------------------------------------
        
    prontera,155,189,0    warp    prtevent    2,2,quiz_01,204,90    
        
    //--------------------------------------------------

    quiz_01,204,93,6    script    Mr Dice    874,{

    //--------------------------------------------------
        cutin "zonda_01",2;
        mes "[Dice]";
        mes "Congrats. You've won.";
        close2;
        announce "Dice: We have a winner, "+strcharinfo(0)+".",0;
        //Random KRO items.
        //set [email protected], rand(1,31);
        //getitem $kroitem[[email protected]],1;
        getitem $diceprize,$diceprizecount;
        warp "prontera",156,159;
        disablenpc "Mr Dice";
        end;
        
    OnStart:
        if(getmapusers("quiz_01") == 1) goto _WIN;
        mapannounce "quiz_01","Dice: We are about to start the Dice event.",0;
        sleep 10000;
        mapannounce "quiz_01","Dice: But before we start the event here's how to play the game. . .",0;
        sleep 10000;
        mapannounce "quiz_01","Dice: I'm only gonna say this once so read carefully.",0;
        sleep 10000;
        mapannounce "quiz_01","Dice: I'm going to pick a number, 1 to 4. Then I'll do a count down from 5 to 0.",0;
        sleep 10000;
        mapannounce "quiz_01","Dice: All you have to do is go to the box of the number you want.",0;
        sleep 10000;
        mapannounce "quiz_01","Dice: Example, If I get the number of 4, All the players standing on numbers 1 to 3 will be warped back to town.",0;
        sleep 10000;
        mapannounce "quiz_01","Dice: We will do it again and again until we only have 1 player left on the map.",0;
        sleep 10000;
        mapannounce "quiz_01","Dice: Oh yeah! Before I forget you MUST GO INSIDE THE BOX, because if you're caught standing on the stairs you'll be automatically disqualified.",0;
        sleep 10000;
        mapannounce "quiz_01","Dice: That's that.. Now let's play...",0;
        sleep 10000;
        goto L_Start;
        end;
        
    L_Start:
        if(getmapusers("quiz_01") == 1) goto L_Champ;
        if(getmapusers("quiz_01") == 0) goto L_None;
        if(getmapusers("quiz_01") > 1) {
        announce "Dice: . . . . .",0;
        set [email protected], rand(1,4);
        sleep 10000;
        announce "Dice: I have a number now. Please go to the box of the number you want.... GO!",0;
        sleep 10000;
        announce "Dice: 5",0;
        sleep 5000;
        announce "Dice: 4",0;
        sleep 4000;
        announce "Dice: 3",0;
        sleep 3000;
        announce "Dice: 2",0;
        sleep 2000;
        announce "Dice: 1",0;
        sleep 1000;
        announce "Dice: Time's up.",0;
        donpcevent "devent::OnEnable";
        announce "Dice: Winning number "[email protected]+".",0;
        if(([email protected] != 1) && ([email protected] != 2) && ([email protected] != 3)) goto L_Lose1;
        if(([email protected] != 1) && ([email protected] != 2) && ([email protected] != 4)) goto L_Lose2;
        if(([email protected] != 1) && ([email protected] != 3) && ([email protected] != 4)) goto L_Lose3;
        if(([email protected] != 2) && ([email protected] != 3) && ([email protected] != 4)) goto L_Lose4;
        end;
        }
        
    L_Lose1:
        areawarp "quiz_01",183,81,191,60,"prontera",156,159;
        areawarp "quiz_01",195,81,203,60,"prontera",156,159;
        areawarp "quiz_01",207,81,215,60,"prontera",156,159;
        goto L_Start;
        end;

    L_Lose2:
        areawarp "quiz_01",183,81,191,60,"prontera",156,159;
        areawarp "quiz_01",195,81,203,60,"prontera",156,159;
        areawarp "quiz_01",219,81,227,60,"prontera",156,159;;
        goto L_Start;
        end;
        
    L_Lose3:
        areawarp "quiz_01",183,81,191,60,"prontera",156,159;
        areawarp "quiz_01",207,81,215,60,"prontera",156,159;
        areawarp "quiz_01",219,81,227,60,"prontera",156,159;
        goto L_Start;
        end;
        
    L_Lose4:
        areawarp "quiz_01",195,81,203,60,"prontera",156,159;
        areawarp "quiz_01",207,81,215,60,"prontera",156,159;
        areawarp "quiz_01",219,81,227,60,"prontera",156,159;
        goto L_Start;
        end;
        
    L_Champ:
        mapannounce "quiz_01","Dice: Come to me and tell me your name.",0;
        enablenpc "Mr Dice";
        end;
    _WIN:
        mapannounce "quiz_01","Dice: Come to me and tell me your name.",0;
        enablenpc "Mr Dice";
        end;

    L_None:
        disablenpc "Mr Dice";
        end;
        

        
    }
        
    -    script    devent    -1,{

    OnEnable:
        areawarp "quiz_01",182,94,228,88,"prontera",156,159;
        areawarp "quiz_01",185,87,188,82,"prontera",156,159;
        areawarp "quiz_01",197,87,200,82,"prontera",156,159;
        areawarp "quiz_01",209,87,212,82,"prontera",156,159;
        areawarp "quiz_01",221,87,224,82,"prontera",156,159;
        end;
        }
    //------------------Map Flags--------------------------------------------------------
    quiz_01    mapflag    nowarpto
    quiz_01    mapflag    nowarp
    quiz_01    mapflag    noskill
    quiz_01    mapflag    nosave
    quiz_01    mapflag    nomemo
    quiz_01    mapflag    noteleport
    //-----------------------------------------------------------------------------------

     

  5. hello everyone i would like to ask about the conf in patcher regarding 

    ClientParameter='-1sak1'   can i leave it blank  just like this  ClientParameter=''  because sometimes the antivirus or windows defender are detecting it as a false positive virus
    i was also wondering what was client parameter means and if i leave it blank can it has bad effect on the patcher thanks in advance more power rathena

  6. hello im wondering what error is this i also want the dead players to automatically warp outside the map

    im using this script
     

    Quote

    -    script   LMS#disable   -1,{

    OnInit:
    disablenpc "Mr. Banker";
    disablenpc "All Job Manager";
    end;
    }

    -    script    LMS    -1,{

    OnClock1040:
    OnClock0300:
    OnClock0600:
    OnClock0900:
    OnClock1200:
    OnClock1500:
    OnClock1800:
    OnClock2100:// Edit this to what ever you want. note : OnClock0000 is 12 midnight and OnClock1200 is 12 Noon
    goto startlmsevent;

    startlmsevent:
    announce "Mr. Manager: The Last Man Standing event will be starting shortly.",0;
    sleep 10000;
    announce "Mr. Manager: Those who want to play, please proceed to Prontera and Register.",0;
    sleep 10000;
    announce "Mr. Manager: After 1 Minute the Registration will close.",0;
    sleep 10000;
    announce "Mr. Manager: Please go to Prontera and Register now if you want to join.",0;
    enablenpc "All Job Manager";
    initnpctimer;
    end;

    OnTimer30000:
    announce "Mr. Manager: Last 30 seconds.",0;
    sleep 5000;
    announce "Mr. Manager: If you want to join please Register in Prontera.",0;
    end;

    OnTimer50000:
    announce "Mr. Manager: Last 10 seconds.",0;
    end;

    OnTimer55000:
    announce "Mr. Manager: 5.",0;
    end;

    OnTimer56000:
    announce "Mr. Manager: 4.",0;
    end;

    OnTimer57000:
    announce "Mr. Manager: 3.",0;
    end;

    OnTimer58000:
    announce "Mr. Manager: 2.",0;
    end;

    OnTimer59000:
    announce "Mr. Manager: 1.",0;
    end;

    OnTimer60000:
    announce "Mr. Manager: Time's up.",0;
    end;

    OnTimer61000:
    disablenpc "All Job Manager";
    donpcevent "Mr. Banker::OnEnable";
    stopnpctimer;
    end;
    }
    //---------All Job Registration---------------
    prontera,153,193,5    script    All Job Manager    106,{

    mes "[Mr. Manager]";
    mes "Hello What can I do for you?";
    next;
    menu "Register",-,"What is LMS?",what,"Leave",leave;
    next;
    mes "[Mr. Manager]";
    mes "Thankyou for registering Mr. " + strcharinfo(0) + ", Have fun!";
    warp "force_1-3",100,180;
    end;
    what:
    mes "[Mr. Manager]";
    mes "LMS is also known as Last Man Standing Event";
    next;
    mes "[Mr. Manager]";
    mes "LMS is also like a PvP.";
    mes "The only difference is at LMS you will get 10 PC Point if you are the Last Man Standing at the arena.";
    next;
    mes "[Mr. Manager]";
    mes "That's all";
    close;
    leave:
    mes "[Mr. Manager]";
    mes "I hope you will register next time";
    close;


    }

    //--------------------------

    //--------------------------
    force_1-3,100,180,6    script    Mr. Banker    56,{

    mes "[banker]";
    mes "Congrats. You've won.";
    next;
    announce "Mr. Manager: We have a winner! well done "+strcharinfo(0)+".",0;
    getitem 7227,1; // Change This item id to what ever you want . item id,amount
    dispbottom "+1 TCG";
    mes "You will return now";
    warp "prontera",155,182;
    disablenpc "Mr. Banker";
    close;
    end;
    OnEnable:
    pvpoff "force_1-3";
    mapannounce "force_1-3","Mr. Manager:The Last Man Standing Event will start shortly",0;
    sleep 10000;
    mapannounce "force_1-3","Mr. Manager:But before we start this is just a few reminders..",0;
    sleep 10000;
    mapannounce "force_1-3","Mr. Manager:Using Cloaking , Hiding is strictly not allowed..",0;
    sleep 10000;
    mapannounce "force_1-3","Mr. Manager: Only the Last Man Standing will win this event!!",0;
    sleep 10000;
    mapannounce "force_1-3","Mr. Manager: What are we waiting for?..Let's Get Ready to Rumble!!...",0;
    sleep 10000;
    goto L_Start;
    end;
    L_Start:
    if(getmapusers("force_1-3") == 1) goto L_Champ;
    if(getmapusers("force_1-3") == 0) goto L_None;
    if(getmapusers("force_1-3") > 1) {
    mapannounce "force_1-3","Mr. Manager: Get ready at the count of 5 we will start!....",0;
    sleep 10000;
    mapannounce "force_1-3","Mr. Manager: 5",0;
    sleep 5000;
    mapannounce "force_1-3","Mr. Manager: 4",0;
    sleep 4000;
    mapannounce "force_1-3","Mr. Manager: 3",0;
    sleep 3000;
    mapannounce "force_1-3","Mr. Manager: 2",0;
    sleep 2000;
    mapannounce "force_1-3","Mr. Manager: 1",0;
    sleep 1000;
    pvpon "force_1-3";
    goto timer;
    end;
    }
    timer:
    initnpctimer;
    end;

    OnTimer1000:
    end;

    OnTimer1100:
    if(getmapusers("force_1-3") == 1) goto L_Champ;
    if(getmapusers("force_1-3") > 2) goto timer;
    if(getmapusers("force_1-3") == 2) goto champ;
    stopnpctimer;
    end;

    champ:
    announce "Mr. Manager: Last 2 Brave warriors are still alive!",0;
    sleep 10000;
    if(getmapusers("force_1-3") == 1) goto L_Champ;
    if(getmapusers("force_1-3") > 1) goto timer;
    end;

    L_Champ:
    mapannounce "force_1-3","Mr. Banker: Please talk to me to get your prize..",0;
    pvpoff "force_1-3";
    enablenpc "Mr. Banker";
    end;

    L_None:
    disablenpc "Banker";
    pvpoff "force_1-3";
    end;
    }
    //----- Die = warp prt -----
    -    script    Killa_warp    -1,{

    OnPCDieEvent:
    getmapxy([email protected]$,[email protected],[email protected],0);
    if([email protected]$=="force_1-3")
    {
        set #kill_point, 0;
        announce ""+strcharinfo(0)+" died, and out of the game!.",bc_all;
        warp "prontera",0,0;
        end;
    }
    OnPCKillEvent:
    getmapxy([email protected]$,[email protected],[email protected],0);
    if([email protected]$=="pvp_n_1-5")
    {
    set #kill_point,#kill_point+1;
    if ( #kill_point % 4 == 0) {
    announce ""+strcharinfo(0)+" have made 4 Consecutive Kills!!He will be granted an item",bc_all;
    //getitem 7539, 20;
    end;
    }
    }
    }


    // == Mapflags
    force_1-3    mapflag    nowarp
    force_1-3    mapflag    nowarpto
    force_1-3    mapflag    noteleport
    force_1-3    mapflag    nosave
    force_1-3    mapflag    nomemo
    force_1-3    mapflag    nobranch
    force_1-3    mapflag    pvp_noparty
    force_1-3    mapflag    restricted    1
     



     

    Capture.JPG

  7. check your database settings on conf/server.php

                'Hostname'   => '127.0.0.1',
                'Username'   => 'username',
                'Password'   => 'password',
                'Database'   => 'yourdatabased',

  8. 38 minutes ago, Dolphin86 said:

    you meant this file ?

    rAthena/db/import/item_db.yml ?

    soo just add 

    NoStorage: Flase

    ?

    yes just edit it 

        Trade:
          Override: 100
          NoDrop: true
          NoTrade: true
          NoSell: true
          NoCart: true
          NoGuildStorage: true
          NoMail: true
          NoAuction: true


    copy this to your item that you would like "to be use only within all char within same account only," just like what your asking

  9. On 4/8/2022 at 5:22 PM, Dolphin86 said:

    As title i would like to change rental item allowed to be store in storage to be use only within all char within same account only, how can i change those?

    in your itemdb edit this part

        Trade:
          Override: 100
          NoDrop: true
          NoTrade: true
          NoSell: true
          NoCart: true
          NoGuildStorage: true
          NoMail: true
          NoAuction: true

  10. hello everyone i would like to request an stock status icons somethings i got error when using different skills so i would like to request where to get ot download the original status icons thanks in advance

×
×
  • Create New...

Important Information

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