Primeiro de tudo poste seu sistema de vip
function onSay(cid, words, param, channel)if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Digite o nome do player.")
return true
end
local pid = getPlayerByNameWildcard(param)
if(not pid) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " nao encontrado.")
return true
end
if(getPlayerAccess(pid) >= getPlayerAccess(cid)) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce nao pode usar esse comando.")
return true
end
if(getPlayerVocation(cid) >= 1 then
doPlayerSetPromotionLevel(cid, 1)
end
return true
end
Tente esse


info
Grupo: Campones
Registrado: 05/08/09
Posts: 4
Reputação: 0
Char no Tibia: Ardar Gelt
olá pessoal do Xtibia, eu venho aqui fazer um pedido de talkaction /addvip
OTserver 8.60
exemplo
/addvip Fulano,30
fulano recebeu 30 dias de vip
Mas eu preciso que a talkaction também adicione promotion no player para ele ficar com a vocation vip!
no meu ot a vocation vip é promotion
Observem:
Master Sorcerer ID Voc:1
Elder Druid ID Voc:2
Royal Paladin ID Voc:3
Elite Knight ID Voc:4
MS Promotion ID Voc: 5
ED Promotion ID Voc: 6
RP Promotion ID Voc: 7
EK Promotion ID Voc:8