Megu Posted June 19, 2023 Group: Members Topic Count: 32 Topics Per Day: 0.01 Content Count: 46 Reputation: 1 Joined: 02/13/12 Last Seen: Yesterday at 03:12 AM Share Posted June 19, 2023 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? Quote Link to comment Share on other sites More sharing options...
0 Tokei Posted June 19, 2023 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 695 Reputation: 721 Joined: 11/12/12 Last Seen: 9 hours ago Share Posted June 19, 2023 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. Quote Link to comment Share on other sites More sharing options...
0 Megu Posted June 19, 2023 Group: Members Topic Count: 32 Topics Per Day: 0.01 Content Count: 46 Reputation: 1 Joined: 02/13/12 Last Seen: Yesterday at 03:12 AM Author Share Posted June 19, 2023 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 Quote Link to comment Share on other sites More sharing options...
0 Winterfox Posted June 20, 2023 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 245 Reputation: 93 Joined: 06/30/18 Last Seen: November 27, 2024 Share Posted June 20, 2023 (edited) 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 June 20, 2023 by Winterfox Quote Link to comment Share on other sites More sharing options...
Question
Megu
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.