SU

Repair Soft E Firewalker Boots

Por Subwat, 20 de ago. de 2011 em Actions e Talkactions

script
9
5k
SubwatS
20 de agosto de 2011 às 12:54

recarregar SOFT e firewalker BOOTS por comando.

 

 

SCRIPT:

 

--[[ script By Subwat Repair soft e firewalker boots!]]-- 

function onSay(cid, words, param) 

local config = {
price = 20000,
new_soft = 6132, -- id da nova soft boots
worn_soft = 10021, -- id da velha soft boots
new_firewalker = 9933, -- id da firewalker boots
worn_firewalker = 10022, -- id da velha firewalker boots
needPremium = true -- se precisa ser premium (true or false)
}

if (config.needPremium == true) and (not isPremium(cid)) then
doPlayerSendTextMessage(cid, 23, "only premium players can use that command.")
return TRUE
end

if param == "soft" or param == "soft boots" then
if getPlayerItemCount(cid, config.worn_soft) >= 1 then
if doPlayerRemoveMoney(cid,config.price) == TRUE then
doPlayerRemoveItem(cid,config.worn_soft,1)
doPlayerAddItem(cid,config.new_soft, 1) 
doPlayerPopupFYI(cid,"you recharged your pair of soft boots!")
end
end
return TRUE 
end

if param == "firewalker" or param == "firewalker boots" then
if getPlayerItemCount(cid, config.worn_firewalker) >= 1 then
if doPlayerRemoveMoney(cid,config.price) == TRUE then
doPlayerRemoveItem(cid,config.worn_firewalker,1)
doPlayerAddItem(cid,config.new_firewalker, 1) 
doPlayerPopupFYI(cid,"you recharged your firewalker boots!")
end
end
return TRUE 
end
end

 

TAG:

 

<talkaction words="!repair;/repair" script="repair.lua"/>

 

 

 

comando funciona assim você digita !repair soft boots,!repair firewalker boots ,ele repara suas botas por 20k.

 

créditos:

subwat

YondaimeBRGY
21 de agosto de 2011 às 12:36

Nice!

SubwatS
21 de agosto de 2011 às 12:57

beem nice né chumps,vocÊ tá entrando nos topicos e só fazendo flood o.O

fale algo construtivo plx se nao nem comenta eu sei q é nice rsrsrs

SkyDangerousS
21 de agosto de 2011 às 13:08

Muito bom ;D

Bem criativo e bem util.

 

Concerteza irá ajudar muito ;D

 

rep + !

LukaszGL
22 de agosto de 2011 às 18:51

Muito bom parabens ja botei no meu server vlw.

VodkartV
25 de agosto de 2011 às 16:19

se vc usar tabbles o script fica muito menor

mais está ótimo

abraços

1 ano depois...
30 de janeiro de 2013 às 17:26

Implantei no meu OT Server... Espero que funcione. Já, já posto o resultado.

 

Obrigado!

SubwatS
02 de fevereiro de 2013 às 17:53

funciona sim, talvez não funcione nos ots mais atuais porém na epoca em que fiz o script eu testei em 8.60 e funcionava perfeitamente.

20cm2
02 de fevereiro de 2013 às 23:05

Faltou uma mensagem de erro "você não tem a bota pra recarregar, noob!" ou algo do tipo, mas tá valendo