Hello
This may be useful for some OTs, When u say !stuck it takes 1 cc and gives u a rope and a shovel
Tested on 0.4 and 0.3.6pl1
Make a file in talkactions/scripts/ Stuck.lua
And dont forget to add this in talkactions.xml
This may be useful for some OTs, When u say !stuck it takes 1 cc and gives u a rope and a shovel
Tested on 0.4 and 0.3.6pl1
Make a file in talkactions/scripts/ Stuck.lua
Code:
function onSay(cid, words, param)
if doPlayerRemoveMoney(cid, 10000) then
doPlayerAddItem(cid, 2554)
doPlayerAddItem(cid, 2120)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_HOLYDAMAGE)
doCreatureSay(cid,"WOOOHO, IM FREE!",TALKTYPE_ORANGE_1)
else
doPlayerSendCancel(cid, "Sorry, but you dont have enough money!")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
end
return TRUE
end
And dont forget to add this in talkactions.xml
Code:
<talkaction words="!stuck" event="script" value="Stuck.lua"/>