Aydomir 1 Posted July 24, 2015 (edited) Подскажите, как вывести данные игрока, который запустил игру, например: кол-во боев, кол-во побед, кол-во кредитов и т.п.? Но при это не делая http запрос на API WG. Edited July 24, 2015 by Aydomir Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #284384 Posted July 24, 2015 кол-во кредитов Это точно никак. 1 1 Quote Share this post Link to post Short link Share on other sites
Aydomir 1 #284386 Posted July 24, 2015 Это точно никак. это не обязательно, мне бы кол-во боев и побед. Quote Share this post Link to post Short link Share on other sites
Helkar 385 #284400 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 Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #284402 Posted July 24, 2015 Аа.. я почему-то подумал, что имеется ввиду сторонний игрок. Quote Share this post Link to post Short link Share on other sites
Aydomir 1 #284404 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 Share this post Link to post Short link Share on other sites
SkepticalFox 1,445 #284405 Posted July 24, 2015 (edited) А как получить ID игрока?В http://dev.modxvm.com глянь Edited July 24, 2015 by ShadowHunterRUS Quote Share this post Link to post Short link Share on other sites
PinkElfant 25 #284406 Posted July 24, 2015 а как установить себе 99999999 хотяб визуально, чтоб чики тащились от моих скринов Quote Share this post Link to post Short link Share on other sites
SkepticalFox 1,445 #284407 Posted July 24, 2015 а как установить себе 99999999ArtMoney, не, не слышал? Quote Share this post Link to post Short link Share on other sites
PinkElfant 25 #284408 Posted July 24, 2015 ArtMoney, не, не слышал? да без проблем, но хочется скриптик поставить, да забыть Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #284409 Posted July 24, 2015 а как установить себе 99999999 хотяб визуально, чтоб чики тащились от моих скринов http://www.koreanrandom.com/forum/topic/15280-pjorion-редактирование-компиляция-декомпиляция-обф/?p=260273 1 1 Quote Share this post Link to post Short link Share on other sites
SkepticalFox 1,445 #284411 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 Share this post Link to post Short link Share on other sites
Aydomir 1 #284412 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 Share this post Link to post Short link Share on other sites
Helkar 385 #284413 Posted July 24, 2015 выводит другие числа, а не мой ID с каким "ID" вы сверяетесь? Quote Share this post Link to post Short link Share on other sites
Aydomir 1 #284416 Posted July 24, 2015 с каким "ID" вы сверяетесь? своим, у меня 31745329 Quote Share this post Link to post Short link Share on other sites
SkepticalFox 1,445 #284417 Posted July 24, 2015 своим, у меня 31745329Загляни во вчерашнюю тему http://www.koreanrandom.com/forum/topic/25960-как-вывести-средний-дамаг-аккаунта/?p=284396 Quote Share this post Link to post Short link Share on other sites
Aydomir 1 #284422 Posted July 24, 2015 Загляни во вчерашнюю тему http://www.koreanrandom.com/forum/topic/25960-как-вывести-средний-дамаг-аккаунта/?p=284396 Спасибо тебе большое! Все получилось! Quote Share this post Link to post Short link Share on other sites
Helkar 385 #284427 Posted July 24, 2015 своим, у меня 31745329 по данному ID: BigWorld.player().databaseID как написали выше. Quote Share this post Link to post Short link Share on other sites
Aydomir 1 #284433 Posted July 24, 2015 по данному ID: BigWorld.player().databaseID как написали выше. Да, я понял. А где можно получить расширенный список getBattlesCount(), getWinsCount() и т.д.? Quote Share this post Link to post Short link Share on other sites
Helkar 385 #284435 Posted July 24, 2015 Да, я понял. А где можно получить расширенный список getBattlesCount(), getWinsCount() и т.д.? что значит расширенный? по танкам? Quote Share this post Link to post Short link Share on other sites