Jump to content
  • 0

Sharp on Alies


brunoshp

Question


  • Group:  Members
  • Topic Count:  64
  • Topics Per Day:  0.02
  • Content Count:  180
  • Reputation:   7
  • Joined:  12/19/12
  • Last Seen:  

Hello!

I'm trying to get Shar to take allies, I did it! but I have a problem, on GVG maps I hit my ally from the same Guild sometimes yes sometimes no!

 

  - Id: 382
    Name: SN_SHARPSHOOTING
    Description: Focused Arrow Strike
    MaxLevel: 5
    Type: Weapon
    TargetType: Attack
    DamageFlags:
      Critical: true
    Flags:
      GuildOnly: true
      PartyOnly: true

I believe it is the cursor attack!

 

void clif_map_property(struct block_list *bl, enum map_property property, enum send_target t)
{
#if PACKETVER >= 20121010
	short cmd = 0x99b;
	unsigned char buf[8];
#else
	short cmd = 0x199;
	unsigned char buf[4];
#endif
	
	WBUFW(buf,0)=cmd;
	WBUFW(buf,2)=property;

#if PACKETVER >= 20121010
	struct map_data *mapdata = map_getmapdata(bl->m);

	WBUFL(buf, 4) = ((mapdata->flag[MF_PVP] ? 1 : 0 || (bl->type == BL_PC && ((TBL_PC*)bl)->duel_group > 0)) << 0) | // PARTY - Show attack cursor on non-party members (PvP)
		((mapdata->flag[MF_BATTLEGROUND] || mapdata_flag_gvg2(mapdata) ? 1 : 0) << 1) |// GUILD - Show attack cursor on non-guild members (GvG)
		((mapdata->flag[MF_BATTLEGROUND] || mapdata_flag_gvg2(mapdata) ? 1 : 0) << 2) |// SIEGE - Show emblem over characters heads when in GvG (WoE castle)
		((mapdata->flag[MF_NOMINEEFFECT] || !mapdata_flag_gvg2(mapdata) ? 0 : 1) << 3) | // USE_SIMPLE_EFFECT - Automatically enable /mineffect
		((mapdata->flag[MF_NOLOCKON] || mapdata_flag_vs(mapdata) ? 1 : 0) << 4) | // DISABLE_LOCKON - Only allow attacks on other players with shift key or /ns active
		((mapdata->flag[MF_PVP] ? 1 : 0) << 5) | // COUNT_PK - Show the PvP counter
		((mapdata->flag[MF_PARTYLOCK] ? 1 : 0) << 6) | // NO_PARTY_FORMATION - Prevents party creation/modification (Might be used for instance dungeons)
		((mapdata->flag[MF_BATTLEGROUND] ? 1 : 0) << 7) | // BATTLEFIELD - Unknown (Does something for battlegrounds areas)
		((mapdata->flag[MF_NOCOSTUME] ? 1 : 0) << 8) | // DISABLE_COSTUMEITEM - Disable costume sprites
		((mapdata->flag[MF_NOUSECART] ? 0 : 1) << 9) | // USECART - Allow opening cart inventory (Well force it to always allow it)
		((mapdata->flag[MF_NOSUNMOONSTARMIRACLE] ? 0 : 1) << 10); // SUNMOONSTAR_MIRACLE - Blocks Star Gladiator's Miracle from activating
		//(1<<11); // Unused bits. 1 - 10 is 0x1 length and 11 is 0x15 length. May be used for future settings.
#endif
	
	clif_send(buf,packet_len(cmd),bl,t);
}

can anybody help me?

Edited by brunoshp
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  64
  • Topics Per Day:  0.02
  • Content Count:  180
  • Reputation:   7
  • Joined:  12/19/12
  • Last Seen:  

up

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  32
  • Reputation:   29
  • Joined:  09/16/20
  • Last Seen:  

What do you want to do exactly?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  64
  • Topics Per Day:  0.02
  • Content Count:  180
  • Reputation:   7
  • Joined:  12/19/12
  • Last Seen:  

7 hours ago, EveeX said:

What do you want to do exactly?

I made this ability to hit and damage allies, but on GVG maps it doesn't work, I did a test and put the mouse attack mode on GVG maps, and it worked,

 but by default all allies have this mode activated.

the essential would be to enable /ns or when someone uses this skill the mouse goes into attack mode .

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...