Nux
Yzeria Custom War
- Joined
- Jan 2, 2009
- Messages
- 1,067
- Reaction score
- 1
PHP:
local text2 = "You have now become a Beginner Mage!"
local teleport = {x=1824, y=1723, z=6}
local voc = 1
local level = 10
local outfit =
{
lookType = 267,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0
}
function onStepIn(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 3322 and getPlayerLevel(cid) >= level then
doPlayerSetVocation(cid, voc)
doTeleportThing(cid, teleport)
doSetCreatureOutfit(cid, outfit, -1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, text2)
else
doPlayerSendCancel(cid, "Sorry, you must be atleast level 10 to become a Beginner Mage.")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
end
return TRUE
end
Well that script works well.. but there is a problem with it.. when i get the outfit and when i die i get my old outfit back that i used to have before i stepped on that spot.. so i want when i step on that spot i want the outfit to be for ever.. if you understand me..