Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local spells = {
- ["whirlwind"] = {icone_on = 2386, icone_off = 2387, cooldown = 20, level = 30},
- ["Rock Tomb"] = {icone_on = 2388, icone_off = 2389, cooldown = 60, level = 55},
- }
- function getPokemonSpells(pokename)
- local ret = {}
- local poke_spells = {
- ["Rat"] = {"whirlwind", "Rock Tomb"},
- }
- if not poke_spells[pokename] then
- print("ERROR: LIB -> OROCHIELF [POKEMON NOT EXIST]")
- return true
- end
- local spells = poke_spells[pokename]
- for moves = 1, #spells do
- local add = spells[moves]
- table.insert(ret, add)
- end
- return ret
- end
- function loadCdbar(cid)
- local level = 56
- local msg = "@$OpenAttackWindow"
- local value = 0
- local a = getPokemonSpells("Rat")
- if not a then
- return true
- end
- for b = 1, #a do
- value = value + 1
- local magic = "m".. value
- local c = a[b]
- local d = spells[c]
- if d.level >= level then
- msg = msg .. "@" .. d.icone_on .. "@" .. d.icone_off .. "@" .. d.cooldown .. "@" .. magic
- end
- end
- doPlayerSendTextMessage(cid, 25, msg)
- end
Advertisement
Add Comment
Please, Sign In to add comment