Ceasar
aka nub
- Joined
- May 29, 2010
- Messages
- 35
- Reaction score
- 26
PHP:
local t = {
[11193] = {outfit='mutated bat', text='Fly, bat!', dtext='Go down, bat!'}
}
local thisCondition = createConditionObject(CONDITION_OUTFIT)
setConditionParam(thisCondition, CONDITION_PARAM_TICKS, -1)
addOutfitCondition(thisCondition, {lookType = 307, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})
function onUse(cid, item, fromPosition, itemEx, toPosition)
local v, r, s = getCreaturePosition(cid), t[item.itemid], 11190
local pos = {x = v.x, y = v.y, z = 6}
local posd = {x = v.x, y = v.y, z = 7}
if r then
if v.z == 7 then
if getTileItemById(pos, 460).uid > 0 then
if doTeleportThing(cid, pos, false) then
doSendMagicEffect(pos, 10)
doCreatureSay(cid, r.text, 19)
return doAddCondition(cid, thisCondition)
else
return doPlayerSendCancel(cid, 'You can\'t fly here.')
end
else
return doPlayerSendCancel(cid, 'You can\'t fly here.')
end
elseif v.z == 6 then
if doTeleportThing(cid, posd, false) then
doSendMagicEffect(posd, 10)
doCreatureSay(cid, r.dtext, 19)
return doRemoveCondition(cid, CONDITION_OUTFIT)
else
return doPlayerSendCancel(cid, 'You can\'t land here.')
end
else
return doPlayerSendCancel(cid, 'You can\'t fly here.')
end
else
return doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE, 'There has been some error, try contacting a staff member.')
end
end
And:
Code:
14:59 There has been some error, try contacting a staff member.
14:59 There has been some error, try contacting a staff member.
I have mount system :X?