Jump to content

eKoh

Members
  • Content Count

    75
  • Joined

  • Last visited

Posts posted by eKoh


  1.  

    *getvariableofnpc(<variable>,"<npc name>")Returns a reference to a NPC variable (. prefix) from the target NPC.This can only be used to get . variables.

    So, to actually set it you'll go

    set getvariableofnpc(<variable>,"<npc name>"),<newvalue>;

    I'm not really sure if it'll work with direct assignment as I didn't try it.

     

    Also, .var is not a script variable, it's an NPC variable. It's stored within NPC data, and is shared between duplicates of this NPC only. It's NOT shared within one script file.

     

    And yes, it's stored in RAM.

     

    Hmm, i think it will return the actual value but not the .var, btw I did something that works, I just need to put atcommand <"command">, it works for the settings I have, but I would need to make 1 single command to make it work for every change:

     

     

    	OnInit:	bindatcmd "reloadpvp",strnpcinfo(3)+"::OnReloadPvp";		OnReloadPvp:			.pvppoints = 10; // A pvp setting            end;

  2. It lasts while map server works. Once server crash or restart it's gone.

     

    Thank you a lot man, seems that $@ is the perfect variable for me. Btw, how do you know this? By source code or experience or?

    By the way, I have another question, is this variable attached to the player or?

     

    Because I try to access to this variable from Script 2 but I created this variable from Script 1. But it seems to not load it.


  3. Hello, I am working with a script and I am using a $@ variable but I don't know for how long it lasts.

     

    I wanted to use a $ variable, but this can cause some bugs if somehow the server crashes and the variable cannot be turned back to 0 before the player leaves.


  4. I use rAmod and I have Xantara's Vote 4 Points and it works perfectly fine, but it costs 15 usd as far as I remember.

     

    Here is the link if you want to see how the V4Ps is: Link

     

    I think it works with Hercules, since the Sql tables it uses are not from rAthena nor eAthena. It has its own sql tables.


  5. Hello guys, I want o use 2010-07-30 because some stuff only works with that client.

     

    I want to apply Client Hash Packet by using Nemo patcher, the only current patcher that enables this MD5 hash protection for the 2010 client.

     

    But sadly, I am getting a Gravity error using this Nemo patcher. After login and selected a character, I get stuck at 12% while loading the map:

     

     

     

    TqHFJMA.jpg

     

     

     

    Here the crashlog is:

     

    http://pastebin.com/kDnvhJpW

     


     

    But with K3dt Diff patcher works perfectly fine, of course, without the MD5 hash.

     

    Some patches are not being applied, that works in 2012 client only. In the 2010 they appear but doesn't work:

     

     

     

    qKFmyRx.jpg

    ndp671Z.jpg

     

     

     

     

    And this patch that works in 2010 using K3dt and 2012 but using Nemo for 2010 doesn't work: Disable Packet Encryption

     

     

    2A0yViK.jpg

     

     

     


     

    I really think that this Disable Packet Encryption patch is the reason that the client crashes.

     

    If this is the reason of the crash, how to fix it?


  6. Hello guys =)!

     


     

    I have recently moved to this 2012-04-10 client but it is not allowing these tools being used. I was using 2010-07-30 client before and they were working perfectly fine.

     

    This 2012 client also disables AHK and maybe other tools I don't know, which is good but I do need to allow the following tools in 2012 client if possible:

     

    * RCX

    * RoMedic
    * MirAI

     


     

    Is it possible?


  7. Thank you a lot guys! Specially Winterfox. I could understand how the bindatcommand script command works and I managed to add a new usage:

     

    @bghappy <Bonus in %> <Minutes till bonus end>

     

    Btw, how can I make a codebox with "Select Code" option?

     

     

     

    - script bghappy_1 -1,{
    OnInit:
    bindatcmd "bghappy", strnpcinfo( 3 ) + "::OnBGHappyhour", 40, 99;
    end;
    OnBGHappyhour:
    // ---[ Bonus Rates ]-----------
    .@rate = atoi( .@atcmd_parameters$[ 0 ] );
    .minutes = atoi( .@atcmd_parameters$[ 1 ] );
    setbattleflag "bg_reward_rates", 100 + .@rate;
    if( .@rate ) {
    .@ranked = 1;
    dispbottom "Battlegrounds Happyhour +" + .@rate + "% mode is ON for " + .minutes +" minutes.";
    } else {
    .@ranked = 0;
    dispbottom "Battlegrounds Happyhour mode is OFF.";
    }
    setbattleflag "bg_ranked_mode", .@ranked;
     
    // ---[ Bonus Minutes ]-----------
    if ( .minutes )
    {
    initnpctimer "" + strnpcinfo(0) + "";
    }
    end;
    OnTimer60000:
    .minutes = .minutes - 1;
    if ( .minutes == 0 )
    {
    .@ranked = 0;
    announce "Battlegrounds Happyhour mode is OFF.",0,0x00FF00;
    setbattleflag "bg_reward_rates", 100;
    setbattleflag "bg_ranked_mode", 0;
    stopnpctimer;
    end;
    }
    announce "" + .minutes + " minutes left to end Battlegrounds Happyhour.",0x00FF00;
    stopnpctimer;
    initnpctimer;
    end;
    }

     

  8. I want to make a command like that, but I am not sure if it can be done by scripting or by sourcing.

     

     

    Usage:

     

    @bghappy 20

     

    Set Battlegrounds happy hour for a 20% bonus.

     

    @bghappy 0

     

    Ends the Battleground happy hour.

     


     

    This is the script command that is being used for the current Battleground Happy hour script:

     

     

    	set .bonus,120; // +20%	set .showbonus,.bonus - 100;			 setbattleflag "bg_reward_rates",.bonus; // +20% Reward Rates			setbattleflag "bg_ranked_mode",1; // Sets ranked mode //This is the one that stops it:			 setbattleflag "bg_reward_rates",100; // Normal Rates			setbattleflag "bg_ranked_mode",0;

  9. [Warning]: path_blownpos: count too many 32 !
    [Error]: Guild 4:Furia de Gaia has capacity for too many guild members (76), max supported is 26
    [Error]: chat_createnpcchat: npc 'Donates/V4Ps/Hourly Shop' already has a chatroom, cannot create new one!
     

     
    Look:
    BRVP2DR.jpg
     
    We have lowered the Max guild capacity. We have wiped the all the guild members that has more than 26 (the lowered max guild capacity). And then wiped all the guilds and the problem is still coming up.
     
    Why are they coming >.<
     
    We have experienced 2 Login-server crashes in a row, is there a way that I can know why did it crash? like a crash log.
     

     
    Also another question, is there a way that I can watch the server's messages ( like the picture before ), without restarting the server via Putty?

  10. I don't think so, but I'll check it with a Virgin source.

     




    It seems to be identical. I kind of solved the problem, I've put the 1st timer at the end and also removed the end; instruction so, but the bad thing is that the 1st Timer will execute the 2nd timer too. But there will not be a problem since the 2nd timer is the end of the script.

     

    It's not the best solution, this will be bad if I want to implement some kind of script like this in the future.

     

     

     

    - script hourlypoints -1,{
     
    //-- Start of the Script
    OnPCLoginEvent:
    attachnpctimer ""+strcharinfo(0)+"";
    initnpctimer;
    end;
     
    //OnTimer60000:
    OnTimer10000:
    set @minute, @minute + 1;
    //Check for 1 Minute
    if(@minute == 60)
    {
    set @minute,0;
    set .@point_amt, 10; //Points to get every hour (default: 10)
    dispbottom "1 Hour";
    getitem 20107,10;
    dispbottom "You received AriaRO Hourly Ticket by staying ingame for 1 hour";
    set @consecutive_hour, @consecutive_hour + 1;
    }
     
    stopnpctimer;
    initnpctimer;
     
    //-- Check if Vending (normal or @at)
     
    OnTimer30000:
    if(checkvending() >= 1 || checkchatting() == 1)
    {
    dispbottom "AriaRO hourly reward event stopped because you were vending / chatting. Please relog if you wish to start again.";
    stopnpctimer;
    end;
    }
    }


  11. Hello guys, today I am having this problem and the problem is the end; instruction executed by the Hourly Reward script I have in my server.

     

    Here is the code:

     

     

     

    - script hourlypoints -1,{
     
    //-- Start of the Script
    OnPCLoginEvent:
    attachnpctimer ""+strcharinfo(0)+"";
    initnpctimer;
    end;
    //-- Check if Vending (normal or @at)
     
    OnTimer3000:
    if(checkvending() >= 1 || checkchatting() == 1)
    {
    dispbottom "AriaRO hourly reward event stopped because you were vending / chatting. Please relog if you wish to start again.";
    stopnpctimer;
    end;
    dispbottom "Chat 1";
    }
    dispbottom "Chat 2";
    end;
     
    //OnTimer60000:
    OnTimer10000:
    set @minute, @minute + 1;
    dispbottom "1 minute";
    //Check for 1 Minute
    if(@minute == 60)
    {
    set @minute,0;
    set .@point_amt, 10; //Points to get every hour (default: 10)
    dispbottom "1 Hour";
    getitem 20107,10;
    dispbottom "You received AriaRO Hourly Ticket by staying ingame for 1 hour";
    set @consecutive_hour, @consecutive_hour + 1;
    }
     
    stopnpctimer;
    initnpctimer;
     
    end;
     
    }
    //--End of the Script

     
    I've added some dispbottom messages to see where the problem is, and it is from the end; instruction. Look:
     
    UE6fFrw.jpg
     
    DCyYR7n.jpg
     


     
    The problem is, that the end; is that also executes in the NPC script or there is some kind of trouble between scripts. How can I fix this? Or is there a way to detect that a message box is running?

  12. Muy buena pregunta. Es muy cierto lo que pasa con el 1er tipo de servidor, muchos les encanta customizar su servidor, pero se les olvida que tambien hay que darle publicidad, y de tipo de publicidad hay muchos caminos como Ratemyserver, facebook, foros, tus amigos, etc.

     

    Es muy importante hacer una buena estrategia para lanzar un server, hace 2 años yo abri el mio, pero iluso, pues no hice bien la publicidad, de hecho, casi nada, creyendo que con el buen trabajo que habia hecho customizando el server bastaria, pero no fue asi, y fallo.


  13. Honestly why take out what's already out there? They're just going to go to a different server to play with the things they already know, but for a new player it would be exciting to find out more of what happens in the world of Ragnarok.

     

    I know what you mean, that's why as a future server owner I had to "research the market". Firstable, I wanted to make a Low Rate server, like good days but with new stuff... But these LR players didn't want the new stuff (they wanted a classic server). That's why I decided to make a MR because MR players are more likeable to see new stuff and content, and for MR servers the Episode 13.2 fits well (before renewal).

     

    But I think that Pre-Renewal servers owners have to be innovative and add good content. It's good, cuz is really fun to code what you once imagine, and see it working =)

     

     

    Well, forgeting that. I've found a topic in rAthena that says that if you set the server to Pre-Renewal, it changes to Episode 13.2, just before Renewal.

     

     

     

    tQGHIpG.jpg

     

     

     

    I think it works because, some monsters that appears in episode 13.3, I don't have them:

     

     

     

    For example the Antler Scaraba, according to this Warp Portal Episode 13.3 Update. Which ID is 2085.

     

    kQWjsoi.jpg

     

    It says that doesn't exists.

     

    But for Cornus, from 13.1 Episode, it exists.

     

    3dKE5eO.jpg

     

     

     

     

    So, by setting "Pre-Renewal" we are in Episode 13.2, just before Renewal.

     

    Well, at least for me there is no need to downgrade my files =)


  14. Nope you have to manually enter all dbs and npcs and dont use what doesnt match up to the episode you want to use :P

     

     

    Hello, I am also working on this, I have found that rAthena revision 14775 (I am working with rAmod) matches with Episode 13.2 (or atleast most of it).

     

    But I am not really sure on how to apply these changes.

     

    I've downloaded this rAthena revision, but I am afraid that if I apply all the changes from Npcs, Quests, Database, Maps and all these stuff and getting a bug at the end or something like that.

     

    Is there any procedure to apply the changes correctly?

     

    Ty a lot for any help =)!


  15.  

    [Error]: script:op_2: invalid data for operator C_EQ

     

    [Debug]: Data: string value=""

    [Debug]: Data: number value=1

    Debug source npc at prontera,150,150 etc...

     

     

     

     

    The error is like GmOcean says, you are trying to compare a string and a number.

     

     

    if (.frifin$ == 1 && (gettime(4)==3)) {

     

    If you need to know if the .frifin$ variable has something stored, you should do this:

     

     

    if (.frifin$ == "" && (gettime(4)==3)) {

     

    By just adding double ".

×
×
  • Create New...

Important Information

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