JH
pedido

Spell [ Teleport Attack ]

Por jhonatanp, 06 de out. de 2012 em Scripts

script
16
1.5k
jhonatanpJ
06 de outubro de 2012 às 18:41

Gostaria de pedir um Spell para vocês que sabem mecher bem em spells eu não manjo muito, vamos ao que entressa.

 

O que eu Quero ?

Quando um Player pega Target [ Attack ] o Outro player ele fala " Teleport Attack " E irá aparecer do lado do player que ele atacou, Não sei se é muito dificil de fazer pois vi em varios servidor como de Pokemon E Dragon Ball,

 

Não Custa Nada Ajudar.

 

Lembrando que estou Precisando de um Scripter Experiente, Dependendo do nivel Pago por mes.

 

 

 

DBoFE

 

 

FaceBook ( Curta sz ) :

http://www.facebook.com/dbofullextreme

 

Video Nova Quest :

LuckOakeL
06 de outubro de 2012 às 18:48

Tá ai:

 

talkactions.xml:

 

<talkaction words="teleport attack" script="teleportattack.lua"/>

 

teleportattack.lua:

 

-- Script by Luck Oake

function onSay(cid, words, param)

local ppos = getCreaturePos(cid)

local target = getCreatureTarget(cid)

local storage = 5560

local waittime = 20 -- Tempo de exhaustion

local mana = 10 -- Mana necessária

local level = 10 -- Level necessário

local vocs = {"Elder Druid", "Elite Knight", "Royal Paladin", "Master Sorcerer"} -- Vocations que podem usar

local eff = 10 -- Efeito que sairá

 

if getPlayerMana(cid) < mana then

doPlayerSendCancel(cid, "Not enough mana.")

doSendMagicEffect(ppos, 2) return true

elseif getPlayerLevel(cid) < level then

doPlayerSendCancel(cid, "Not enough level.")

doSendMagicEffect(ppos, 2) return true

elseif not isInArray(vocs, getPlayerVocationName(cid)) then

doPlayerSendCancel(cid, "Your vocation can't use this spell.")

doSendMagicEffect(ppos, 2) return true

elseif if exhaustion.check(cid, storage) then

doPlayerSendCancel(cid, "You are exhausted.")

doSendMagicEffect(ppos, 2) return true

end

 

doPlayerAddMana(cid, -mana)

doTeleportThing(cid, getCreaturePos(target))

doSendMagicEffect(ppos, eff)

exhaustion.set(cid, storage, waittime)

end

return true

end

 

 

Configure aqui:

local waittime = 20 -- Tempo de exhaustion
local mana = 10 -- Mana necessária
local level = 10 -- Level necessário
local vocs = {"Elder Druid", "Elite Knight", "Royal Paladin", "Master Sorcerer"} -- Vocations que podem usar
local eff = 10 -- Efeito que sairá

Editado Outubro 6 por LuckOake

jhonatanpJ
06 de outubro de 2012 às 18:57

fafac.jpg

 

LuckOakeL
06 de outubro de 2012 às 18:59

Opa, cometi um erro.

 

 

-- Script by Luck Oake

function onSay(cid, words, param)

local ppos = getCreaturePos(cid)

local target = getCreatureTarget(cid)

local storage = 5560

local waittime = 20 -- Tempo de exhaustion

local mana = 10 -- Mana necessária

local level = 10 -- Level necessário

local vocs = {"Elder Druid", "Elite Knight", "Royal Paladin", "Master Sorcerer"} -- Vocations que podem usar

local eff = 10 -- Efeito que sairá

 

if getPlayerMana(cid) < mana then

doPlayerSendCancel(cid, "Not enough mana.")

doSendMagicEffect(ppos, 2) return true

elseif getPlayerLevel(cid) < level then

doPlayerSendCancel(cid, "Not enough level.")

doSendMagicEffect(ppos, 2) return true

elseif not isInArray(vocs, getPlayerVocationName(cid)) then

doPlayerSendCancel(cid, "Your vocation can't use this spell.")

doSendMagicEffect(ppos, 2) return true

elseif if exhaustion.check(cid, storage) then

doPlayerSendCancel(cid, "You are exhausted.")

doSendMagicEffect(ppos, 2) return true

end

 

doPlayerAddMana(cid, -mana)

doTeleportThing(cid, getCreaturePos(target))

doSendMagicEffect(ppos, eff)

exhaustion.set(cid, storage, waittime)

return true

end

 

 

Tá ai.

jhonatanpJ
06 de outubro de 2012 às 19:03

Pode Ter sido por causa da Versão ?

 

Esqueci de comentar que é versão 8.0 [...] Desculpe.

 

catsfgq.jpg

 

LuckOakeL
06 de outubro de 2012 às 19:05

Desculpe, cometi outro erro.

 

 

-- Script by Luck Oake

function onSay(cid, words, param)

local ppos = getCreaturePos(cid)

local target = getCreatureTarget(cid)

local storage = 5560

local waittime = 20 -- Tempo de exhaustion

local mana = 10 -- Mana necessária

local level = 10 -- Level necessário

local vocs = {"Elder Druid", "Elite Knight", "Royal Paladin", "Master Sorcerer"} -- Vocations que podem usar

local eff = 10 -- Efeito que sairá

 

if getPlayerMana(cid) < mana then

doPlayerSendCancel(cid, "Not enough mana.")

doSendMagicEffect(ppos, 2) return true

elseif getPlayerLevel(cid) < level then

doPlayerSendCancel(cid, "Not enough level.")

doSendMagicEffect(ppos, 2) return true

elseif not isInArray(vocs, getPlayerVocationName(cid)) then

doPlayerSendCancel(cid, "Your vocation can't use this spell.")

doSendMagicEffect(ppos, 2) return true

elseif exhaustion.check(cid, storage) then

doPlayerSendCancel(cid, "You are exhausted.")

doSendMagicEffect(ppos, 2) return true

end

 

doPlayerAddMana(cid, -mana)

doTeleportThing(cid, getCreaturePos(target))

doSendMagicEffect(ppos, eff)

exhaustion.set(cid, storage, waittime)

return true

end

 

 

Agora eu tenho certeza que não vai dar erro.

jhonatanpJ
06 de outubro de 2012 às 19:08

Não deu nenhum Erro Quando abri o servidor pois quando usa o spell da isso.

 

assahs.jpg

 

Editado Outubro 6 por jhonatanp

LuckOakeL
06 de outubro de 2012 às 19:10

Deve ser incompatibilidade de versão. Testa assim:

 

 

-- Script by Luck Oake

function onSay(cid, words, param)

local ppos = getCreaturePosition(cid)

local target = getCreatureTarget(cid)

local storage = 5560

local waittime = 20 -- Tempo de exhaustion

local mana = 10 -- Mana necessária

local level = 10 -- Level necessário

local vocs = {"Elder Druid", "Elite Knight", "Royal Paladin", "Master Sorcerer"} -- Vocations que podem usar

local eff = 10 -- Efeito que sairá

 

if getPlayerMana(cid) < mana then

doPlayerSendCancel(cid, "Not enough mana.")

doSendMagicEffect(ppos, 2) return true

elseif getPlayerLevel(cid) < level then

doPlayerSendCancel(cid, "Not enough level.")

doSendMagicEffect(ppos, 2) return true

elseif not isInArray(vocs, getPlayerVocationName(cid)) then

doPlayerSendCancel(cid, "Your vocation can't use this spell.")

doSendMagicEffect(ppos, 2) return true

elseif exhaustion.check(cid, storage) then

doPlayerSendCancel(cid, "You are exhausted.")

doSendMagicEffect(ppos, 2) return true

end

 

doPlayerAddMana(cid, -mana)

doTeleportThing(cid, getCreaturePosition(target))

doSendMagicEffect(ppos, eff)

exhaustion.set(cid, storage, waittime)

return true

end

 

 

Se não der, fala qual a versão do seu server.

jhonatanpJ
06 de outubro de 2012 às 19:10

Da este Erro quando usa, Mas quando Abre o servidor fica normal

 

assahs.jpg

 

LuckOakeL
06 de outubro de 2012 às 19:12

Pois é, deixa seu script assim:

 

 

-- Script by Luck Oake

function onSay(cid, words, param)

local ppos = getCreaturePosition(cid)

local target = getCreatureTarget(cid)

local storage = 5560

local waittime = 20 -- Tempo de exhaustion

local mana = 10 -- Mana necessária

local level = 10 -- Level necessário

local vocs = {"Elder Druid", "Elite Knight", "Royal Paladin", "Master Sorcerer"} -- Vocations que podem usar

local eff = 10 -- Efeito que sairá

 

if getPlayerMana(cid) < mana then

doPlayerSendCancel(cid, "Not enough mana.")

doSendMagicEffect(ppos, 2) return true

elseif getPlayerLevel(cid) < level then

doPlayerSendCancel(cid, "Not enough level.")

doSendMagicEffect(ppos, 2) return true

elseif not isInArray(vocs, getPlayerVocationName(cid)) then

doPlayerSendCancel(cid, "Your vocation can't use this spell.")

doSendMagicEffect(ppos, 2) return true

elseif exhaustion.check(cid, storage) then

doPlayerSendCancel(cid, "You are exhausted.")

doSendMagicEffect(ppos, 2) return true

end

 

doPlayerAddMana(cid, -mana)

doTeleportThing(cid, getCreaturePosition(target))

doSendMagicEffect(ppos, eff)

exhaustion.set(cid, storage, waittime)

return true

end

jhonatanpJ
06 de outubro de 2012 às 19:14

Script Complicado, pakspkaspkas. Mesmo Erro

LuckOakeL
06 de outubro de 2012 às 19:15

Cara, qual a versão do seu server?

jhonatanpJ
06 de outubro de 2012 às 19:17

Como eu disse a Cima 8.0 é um servidor de WODBO

LuckOakeL
06 de outubro de 2012 às 19:26

Deve ser por isso. Infelizmente não tem como eu lhe ajudar mais. Não sei as funções presentes na versão 8.0 e nem como são os scripts dela.

jhonatanpJ
06 de outubro de 2012 às 19:27

Obrigado por Ajudar, ; )