function onStepIn(cid, item, frompos, itemEx, topos)
local temple = { x = XXX, y = XXX, z = X } ---- TEMPLE POS
doPlayerSendTextMessage(cid,21,"Welcome back! You got full health and mana now!")
doCreatureAddMana(cid,XXX) ---- MANA ADD
doCreatureAddHealth(cid,XXX) ---- HEALTH ADD
return TRUE
end
local temple = {x=1,y=1,z=7}
function onStepIn()
local temple = { x = XXX, y = XXX, z = X } ---- TEMPLE POS
function onStepIn(cid, item, frompos, itemEx, topos)
doTeleportThing(cid,temple)
doPlayerSendTextMessage(cid,27,'You have been teleported to temple.')
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
doPlayerSendTextMessage(cid,21,"Aaaah...")
if item.itemid == XXX then
getCreatureMaxHealth(cid)
getCreatureMaxMana(cid)
end
return TRUE
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == XXX then
doPlayerSendTextMessage(cid,21,"Aaaah...")
getCreatureMaxHealth(cid)
getCreatureMaxMana(cid)
end
return TRUE
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == XXX then
doPlayerSendTextMessage(cid,21,"You are a ghost now.")
getPlayerGhostAccess(cid)
end
return TRUE
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 1378 then
doPlayerSendTextMessage(cid,21,"You gained full HP and MP!")
getCreatureMaxHealth(cid)
getCreatureMaxMana(cid)
end
return TRUE
end
New script release:Hope this works.Logout message:
Code:function onLogout(cid) doPlayerSendTextMessage(cid,21,"Good bye!") doSendMagicEffect(pos, type[, player]) end return TRUE end
Regards,
Zysen