Advertisement
poxipox

Untitled

Mar 25th, 2023
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. if getPlayerFromVoc(cid) == 21 then -- FromVoc from vocat xml!
  2. local playerLevel = getPlayerLevel(cid)
  3. for lp, data in ipairs(piesConfig) do
  4. print('getPlayerRebornLvl(cid): ' .. getPlayerRebornLvl(cid) .. ' | lp: ' .. lp)
  5. if getPlayerRebornLvl(cid) > 0 and lp >= 3 then
  6. if playerLevel >= data.lvl[1] and playerLevel <= data.lvl[2] then
  7. doSummonMonster(cid, data.name, true)
  8. break
  9. end
  10. elseif getPlayerRebornLvl(cid) == 0 then
  11. if playerLevel >= data.lvl[1] and playerLevel <= data.lvl[2] then
  12. doSummonMonster(cid, data.name, true)
  13. break
  14. end
  15. end
  16. end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement