Jump to content

FatalEror

Members
  • Posts

    67
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by FatalEror

  1. Change to this:

    /*==========================================
    * @dropequip [FE]
    * Drop spesific equipment to the ground
    *------------------------------------------*/
    ACMD_FUNC(dropequip)
    {
    int i;
    unsigned short pos;
    
    nullpo_retr(-1, sd);
    
    if (!message || !*message) {
    	clif_displaymessage(fd, "Please enter equip location: @dropequip <equip_location>");
    	clif_displaymessage(fd, "  1: Head Low   2: Hand Right  4: Garment   8: Acc Left");
    	clif_displaymessage(fd, " 16: Armor     32: Hand Left  64: Shoes   128: Acc Right");
    	clif_displaymessage(fd, "256: Head Top 512: Head Mid");
    	return -1;
    }
    
    pos = atoi(message);
    
    for (i = 0; i < MAX_INVENTORY; i++) {
    	if (sd->status.inventory[i].amount && sd->inventory_data[i]->equip&pos) {
    		if(sd->status.inventory[i].equip&pos) {
    			pc_unequipitem(sd, i, 3);
    			pc_dropitem(sd, i, sd->status.inventory[i].amount);
    		}
    		//-Delete code below if you only want to drop an equipped item---
    		else if (!sd->status.inventory[i].equip)
    			pc_dropitem(sd, i, sd->status.inventory[i].amount);
    		//---------------------------------------------------------------
    	}
    }
    return 0;
    }

  2. actually i only wanted to make 150 luk = frost duration reduced .. only for frost status ..

    .../map/status.c

    Search:

    	case SC_STONE:
    case SC_FREEZE:
    	sc_def = 3 +status->mdef;
    	break;

    Replace with:

    	case SC_STONE:
    case SC_FREEZE:
    	if (type == SC_FREEZE) {
    		sc_def = status->luk * 100/150;
    		break;
    	}
    	sc_def = 3 +status->mdef;
    	break;

  3. So if you write @dropequip 512 it will drop all your Mid Headgear in inventory? Or only drop it when equipped in Mid Head? :)

    To drop spesific equip in inventory:

    Open .../map/atcommand.c

    Search:

    /*==========================================
    * @dropall by [MouseJstr]
    * Drop all your possession on the ground
    *------------------------------------------*/
    ACMD_FUNC(dropall)
    {
    int i;
    nullpo_retr(-1, sd);
    for (i = 0; i < MAX_INVENTORY; i++) {
    if (sd->status.inventory[i].amount) {
    	if(sd->status.inventory[i].equip != 0)
    		pc_unequipitem(sd, i, 3);
    		pc_dropitem(sd,  i, sd->status.inventory[i].amount);
    	}
    }
    return 0;
    }

    Add below:

    /*==========================================
    * @dropequip [FE]
    * Drop spesific equipment to the ground
    *------------------------------------------*/
    ACMD_FUNC(dropequip)
    {
    int i;
    unsigned short pos;
    
    nullpo_retr(-1, sd);
    
    if (!message || !*message) {
    	clif_displaymessage(fd, "Please enter equip location: @dropequip <equip_location>");
    	clif_displaymessage(fd, "  1: Head Low   2: Hand Right  4: Garment   8: Acc Left");
    	clif_displaymessage(fd, " 16: Armor     32: Hand Left  64: Shoes   128: Acc Right");
    	clif_displaymessage(fd, "256: Head Top 512: Head Mid");
    	return -1;
    }
    
    pos = atoi(message);
    
    for (i = 0; i < MAX_INVENTORY; i++) {
    	if (sd->status.inventory[i].amount && sd->inventory_data[i]->equip&pos) {
    		if(sd->status.inventory[i].equip != 0)
    			pc_unequipitem(sd, i, 3); //unequip item if equipped
    		pc_dropitem(sd,  i, sd->status.inventory[i].amount);
    	}
    }
    return 0;
    }

    Search:

    		{ "dropall",           40,40,     atcommand_dropall },

    Add below:

    		{ "dropequip",         40,40,     atcommand_dropequip },

    Recompile..

    Open .../conf/atcommand_athena.conf

    Search:

    // Drop all your items
    dropall: 40,60

    Add below:

    // Drop spesific equipment
    dropequip: 40,60

    I hope it right :D

  4. Update: Here are my edits that made my Map Server not to turn on so, I cannot really test the edit:

    src/map/unit.c

    	  if (!src->prev) return 0; //Warped away!
     }
     if( casttime > 0 )
     {
     ud->skilltimer = add_timer( tick+casttime, skill_castend_id, src->id, 0 );
     if( sd && pc_checkskill(sd,SA_FREECAST) > 0 )
    

    Becomes like this:

    	  if (!src->prev) return 0; //Warped away!
     }
     sd->warpgodelay_tick= tick+warpgodelaycd ;//The delay when they use skill
     if( casttime > 0 )
     {
     ud->skilltimer = add_timer( tick+casttime, skill_castend_id, src->id, 0 );
     if( sd && pc_checkskill(sd,SA_FREECAST) > 0 )
    

    Try change this:

    	  if (!src->prev) return 0; //Warped away!
     }
     sd->warpgodelay_tick= tick+warpgodelaycd ;//The delay when they use skill
     if( casttime > 0 )
     {
     ud->skilltimer = add_timer( tick+casttime, skill_castend_id, src->id, 0 );
     if( sd && pc_checkskill(sd,SA_FREECAST) > 0 )
    

    to:

    	  if (!src->prev) return 0; //Warped away!
     }
     if (sd)
    	sd->warpgodelay_tick= tick+warpgodelaycd ;//The delay when they use skill
     if( casttime > 0 )
     {
     ud->skilltimer = add_timer( tick+casttime, skill_castend_id, src->id, 0 );
     if( sd && pc_checkskill(sd,SA_FREECAST) > 0 )
    

  5. Apply this patch in where? which file? if i apply will disable whole or not? i just want for pvp no chat only @@" right click use tortoise svn apply?

    Right click on your RAthena SVN → TortoiseSVN → Apply patch...

    or you can patch it manually..

    ./conf/mapflag/nomsg.txt < i dun have this txt. i have to create myself?

    No, if you apply it with TortoiseSVN

    Yes, if you apply it manually

    ------------------------

    to disable main chat in pvp map:

    copy paste this to ../conf/mapflag/nomsg.txt :

    http://pastebin.com/e0KfVWjt

    • Upvote 1
  6. Cool update.

    Anyone knows the ID number to this new monsters?

    ["JT_MENBLATT"] = 2363,

    ["JT_PETAL"] = 2364,

    ["JT_CENERE"] = 2365,

    ["JT_ANTIQUE_BOOK"] = 2366,

    ["JT_LICHTERN_B"] = 2367,

    ["JT_LICHTERN_Y"] = 2368,

    ["JT_LICHTERN_R"] = 2369,

    ["JT_LICHTERN_G"] = 2370,

    ["JT_FAITHFUL_MANAGER"] = 2371,

    ["JT_SOIL"] = 2372,

    ["JT_ROCK"] = 2373,

    ["JT_THICKET"] = 2374,

    ["JT_MOROCC_4_142"] = 2375,

    ["JT_MOROCC_2_142"] = 2376,

    ["JT_E_NOVUS_"] = 2377,

    ["JT_MER_ANTLER_SCARABA"] = 2378,

    ["JT_XMAS_SMOKEY_SOCK"] = 2379,

    ["JT_XMAS_SMOKEY_GIFT"] = 2380

    Regards,

    Zwei

    • Upvote 1
  7. About the lua files error,

    that because you apply patch "Read Lua before Lub"

    there's 2 way to get rid of this,

    either don't apply this patch or delete your ../lua files/chatwndinfo_f.lua from rdata.grf and data.grf

    And the "Rejected from server message(3)"

    make sure you apply patch "Skip Packet Header Obfuscation",

    open your packet_db.txt

    delete // from 2011-11-22aRagexeRE option

    and add // in 2011-12-20bRagexeRE option

    btw this is RAthena board,

    if you have problem or question just ask in this thread

×
×
  • Create New...