Jump to content
  • 0

Traps traps traps :)


Zeiyan

Question


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

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

Link to comment
Share on other sites

19 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  3
  • Reputation:   0
  • Joined:  12/20/15
  • Last Seen:  

On 6/15/2013 at 5:29 PM, KoolKat29 said:

If you want including your guild and party to be affected by your trap. Change bct_noparty and bct_noguild to bct_party and bct_guild

Work Sir?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

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)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

up



bump :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  143
  • Reputation:   30
  • Joined:  12/23/11
  • Last Seen:  

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);
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

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)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  143
  • Reputation:   30
  • Joined:  12/23/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

bump again



help!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

bump it out!



bumping

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  815
  • Reputation:   86
  • Joined:  10/26/12
  • Last Seen:  

http://trac.rathena.org/changeset/17223/rathena that source code works......if yo uare using lower rev. change skill_id to skill_num

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

the one jarek said? :| im actually using the latest rev

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  815
  • Reputation:   86
  • Joined:  10/26/12
  • Last Seen:  

Then try changing gvg_traps_target_all: 1 into gvg_traps_target_all: 2

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

yes sir i did still not working. traps only enemies not party/guildmembers

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

bumping



hello bumping!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  90
  • Reputation:   5
  • Joined:  06/17/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

i will try this

Edited by ZeiyanRO
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  90
  • Reputation:   5
  • Joined:  06/17/12
  • Last Seen:  

If you want including your guild and party to be affected by your trap. Change bct_noparty and bct_noguild to bct_party and bct_guild

Edited by KoolKat29
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...