Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Talkaction] Shovel & Rope

Experienced Elementalist
Joined
Jul 29, 2012
Messages
240
Reaction score
25
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
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"/>
 
Back
Top