Hi, I need a simple script that teleports players to the temple, gives them a certain storage value, and sends them a message once they reach level 600. My old script isn't working (I have no idea why).
Old script
And I've done everything required for a creaturescript to work, but it's not working (no error description). All the script above does is add the storage value. It doesn't send the message nor teleport the player to the temple.
I appreciate any help greatly.
Red
Old script
Code:
function onAdvance(cid, skill, oldLevel, newLevel)
if newLevel <= oldLevel then
return true
end
if skill == SKILL__LEVEL then
if getCreatureStorage(cid, 21041) == EMPTY_STORAGE and newLevel == 600 then
doTeleportThing(cid, Position(780,704,7))
setPlayerStorageValue(cid,21041,1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have grown up.')
end
end
return true
end
And I've done everything required for a creaturescript to work, but it's not working (no error description). All the script above does is add the storage value. It doesn't send the message nor teleport the player to the temple.
I appreciate any help greatly.
Red