sheol 1 Postado Fevereiro 18, 2011 Share Postado Fevereiro 18, 2011 Tipo do script: Talkactions ou Actions Protocolo (versão do Tibia):8.60 Servidor utilizado: Real Server 0.3.6.149 Nível de experiência: Médio Adicionais/Informações: Um script que quando o player adquirir a vip, ele ja é promovido para epic, se alguem puder me ajudar, fico agradecido! Link para o comentário Compartilhar em outros sites More sharing options...
Demonbholder 420 Postado Fevereiro 18, 2011 Share Postado Fevereiro 18, 2011 Posta o script vip, ou usa esse: function onSay(cid, words, param) local conta = getPlayerVocation(cid) + 4 if getPlayerStorageValue(cid, STORAGE_VIP) - os.time() > 0 then doPlayerSetVocation(cid, conta) end return TRUE end So vai adicionar se o jogador for vip, so edita o storage_vip ali. Link para o comentário Compartilhar em outros sites More sharing options...
sheol 1 Postado Fevereiro 18, 2011 Autor Share Postado Fevereiro 18, 2011 function onLogin(cid) local pos = {x=32360, y=31782, z=7} pos = {x=32360, y=31782, z=7} if vip.hasVip(cid) == TRUE then if getPlayerStorageValue(cid,55555) ~= 1 then setPlayerStorageValue(cid,55555,1) end elseif vip.hasVip(cid) ~= TRUE and vip.getVip(cid) ~= 0 then if getPlayerStorageValue(cid,55555) == 1 then doTeleportThing(cid, pos, TRUE) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your VIP's over!") doPlayerSendTextMessage(cid,22,"Your VIP's over!") setPlayerPromotionLevel(cid, 1) setPlayerStorageValue(cid,55555,2) elseif getPlayerStorageValue(cid,55555) == -1 then setPlayerStorageValue(cid,55555,2) end end return TRUE end Link para o comentário Compartilhar em outros sites More sharing options...
Demonbholder 420 Postado Fevereiro 18, 2011 Share Postado Fevereiro 18, 2011 (editado) Usa esse script para o vip: function onLogin(cid)local pos = {x=32360, y=31782, z=7} pos = {x=32360, y=31782, z=7} if vip.hasVip(cid) == TRUE then if getPlayerStorageValue(cid,55555) ~= 1 then setPlayerStorageValue(cid,55555,1) end elseif vip.hasVip(cid) ~= TRUE and vip.getVip(cid) ~= 0 then if getPlayerStorageValue(cid,55555) == 1 then doTeleportThing(cid, pos, TRUE) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your VIP's over!") doPlayerSendTextMessage(cid,22,"Your VIP's over!") setPlayerPromotionLevel(cid, 1) setPlayerStorageValue(cid,55555,2) elseif getPlayerStorageValue(cid,55555) == -1 then setPlayerStorageValue(cid,55555,2) end end return TRUE end Que se tu for perceber, é o original. Agora coloque esse script em creaturescripts: function onLogin(cid) if vip.hasVip(cid) == TRUE and getPlayerVocation(cid) < 5 then doPlayerSetVocation(cid, getPlayerVocation(cid) + 8) elseif vip.hasVip(cid) == TRUE and isInArray({5, 6, 7, 8}, getPlayerVocation(cid)) then doPlayerSetVocation(cid, getPlayerVocation(cid) + 4) end return TRUE end A tag desse script acima fica assim: <event type="login" name="LoginOt" event="script" value="nome_do_arquivo.lua"/> Editado Fevereiro 18, 2011 por Demonbholder Link para o comentário Compartilhar em outros sites More sharing options...
Posts Recomendados