bumxd 16 Posted February 28, 2016 Share Posted February 28, 2016 how can block mount on guilde_war map? if (m_pkOwner->IsHorseRiding()) m_pkOwner->StopRiding(); maybe so? but where correct add it code? Link to comment Share on other sites More sharing options...
ds_aim 241 Posted February 28, 2016 Share Posted February 28, 2016 How about if (ch->GetMapIndex == number ) { if (ch->IsHorseRiding()) { ch->StopRiding(); return; } } Link to comment Share on other sites More sharing options...
bumxd 16 Posted February 28, 2016 Author Share Posted February 28, 2016 27 minutes ago, ds_aim said: How about if (ch->GetMapIndex == number ) { if (ch->IsHorseRiding()) { ch->StopRiding(); return; } } void CPetActor::Unmount() { if (0 == m_pkOwner) return; if (ch->GetMapIndex == number ) { if (m_pkOwner->IsHorseRiding()) m_pkOwner->StopRiding(); } } so? Link to comment Share on other sites More sharing options...
ds_aim 241 Posted February 28, 2016 Share Posted February 28, 2016 questlua_pc.cpp -> Mount / unmount function questlua_horse -> ride function And use return 0 in questlua Link to comment Share on other sites More sharing options...
bumxd 16 Posted February 28, 2016 Author Share Posted February 28, 2016 22 minutes ago, ds_aim said: questlua_pc.cpp -> Mount / unmount function questlua_horse -> ride function And use return 0 in questlua but without add new function cant? or with some quest block mount on map? Link to comment Share on other sites More sharing options...
bumxd 16 Posted March 1, 2016 Author Share Posted March 1, 2016 up Link to comment Share on other sites More sharing options...
bumxd 16 Posted March 4, 2016 Author Share Posted March 4, 2016 up Link to comment Share on other sites More sharing options...
bumxd 16 Posted March 6, 2016 Author Share Posted March 6, 2016 anybody? Link to comment Share on other sites More sharing options...
Aerrow 41 Posted March 6, 2016 Share Posted March 6, 2016 You can block in the mount quest... Link to comment Share on other sites More sharing options...
bumxd 16 Posted March 8, 2016 Author Share Posted March 8, 2016 On 06.03.2016 at 1:21 AM, Aerrow said: You can block in the mount quest... can give ex quest? how block mount with quest on map guilde_war Link to comment Share on other sites More sharing options...
bumxd 16 Posted March 9, 2016 Author Share Posted March 9, 2016 up Link to comment Share on other sites More sharing options...
VegaS 1087 Posted March 9, 2016 Share Posted March 9, 2016 (edited) local map_index = {110,111} if tab_(map_index, pc.get_map_index()) then syschat("<Sistem Mount> You can not do this in this map!") return end questlib.lua function tab_(self, fuckoff) for i = 1, table.getn(self) do if self==fuckoff then return true end end return false end questfunction: tab_ Example : Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now