Ir para conteúdo

Featured Replies

  • Respostas 8
  • Visualizações 695
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • function onSay(cid, words, param) if getPlayerLevel (cid) <= 100 then doPlayerAddPremiumDays(cid, 7) if (getPlayerStorageValue(cid, key) < 1) then return true end setPlayerStorageVal

  • Eddy, ai ele primeiro adiciona a vip e depois verifica se já foi adicionada .-. e key é nula .-.

Postado

Ficaria assim errei ordem então


function onSay(cid, words, param)


if (getPlayerStorageValue(cid, key) < 1) then

   return true

end


setPlayerStorageValue(cid, key, 1)


if getPlayerLevel (cid) <= 100 then

doPlayerAddPremiumDays(cid, 7)


elseif getPlayerLevel (cid) >= 200 then

doPlayerAddPremiumDays(cid, 15)


elseif getPlayerLevel (cid) >= 300 then

doPlayerAddPremiumDays(cid, 20)


return true

end


return true

end

Corrige aí Max eu não sou scripter mais tento :D

Postado

quase, xD



function onSay(cid, words, param)


	 if (getPlayerStorageValue(cid, 7891) > 0) then

		 return true

    end


    if getPlayerLevel (cid) <= 100 then

	    doPlayerAddPremiumDays(cid, 7)

    elseif getPlayerLevel (cid) >= 200 then

	    doPlayerAddPremiumDays(cid, 15)

    elseif getPlayerLevel (cid) >= 300 then

	    doPlayerAddPremiumDays(cid, 20)

    end


    return setPlayerStorageValue(cid, 7891, 1)

end


-"Supra Omnes Lux Lucis"

- Acima de todos brilha a Luz -

5VGnDyBz.png

Postado
  • Autor

Só o primeiro de 7 dias pego, mas ta bom, só assim ja me ajuda, vo decha assim só mesmo, vlw ai, rep+ pros 2 por ter me ajudado :D

De boua na lagoa ? *-*



Entrada ao Tibia King:27/05/2012 (02:14)

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo