look i have thrones good
and now weak seals
look
plz this seals create compatible to thrones like rl tibia and no first second etc..
rep++
Code:
local t = {
[56486] = {'Verminor', CONST_ME_POISONAREA, 3, 19551},
[56487] = {'Infernatil', CONST_ME_HITBYFIRE, 4, 19552},
[56488] = {'Tafariel', CONST_ME_POFF, 4, 19553},
[56489] = {'Apocalypse', CONST_ME_EXPLOSIONAREA, 3, 19554},
[56410] = {'Pumin', CONST_ME_YELLOW_RINGS, 4, 19555},
[56411] = {'Bazir', CONST_ME_ENERGYHIT, 4, 19556},
[56412] = {'Ashfalor', CONST_ME_MORTAREA, 5, 19557}
}
function onStepIn(cid, item, position, fromPosition)
local v = t[item.actionid]
if v and isPlayer(cid) then
if getPlayerStorageValue(cid, v[4]) == -1 then
setPlayerStorageValue(cid, v[4], 1)
doSendMagicEffect(position, v[2])
doCreatureSay(cid, 'You have touched '..v[1]..'\'s throne and absorbed some of his spirit.', TALKTYPE_ORANGE_1)
else
local pos = position
if item.itemid == 5915 then
pos.y = pos.y + v[3]
elseif item.itemid == 5916 then
pos.x = pos.x + v[3]
end
doTeleportThing(cid, pos)
doSendMagicEffect(position, CONST_ME_MORTAREA)
doCreatureSay(cid, 'Begone!', TALKTYPE_ORANGE_1)
end
end
end
and now weak seals
look
Code:
local CONFIG = {
[56480]={storage = 19551, seal = "first"},
[56481]={storage = 19552, seal = "second"},
[56482]={storage = 19553, seal = "third"},
[56483]={storage = 19554, seal = "fourth"},
[56484]={storage = 19555, seal = "fifth"},
[56485]={storage = 19556, seal = "sixth"},
[56479]={storage = 19557, seal = "seventh"}
}
function onStepIn(cid, item, position, fromPosition)
if getPlayerStorageValue(cid, CONFIG[item.actionid].storage) == -1 then
doPlayerSendTextMessage(cid, TALKTYPE_BROADCAST, "You did not completed the " .. CONFIG[item.actionid].seal .. " seal")
doTeleportThing(cid, fromPosition)
end
return TRUE
end
rep++