RevScript SoftBoots Repair

Alex

Miembro del equipo
Webdesigner
LV
58
 
Awards
38
Para reparar las soft boots, pueden utilizar el siguiente comando,

Plazaran el script en data/scripts/talkactions/players en soft.lua :

Código:
local softBoots = TalkAction("!soft")

function softBoots.onSay(player, words, param)

    if player:getItemCount(10021) >= 1 then
        if player:removeMoney(20000) then
            if not player:removeItem(10021, 1) then
                player:sendCancelMessage("You don't have a worn soft boots to repair.")
                player:getPosition():sendMagicEffect(CONST_ME_POFF)
            end
            player:addItem(2640, 1)
            player:sendTextMessage(MESSAGE_INFO_DESCR, "Your worn soft boots has been repaired!")
            player:getPosition():sendMagicEffect(CONST_ME_FIREWORK_YELLOW)
        else
            player:sendCancelMessage("You don't have 20000 gold coints to repair a worn soft boots.")
            player:getPosition():sendMagicEffect(CONST_ME_POFF)
        end
    else
        player:sendCancelMessage("You don't have a worn soft boots to repair.")
        player:getPosition():sendMagicEffect(CONST_ME_POFF)
    end

    return false
end

softBoots:register()
 

marcio

Miembro
LV
1
 
Awards
3
PARA CANARY 13X :

Código:
local softBoots = TalkAction("!soft")

function softBoots.onSay(player, words, param)

    if player:getItemCount(6530) >= 1 then
        if player:removeMoney(20000) then
            if not player:removeItem(6530, 1) then
                player:sendCancelMessage("You don't have a worn soft boots to repair.")
                player:getPosition():sendMagicEffect(CONST_ME_POFF)
            end
            player:addItem(6529, 1)
            player:sendTextMessage(MESSAGE_INFO_DESCR, "Your worn soft boots has been repaired!")
            player:getPosition():sendMagicEffect(CONST_ME_FIREWORK_YELLOW)
        else
            player:sendCancelMessage("You don't have 20000 gold coints to repair a worn soft boots.")
            player:getPosition():sendMagicEffect(CONST_ME_POFF)
        end
    else
        player:sendCancelMessage("You don't have a worn soft boots to repair.")
        player:getPosition():sendMagicEffect(CONST_ME_POFF)
    end

    return false
end
softBoots:groupType("normal")
softBoots:register()
 
Arriba