Jump to content
  • 0

Land Protector and Trap Sniper


Megu

Question


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  46
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

Anyone know how to config the TRAP and LP when Character die the LP or the Trap will gone or when the caster out of map?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  662
  • Reputation:   671
  • Joined:  11/12/12
  • Last Seen:  

Well, ground units (Land Protector and traps) do disappear by themselves when you change map. That is the default behavior and it's handled by this code in pc_setpos:

		if (battle_config.clear_unit_onwarp&BL_PC)
			skill_clear_unitgroup(&sd->bl);

You can copy this code in pc_dead if you want to do make ground units disappear on player death as well.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  46
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

6 hours ago, Tokei said:

Well, ground units (Land Protector and traps) do disappear by themselves when you change map. That is the default behavior and it's handled by this code in pc_setpos:

		if (battle_config.clear_unit_onwarp&BL_PC)
			skill_clear_unitgroup(&sd->bl);

You can copy this code in pc_dead if you want to do make ground units disappear on player death as well.

Thank you for this buy i don't see any pc_setpo: file on the src 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  232
  • Reputation:   86
  • Joined:  06/30/18
  • Last Seen:  

Hello,

that is because pc_setpos isn't a file but a function in src/map/pc.cpp.
It is the point where the interactions of a player character with the game world (maps) are managed.

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