function onSay(cid, words, param) if param == "" then doPlayerSendTextMessage(cid,18, "!buyvip3 30 para comprar 30 dias vip3.") doPlayerSendTextMessage(cid,18, "!buyvip3 15 para comprar 15 dias vip3.") doPlayerSendTextMessage(cid,18, "!buyvip3 3 para comprar 3 dias vip3.") end if param == "30" then if doPlayerRemoveItem(cid,2157,5) then AQUI VOCE ADD A FUNCAO DA VIP E TAL doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,"30 dias VIP 3 account comprados Por 5 VIP Coins.") setPlayerPromotionLevel(cid, 1) setPlayerStorageValue(cid,25252,1) else doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,"Você não tem 5 gold nugget coins necessários para usar este comando.") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FLAMEAREA) end end if param == "15" then if doPlayerRemoveItem(cid,2157,3) then AQUI VOCE ADD A FUNCAO DA VIP E TAL doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,"15 dias VIP 3 account comprados Por 3 VIP Coins.") setPlayerPromotionLevel(cid, 1) setPlayerStorageValue(cid,25252,1) else doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,"Você não tem 3 gold nugget coins necessários para usar este comando.") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FLAMEAREA) end end if param == "3" then if doPlayerRemoveItem(cid,2157,1) then AQUI VOCE ADD A FUNCAO DA VIP E TAL doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,"3 dias VIP 3 account comprados Por 1 VIP Coins.") setPlayerPromotionLevel(cid, 1) setPlayerStorageValue(cid,25252,1) else doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,"Você não tem 1 gold nugget coins necessários para usar este comando.") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FLAMEAREA) end end end
- Fórum
- xTibia - Notícias e Suporte
- Soluções
- Archived
- Adicionar Vip 3 Por Gold Nuggets
3
465
info
Grupo: Infante
Registrado: 27/07/09
Posts: 1.5k
Reputação: +405
Char no Tibia: Gean Riot

05 de março de 2012 às 11:37
info
Grupo: Campones
Registrado: 22/01/12
Posts: 0
Reputação: 0

05 de março de 2012 às 17:57
e o resto, cara? ;s


info
Grupo: Campones
Registrado: 22/01/12
Posts: 0
Reputação: 0
Olá, estou com um servidor 8.6, baiak ice e não tenho muita experiência com scripts.
Eu gostaria de instalar em meu servidor um sistema que ao dizer !buyvip3 checar se o player tem tantas gold nuggets (2157) e tranformá-las em vip 3 por tanto tempo.
Desde já, obrigado pela atenção!