Seryov 17 Posted November 15, 2016 Share Posted November 15, 2016 Hi Guys, Someone can help me how i can get my offline shop position X, Y coordinates using python or vid or other thing.... Thank you guys. Link to comment Share on other sites More sharing options...
meneleos 307 Posted November 15, 2016 Share Posted November 15, 2016 add to cmd_general.cpp ACMD(do_myshop_xyz) { LPCHARACTER npc = CHARACTER_MANAGER::instance().Find(COfflineShopManager::instance().FindMyOfflineShop(ch->GetPlayerID())); if (npc) { if (npc->GetOfflineShopChannel() == g_bChannel) { long x = npc->GetX(); long y = npc->GetY(); ch->ChatPacket(5, "koordinat %ld %ld", x, y); } } } and game.py add to commandlist "koordinat" : self.koordinat, def koordinat(self, x, y): chat.AppendChat(1, "%d %d" % (x,y)) Link to comment Share on other sites More sharing options...
alondark 59 Posted November 15, 2016 Share Posted November 15, 2016 1 hour ago, meneleos said: add to cmd_general.cpp ACMD(do_myshop_xyz) { LPCHARACTER npc = CHARACTER_MANAGER::instance().Find(COfflineShopManager::instance().FindMyOfflineShop(ch->GetPlayerID())); if (npc) { if (npc->GetOfflineShopChannel() == g_bChannel) { long x = npc->GetX(); long y = npc->GetY(); ch->ChatPacket(5, "koordinat %ld %ld", x, y); } } } and game.py add to commandlist "koordinat" : self.koordinat, def koordinat(self, x, y): chat.AppendChat(1, "%d %d" % (x,y)) are you Turk ? what is koordinat Link to comment Share on other sites More sharing options...
meneleos 307 Posted November 16, 2016 Share Posted November 16, 2016 On 15.11.2016 at 9:44 PM, alondark said: are you Turk ? what is koordinat yes 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