Hyagosrs
Member
- Joined
- Mar 10, 2018
- Messages
- 94
- Solutions
- 1
- Reaction score
- 10
this is a command to renew soft boots !softboots.
add this script (soft_boots.lua) in /data/scripts/talkaction/players
add this script (soft_boots.lua) in /data/scripts/talkaction/players
Lua:
local aol = TalkAction("!softboots")
function aol.onSay(player, words, param)
if player:removeMoneyNpc(10000) and player:removeItem(10021, 1) then
player:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE)
player:addItem(6132, 1) -- id new soft boots
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You charged a soft boots!")
else
player:getPosition():sendMagicEffect(CONST_ME_POFF)
player:sendCancelMessage("You do not have enough money or a worn soft boots!.")
end
end
aol:register()