4220niller
XHTML / CSS Coder
This script teleports you to a given location at level 8, where you can pick your vocation, if you dont have a vocation ofcourse (vocation chooser/oracle is not included)
data/creaturescripts/scripts/advances/level.lua
This script shows a magic effect when you advance in magic level:
data/creaturescripts/scripts/advances/maglevel.lua
The link to my onAdvance system is: http://otland.net/showthread.php?t=1607
data/creaturescripts/scripts/advances/level.lua
Code:
--onAdvance system by 4220niller
function onAdvance(cid, oldlevel, newlevel)
local oracleCords = {x=95, y=117, z=7} --This is the position that the player is teleported at level 8, in this room there needs to be a way of choosing vocation
if newlevel == 8 and getPlayerVocation(cid) == 0 then
doSendMagicEffect(getPlayerPosition(cid),10)
doTeleportThing(cid,oracleCords,0)
doSendMagicEffect(oracleCords,10)
doPlayerSendTextMessage(cid, 22, "Congratulations! You can now pick a vocation!")
end
end
This script shows a magic effect when you advance in magic level:
data/creaturescripts/scripts/advances/maglevel.lua
Code:
--onAdvance system by 4220niller
function onAdvance(cid, oldlevel, newlevel)
local voc = getPlayerVocation(cid)
local effect = math.random(CONST_ME_FIREWORK_YELLOW,CONST_ME_FIREWORK_BLUE)
doSendMagicEffect(getPlayerPosition(cid),effect)
end
The link to my onAdvance system is: http://otland.net/showthread.php?t=1607
Last edited: