Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function doUpdateCooldowns(cid)
- if not isCreature(cid) then return true end
- local a = getPlayerSlotItem(cid, 8)
- local ret = {}
- table.insert(ret, "12|,")
- if a.uid <= 0 or #getCreatureSummons(cid) <= 0 then
- for cds = 1, 12 do
- if useOTClient then table.insert(ret, "-1|0,") else table.insert(ret, "-1,") end
- end
- doPlayerSendCancel(cid, table.concat(ret))
- return true
- end
- for cds = 1, 12 do
- ----
- local summon = getCreatureSummons(cid)[1]
- if summon and getPlayerStorageValue(summon, 212123) >= 1 then
- cdzin = "cm_move"..cds
- else
- cdzin = "move"..cds
- end
- ----
- if isTransformed(summon) then --alterado v1.9
- moves = movestable[getPlayerStorageValue(summon, 1010)]
- else
- moves = movestable[getCreatureName(summon)]
- end
- local b = getNewMoveTable(moves, cds)
- if not b then
- for cds = 1, 12 do
- if useOTClient then table.insert(ret, "-1|0,") else table.insert(ret, "-1,") end --alterado v1.9
- end
- doPlayerSendCancel(cid, table.concat(ret))
- return true
- end
- ----
- if getCD(a.uid, cdzin) > 0 then
- if (useOTClient and b) then table.insert(ret, (getCD(a.uid, cdzin)).."|"..b.level..",") else table.insert(ret, (getCD(a.uid, cdzin))..",") end
- else
- if (useOTClient and b) then table.insert(ret, "0|"..b.level..",") else table.insert(ret, "0,") end
- end
- end
- doPlayerSendCancel(cid, table.concat(ret))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement