Nux
Yzeria Custom War
- Joined
- Jan 2, 2009
- Messages
- 1,067
- Reaction score
- 1
PHP:
local itemID = 426 -- The ID of the item
local teleport = {x=1824, y=1723, z=6} -- Position where they get teleported to
local voc = 1
local words = "You have become a Beginner Mage!" -- What the player will say when you step in the tile
local level = 10
local outfit =
{
lookType = 132,
lookHead = 114,
lookBody = 114,
lookLegs = 114,
lookFeet = 114,
lookAddons = 0
}
function onStepIn(cid, item, position, fromPosition)
if item.itemid == itemID and getPlayerLevel(cid) >= level then
doSetCreatureOutfit(cid, outfit, -1)
doPlayerSetVocation(cid, voc)
doCreatureSay(cid, words, 18)
doTeleportThing(cid, teleport)
else
doPlayerSendCancel(cid, "Sorry, you must be atleast level 10 to become a Beginner Mage.")
doSendMagicEffect(getCreaturePosition(cid), 2)
end
end