Jump to content

RCharles

Members
  • Posts

    154
  • Joined

  • Last visited

Posts posted by RCharles

  1. checkweight(<item id>,<amount>)

    checkweight("<item name>",<amount>)

    Reference: http://rathena.org/wiki/Checkweight

    prontera.gat,163,185,4 script Cenverter 83,{
    set @name$,"[^FF0000Converter^000000]";
    mes @name$;
    mes "What do you want to do?";
    next;
    switch(select("Information","Convert")) {
    	case 1:
    		mes @name$;
    		mes "I can convert your Coupon/s into Berry and vice versa.";
    		mes "1 Coupon = 500 Berry";
    		close;
    	case 2:
    		switch(select("Coupon to Berry","Berry to Coupon")) {
    			case 1:
    				if (checkweight(607,500) == 0 ) goto overWeight;
    				if (countitem(7073) < 1) goto noCoupon;
     mes @name$;
     mes "How many coupon to berries?";
     input .@num;
     if (countitem(7073 < .@num){
      mes @name$;
      mes "Insufficient coupon!";
      close;
     }else
     {
    				delitem 7037,.@num;
    				getitem 607,.@num*500;
    				mes @name$;
    				mes "There you go. Hope to see you again!";
    				close;
     }
    			case 2:
    				if (checkweight(7073,1) == 0 ) goto overWeight;
    				if (countitem(500) < 1) goto noBerry;
    				mes @name$
    				mes "How many berries to coupon?";
    				input .@num2;
    				if (countitem(607) < .@num2){
    				mes @name$;
    				mes "Insufficient berries!";
    				close;
    			   }else
    				{
    				delitem 607,.@num2*500;
    				getitem 7037,.@num;
    				mes @name$;
    				mes "There you go. Hope to see you again!";
    				close;
     }
    		}
    		end;
    }
    noBerry:
    mes @name$;
    mes "I'm Sorry but you don't have enough berries.";
    close;
    
    noCoupon:
    mes @name$;
    mes "I'm Sorry you don't have enough coupon";
    close;
    overWeight:
    mes @name$;
    mes "Sorry you're overweight.";
    close;
    }
    

  2. Thanks, but I have this tool, as well. As well as GRF Builder, Factory and Sharper. I needed something that I can use to open directories and then write them to a GRF file. Unfortunately, I keep running into errors when using all the programs above. Also, I believe GRF Tool is only good for extracting GRFs?

    correct! It is just good for extracting GRF file.

    What I did is:

    - Use GRF Builder to build GRF

    - GRF Tool for extracting GRF

  3. Look into your packet_db.txt if that client is alrady supported by rAthena

    1. Diff your client with Shin's Diff Patcher

    2. When you diff your client don't include load lua before lub or read data folder first

    3. Use lua that fits your version

    http://subversion.assembla.com/svn/ClientSide/Lua_Project/lubs/Lub%20Files%205.0.2/

    3. check your mmo.h

    #define PACKETVER 20120714
    

    4. be sure that your packet version is

    packet_db_ver: 28
    

    5. When your patching your client, make sure your use the skip packet obfuscation fix

    http://supportmii.com/ro1/Clients/Bypass_Clients/Waeyan/WDGSkipPacketHeaderObfuscation.dll

  4. You need to edit file that correspond to your custom item:

    Example:

    If you need to change idnum2itemdesctable.txt

    You open that idnum2itemdesctable.txt and just add

    e.g

    5555#

    A potion made from ground Red Herbs that restores ^000088about 45 HP^000000.

    ^ffffff_^000000

    Weight :^777777 7^000000

    #

    then load it on thor maker. What you are doing is just to use the file and just add lines if necessary.

  5. I have searched this references, I hope this will guide you:

    Setting Up Server W/hamachi, With Router (w/o messing with router settings)

    1. http://www.eathena.ws/board/index.php?showtopic=114681

    [Guide]How to setup a Ragnarok Online(Server Side Only)

    2. http://rathena.org/board/topic/53291-guidehow-to-setup-a-ragnarok-onlineserver-side-only/

    [guide]how To Use No-ip? (hide Your Server Ip), here's a simple instructions to use your no-ip

    3. http://www.eathena.ws/board/index.php?showtopic=142274&st=0&p=782543entry782543

×
×
  • Create New...