Jump to content

Lord Ganja

Members
  • Content Count

    161
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Lord Ganja


  1. try to remove #define ENABLE_PACKETVER_RE 20130807

    and comment on #define PACKETVER_RE

     

    it should look like this:

     

    #ifndef PACKETVER	#define PACKETVER 20130807#endif // PACKETVER//Uncomment the following line if your client is ragexeRE instead of ragexe (required because of conflicting packets in ragexe vs ragexeRE).- #define ENABLE_PACKETVER_RE 20130807 // Remove this line#ifdef ENABLE_PACKETVER_RE	//#define PACKETVER_RE // Comment this line	#undef ENABLE_PACKETVER_RE#endif // DISABLE_PACKETVER_RE

  2. you can use 'bindatcmd'

     

    :meow:

    Damn. Yeah. Haven't think of that  :hmm:

     

    anyway last question, what do I have to change with atcommand->exec to trigger the bindatcmd?

     

    I use this:

    OnInit:

         bindatcmd("vendcheck","vend_check::OnVendCheck",100,100);

     

    but when atcommand->exec(sd->fd, sd, "@vendcheck", true); is triggered, it says "@vendcheck is Unknown Command."


  3. nah..you don't need that you can set it at 'conf/battle/misc.conf'

    // Set this to the amount of minutes autotrade chars will be kicked from the server.at_timeout: 0

    :meow:

    Oh, I mean, like the script will be triggered before it enters autotrade mode..

     

    at_timeout works like, vendors which are already in autotrade mode will be kicked from server.


  4. @vending.c

    safestrncpy(sd->message, message, MESSAGE_SIZE);clif->openvending(sd,sd->bl.id,sd->vending);clif->showvendingboard(&sd->bl,message,0);+atcommand->exec(sd->fd, sd, "@autotrade", true);idb_put(vending->db, sd->status.char_id, sd);} 

    :meow:

    Thank you @@malufett. it's working! :)

     

    btw as @@karazu mentioned,

     

     

    Its a good IDEA, just make it sure that u will not make a mistake in pricing after clicking the OK button or else u dont have time anymore in re checking it.. 

     

     

    can you make it like trigger a script so we could add a timer before it use @autotrade?

    clif->showvendingboard(&sd->bl,message,0);+atcommand->exec(sd->fd, sd, "@autotrade", true); // CHANGE THIS ONE TO A CODE THAT WILL TRIGGER A SCRIPTidb_put(vending->db, sd->status.char_id, sd);

     

    the script is like:

    -	script	auto_autotrade	-1,{attachnpctimer ""+strcharinfo(0)+"";initnpctimer;// Added this so the vendor will have 10 seconds to recheck the vended items before it goes to autotrade modeOnTimer10000;	atcommand "@autotrade";	end; }

  5. Can anyone provide a guide here how to add custom jobs? Server side + client side guide. 

    I'm currently using 2013-12-23 client.


    I can see some guides from wiki(server side) and neomind(client side) how to add custom job but it seems not updated.

     

    Thank you for your time and attention. :)


  6. @Lord Ganja

    Yes it is possible with some tweaks of code.

    But i won't supply any support for free outside of hercules.

     I sent you a message sir.

     

    EDIT:

     

    Now working on rAthena!!!!

    Thank you Ryuzaki for the fast and good service!

    Thumbs up!!


  7. I really doubt it will help a lot, but maybe some newbies will fail at the mac check so here we go.

     

    Hercules Developers are free to implement this code snippet whenever they want.

     

    NOTE, do backups of your src folder AND your login mysql database, or wait till a developer implements mac to hercules.

     

    1. Download the file i attached.

    2. Place mac_check.patch into your hercules folder and apply the patch via GIT.

    3. Recompile the server, do NOT start the server yet!

    4. Open your mysql tool and select your ragnarok (server) database.

    5. Copy the below text into the query window

    ALTER TABLE `login` ADD COLUMN `last_mac` VARCHAR(18) NOT NULL DEFAULT ''  AFTER `pincode_change` ; 

    6. Click run / apply to add the new last_mac to your login database.

     

    You are set serverwise!!

     

    What do you need to send the mac?

     

    1. Your client must have the "SSO login" enabled. (i suggest R.O.L.e.X http://herc.ws/b...opic/930-rolex/ as the login system of your choice)

    2. That's all.

    3. Enjoy!

     

     

    This is great!!!!

    Can it be applied to rathena?

×
×
  • Create New...

Important Information

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