[ Fechado ] Npc Ajudante De Caça

quique
Por quique
em Lixeira Pública

quique

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 01/09/09Posts: 2Char no Tibia: Tarsalus Taximin

Citação:

<?xml version="1.0" encoding="UTF-8"?>

<npc name="Mastah" script="data/npc/scripts/mastah.lua" speed="1200" walkinterval="0" floorchange="0">

<health now="1500" max="1500"/>

<look type="289" addons="3" head="0" body="0" legs="0" feet="0" corpse="2317"/>

</npc>

 

Mastah.lua:

 

 

Citação:

-- Load spell area's data.

dofile(getDataDir() .. "spells/lib/spells.lua")

 

-- Basic Config

local basic = {

ownerName = "Alissow" -- Nome do seu char.

}

 

-- Healer Config

local healer = {

enabled = TRUE,

sayWord = TRUE,

healthToHeal = 4000,

min = 700,

max = 1200

}

-- Mana Restore Config

local manaRestore = {

enabled = TRUE,

manaToRestore = 800,

min = 150,

max = 300

}

-- Rune Config

local rune = {

enabled = TRUE,

lastShoot = os.clock(), -- Don't touch!

delay = 1,

effect = CONST_ME_MORTAREA,

shootEffect = CONST_ANI_SUDDENDEATH,

combat = COMBAT_DEATHDAMAGE,

min = 750,

max = 1100

}

-- Spell Config

local spell = {

enabled = TRUE,

sayWord = TRUE,

lastCast = os.clock(), -- Don't touch!

delay = 3,

combat = COMBAT_ICEDAMAGE,

area = createCombatArea(AREA_CROSS5X5),

word = "Exevo Gran Mas Frigo",

effect = CONST_ME_ICETORNADO,

min = 700,

max = 1000

}

-- Anty Paralyze

local antyPara = {

enabled = TRUE

}

 

-- Don't touch below!

local owner = 0

local target = FALSE

 

local function findOwner()

local list = getSpectators(getNpcPos(), 9, 9, false)

if (#list > 0) then

for i = 1, #list do

local _target = list

if (_target ~= 0) then

if (getCreatureName(_target) == basic.ownerName) then

selfSay("Hi ".. basic.ownerName .."!")

selfFollow(_target)

owner = _target

end

end

end

end

end

 

local function doHealOwner()

if (getCreatureHealth(owner) < healer.healthToHeal) then

if (healer.sayWord) then

doCreatureSay(getNpcCid(), "Exura Sio \"".. basic.ownerName, TALKTYPE_ORANGE_1)

end

doCreatureAddHealth(owner, math.random(healer.min, healer.max))

doSendMagicEffect(getCreaturePosition(getNpcCid()) , CONST_ME_MAGIC_BLUE)

doSendMagicEffect(getCreaturePosition(owner), CONST_ME_MAGIC_GREEN)

end

end

 

local function doRestoreMana()

if (getPlayerMana(owner) < manaRestore.manaToRestore) then

doPlayerAddMana(owner, math.random(manaRestore.min, manaRestore.max))

doSendMagicEffect(getCreaturePosition(owner), CONST_ME_MAGIC_BLUE)

end

end

 

local function doUseRune()

target = FALSE

local shooted = FALSE

local r_list = getSpectators(getNpcPos(), 9, 9, false)

if (#r_list > 0) then

for i = 1, #r_list do

local r_target = r_list

if (isPlayer(r_target) == FALSE and isNpc(r_target) == FALSE and getNpcCid() ~= r_target and shooted == FALSE) then

local tPos = getCreaturePosition(r_target)

doSendMagicEffect(tPos, rune.effect)

doSendDistanceShoot(getCreaturePosition(getNpcCid( )), tPos, rune.shootEffect)

doTargetCombatHealth(getNpcCid(), r_target, rune.combat, -rune.min, -rune.max, rune.effect)

shooted = TRUE

target = TRUE

end

end

end

end

 

local function doCastSpell()

if (spell.sayWord) then

doCreatureSay(getNpcCid(), spell.word, TALKTYPE_ORANGE_1)

end

 

doAreaCombatHealth(getNpcCid(), spell.combat, getCreaturePosition(getNpcCid()), spell.area, -spell.min, -spell.max, spell.effect)

end

 

local function doRemovePara()

if (hasCondition(owner, CONDITION_PARALYZE)) then

doRemoveCondition(owner, CONDITION_PARALYZE)

doSendMagicEffect(getCreaturePosition(owner), CONST_ME_MAGIC_GREEN)

end

end

 

function onCreatureDisappear(cid)

if (cid == owner) then

owner = 0

end

end

 

function onCreatureSay(cid, type, msg)

if (cid == owner) then

if (msg == "disappear") then

selfSay("Good bye wink.gif")

doHealOwner()

doRestoreMana()

doRemoveCreature(getNpcCid())

elseif (msg == "kick") then

doRemoveCreature(cid)

end

end

end

 

function onThink()

-- Try to find owner, if he's not already found.

if (owner == 0) then

findOwner()

return

end

 

-- Update following

selfFollow(owner)

 

-- On floor change wink.gif

local myPos = getCreaturePosition(getNpcCid())

local ownerPos = getCreaturePosition(owner)

if (myPos.z ~= ownerPos.z) then

doSendMagicEffect(myPos, CONST_ME_POFF)

doTeleportThing(getNpcCid(), ownerPos)

doSendMagicEffect(ownerPos, CONST_ME_TELEPORT)

end

 

-- Healer

if (healer.enabled) then

doHealOwner()

end

 

-- Mana Restore

if (manaRestore.enabled) then

doRestoreMana()

end

 

-- Shoot Rune

if (rune.enabled and rune.lastShoot < os.clock()) then

rune.lastShoot = (os.clock()+rune.delay)

doUseRune()

end

 

-- Cast Spell

if (spell.enabled and target ~= FALSE and spell.lastCast < os.clock()) then

spell.lastCast = (os.clock()+spell.delay)

doCastSpell()

end

 

-- Anty Paralyze

if (antyPara.enabled) then

doRemovePara()

end

end

casaadordirati

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 14/08/09Posts: 4Char no Tibia: casador di rati

mas que merda de tópico em galvão

seu tópico é uma bosta você é um lixo

fikdik

 

flw

.:.Motivo da minha retirada.:.


Flws para vocês seus merdas, já tô cansado dessa porra toda, ficar tomando xingamento sem sentido e críticas idiotas, ainda mais com essa merda de 60 segundos para postar, sim, foda-se, eu xingo muito, e daí? Eu só tô defendendo quem está sendo injustiçado, não por causa de merdinhas que ficam xingando o cara sem sentido, ah, que se foda, não acesso mais essa merda também não, vocês não percebem que essa porra toda só tá acabando, não é? Olhe um dos membros que já tá vazando: JVChequer - Se os otários não percebem que ele tá saindo se liga.. Também já tá cansado dessa merda toda, se fosse para eu ser algum membro idiota sem graça seria random ou então, seria troll tentando falar qualquer coisa que ficasse fora do padrão de um bom usuário, ah, que porra, isso tá chato demais, ainda mais que precisa esperar 60 segundos para postar?
Fala sério.

Flws para vocês, os únicos caras legais que eu encontrei nessa merda toda foram:
DanielOliveira(Nem tanto, mas fez bobagens também)
Guimanucci(O único cara que não era mais um idiota qualquer, foi até amigo)
LordZ(Antes de sair falei um pouco com ele)
Pedro(Não era um otário)
Bernardo(Conhecí um pouco, mas me xingou algumas vezes, rs)
Rodrigo(Não sei falar nada)
DarkK(Amigo.)
Vilden(Quando jogava tibia gostava de seus ot's, rs)
e qualquer um que eu lembrar, depois edito esse negócio, ou não.


Maiores cusões:
Powerzete(Nick atual)
Kakilo
Slipknotshadow

DaNDaNrOxX

oi mosso
avatar
Marquês
Marquês

INFOS

Grupo: MarquêsRegistrado: 18/01/08Posts: 1455Char no Tibia: Saint Claire

Amigo, você copiou este tópico de algum lugar.

Até a "Citação" está ai..

Se continuar postando scripts sem créditos será banido.

Sem falar que postou na seção errada NOVAMENTE.

:button_cancel: Fechado

 

 

Entrada na equipe: 23/10/2008 Cargo: Estagiário

Promoção: 25/11/2008 Cargo: Moderador

Promoção: 21/10/2009 Cargo: Coordenador

Remoção: 09/05/2010 Motivo: Estudos

Retorno: 15/11/2010 Cargo: Moderador

Remoção: 20/12/2012.