function onStepIn(cid, item, pos, fromPos) if isPlayer(cid) then local p = not hasCondition(cid, CONDITION_GAMEMASTER, GAMEMASTER_INVISIBLE) if p then doSendMagicEffect(pos, 10) end if canPlayerWearOutfitId(cid, 23, 0) then doTeleportThing(cid, {x=563, y=1641, z=6}) if p then doSendMagicEffect({x=563, y=1641, z=6}, 10) end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Welcome City Royale.') else doTeleportThing(cid, {x=801, y=1116, z=5}) if p then doSendMagicEffect({x=801, y=1116, z=5}, 10) end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Sorry, you haven\'t done the Royality quest.') end end end function onAddItem(moveitem, tileitem, pos, cid) if not getItemInfo(moveitem.itemid).movable and hasItemProperty(moveitem.uid, CONST_PROP_BLOCKSOLID) then doRemoveItem(moveitem.uid) else doTeleportThing(moveitem.uid, {x=801, y=1116, z=5}) doSendMagicEffect({x=801, y=1116, z=5}, 14) end end