IB

Comando !buyitem E Só Pra Play Vip E Lvl 25000

Por ibne, 15 de abr. de 2012 em Scripts

script
7
1k
ibneI
15 de abril de 2012 às 21:26

Estou querendo esse comando ,como estou editando subwat estou querendo que esse comando só use vip e lvl ex : 25000

 

Espero Você me Ajude Obrigado!

 

Aproveitando Queria Outro script De quando Um player Fica Red Ir pra uma sala de "batalha" pra tentar matar outros reds Obrigado Novamente

 

 

 

resolvido = 2 Rep+

Editado Abril 15 por ibne

Makelin1M
15 de abril de 2012 às 21:30

ibne eu acho esse script muito dificil de ter e de fazer vo tentar fazer aki pra vc ! oks ?

ZmovirZ
15 de abril de 2012 às 21:31

Bém que você poderia postar o script neh heuheueueuh

Makelin1M
15 de abril de 2012 às 21:40

Pronto acho que terminei olha nao testei !

 

teste voce pois to muito ocupado

 

Aki O Script

 

 

va em data / talkactions / script / e crie um arquivo.lua e renome para Buyitem

--- Script By Smartbox Para Ibne ---

local configs = {

storage = 13540 ------ Storage Id da sua vip account

need_level = true, -- Para Ativar o level (true or false)

}

function onSay(cid, words, param)

if doPlayerRemoveMoney(cid, 20000) == TRUE then

local bp = doPlayerAddItem(cid, 2173, 1)

doSendMagicEffect(getCreaturePosition(cid),13)

doCreatureSay(cid, "Pronto Voce Compro Seu Item !", TALKTYPE_ORANGE_1)

else

doCreatureSay(cid, "Voce Nao e Vip Ou Nao Tem Level Suficiente", TALKTYPE_ORANGE_1)

doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)

elseif config.need_level == true and getPlayerLevel(cid) < a.level then

doPlayerSendTextMessage(cid, 22, "Desculpe,Voce não tem level. voce precisa "..a.level.." level ou mais Para comprar este item.")

doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)

return TRUE

if configs.sovip == "sim" and getPlayerStorageValue(cid, tonumber(configs.storage)) <= 0 then

doPlayerSendCancel(cid,"Você não é vip.")

return TRUE

end

end

end

 

add essa tag no talkactions.xml

 

<talkaction words=""buyitem" event="script" value="buyitem.lua"/>

 

foi ? entao nao custa o rep +

Editado Abril 15 por Smartbox

ZmovirZ
15 de abril de 2012 às 21:54

Vish primeiro você pego esse script duma parte do do vodkart

[color=#282828][font=helvetica, arial, sans-serif][size=3] getPlayerLevel(cid) < a.level then

nao to vendo a variavel a.level e tá errado heheueuh[/size][/font][/color]

Makelin1M
15 de abril de 2012 às 21:55

s eu copiei 1 umas partes dele sim

 

pois sou novo em script eu so copio uma parte e imendo em outro mas funciono q n testei

VildenV
15 de abril de 2012 às 22:30

Cara você quer que seja tal item? ou varios items?

qual seu sistema de vip? é por storage?

 

Tente explicar melhor o que você quer..

________________________

Esse daqui é por storage, e ganha só um item..

 

function onSay(cid, words, param)

 

local level = 25000 -----qual level

local storage = 10031 -------storage da sua vip

local iitem = 2160 -----item a ganhar

--------------------------------------------------------------------------------------------

if getPlayerLevel(cid) >= level and getPlayerStorageValue(cid,storage) >= 1 then

doPlayerAddItem(cid,iitem,1)

else

doPlayerSendCancel(cid, "Você não tem level ou vip.")

end

end

Editado Abril 15 por Vilden