brunoshp Posted October 12, 2020 Group: Members Topic Count: 64 Topics Per Day: 0.01 Content Count: 180 Reputation: 7 Joined: 12/19/12 Last Seen: November 21, 2024 Share Posted October 12, 2020 (edited) 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 October 12, 2020 by brunoshp Quote Link to comment Share on other sites More sharing options...
0 brunoshp Posted November 23, 2020 Group: Members Topic Count: 64 Topics Per Day: 0.01 Content Count: 180 Reputation: 7 Joined: 12/19/12 Last Seen: November 21, 2024 Author Share Posted November 23, 2020 up Quote Link to comment Share on other sites More sharing options...
0 EveeX Posted November 24, 2020 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 32 Reputation: 29 Joined: 09/16/20 Last Seen: December 21, 2022 Share Posted November 24, 2020 What do you want to do exactly? Quote Link to comment Share on other sites More sharing options...
0 brunoshp Posted November 24, 2020 Group: Members Topic Count: 64 Topics Per Day: 0.01 Content Count: 180 Reputation: 7 Joined: 12/19/12 Last Seen: November 21, 2024 Author Share Posted November 24, 2020 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 . Quote Link to comment Share on other sites More sharing options...
Question
brunoshp
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 brunoshpLink to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.