vakacjus
Lua & C++ Study.
- Joined
- Oct 23, 2008
- Messages
- 255
- Solutions
- 1
- Reaction score
- 26
--[[ Got it, sorry ]]-- http://otland.net/f132/teleport-your-house-77750/
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
hpos = getHouseEntry(getHouseByPlayerGUID(getPlayerGUID(cid)))
return hasCondition(cid, CONDITION_INFIGHT) and
doPlayerSendCancel(cid, "Sorry, you are in a fight.") or
getPlayerLevel(cid) < getConfigInfo("levelToBuyHouse") and
doPlayerSendCancel(cid, "Sorry, you need level " .. levelToBuyHouse .. ".") or
not getHouseByPlayerGUID(getPlayerGUID(cid)) and
doPlayerSendCancel(cid, "Sorry, but you do not own a house.") or
doTeleportThing(cid, hpos) and
doPlayerRemoveItem(cid,6119,1) and doSendMagicEffect(hpos,66) and doSendAnimatedText(hpos,'Wiee!',16)
end
Last edited: