Jump to content

Cold

Members
  • Posts

    77
  • Joined

  • Last visited

Posts posted by Cold

  1. Hi Guys,

    I'm trying to use an previous server that I had configured using rathena, the thing is, it was working normally before when using linux. I compiled it with macOS and apparently after trying to login, it is closing my connection.

    [Status]: Connection of the account 'USER' accepted.
    [Info]: Closed connection from 'USER_IP'.

    I already checked all my IPs, I'm running locally, everything on map and char is pointing to 127.0.0.1

    Also tried disabling and enabling the packet obfuscation, nothing worked...

    Does anyone here knows what I can do to fix it on macOS?

  2. Hi guys, i'm trying to use an 2018-05-30 hexed, but the problem is... All special caractere is beeing showed in korean, words like "não", "está" and others with acentuation is beeing replaced by an korean character.

    I'm trying to change the langtype to 11 (I remember that in 2014 hexeds, that used to solve the problem) but it start send an error on trying to open the client.

    The other problem is: How to use the twitter SNS? Can anyone show me step by step? I'm comming back to ragnarok dev this month, there is a lot of things to learn ?

    The last one: How can I change locations or remove the icons that appears on the screen (not the in the map, i'm talking about the icons in the player screen)

     

    Well, that's all. I will be very thankful if anyone could help me!

  3. 15 hours ago, crazyarashi said:

    It's good ? I just suggest for the whole wallpaper to cover up the middle white part.

    That is not a white part, its a texture behind, and it need to be there to separate the backgrounded ones, otherwise it will be so much information.

     

  4. Hi guys, i'm showing my new website that i'm working on.

    It will be used for the AlfheimRO. Do you have any tips to improve this layout?

    I'm not a web designer, i'm developer, but pay someone to do this for me would be a little expensive, so i'm doing this myself!

    Index-L.png

    • Love 1
  5. When trying to login in my server, everytime i load the map, i get this error and my account is logged out.
     

    clif_parse: Received unsupported packet (packet 0x08c9, 2 bytes received), disconnecting session #3

    Here my packet_db:

    //packet_db_ver: 46

    packet_db_ver: 30
    packet_keys_use: 30
    packet_keys: 0x5987D9BC,0x03CFA5B5,0x4083AD65 // [shakto]
     
    I already set the keys on the Hexed, but still on error.
     
     
  6. Well, i'm trying to implement a kind of hex editing. So i found that the packet_len that control the char name, party and guild is 0x195, but my question is... How can i find the hexadecimal description on the hexed for that packet?

     

    I'm trying to do something like, add another bar, after Guild Name, on characters info, like:

     

    Player Name (PartyName)
    GuildEmblem GuildName [Guild Position]

    Here Another tab.

     

    I know the logical command to do this on clif.c but the max string value to each of these names is 24, so the total string for that infos are 102 bits, where
     

    bits 6~29 are the characters name.

    bits 30~53 are the name of the player party.

    bits 54~77 the name of the guild

    bits 78~101 the guild position.

     

    So, how can i expando the info like

    bits 102~125 another infor that i want.

     

    I can do this on the clif.c, but i dont know how to make the hexed show this to the client. Anyone could help?

  7. Hi huys, i'm trying to use the new cashshop button with the hexed 2014, but i got an error when trying to buy some item in the store.

     

    If i try to buy, nothing happens, i dont receive the item, the cashpoints dont change and i dont receive any error on console.

     

    What should I do? 

     

    I'm using a ramod.

    • Upvote 1
  8. Sure:

    atcoomand.c

    +ACMD_DEF(vip){

    +nullpo_retr(-1, sd);

    +npc_event(sd, "NPCNAME::OnEVENTNAME", 0);

     

    +return SCRIPT_CMD_SUCCESS;

    +}

     

     

    ACMD_DEF(disguise),
    ACMD_DEF(undisguise),
    +ACMD_DEF(vip),

     

     

    Then you create an npc that will control yout vip entrace like

     

    -<tab>script<tab>NPCNAME<tab>-1,{
    OnEVENTNAME:
    dosomething...
    }

     

  9. I did this now, but i think that can solve.

    atcommand.c

    ACMD_FUNC(mapmove)
    {
    char map_name[MAP_NAME_LENGTH_EXT];
    unsigned short mapindex;
    short x = 0, y = 0;
    int16 m = -1;
     
    nullpo_retr(-1, sd);
     
    memset(map_name, '\0', sizeof(map_name));
     
    +if(sd->state.nowarp > (gettimetick()+TIMETICKINMILISECODS)) {
    +clif_displaymessage(fd, "Wait 10s out of battle to warp");
    +return 0;
    +}
     

     

    pc.c

    void pc_damage(struct map_session_data *sd,struct block_list *src,unsigned int hp, unsigned int sp)
    {
    if (sp) clif_updatestatus(sd,SP_SP);
    if (hp) clif_updatestatus(sd,SP_HP);
    else return;
     
    if( !src || src == &sd->bl )
    return;
     
    if( pc_issit(sd) ) {
    pc_setstand(sd, true);
    skill_sit(sd,0);
    }
     
    if( sd->progressbar.npc_id )
    clif_progressbar_abort(sd);
     
    if( sd->status.pet_id > 0 && sd->pd && battle_config.pet_damage_support )
    pet_target_check(sd,src,1);
     
    if( sd->status.ele_id > 0 )
    elemental_set_target(sd,src);
    +sd->state.nowarp = gettimetick();

     

     

    pc.h

    unsigned int changemap : 1;
    unsigned int callshop : 1; // flag to indicate that a script used callshop; on a shop
    short pmap; // Previous map on Map Change
    unsigned short autoloot;
    unsigned short autolootid[AUTOLOOTITEM_SIZE]; // [Zephyrus]
    unsigned short autoloottype;
    unsigned int autolooting : 1; //performance-saver, autolooting state for @alootid

    +unsigned int nowarp;

     

    Do the same fo @go.

  10. Well, its easy, all you want to do is

     

    ACMD_FUNC(whoat) {
    	struct map_session_data *pl_sd = NULL;
    	struct s_mapiterator *iter = NULL;	
    	char player_name[NAME_LENGTH] = "";
    	int count = 0;
    	int level = 0;
    	StringBuf buf;
    	int display_type = 1;
    	int map_id = -1;
    
    	nullpo_retr(-1, sd);
    
    	char map_name[MAP_NAME_LENGTH_EXT] = "";
    		if (sscanf(message, "%15s", map_name) <= 0 || (map_id = map_mapname2mapid(map_name)) < 0)
    
    	level = pc_get_group_level(sd);
    	StringBuf_Init(&buf);
    
    	iter = mapit_getallusers();
    	for (pl_sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); pl_sd = (TBL_PC*)mapit_next(iter))	{
    		if (!(((pc_has_permission(pl_sd, PC_PERM_HIDE_SESSION) || (pl_sd->sc.option & OPTION_INVISIBLE)) && pc_get_group_level(pl_sd) > level)) && (pl_sd->state.autotrade)) { // you can look only lower or same level
    			if (stristr(pl_sd->status.name, player_name) == NULL // search with no case sensitive
    				|| (map_id >= 0 && pl_sd->bl.m != map_id))
    				continue;
    
    			if (pc_has_permission(sd, PC_PERM_WHO_DISPLAY_AID))
    				StringBuf_Printf(&buf, msg_txt(sd,912), pl_sd->status.char_id, pl_sd->status.account_id);	// "(CID:%d/AID:%d) "
    			StringBuf_Printf(&buf, msg_txt(sd,343), pl_sd->status.name); // "Name: %s "
    			if (pc_get_group_id(pl_sd) > 0) // Player title, if exists
    				StringBuf_Printf(&buf, msg_txt(sd,344), pc_group_id2name(pc_get_group_id(pl_sd))); // "(%s) "
    			StringBuf_Printf(&buf, msg_txt(sd,348), mapindex_id2name(pl_sd->mapindex), pl_sd->bl.x, pl_sd->bl.y); // "| Location: %s %d %d"
    
    
    			clif_displaymessage(fd, StringBuf_Value(&buf));
    			StringBuf_Clear(&buf);
    			count++;
    		}
    	}
    	mapit_free(iter);
    
    	if (map_id < 0) {
    		if (count == 0)
    			StringBuf_Printf(&buf, msg_txt(sd,28)); // No player found.
    		else if (count == 1)
    			StringBuf_Printf(&buf, msg_txt(sd,29)); // 1 player found.
    		else
    			StringBuf_Printf(&buf, msg_txt(sd,30), count); // %d players found.
    	}
    
    	clif_displaymessage(fd, StringBuf_Value(&buf));
    	StringBuf_Destroy(&buf);
    	return 0;
    }
    
    

    I didn't tested yet, but that is the idea.

  11. No, its a Real time shop. It opens a normal windows, but example, it is selling 1x orange potion, so i have another scripts that can add itens into that shop, so i will add a blue potion. Now it will sell 1x yellow potion and 1x blue potion. But, the people that was with the shop window open before i add the item, nothing will change. They will see the new selling item, only if they close the shop and talk with the npc again. I'm trying to find a way to do the change in real time. When i add the item to the shop, all the people with the npc open will see.

  12. Well guys, I was studying and trying to find a way (without success) to make a real time shop NPC. But what is that?

     

    The idea is simple, there are commands in the emulator to add and remove itens from an NPC Shop list. But when you do that, you will only see the list if you close the store and open again. So i was thinking: "If we could make the npc remove and add itens in real time?" Like, i call a script, and it add an item to the list of vending itens, so the players that are with the shop open, will see the item appearing on the list.

     

    I was trying to implement it, but like i said, no success! Someone knows how to do? 

     

    Thank you guys!

  13. Hi guys,

     

    I'm trying to implement a mod that i foun, it is a little old.

     

    Its a src conf that make the NPCs Sell Store, sell itens with refine and cards.

     

    But when i try run it, it show me the item normal without refine card and etc, just the item with slots, but it changes its color like when you put a card in a item without slots.

     

    This is the mod that i'm trying to add:

     

    http://pastebin.com/dH1qkgdB

  14. Hi guys,

    I really want your help.

     

    I want to creat a mod on src that allow my npc's to sell refined itens with cards.

    The actual npc's sell just the item, like, Coat [1] or Coat, and price, i want to make it sell something like +10 Coat [1] or with the card prefix if it have.

     

    It will be sold in a store window, like a vending skill from merchant.

     

    Thank you for help!

  15. File Name: Quest NPC with shop window 1.3

    File Submitter: Cold

    File Submitted: 12 Apr 2013

    File Category: Games, Events, Quests

    Content Author: I am Cold

    A very useful quest npc that open a window with a store off all your quests itens. When you select to buy onde of them, the quest info is initialized.

    The script show how many itens you have and how many you need: ex. "NAME OF THE ITEM - (30/100)" the first number is how much you have and the second how much you need.

    Its a very simple and functional system.

    Click here to download this file

    • Upvote 1
×
×
  • Create New...