Rinox2007
Kicked by Clamp
offline
Опыт:
16
Активность:
|
Dota + bot
Наткнулся в доте на такой код:
Код:
loop
exitwhen i>5
set p=Sentinels[i]
set id=I2S(GetPlayerId(p))
call StoreInteger(MN,id,"1",(I[GetPlayerId((p))]))
call StoreInteger(MN,id,"2",(O[GetPlayerId((p))]))
call StoreInteger(MN,id,"3",(A[GetPlayerId((p))]))
call StoreInteger(MN,id,"4",(B[GetPlayerId((p))]))
call StoreInteger(MN,id,"5",(D[GetPlayerId((p))]))
call StoreInteger(MN,id,"6",(GetPlayerState((p),PLAYER_STATE_RESOURCE_GOLD)))
call StoreInteger(MN,id,"7",(LoadInteger(HY,(400+GetPlayerId((p))),(79))))
call StoreInteger(MN,id,"8_0",(GetItemTypeId(UnitItemInSlot(udg_Hero[GetPlayerId((p))],(0)))))
call StoreInteger(MN,id,"8_1",(GetItemTypeId(UnitItemInSlot(udg_Hero[GetPlayerId((p))],(1)))))
call StoreInteger(MN,id,"8_2",(GetItemTypeId(UnitItemInSlot(udg_Hero[GetPlayerId((p))],(2)))))
call StoreInteger(MN,id,"8_3",(GetItemTypeId(UnitItemInSlot(udg_Hero[GetPlayerId((p))],(3)))))
call StoreInteger(MN,id,"8_4",(GetItemTypeId(UnitItemInSlot(udg_Hero[GetPlayerId((p))],(4)))))
call StoreInteger(MN,id,"8_5",(GetItemTypeId(UnitItemInSlot(udg_Hero[GetPlayerId((p))],(5)))))
call StoreInteger(MN,id,"9",(GetUnitTypeId(udg_Hero[GetPlayerId((p))])))
call StoreInteger(MN,id,"id",i)
set p=Scourges[i]
set id=I2S(GetPlayerId(p))
call StoreInteger(MN,id,"1",(I[GetPlayerId((p))]))
call StoreInteger(MN,id,"2",(O[GetPlayerId((p))]))
call StoreInteger(MN,id,"3",(A[GetPlayerId((p))]))
call StoreInteger(MN,id,"4",(B[GetPlayerId((p))]))
call StoreInteger(MN,id,"5",(D[GetPlayerId((p))]))
call StoreInteger(MN,id,"6",(GetPlayerState((p),PLAYER_STATE_RESOURCE_GOLD)))
call StoreInteger(MN,id,"7",(LoadInteger(HY,(400+GetPlayerId((p))),(79))))
call StoreInteger(MN,id,"8_0",(GetItemTypeId(UnitItemInSlot(udg_Hero[GetPlayerId((p))],(0)))))
call StoreInteger(MN,id,"8_1",(GetItemTypeId(UnitItemInSlot(udg_Hero[GetPlayerId((p))],(1)))))
call StoreInteger(MN,id,"8_2",(GetItemTypeId(UnitItemInSlot(udg_Hero[GetPlayerId((p))],(2)))))
call StoreInteger(MN,id,"8_3",(GetItemTypeId(UnitItemInSlot(udg_Hero[GetPlayerId((p))],(3)))))
call StoreInteger(MN,id,"8_4",(GetItemTypeId(UnitItemInSlot(udg_Hero[GetPlayerId((p))],(4)))))
call StoreInteger(MN,id,"8_5",(GetItemTypeId(UnitItemInSlot(udg_Hero[GetPlayerId((p))],(5)))))
call StoreInteger(MN,id,"9",(GetUnitTypeId(udg_Hero[GetPlayerId((p))])))
call StoreInteger(MN,id,"id",i+5)
if GetLocalPlayer()==XO then
call SyncStoredInteger(MN,I2S(GetPlayerId(Sentinels[i])),"1")
call SyncStoredInteger(MN,I2S(GetPlayerId(Sentinels[i])),"2")
call SyncStoredInteger(MN,I2S(GetPlayerId(Sentinels[i])),"3")
call SyncStoredInteger(MN,I2S(GetPlayerId(Sentinels[i])),"4")
call SyncStoredInteger(MN,I2S(GetPlayerId(Sentinels[i])),"5")
call SyncStoredInteger(MN,I2S(GetPlayerId(Sentinels[i])),"6")
call SyncStoredInteger(MN,I2S(GetPlayerId(Sentinels[i])),"7")
call SyncStoredInteger(MN,I2S(GetPlayerId(Sentinels[i])),"8_0")
call SyncStoredInteger(MN,I2S(GetPlayerId(Sentinels[i])),"8_1")
call SyncStoredInteger(MN,I2S(GetPlayerId(Sentinels[i])),"8_2")
call SyncStoredInteger(MN,I2S(GetPlayerId(Sentinels[i])),"8_3")
call SyncStoredInteger(MN,I2S(GetPlayerId(Sentinels[i])),"8_4")
call SyncStoredInteger(MN,I2S(GetPlayerId(Sentinels[i])),"8_5")
call SyncStoredInteger(MN,I2S(GetPlayerId(Sentinels[i])),"9")
call SyncStoredInteger(MN,I2S(GetPlayerId(Sentinels[i])),"id")
call SyncStoredInteger(MN,I2S(GetPlayerId(Scourges[i])),"1")
call SyncStoredInteger(MN,I2S(GetPlayerId(Scourges[i])),"2")
call SyncStoredInteger(MN,I2S(GetPlayerId(Scourges[i])),"3")
call SyncStoredInteger(MN,I2S(GetPlayerId(Scourges[i])),"4")
call SyncStoredInteger(MN,I2S(GetPlayerId(Scourges[i])),"5")
call SyncStoredInteger(MN,I2S(GetPlayerId(Scourges[i])),"6")
call SyncStoredInteger(MN,I2S(GetPlayerId(Scourges[i])),"7")
call SyncStoredInteger(MN,I2S(GetPlayerId(Scourges[i])),"8_0")
call SyncStoredInteger(MN,I2S(GetPlayerId(Scourges[i])),"8_1")
call SyncStoredInteger(MN,I2S(GetPlayerId(Scourges[i])),"8_2")
call SyncStoredInteger(MN,I2S(GetPlayerId(Scourges[i])),"8_3")
call SyncStoredInteger(MN,I2S(GetPlayerId(Scourges[i])),"8_4")
call SyncStoredInteger(MN,I2S(GetPlayerId(Scourges[i])),"8_5")
call SyncStoredInteger(MN,I2S(GetPlayerId(Scourges[i])),"9")
call SyncStoredInteger(MN,I2S(GetPlayerId(Scourges[i])),"id")
endif
set i=i+1
endloop
if Z97==false then
call StoreInteger(MN,"Global","Winner",ZD7)
call StoreInteger(MN,"Global","m",Minutes)
call StoreInteger(MN,"Global","s",Seconds)
if GetLocalPlayer()==XO then
call SyncStoredInteger(MN,"Global","Winner")
call SyncStoredInteger(MN,"Global","m")
call SyncStoredInteger(MN,"Global","s")
endif
endif
Как я понял это отсылка боту статистики о килах смертей и тд.
Вопрос: можно ли как нибудь без изменения кода в карте, на локальном компьютере вызывать
Код:
call SyncStoredInteger(MN,"Global","Winner")
call SyncStoredInteger(MN,"Global","m")
call SyncStoredInteger(MN,"Global","s")
|