MA

[ Central De Pedidos ]

Por MatheusGlad, 13 de abr. de 2010 em Archived

otserv
tibia
script
65
9.4k
MatheusGladM
21 de abril de 2010 às 09:12

LLol

1° Voce nem falou oque ele faz direito, vai na agua e começa a surfar?

 

2° No topico esta escrito:

OBS: Nao fazemos sistemas complicados.

Entao nos tentaremos fazer mais nao tem nenhuma garantia que sera entregue

Aragorn100A
21 de abril de 2010 às 16:46

Tipo do script: npc

Protocolo (versão do Tibia):8.54

Servidor utilizado:Kratos 0.4

Nível de experiência:médio

Adicionais/Informações:Queria um npc de second promotion q so podem comprar vip quem tem vip e quando vip acabar acaba a promotion tb

21 de abril de 2010 às 22:07

Tipo do script: problemas com Low leveis trapando passagem

Protocolo (versão do Tibia): 8.54

Servidor utilizado: TFS (the forgoten server)

Nível de experiência: medio

Adicionais/Informações: Tipo, eu tenho um servidor que há protection level 50, e alguns "engraçadinhos" veem trapando a passagem com chares de low level, gostaria de um talkaction ou scripit (tanto faz, o importante é que resolva o problema) que quando o player falaçe !trap, ele se movia para dentro do player de level 50 ou menor (que não foçe possivel fazer isto dentro de um pz ou até mesmo com player de level maior do que 50...

 

Iria me ajudar muito!

 

Alguem me ajuda por favoooooooor!!!!

MatheusGladM
22 de abril de 2010 às 12:22

Aragorn, porfavor, poste o script de sua vip aqui para que nos possamos fazer o npc.

 

Good, espere, se nao respondemos e porque ninguem sabe fazer, mais estamos tentando, nao precisa ficar falando okay

Aragorn100A
22 de abril de 2010 às 14:55

o script é mto grande vo posta em partes

 

 

ADD:

function onSay(cid, words, param, channel)

doPlayerSendCancel(cid, "Added "..param.." Vip Days.")

return doPlayerAddVipDays(cid, param)

end

 

addvip:

function onSay(cid, words, param)

if param == "" then

return doPlayerPopupFYI(cid,"Está com problemas?\n Aprenda os comandos!\n---------------\nAdicionar vip:\n/vip add days player\n/vip add 30 Styller\n---------------\nDeletar vip:\n/vip del player\n/vip del Styller\n---------------\nVer a vip:\n/vip see player\n/vip see Styller\n---------------\n")

end

if param:lower():find('add') == 1 and 3 then

local _,_,id,name = param:lower():find('add (%d+) (.+)')

name = name or ""

id = tonumber(id or 1) or 1

if tonumber(id) == nil or getPlayerByName(name) == false then

return doPlayerSendTextMessage(cid,25,"Adicionar vip:\n/vip add days player\n/vip add 30 Styller\n [Player: "..name.."]")

end

if isPlayer(getPlayerByName(name)) == TRUE then

vip.addVipByAccount(getPlayerAccount(getPlayerByName(name)) ,vip.getDays(id))

 

doPlayerSendTextMessage(cid,25,"Foram adicionados "..tonumber(id).." dias de vip a "..name..".")

doPlayerSendTextMessage(getPlayerByName(name),25,"Você recebeu "..tonumber(id).." dias de vip.")

else

doPlayerSendTextMessage(cid,25,name.." não esta online ou não existe.")

end

elseif param:lower():find('del') == 1 and 3 then

local _,_,name = param:lower():find('del (.+)')

if getPlayerByName(name) == false then

return doPlayerSendTextMessage(cid,25,"Deletar vip:\n/vip del player\n/vip del Styller\n")

end

 

vip.setVipByAccount(getPlayerAccount(getPlayerByName(name)),-os.time())

doPlayerSendTextMessage(cid,25,"A vip de "..name.." foi apagada.")

elseif param:lower():find('see') == 1 and 3 then

local _,_,name = param:lower():find('see (.+)')

name = name or ""

if getPlayerByName(name) == false then

return doPlayerSendTextMessage(cid,25,"Ver a vip:\n/vip see player\n/vip see Styller\n")

end

local ret_ = vip.getVip(getPlayerByName(name))

if ret_ == 0 then

return doPlayerSendTextMessage(cid, 25,name.." Não tem vip, e nunca teve.")

else

return doPlayerSendTextMessage(cid, 25, "A vip de "..name.." Acaba/terminou em "..os.date("%d %B %Y %X ",ret_))

end

end

return TRUE

end

 

 

GET:

function onSay(cid, words, param, channel)

doPlayerSendCancel(cid, ""..getPlayerVipDays(cid).." days VIP left.")

end

 

IS;

function onSay(cid, words, param, channel)

if isPlayerVip(cid) == TRUE then

doPlayerSendCancel(cid, "You are a VIP player.")

else

doPlayerSendCancel(cid, "You are not a VIP player.")

end

end

 

 

REMOVE:

 

function onSay(cid, words, param, channel)

doPlayerSendCancel(cid, "Vip removed.")

return doPlayerRemoveVip(cid)

end

 

 

 

SET:

 

function onSay(cid, words, param, channel)

doPlayerSendCancel(cid, "VIP Days: "..param..".")

return setPlayerVipDays(cid, param)

end

 

VIPDAYS:

 

function onSay(cid, words, param)

if vip.hasVip(cid) == TRUE then

doPlayerSendTextMessage(cid, 22, "Your vip end in "..os.date("%d %B %Y %X ",vip.getVip(cid)))

else

if vip.getVip(cid) ~= 0 then

doPlayerSendTextMessage(cid, 22, "You're not a vip player. Your vip has finished in "..os.date("%d %B %Y %X ", vip.getVip(cid)).." and now is "..os.date("%d %B %Y %X ", os.time()))

else

doPlayerSendTextMessage(cid, 22, "You're not a vip player. You naver has a vip.")

end

end

return TRUE

end

 

 

É SO ISSO TUDO ISSO TA DENTRO DE UMA PASTA IGUAL O DATA NO TALKACTIONS PRONTO TA AE:)

Editado Abril 22 por Aragorn100

Aragorn100A
23 de abril de 2010 às 14:24

Tipo do script:Action

Protocolo (versão do Tibia): 8.54

Servidor utilizado: Kratos ot 0.4

Nível de experiência: medio

Adicionais/Informações: gostaria de um script q quando desse use em uma alavanca sumisse items em uma determina posição o id do item é 9486 ele q tem q sumir

ralfizaobrR
23 de abril de 2010 às 14:43

EU QUERO UMA AJUDA POR FAVOR.

EU QUERO COLOKAR UMA CHAVE PRA CAIR NUMA QUEST SÓ QUE ESSA CHAVE NUNCA CAI COM A NUMERAÇÃO EXEMPLO::::GOLDEN KEY (1234).

COMO EU FAÇO PRA FAZER COM QUE ESTA CHAVE CAIA COM A NUMERAÇÃO !!

AGRADEÇO DESDE JÁ!

 

AI GALERA,

EU QUERO UMA AJUDA POR FAVOR.

EU QUERO COLOKAR UMA CHAVE PRA CAIR NUMA QUEST SÓ QUE ESSA CHAVE NUNCA CAI COM A NUMERAÇÃO EXEMPLO::::GOLDEN KEY (1234).

COMO EU FAÇO PRA FAZER COM QUE ESTA CHAVE CAIA COM A NUMERAÇÃO !!

AGRADEÇO DESDE JÁ!

joaohdJ
23 de abril de 2010 às 14:44

Aragorn100:

 

function onUse(cid, item, frompos, item2, topos)
        if getThingfromPos({x=10,y=10,z=7,stackpos=255}).itemid == 9486 then
           doRemoveItem(getThingfromPos({x=10,y=10,z=7,stackpos=255}).uid, 1)
        else
           return false
        end
        return TRUE
        end

 

flw

Aragorn100A
23 de abril de 2010 às 15:27

Apocarai n deu muito certo

 

melhor eu explicar melhor:

Preciso de um script q faça desaparecer o item 9486 por action em uma alavanca eu do use nela ele desaparece são 6 ao total

joaohdJ
23 de abril de 2010 às 15:30

O script que fiz remove apenas 1. Somente edite esta linha:

 

doRemoveItem(getThingfromPos({x=10,y=10,z=7,stackpos=255}).uid, 1)

 

Mudando o valor 1 para qualquer outro que deseje.

 

flw

Aragorn100A
23 de abril de 2010 às 15:36

afz aind n deu acho q ta faltando i od da alavanca e o uni.id

joaohdJ
23 de abril de 2010 às 15:40

Entao coloque-os:

 

<action uniqueid="UNIQUE" event="script" value="NOME DO SCRIPT.lua"/>

 

ou

 

<action actionid="ACTION" event="script" value="NOME DO SCRIPT.lua"/>

 

 

 

flw

Aragorn100A
23 de abril de 2010 às 16:00

manin aind n deu :( n sei pq entra ake rapidin pa vc da uma olhada

 

godofwar3.no-ip.biz

joaohdJ
23 de abril de 2010 às 16:56

Falha de comunicação... Script funcionando:

 

function onUse(cid, item, frompos, item2, topos)
if item.itemid == 1945 then
        if getThingfromPos({x=61,y=43,z=7,stackpos=1}).itemid == 9486 then
           doRemoveItem(getThingfromPos({x=61,y=43,z=7,stackpos=1}).uid, 1)

        if getThingfromPos({x=60,y=43,z=7,stackpos=1}).itemid == 9486 then
           doRemoveItem(getThingfromPos({x=60,y=43,z=7,stackpos=1}).uid, 1)

        if getThingfromPos({x=59,y=43,z=7,stackpos=1}).itemid == 9486 then
           doRemoveItem(getThingfromPos({x=59,y=43,z=7,stackpos=1}).uid, 1)

        if getThingfromPos({x=60,y=57,z=7,stackpos=1}).itemid == 9486 then
           doRemoveItem(getThingfromPos({x=60,y=57,z=7,stackpos=1}).uid, 1)

        if getThingfromPos({x=61,y=57,z=7,stackpos=1}).itemid == 9486 then
           doRemoveItem(getThingfromPos({x=61,y=57,z=7,stackpos=1}).uid, 1)

        if getThingfromPos({x=62,y=57,z=7,stackpos=1}).itemid == 9486 then
           doRemoveItem(getThingfromPos({x=62,y=57,z=7,stackpos=1}).uid, 1)

           doTransformItem(item.uid,item.itemid+1)
         elseif item.itemid == 1946 then
         doTransformItem(item.uid,item.itemid-1)
         end
         end
         end
         end
         end
         end
         end
         return TRUE
         end

 

 

Sim, exageradamente enorme.

 

 

flw

Aragorn100A
23 de abril de 2010 às 16:57

vlw manin agr ta funcionando direitin sem bug