I need this script to 0.3.5 version please ; p
function onSay(cid, words, param)
local lookPos = getPlayerLookPos(cid)
local LEVEL = getConfigInfo("levelToBuyHouse")
local house = House.getHouseByPos(lookPos)
if(house == nil) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You must be looking to a house to buy one.")
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, words)
return FALSE
end
if(house:buy(cid)) then
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
else
doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
end
if(getPlayerLevel(cid) < LEVEL) then
doPlayerSendCancel(cid, "You need level "..LEVEL.." to buy a house.")
return TRUE
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, words)
return FALSE
end
It doesnt work, please seriosuly i need this script right now !!
<talkaction words="!buyhouse" filter="word-spaced" event="function" value="houseBuy"/>
I did it.. you think i am stupid?
I did it.. you think i am stupid?
Yeh, not very friendly too, stop being so bitchyI did it.. you think i am stupid?
I need this script to 0.3.5 version please ; p
Stupid enough to not search nor download crying damsson 0.3.5pl1 and take the scripts from the files there <_<
<talkaction words="!buyhouse" filter="word-spaced" event="function" value="houseBuy"/>
<talkaction words="!leavehouse" filter="word-spaced" event="function" value="houseSell"/>