Jump to content

Phriya

Members
  • Content Count

    12
  • Joined

  • Last visited

Posts posted by Phriya


  1.  

     

    hmm ... paskie made a post makes me change my plan to make this topic a top priority in my list

     

    I have made 3 variations of lucky pick event script

    http://www.eathena.ws/board/index.php?s=&showtopic=275732&view=findpost&p=1512505 3 years ago

    http://rathena.org/board/topic/77364-dynamic-time-lucky-pick-event/?p=173025 last year

    http://rathena.org/board/topic/91510-lucky-pick-event/?p=240207 last month

    and 4th method now if consider adding paskie's method above

     

    but now I'm going to propose a 5th method ...

    write a new script command call *getservermember

    I always wanted to write one since years ago but there was array limitation to 127 index all the time ... until last month

     

    http://upaste.me/23e0105643b9c3019

     

    and the script with shuffle algorithm

    http://upaste.me/ab41105653011d513

     

     

    keyworld, feel free to optimized that shuffle algorithm =/

    this one doesnt work , tried them all 

    this is the error that shows in my console :

     

     

    [Error]: script error in file '(DIRECT INPUT)' line 32 column 2

    parse_line: expect command, missing function name or calling undeclared function

    29: bindatcmd "asdf", strnpcinfo(0)+"::Onbbb", 99,100;

    30: end;

    31: Onooo:

    * 32: getservermember 0;

    ~~~~~~~~^

    33: for ( .@i = 0; .@i < $@servermembercount; .@i++ )

    34: dispbottom $@servermembername$[.@i];

    35: end;

     

     

     

     

    apply the diff first

    how noob i am , thank you <3


  2. hmm ... paskie made a post makes me change my plan to make this topic a top priority in my list

     

    I have made 3 variations of lucky pick event script

    http://www.eathena.ws/board/index.php?s=&showtopic=275732&view=findpost&p=1512505 3 years ago

    http://rathena.org/board/topic/77364-dynamic-time-lucky-pick-event/?p=173025 last year

    http://rathena.org/board/topic/91510-lucky-pick-event/?p=240207 last month

    and 4th method now if consider adding paskie's method above

     

    but now I'm going to propose a 5th method ...

    write a new script command call *getservermember

    I always wanted to write one since years ago but there was array limitation to 127 index all the time ... until last month

     

    http://upaste.me/23e0105643b9c3019

     

    and the script with shuffle algorithm

    http://upaste.me/ab41105653011d513

     

     

    keyworld, feel free to optimized that shuffle algorithm =/

    this one doesnt work , tried them all 

    this is the error that shows in my console :

     

     

    [Error]: script error in file '(DIRECT INPUT)' line 32 column 2

    parse_line: expect command, missing function name or calling undeclared function

    29: bindatcmd "asdf", strnpcinfo(0)+"::Onbbb", 99,100;

    30: end;

    31: Onooo:

    * 32: getservermember 0;

    ~~~~~~~~^

    33: for ( .@i = 0; .@i < $@servermembercount; .@i++ )

    34: dispbottom $@servermembername$[.@i];

    35: end;

     

     


  3. @@Dastgir i am using both emulaters btw and its a client side problem  :D , Thankyou sooo much Dastgir <33333 , it works fine now but it gives me some errors that i can skip saying :

     

    lua filesSprEditinfo_New_2dLayerDir_F.lua:43: table index is nil

     

    then it says :

     

    NO!! 2D_LAYER_NEW_TABLE

     

    what should i do?


  4. Hello rAthena , long time no server edditing tongue.png

     

    anyway let me get to the problem i am facing 

     

    image.png

     

    when i click OK it close without any warnings or errors , any solutions?

     

    PS: i'm using NEMO Patcher , i've put the 3 keys in the patcher same as the packet_db keys

    nothing more nothing less.

     

    EXTRA INFO:

     

     

     

    999.png

     

    998.png

     

    997.png

     

    996.png

     

    995.png

     

    Clientinfo.XML

     

     

     
    <?xml version="1.0" encoding="euc-kr" ?>
    <clientinfo>
    <servicetype>korea</servicetype>
    <servertype>sakray</servertype>
       <connection>
          <display>Phantom Ragnarok Online</display>
          <balloon>Phantom Ragnarok Online</balloon>
          <desc>description</desc>
          <address>127.0.0.1</address>
          <port>6900</port>
          <version>45</version>
          <langtype>19</langtype>
          <registrationweb>google.com</registrationweb>
            <aid>
                <admin>2000000</admin>
                <admin>2000001</admin>
                <admin>2000002</admin>
            </aid>
            <loading>
                <image>loadingscreen01.jpg</image>
            </loading>
       </connection>
    </clientinfo>

     

    thats what i have , anything wrong with it?


  5. Hi Hercules Members

     

    i got this LMS event script , its working but there is an error , the prize npc is always on and gives unlimited prizes , and the event warper npc should be hidden till the event trigers , but he still shown :(

     

     

     

     

    -  script  LMS#disable  -1,{

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

    -  script  LMS  -1,{

    OnMinute52:// Edit this to what ever you want. note : OnClock0000 is 12 midnight and OnClock1200 is 12 Noon
    goto startlmsevent;

    startlmsevent:
    pvpoff "guild_vs5";
    announce "Mr. Manager: The Last Man Standing event will be starting shortly.",0;
    sleep2 5000;
    announce "Mr. Manager: Those who want to play, please proceed to Prontera and Register.",0;
    sleep2 5000;
    announce "Mr. Manager: After 1 Minute the Registration will close.",0;
    enablenpc "All Job Manager";
    initnpctimer;
    end;

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

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

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

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

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

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

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

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

    OnTimer61000:
    pvpoff "guild_vs5";
    disablenpc "All Job Manager";
    donpcevent "Mr. Banker::OnEnable";
    stopnpctimer;
    end;
    }
    //---------All Job Registration---------------
    deuces,87,50,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 "guild_vs5",0,0;
    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 50 HPRO 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;


    }

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

    //--------------------------
    guild_vs5,49,49,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,5; // Change This item id to what ever you want . item id,amount
    dispbottom "You Received 5x TCG Card for winning the LMS Event.";
    mes "You will return now";
    warp "deuces",86,51;
    disablenpc "Mr. Banker";
    close;
    end;
    OnEnable:
    mapannounce "guild_vs5","Mr. Manager:The Last Man Standing Event will start shortly",0;
    sleep2 5000;
    mapannounce "guild_vs5","Mr. Manager:But before we start this is just a few reminders..",0;
    sleep2 5000;
    mapannounce "guild_vs5","Mr. Manager:Using Cloaking , Hiding is strictly not allowed..",0;
    sleep2 5000;
    mapannounce "guild_vs5","Mr. Manager: Only the Last Man Standing will win this event!!",0;
    sleep2 5000;
    mapannounce "guild_vs5","Mr. Manager: What are we waiting for?..Let's Get Ready to Rumble!!...",0;
    sleep2 5000;
    goto L_Start;
    end;
    L_Start:
    if(getmapusers("guild_vs5") == 1) goto L_Champ;
    if(getmapusers("guild_vs5") == 0) goto L_None;
    if(getmapusers("guild_vs5") > 1) {
    mapannounce "guild_vs5","Mr. Manager: Get ready at the count of 5 we will start!....",0;
    sleep2 5000;
    mapannounce "guild_vs5","Mr. Manager: 5",0;
    sleep2 5000;
    mapannounce "guild_vs5","Mr. Manager: 4",0;
    sleep2 4000;
    mapannounce "guild_vs5","Mr. Manager: 3",0;
    sleep2 3000;
    mapannounce "guild_vs5","Mr. Manager: 2",0;
    sleep2 2000;
    mapannounce "guild_vs5","Mr. Manager: 1",0;
    sleep2 1000;
    pvpon "guild_vs5";
    goto timer;
    end;
    }
    timer:
    initnpctimer;
    end;

    OnTimer1000:
    end;

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

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

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

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

    OnPCDieEvent:
     getmapxy(.@map$,.@x,.@y,0);
     if(.@map$=="guild_vs5")
     {
       set #kill_point, 0;
       announce ""+strcharinfo(0)+" died, and out of the game!.",bc_all;
       warp "deuces",0,0;
       end;
     }
    OnPCKillEvent:
     getmapxy(.@map$,.@x,.@y,0);
     if(.@map$=="guild_vs5")
     {
     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 607, 50;
     end;
     }
     }
    }


    // == Mapflags
    guild_vs5  mapflag  nowarp
    guild_vs5  mapflag  nowarpto
    guild_vs5  mapflag  noteleport
    guild_vs5  mapflag  nosave
    guild_vs5  mapflag  nomemo
    guild_vs5  mapflag  nobranch
    guild_vs5  mapflag  pvp_noparty

     

     

     


  6. Hi Everyone , i got this problem when i was compiling my hercules based server

     

    http://postimg.org/image/zfo5l9elr/

     

     

    he doesnt recognize the script file :| ,  any help guys?

     

    nvm fixed by using

     

    cd Hercules./configuremake cleanmake sql

     

    instead of

     

    cd Hercules./configuremake sql

     

    PS : you guys got a lot of mistakes in the centOS installing guide at the wiki , i went to rathena's wiki to copy some tips


     

×
×
  • Create New...

Important Information

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