Jump to content
  • 0

Traps traps traps :)


Question

Posted

Hello rathena. I was wondering if i can request a source edit  for traps since i've set the gvg_traps_target_all to 1. all traps now affect everyone including caster. ( i've commented out wz_quagmire, am_demonstration and gn_hellsplant to be affected by this)

 

I was wondering if anyone can provide a source edit for traps that will work like:

 

1. All traps will affect everyone except for the caster. (If possible also other snipers, hunters or rangers but if not its okay)

Behavior will be the same on any kind of map, (gvg or pvp)

 

If you're interested in helping me and have any questions just reply. thankyou so much rathena

19 answers to this question

Recommended Posts

Posted

I dont know if you mean like this; trunk/conf/battle/skill.conf

// Should traps (hunter traps + quagmire) change their target to "all" inside gvg/pvp grounds? (Note 3)
// Default on official servers: 1 (for players)
gvg_traps_target_all: 1
// Some traps settings (add as necessary):
// 1: Traps are invisible to those who come into view of it. When unset, all traps are visible at all times.
//    (Invisible traps can be revealed through Hunter's Detecting skill)
traps_setting: 0
// Remove trap type
// 0 = Aegis system : Returns 1 'Trap' item
// 1 = Athena system : Returns all items used to deploy the trap
skill_removetrap_type: 0
// Skill Trap Type (GvG)
// 0: (official) Traps in GvG only make player stop moving after its walk path is complete, and it activates other traps on the way.
// 1: Traps in GvG make player stop moving right when stepping over it.
skill_trap_type: 0
Posted

uhmm. you don't get what i say. let me explain more. I'm

already using these setting

 

// Should traps (hunter traps + quagmire) change their target to "all" inside gvg/pvp grounds? (Note 3)
// Default on official servers: 1 (for players)
gvg_traps_target_all: 1

 

if it's set to 1 it targets all including allies right? but when i cast ankle snare. it also traps me (the caster)

what i want to happen is it can trap everyone including allies except for my self (the caster)

Posted

You can change behavior of gvg_traps_target_all

skill.c find

 

			if( battle_config.vs_traps_bctall && map_flag_vs(src->m) && (src->type&battle_config.vs_traps_bctall) )
				target = BCT_ALL;
replace with
			if( battle_config.vs_traps_bctall && map_flag_vs(src->m) && (src->type&battle_config.vs_traps_bctall) )
				target = (~BCT_SELF&BCT_ALL);
Posted

EXACTLY the part im trying to edit -__- thankyou! well if i do 

target = (~BCT_SELF&BCT_ALL);

would that make it trap the caster also? or make the caster immune to his/her own traps? (i'm trying to make the caster immune to his or her own traps)

Posted

would that make it trap the caster also? or make the caster immune to his/her own traps? (i'm trying to make the caster immune to his or her own traps)

 

(~BCT_SELF&BCT_ALL);

That mean the target is everyone except caster.

Posted (edited)

oh okay. Thankyou! :)



Still no changes :( Doesnt work. 

 

(~BCT_SELF&BCT_ALL);

I tried your code sir and it does'nt work :( I also tried variations of this code just in case like (BCT_ALL && ! BCT_SELF) or BCT_PARTY|BCT_GUILD&BCT_ENEMY) and other more. its either the trap won't work or the trap works on everyone including the caster. :(



bump

Edited by ZeiyanRO
Posted
if( battle_config.vs_traps_bctall && map_flag_vs(src->m) && (src->type&battle_config.vs_traps_bctall) )
				target = (BCT_NOGUILD & BCT_ENEMY & BCT_NOPARTY);

gvg_traps_target_all: 1

 

 

then recompile

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...