Jump to content

simplyniceweb

Members
  • Posts

    10
  • Joined

  • Last visited

Posts posted by simplyniceweb

  1. On 11/2/2018 at 10:07 PM, Lelouch vi Britannia said:

    conf/battle/misc.conf

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

    src/custom/atcommand.inc

    
    /*==========================================
    * @afk
    *------------------------------------------*/
    ACMD_FUNC(afk) {
    
    		nullpo_retr(-1, sd);
    				
    				if(sd->bl.m == map_mapname2mapid("prontera")) {
    					clif_displaymessage(fd, "@afk is not allowed on this map.");
    					return 0;
    				}
    				
    				if( pc_isdead(sd) ) {
    					clif_displaymessage(fd, "Cannot @afk if you are dead.");
    					return -1;
    				}
    
    				if( map_getmapflag(sd->bl.m, MF_AUTOTRADE) == battle_config.autotrade_mapflag )
    				{
    				if( map_getmapflag(sd->bl.m, MF_PVP) || map_getmapflag(sd->bl.m, MF_GVG_CASTLE) ) {
    					clif_displaymessage(fd, "You may not use the @afk maps PVP or GVG.");
    					return -1;
    				}
    					sd->state.autotrade = 1;
    					sd->state.monster_ignore = 1;
    					pc_setsit(sd);
    					skill_sit(sd,1);
    					clif_sitting(&sd->bl);
    					clif_changelook(&sd->bl,LOOK_HEAD_TOP,471);
    					clif_specialeffect(&sd->bl, 234,AREA);                       
    					if( battle_config.afk_timeout )
    					{
    							int timeout = atoi(message);
    							status_change_start(NULL, &sd->bl, SC_AUTOTRADE, 10000,0,0,0,0, ((timeout > 0) ? min(timeout,battle_config.afk_timeout) : battle_config.afk_timeout)*60000,0);
    					}
    						clif_authfail_fd(fd, 15);
    				} else
    						clif_displaymessage(fd, "@afk is not allowed on this map.");
    		return 0;
    }

    src/custom/atcommand_def.inc

    
    	ACMD_DEF(afk),

    src/custom/battle_config_init.inc

    
    	{ "afk_timeout",                        &battle_config.afk_timeout,                     0,      0,      INT_MAX,        },

    src/custom/battle_config_struct.inc

    
    	int afk_timeout;

     

    This doesn't work anymore, i tried it and when i hit @afk the rest of the players went afk also and can't login because it will make them afk again.

  2. On 4/27/2020 at 11:10 PM, Akkarin said:

    You can't just add new definitions and expect them to work. You need to make sure all the packets are the correct length and contain the correct data.

    For example, see https://github.com/Akkarinage/roBrowser/blob/master/src/Network/PacketStructure.js

    Hi, so i used @MrUnzO packet structure and i'm still getting the packet error:

    image.thumb.png.7b1f746136b382c411c8a1f169e59b58.png

     

    but as you can see in my logserver it's accepting my request to login.

     

    also i've added some packets from the provided packets of @MrUnzO:

    		// 2017-06-14bRagexeRE
    		20170614: [
    			[PACKET.CZ.ITEM_THROW,0x0367,6,2,4], //packet(0x0367,6,clif_parse_DropItem,2,4);
    			[PACKET.CZ.REQUEST_MOVE,0x0361,5,2], //packet(0x0361,5,clif_parse_WalkToXY,2);
    			[PACKET.CZ.ACK_STORE_PASSWORD,0x0437,36,0], //packet(0x0437,36,clif_parse_StoragePassword,0);
    			[PACKET.CZ.USE_SKILL_TOGROUND,0x0838,10,2,4,6,8], //packet(0x0838,10,clif_parse_UseSkillToPos,2,4,6,8);
    			[PACKET.CZ.REQUEST_ACT,0x083C,7,2,6], //packet(0x083C,7,clif_parse_ActionRequest,2,6);
    			[PACKET.CZ.REQ_CLICK_TO_BUYING_STORE,0x0860,6,2], //packet(0x0860,6,clif_parse_ReqClickBuyingStore,2);
    			[PACKET.CZ.ADD_FRIENDS,0x0867,26,2], //packet(0x0867,26,clif_parse_FriendsListAdd,2);
    			[PACKET.CZ.REQ_CLOSE_BUYING_STORE,0x086B,2,0], //packet(0x086B,2,clif_parse_ReqCloseBuyingStore,0);
    			[PACKET.CZ.SEARCH_STORE_INFO,0x086C,-1,2,4,5,9,13,14,15], //packet(0x086C,-1,clif_parse_SearchStoreInfo,2,4,5,9,13,14,15);
    			[PACKET.CZ.PARTY_BOOKING_REQ_REGISTER,0x0877,18,2,4], //packet(0x0877,18,clif_parse_PartyBookingRegisterReq,2,4);
    			[PACKET.CZ.CHANGE_DIRECTION,0x087E,5,2,4], //packet(0x087E,5,clif_parse_ChangeDir,2,4);
    			[PACKET.CZ.USE_SKILL_TOGROUNDMoreInfo,0x0889,90,2,4,6,8,10], //packet(0x0889,90,clif_parse_UseSkillToPosMoreInfo,2,4,6,8,10);
    			[PACKET.CZ.REQ_JOIN_GROUP,0x0899,26,2], //packet(0x0899,26,clif_parse_PartyInvite2,2);
    			[PACKET.CZ.REQ_TRADE_BUYING_STORE,0x089D,-1,2,4,8,12],
    			[PACKET.CZ.REQ_OPEN_BUYING_STORE,0x08A2,-1,2,4,8,9,89], //packet(0x08A2,-1,clif_parse_ReqOpenBuyingStore,2,4,8,9,89);
    			[PACKET.CZ.ITEM_PICKUP,0x08AD,6,2], //packet(0x08AD,6,clif_parse_TakeItem,2);
    			[PACKET.CZ.REQ_TRADE_BUYING_STORE,0x092F,-1,2,4,8,12], //packet(0x092F,-1,clif_parse_ReqTradeBuyingStore,2,4,8,12);
    			[PACKET.CZ.USE_SKILL,0x091B,10,2,4,6], //packet(0x091B,10,clif_parse_UseSkillToId,2,4,6);
    			[PACKET.CZ.REQNAME,0x0936,6,2], //packet(0x0936,6,clif_parse_GetCharNameRequest,2);
    			[PACKET.CZ.ENTER,0x0944,19,2,6,10,14,18], //packet(0x0944,19,clif_parse_WantToConnection,2,6,10,14,18);
    			[PACKET.CZ.MOVE_ITEM_FROM_BODY_TO_STORE,0x0879,8,2,4],//packet(0x0879,8,clif_parse_MoveToKafra,2,4);
    			[PACKET.CZ.MOVE_ITEM_FROM_STORE_TO_BODY,0x023B,8,2,4],//packet(0x023B,8,clif_parse_MoveFromKafra,2,4);
    			[PACKET.CZ.ITEMLISTWIN_RES,0x089D,-1,2,4,8,12], //packet(0x089D,-1,clif_parse_ItemListWindowSelected,2,4,8,12);
    			[PACKET.CZ.SEARCH_STORE_INFO_NEXT_PAGE,0x0928,2,0],//packet(0x0928,2,clif_parse_SearchStoreInfoNextPage,0);
    			[PACKET.CZ.SSILIST_ITEM_CLICK,0x0963,12,2,6,10],//packet(0x0963,12,clif_parse_SearchStoreInfoListItemClick,2,6,10);
    			[PACKET.CZ.COMMAND_MER,0x0364,5,2,4], //parseable_packet(0x0364,5,clif_parse_HomMenu,2,4);
    			/*
    			// 2017-06-14bRagexeRE
    			packet(0x0364,5,clif_parse_HomMenu,2,4);
    			//packet(0x0865,4,NULL,0); // CZ_GANGSI_RANK
    			packet(0x0866,6,clif_parse_TickSend,2);
    			packet(0x087D,6,clif_parse_SolveCharName,2);
    			//packet(0x0957,8,NULL,0); // CZ_JOIN_BATTLE_FIELD
    			*/
    		],

     

    8 hours ago, MrUnzO said:

    Here is my 2017-06-14 i made before

     

    
    20170614: [
    			
    			[PACKET.CZ.ITEM_THROW,0x0367,6,2,4], //packet(0x0367,6,clif_parse_DropItem,2,4);
    			[PACKET.CZ.REQUEST_MOVE,0x0361,5,2], //packet(0x0361,5,clif_parse_WalkToXY,2);
    			[PACKET.CZ.ACK_STORE_PASSWORD,0x0437,36,0], //packet(0x0437,36,clif_parse_StoragePassword,0);
    			[PACKET.CZ.USE_SKILL_TOGROUND,0x0838,10,2,4,6,8], //packet(0x0838,10,clif_parse_UseSkillToPos,2,4,6,8);
    			[PACKET.CZ.REQUEST_ACT,0x083C,7,2,6], //packet(0x083C,7,clif_parse_ActionRequest,2,6);
    			[PACKET.CZ.REQ_CLICK_TO_BUYING_STORE,0x0860,6,2], //packet(0x0860,6,clif_parse_ReqClickBuyingStore,2);
    			[PACKET.CZ.ADD_FRIENDS,0x0867,26,2], //packet(0x0867,26,clif_parse_FriendsListAdd,2);
    			[PACKET.CZ.REQ_CLOSE_BUYING_STORE,0x086B,2,0], //packet(0x086B,2,clif_parse_ReqCloseBuyingStore,0);
    			[PACKET.CZ.SEARCH_STORE_INFO,0x086C,-1,2,4,5,9,13,14,15], //packet(0x086C,-1,clif_parse_SearchStoreInfo,2,4,5,9,13,14,15);
    			[PACKET.CZ.PARTY_BOOKING_REQ_REGISTER,0x0877,18,2,4], //packet(0x0877,18,clif_parse_PartyBookingRegisterReq,2,4);
    			[PACKET.CZ.CHANGE_DIRECTION,0x087E,5,2,4], //packet(0x087E,5,clif_parse_ChangeDir,2,4);
    			[PACKET.CZ.USE_SKILL_TOGROUNDMoreInfo,0x0889,90,2,4,6,8,10], //packet(0x0889,90,clif_parse_UseSkillToPosMoreInfo,2,4,6,8,10);
    			[PACKET.CZ.REQ_JOIN_GROUP,0x0899,26,2], //packet(0x0899,26,clif_parse_PartyInvite2,2);
    			[PACKET.CZ.REQ_TRADE_BUYING_STORE,0x089D,-1,2,4,8,12],
    			[PACKET.CZ.REQ_OPEN_BUYING_STORE,0x08A2,-1,2,4,8,9,89], //packet(0x08A2,-1,clif_parse_ReqOpenBuyingStore,2,4,8,9,89);
    			[PACKET.CZ.ITEM_PICKUP,0x08AD,6,2], //packet(0x08AD,6,clif_parse_TakeItem,2);
    			[PACKET.CZ.REQ_TRADE_BUYING_STORE,0x092F,-1,2,4,8,12], //packet(0x092F,-1,clif_parse_ReqTradeBuyingStore,2,4,8,12);
    			[PACKET.CZ.USE_SKILL,0x091B,10,2,4,6], //packet(0x091B,10,clif_parse_UseSkillToId,2,4,6);
    			//packet(0x0928,2,clif_parse_SearchStoreInfoNextPage,0);
    			[PACKET.CZ.REQNAME,0x0936,6,2], //packet(0x0936,6,clif_parse_GetCharNameRequest,2);
    			[PACKET.CZ.ENTER,0x0944,19,2,6,10,14,18], //packet(0x0944,19,clif_parse_WantToConnection,2,6,10,14,18);
    			[PACKET.CZ.MOVE_ITEM_FROM_BODY_TO_STORE,0x0879,8,2,4],
    			[PACKET.CZ.MOVE_ITEM_FROM_STORE_TO_BODY,0x023B,8,2,4],
    			
    			/*
    			// 2017-06-14bRagexeRE
    			packet(0x0364,5,clif_parse_HomMenu,2,4);
    			//packet(0x0865,4,NULL,0); // CZ_GANGSI_RANK
    			packet(0x0866,6,clif_parse_TickSend,2);
    			packet(0x087D,6,clif_parse_SolveCharName,2);
    			//packet(0x0957,8,NULL,0); // CZ_JOIN_BATTLE_FIELD
    			packet(0x0963,12,clif_parse_SearchStoreInfoListItemClick,2,6,10);
    			*/
    		],

    I can't remember, but there is some PacketRegister to register more and implement PacketStructure for support incoming packet need to figure out 

     

    anything else i'm missing here sir @Akkarin?

  3. 11 hours ago, Akkarin said:

    sorry for the rush.

     

    I've tried:

    20170614: [0x5ED10A48,0x667F4301,0x2E5D761F]
    		// 2017-06-14bRagexeRE
    		20170614: [
    			[PACKET.CZ.CHANGE_DIRECTION,0x087E,5,2,4],
    			[PACKET.CZ.ITEM_PICKUP,0x08AD,6,2],
    			[PACKET.CZ.ITEM_THROW,0x0885,6,2,4],
    			[PACKET.CZ.MOVE_ITEM_FROM_BODY_TO_STORE,0x0879,8,2,4],
    			[PACKET.CZ.MOVE_ITEM_FROM_STORE_TO_BODY,0x0864,8,2,4],
    			[PACKET.CZ.USE_SKILL_TOGROUND,0x0438,10,2,4,6,8],
    			[PACKET.CZ.SSILIST_ITEM_CLICK,0x0838,12,2,6,10],
    			[PACKET.CZ.SEARCH_STORE_INFO_NEXT_PAGE,0x0928,2,0],
    			[PACKET.CZ.REQ_CLOSE_BUYING_STORE,0x086B,2,0],
    			[PACKET.CZ.PARTY_BOOKING_REQ_REGISTER,0x0877,18,2,4],
    			// packet(0x02C4,8); // CZ_JOIN_BATTLE_FIELD
    			[PACKET.CZ.ITEMLISTWIN_RES,0x089D,-1,2,4,8,12],
    			[PACKET.CZ.ENTER,0x0363,19,2,6,10,14,18],
    			[PACKET.CZ.PARTY_JOIN_REQ,0x0899,26,2],
    			// packet(0x0927,4); // CZ_GANGSI_RANK
    			[PACKET.CZ.ADD_FRIENDS,0x0867,26,2],
    			[PACKET.CZ.COMMAND_MER,0x0817,5,2,4],
    			[PACKET.CZ.ACK_STORE_PASSWORD,0x0923,36,0],
    			// packet(0x09e8,11); //CZ_OPEN_MAILBOX
    			// packet(0x0a2e,6); //TITLE
    			[PACKET.CZ.REQUEST_ACT,0x083C,7,2,6],
    			[PACKET.CZ.REQ_CLICK_TO_BUYING_STORE,0x0860,6,2],
    			[PACKET.CZ.SEARCH_STORE_INFO,0x086C,-1,2,4,5,9,13,14,15],
    			[PACKET.CZ.USE_SKILL_TOGROUNDMoreInfo,0x0889,90,2,4,6,8,10],
    			[PACKET.CZ.REQ_OPEN_BUYING_STORE,0x08A2,-1,2,4,8,9,89],
    			[PACKET.CZ.REQ_TRADE_BUYING_STORE,0x092F,-1,2,4,8,12],
    			[PACKET.CZ.REQNAME,0x0936,6,2],
    		],

    image.png.01c111140efa17e424f7084e07cb8309.png

     

    but i'm getting that error, any idea? thanks

  4. 14 hours ago, Akkarin said:

    rA's packet files in /src/

     

    Quote

            20150513: [
                [PACKET.CZ.CHANGE_DIRECTION,0x0924,5,2,4],
                [PACKET.CZ.ITEM_PICKUP,0x0958,6,2],
                [PACKET.CZ.ITEM_THROW,0x0885,6,2,4],
                [PACKET.CZ.MOVE_ITEM_FROM_BODY_TO_STORE,0x0879,8,2,4],
                [PACKET.CZ.MOVE_ITEM_FROM_STORE_TO_BODY,0x0864,8,2,4],
                [PACKET.CZ.USE_SKILL_TOGROUND,0x0438,10,2,4,6,8],
                [PACKET.CZ.SSILIST_ITEM_CLICK,0x0838,12,2,6,10],
                [PACKET.CZ.SEARCH_STORE_INFO_NEXT_PAGE,0x0835,2,0],
                [PACKET.CZ.REQ_CLOSE_BUYING_STORE,0x022D,2,0],
                [PACKET.CZ.PARTY_BOOKING_REQ_REGISTER,0x0883,18,2,4],
                // packet(0x02C4,8); // CZ_JOIN_BATTLE_FIELD
                [PACKET.CZ.ITEMLISTWIN_RES,0x0960,-1,2,4,8],
                [PACKET.CZ.ENTER,0x0363,19,2,6,10,14,18],
                [PACKET.CZ.PARTY_JOIN_REQ,0x094A,26,2],
                // packet(0x0927,4); // CZ_GANGSI_RANK
                [PACKET.CZ.ADD_FRIENDS,0x08A8,26,2],
                [PACKET.CZ.COMMAND_MER,0x0817,5,2,4],
                [PACKET.CZ.ACK_STORE_PASSWORD,0x0923,36,0],
                // packet(0x09e8,11); //CZ_OPEN_MAILBOX
                // packet(0x0a2e,6); //TITLE
            ],

    How can we get the packets like above for a specific client like 2017-06-14, is there any way @Akkarin?

     

    8 hours ago, MrUnzO said:

    now I am developing Node Webkit roBrowser and it's working great. I'm planing about open source. Hope community support the project because I'm not good at webgl. The client, Node Webkit roBrowser support 2018-06-20 packet version.

    Hello good sir, may i know how did you get those packets for 2018-06-20 to be supported by roBrowser? can you help me with the 2017-06-14 client? Have a good day!

  5. On 2/10/2020 at 10:52 PM, Akkarin said:

    ??

    It doesn't require a client, it is the client.

    It works fine if you don't need carts, vending, half the skills, rodex, quests, achievements, homuns/mercs, etc.

    I think what he meant for example if your client is 2017-06-14 or latest it won't work because src/Network/PacketVersions.js of roBrowser the latest client supported is:

     

    Quote

            20150513: [
                [PACKET.CZ.CHANGE_DIRECTION,0x0924,5,2,4],
                [PACKET.CZ.ITEM_PICKUP,0x0958,6,2],
                [PACKET.CZ.ITEM_THROW,0x0885,6,2,4],
                [PACKET.CZ.MOVE_ITEM_FROM_BODY_TO_STORE,0x0879,8,2,4],
                [PACKET.CZ.MOVE_ITEM_FROM_STORE_TO_BODY,0x0864,8,2,4],
                [PACKET.CZ.USE_SKILL_TOGROUND,0x0438,10,2,4,6,8],
                [PACKET.CZ.SSILIST_ITEM_CLICK,0x0838,12,2,6,10],
                [PACKET.CZ.SEARCH_STORE_INFO_NEXT_PAGE,0x0835,2,0],
                [PACKET.CZ.REQ_CLOSE_BUYING_STORE,0x022D,2,0],
                [PACKET.CZ.PARTY_BOOKING_REQ_REGISTER,0x0883,18,2,4],
                // packet(0x02C4,8); // CZ_JOIN_BATTLE_FIELD
                [PACKET.CZ.ITEMLISTWIN_RES,0x0960,-1,2,4,8],
                [PACKET.CZ.ENTER,0x0363,19,2,6,10,14,18],
                [PACKET.CZ.PARTY_JOIN_REQ,0x094A,26,2],
                // packet(0x0927,4); // CZ_GANGSI_RANK
                [PACKET.CZ.ADD_FRIENDS,0x08A8,26,2],
                [PACKET.CZ.COMMAND_MER,0x0817,5,2,4],
                [PACKET.CZ.ACK_STORE_PASSWORD,0x0923,36,0],
                // packet(0x09e8,11); //CZ_OPEN_MAILBOX
                // packet(0x0a2e,6); //TITLE
            ],

     

    where can we get that information for 2017 for example.

  6. So i've made my own custom refine script. What i am missing is the chances or the formula.

    Like:

    +1 - +5 = 100% chance of success
    +6 = 80% chance of success - 20% chance of failing
    +7 = 60% chance of success - 40% chance of failing
    +8 = 40% chance of success - 60% chance of failing
    +9 = 20% chance of success - 80% chance of failing
    +10 = 10% chance of success - 90% chance of failing

     

    here's my custom script:

    https://gist.github.com/simplyniceweb/6536f6a34bdae8604f9803f9357b9659

×
×
  • Create New...