LCKB
How to use 'return to hometown' button like Pet but without it? - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193)
+---- Forum: Help & Support (https://lckb.dev/forum/forumdisplay.php?fid=157)
+----- Forum: Ep4 Support (https://lckb.dev/forum/forumdisplay.php?fid=128)
+----- Thread: How to use 'return to hometown' button like Pet but without it? (/showthread.php?tid=5135)



- Andrein95 - 09-27-2025


Its possible to add a button to main menu (menù that open while pressing T), that return character in start point of map? 

I'd like to handle that but with a condition: only if is not in PVP mode.

Any hints?



thanks




- Scura - 10-20-2025


Server side you should be able to locate the current index ZONE of ch. You can just move it to the sub zone 0. Yes is possible. 

You should be able to retreive the current char zone as:

m_pChar->m_pArea->m_zone->m_index 



about the UI you can change it client side and add a button, then send a request to the server