Aydomir Posted July 24, 2015 Share Posted July 24, 2015 (edited) Подскажите, как вывести данные игрока, который запустил игру, например: кол-во боев, кол-во побед, кол-во кредитов и т.п.? Но при это не делая http запрос на API WG. Edited July 24, 2015 by Aydomir @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted July 24, 2015 Share Posted July 24, 2015 кол-во кредитов Это точно никак. 1 1 @ Quote Link to comment Short link Share on other sites More sharing options...
Aydomir Posted July 24, 2015 Author Share Posted July 24, 2015 Это точно никак. это не обязательно, мне бы кол-во боев и побед. @ Quote Link to comment Short link Share on other sites More sharing options...
Helkar Posted July 24, 2015 Share Posted July 24, 2015 Подскажите, как вывести данные игрока, который запустил игру, например: кол-во боев, кол-во побед, кол-во кредитов и т.п.? Но при это не делая http запрос на API WG. def print_credits(code, value): print 'credits: %s' % value import BigWorld from gui.shared import g_itemsCache player = BigWorld.player() player.stats.get('credits', print_credits) print 'battles: %s' % g_itemsCache.items.getAccountDossier().getRandomStats().getBattlesCount() print 'won: %s' % g_itemsCache.items.getAccountDossier().getRandomStats().getWinsCount() 1 @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted July 24, 2015 Share Posted July 24, 2015 Аа.. я почему-то подумал, что имеется ввиду сторонний игрок. @ Quote Link to comment Short link Share on other sites More sharing options...
Aydomir Posted July 24, 2015 Author Share Posted July 24, 2015 def print_credits(code, value): print 'credits: %s' % value import BigWorld from gui.shared import g_itemsCache player = BigWorld.player() player.stats.get('credits', print_credits) print 'battles: %s' % g_itemsCache.items.getAccountDossier().getRandomStats().getBattlesCount() print 'won: %s' % g_itemsCache.items.getAccountDossier().getRandomStats().getWinsCount() Спасибо! А как получить ID игрока? Вчера подсказали такой код, но не работает, выводит другие числа, а не мой ID. def getPlayerId(): plId = g_itemsCache.items.getAccountDossier().getPlayerDBID() if not plId: plId = BigWorld.player().id return plId Аа.. я почему-то подумал, что имеется ввиду сторонний игрок. Не, своего надо. >> вывести данные игрока, который запустил игру >> который запустил игру @ Quote Link to comment Short link Share on other sites More sharing options...
SkepticalFox Posted July 24, 2015 Share Posted July 24, 2015 (edited) А как получить ID игрока?В http://dev.modxvm.com глянь Edited July 24, 2015 by ShadowHunterRUS @ Quote Link to comment Short link Share on other sites More sharing options...
PinkElfant Posted July 24, 2015 Share Posted July 24, 2015 а как установить себе 99999999 хотяб визуально, чтоб чики тащились от моих скринов @ Quote Link to comment Short link Share on other sites More sharing options...
SkepticalFox Posted July 24, 2015 Share Posted July 24, 2015 а как установить себе 99999999ArtMoney, не, не слышал? @ Quote Link to comment Short link Share on other sites More sharing options...
PinkElfant Posted July 24, 2015 Share Posted July 24, 2015 ArtMoney, не, не слышал? да без проблем, но хочется скриптик поставить, да забыть @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted July 24, 2015 Share Posted July 24, 2015 а как установить себе 99999999 хотяб визуально, чтоб чики тащились от моих скринов http://www.koreanrandom.com/forum/topic/15280-pjorion-редактирование-компиляция-декомпиляция-обф/?p=260273 1 1 @ Quote Link to comment Short link Share on other sites More sharing options...
SkepticalFox Posted July 24, 2015 Share Posted July 24, 2015 (edited) А как получить ID игрока? В http://dev.modxvm.com глянь def getCurrentPlayerId(): # return 2178413 # DEBUG player = BigWorld.player() if hasattr(player, 'databaseID'): return player.databaseID arena = getattr(player, 'arena', None) if arena is not None: vehID = getattr(player, 'playerVehicleID', None) if vehID is not None and vehID in arena.vehicles: return arena.vehicles[vehID]['accountDBID'] return None Edited July 24, 2015 by ShadowHunterRUS @ Quote Link to comment Short link Share on other sites More sharing options...
Aydomir Posted July 24, 2015 Author Share Posted July 24, 2015 def print_credits(code, value): print 'credits: %s' % value import BigWorld from gui.shared import g_itemsCache player = BigWorld.player() player.stats.get('credits', print_credits) print 'battles: %s' % g_itemsCache.items.getAccountDossier().getRandomStats().getBattlesCount() print 'won: %s' % g_itemsCache.items.getAccountDossier().getRandomStats().getWinsCount() А где можно получить расширенный список getBattlesCount(), getWinsCount() и т.д.? @ Quote Link to comment Short link Share on other sites More sharing options...
Helkar Posted July 24, 2015 Share Posted July 24, 2015 выводит другие числа, а не мой ID с каким "ID" вы сверяетесь? @ Quote Link to comment Short link Share on other sites More sharing options...
Aydomir Posted July 24, 2015 Author Share Posted July 24, 2015 с каким "ID" вы сверяетесь? своим, у меня 31745329 @ Quote Link to comment Short link Share on other sites More sharing options...
SkepticalFox Posted July 24, 2015 Share Posted July 24, 2015 своим, у меня 31745329Загляни во вчерашнюю тему http://www.koreanrandom.com/forum/topic/25960-как-вывести-средний-дамаг-аккаунта/?p=284396 @ Quote Link to comment Short link Share on other sites More sharing options...
Aydomir Posted July 24, 2015 Author Share Posted July 24, 2015 Загляни во вчерашнюю тему http://www.koreanrandom.com/forum/topic/25960-как-вывести-средний-дамаг-аккаунта/?p=284396 Спасибо тебе большое! Все получилось! @ Quote Link to comment Short link Share on other sites More sharing options...
Helkar Posted July 24, 2015 Share Posted July 24, 2015 своим, у меня 31745329 по данному ID: BigWorld.player().databaseID как написали выше. @ Quote Link to comment Short link Share on other sites More sharing options...
Aydomir Posted July 24, 2015 Author Share Posted July 24, 2015 по данному ID: BigWorld.player().databaseID как написали выше. Да, я понял. А где можно получить расширенный список getBattlesCount(), getWinsCount() и т.д.? @ Quote Link to comment Short link Share on other sites More sharing options...
Helkar Posted July 24, 2015 Share Posted July 24, 2015 Да, я понял. А где можно получить расширенный список getBattlesCount(), getWinsCount() и т.д.? что значит расширенный? по танкам? @ Quote Link to comment Short link Share on other sites More sharing options...
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.
Note: Your post will require moderator approval before it will be visible.