Jump to content

Adel

Members
  • Posts

    566
  • Joined

  • Last visited

  • Days Won

    24

Posts posted by Adel

  1. I noticed that on certain hairstyles, when changing palettes some of them would cause this dark line to appear on the side.
    This only happens with a couple hairstyles. It doesn't seem to be coming from the sprite or the act. Does any one know what could be causing this?
    Imageimage.png?ex=663116a8&is=661ea1a8&hm=4c7d427b688a932dcc134a42585a2d123e832aedd1b279aed85073588ed58996&=

  2. I'm trying to increase the range of Arealoot.

    At default it is at 3x3 cell radius. The src code is set to read the splash level from Greed, which is currently set to lv 4 (which is 11x11 cell radius). But this part is not working.
    Here is the src code below:

    /// Request to pick up an item.
    /// 009f <id>.L (CZ_ITEM_PICKUP)
    /// 0362 <id>.L (CZ_ITEM_PICKUP2)
    /// There are various variants of this packet, some of them have padding between fields.
    void clif_parse_TakeItem(int fd, struct map_session_data *sd)
    {
    	struct flooritem_data *fitem;
    	int map_object_id,debug_i;
    	int skill_greed(struct block_list *bl, va_list ap);
    
    	map_object_id = RFIFOL(fd,packet_db[RFIFOW(fd,0)].pos[0]);
    
    	fitem = (struct flooritem_data*)map_id2bl(map_object_id);
    
    	do {
    		if (pc_isdead(sd)) {
    			clif_clearunit_area(&sd->bl, CLR_DEAD);
    			break;
    		}
    
    		if (fitem == NULL || fitem->bl.type != BL_ITEM || fitem->bl.m != sd->bl.m)
    			break;
    
    		if (pc_cant_act(sd))
    			break;
    
    		if (sd->state.arealoot == 1) {
    			//debug_i = map_foreachinrange(skill_greed,&sd->bl,3,BL_ITEM,&sd->bl);
    			debug_i = map_foreachinrange(skill_greed,&sd->bl,skill_get_splash(BS_GREED,1),BL_ITEM,&sd->bl);
    
    		//ShowDebug("debug_i=%d", debug_i);
    
    		if(debug_i == 0)
    			return;
    		} else if (!pc_takeitem(sd, fitem))
    			break;
    
    		return;
    	} while (0);
    	// Client REQUIRES a fail packet or you can no longer pick items.
    	clif_additem(sd,0,0,6);
    }

    And this is the part that is not working.

    if (sd->state.arealoot == 1) {
    			//debug_i = map_foreachinrange(skill_greed,&sd->bl,3,BL_ITEM,&sd->bl);
    			debug_i = map_foreachinrange(skill_greed,&sd->bl,skill_get_splash(BS_GREED,1),BL_ITEM,&sd->bl);

     

    Here is a preview of Greed & Arealoot in game.

    Greed (with splash lvl 4):

    greed.gif

    Arealoot:
    arealo.gif
     

  3. On 4/27/2019 at 4:13 AM, Mina-chan said:

    np! I love how the plants look much more crisp and the trees way better than in the original. And the harmony in colors looks much better now as well. That place also bring me memories from my very first day in RO ? I wish they had made this change alongside the new Prontera, but you did it way better x3

    Thank you so much for that beautiful compliment @Mina-chan?
    I'm planning on improving most of the maps slowly. ?

    • Love 1
×
×
  • Create New...