Jump to content

Functor

Members
  • Posts

    351
  • Joined

  • Last visited

  • Days Won

    26

Posts posted by Functor

  1. Open ../src/map/script.cpp and before:

    /// script command definitions
    /// for an explanation on args, see add_buildin_func
    struct script_function buildin_func[] = {

    add:

    BUILDIN_FUNC(addwarp)
    {
    	struct npc_data *nd;
    	const char *warpname;
    	const char *mapname_src;
    	const char *mapname_dst;
    	unsigned short m_src, m_dst;
    	int x_src, y_src, x_dst, y_dst;
    
    	warpname = script_getstr(st,2);
    
    	mapname_src = script_getstr(st,3);
    	x_src  = script_getnum(st,4);
    	y_src  = script_getnum(st,5);
    
    	mapname_dst = script_getstr(st,6);
    	x_dst  = script_getnum(st,7);
    	y_dst  = script_getnum(st,8);
    
    	if ((m_src = map_mapname2mapid(mapname_src)) < 0)
    	{
    		return SCRIPT_CMD_FAILURE;
    	}
    
    	if ((m_dst = mapindex_name2id(mapname_dst)) == 0)
    	{
    		return SCRIPT_CMD_FAILURE;
    	}
    
    	nd = npc_add_warp((char*)warpname, m_src, x_src, y_src, 2, 2, m_dst, x_dst, y_dst);
    
    	if (nd == NULL)
    	{
    		return SCRIPT_CMD_FAILURE;
    	}
    
    	return SCRIPT_CMD_SUCCESS;
    }

     

    after:

    /// script command definitions
    /// for an explanation on args, see add_buildin_func
    struct script_function buildin_func[] = {

    add:

    	BUILDIN_DEF(addwarp, "ssiisii"),

     

    P.S. @unloadnpc works fine for me.

    • Upvote 1
  2. BUILDIN_FUNC(flooritem)
    {
    	short mx, my;
    	struct item item_tmp;
    	int nameid, amount, i;
    	struct map_session_data *sd;
    	struct item_data *item_data;
    
    	if (script_rid2sd(sd) == NULL)
    		return SCRIPT_CMD_SUCCESS;
    
    	nameid = script_getnum(st, 2);
    
    	if ((item_data = itemdb_search(nameid)) == NULL)
    		return SCRIPT_CMD_SUCCESS;
    
    	amount = script_getnum(st, 3);
    
    	if (amount <= 0)
    		return SCRIPT_CMD_SUCCESS;
    
    	memset(&item_tmp, 0, sizeof(item_tmp));
    	item_tmp.nameid = nameid;
    	item_tmp.identify = 1;
    
    	for (i = 0; i < amount; i++)
    	{
    		map_search_freecell(&sd->bl, 0, &mx, &my, -1, -1, 0);
    		map_addflooritem(&item_tmp, 1, sd->bl.m, mx, my, 0, 0, 0, 0, 0);
    	}
    
    	return SCRIPT_CMD_SUCCESS;
    }

     

  3. // 2015-05-13aRagexe

    48FA1E change 6A FF 6A 00 50 8D 4D D8 E8 B5 0C BA FF to 90 90 90 90 90 90 90 90 90 90 90 90 90
    48FAE1 change 6A FF 6A 00 50 8D 4D D8 E8 F2 0B BA FF to 90 90 90 90 90 90 90 90 90 90 90 90 90
    6CB3B8 change 20 28 00 00 5B 20 54 6F 20 00 00 00 29 20 5D 20 3A 20 to 20 00 00 00 5B 20 54 6F 20 00 00 00 5D 20 3A 20 00 00

    • Upvote 2
  4. Hello! You should download file "connect_log.mix", copy to game folder and try to connect.

    https://mega.nz/#!lI90TTxI!6l2xp20o9gdDrpsKBohMaR46PZqMtHosYSWLlK5kO88

    Module will create file "connect_log.txt" with IP and port which game use for connection.

    You should compare it with IP and port of your login server.

    If everything is OK, you should check possibility to connect to your server here: http://ping.eu/port-chk/

     

  5. You can modify it by using any HEX editor.

    offset 220B13 change 68 9B 00 00 00 8B CF E8 01 8A FF FF to E9 1E 18 49 00 8B CF E8 01 8A FF FF

    offset 6B232F change

    E9 13 18 EE FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    to

    E9 13 18 EE FF 00 00 8B 87 98 01 00 00 83 F8 00 0F 85 CE E9 B6 FF 68 9B 00 00 00 E9 C9 E7 B6 FF

    5 hours ago, Vex said:

    i bet this is 2017 client :)

    :D

×
×
  • Create New...