Ir para conteúdo
Entre para seguir isso  
Vufusuf

[N:Fácil]Ação Ativada ao matar criaturas

Recommended Posts

LG    1
LG

muito legal xD estava procurando isso

Compartilhar este post


Link para o post
Compartilhar em outros sites
konohasannin    0
konohasannin

Muito boa cara. Vou implementala no meu ot. Ela realmente inspira a fazer quests bem mais elaborada. valeu

Compartilhar este post


Link para o post
Compartilhar em outros sites
Asould Acalaylaa    5
Asould Acalaylaa

Existe apenas para Nots Server (7.8), infelizmente! ;/

Compartilhar este post


Link para o post
Compartilhar em outros sites
Chumbo Certo    0
Chumbo Certo

legal cara, bem util =p

 

o interesante e o pessoal analizar o codigo..

pra poder modificar ele mais a vontade

Compartilhar este post


Link para o post
Compartilhar em outros sites
Zepp~    0
Zepp~

ixxi msm roox

nao sabia k existia isso

da uma certa criatividade a kualker serv

mt bom

obrigado

Compartilhar este post


Link para o post
Compartilhar em outros sites
GabrielZ    0
GabrielZ

Caracas, realmente bom, vo colok no meu ot agorinha

Compartilhar este post


Link para o post
Compartilhar em outros sites
f@bio    0
f@bio

Muito bom, mas vc sabe dizer se funciona no FORGOTTEN????

Compartilhar este post


Link para o post
Compartilhar em outros sites
miniman    0
miniman

Cara me da um help ai eu to fazendo um negocio assim tem uma sala com 14 demons

quando o player mata os 14 demons a porta abre mas tipo eu nao consegui fazer a porta abrir coloquei ate direto abrir a porta quando o demon morre como no seu exemplo mas ela nao abre me ajuda ai porfavor

Compartilhar este post


Link para o post
Compartilhar em outros sites
ruzz    0
ruzz

mto bom vou colocar no meu serv =D

Aprovado

Compartilhar este post


Link para o post
Compartilhar em outros sites
Fudencio152    0
Fudencio152

pow nao to conseguindo cara!

ja fiz e refiz, e quando eu mato o bixo a wall que eu quero que saia (no caso bone wall, sim eu mudei o ID no script) nao some!

 

:(

Compartilhar este post


Link para o post
Compartilhar em outros sites
kayk_b2k    0
kayk_b2k

N consegui fazer funfa em the forgotten...

Compartilhar este post


Link para o post
Compartilhar em outros sites
ions_29a    0
ions_29a

pow eh bom amis automaticamente se vc ver um demon vc vai matar

kopsakopasokpasokpkasopksa

raramente vai perceber a maravilhosa action

 

 

mto 10

vlws

Compartilhar este post


Link para o post
Compartilhar em outros sites
anjocelestial    0
anjocelestial

cara me ajuda em uma coisa quando eu tento mata o mostro pra sumi a magic wall não ta sumindo alguem saberia mim dizer pq ?

tipo

 

 

mostro é esse

 

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

<monster name="master miro" nameDescription="master miro" race="blood" experience="120000" speed="400" manacost="0">

<health now="2400000" max="140000" />

<look type="75" head="0" body="0" legs="0" feet="0" corpse="3058" />

<targetchange interval="2000" chance="5" />

<strategy attack="80" defense="10" />

script="miroquest.lua">

 

<flags>

<flag summonable="0" />

<flag attackable="1" />

<flag hostile="1" />

<flag illusionable="0" />

<flag convinceable="0" />

<flag pushable="0" />

<flag canpushitems="1" />

<flag canpushcreatures="1" />

<flag targetdistance="1" />

<flag runonhealth="1" />

</flags>

 

<attacks>

<attack name="melee" interval="2000" skill="100" attack="350" />

<attack name="arrow" interval="5000" chance="80" range="7" min="-0" max="-100"/>

</attacks>

 

<defenses armor="35" defense="50">

<defense name="light healing" interval="6500" chance="80" min="180" max="200"/>

</defenses>

 

<immunities>

<immunity physical="0" />

<immunity energy="1" />

<immunity fire="1" />

<immunity poison="1" />

<immunity lifedrain="0" />

<immunity paralyze="1" />

<immunity outfit="1" />

<immunity drunk="1" />

<immunity invisible="1" />

</immunities>

 

 

<summons max="4">

<summon name="miro" interval="1000" chance="80" />

</summons>

 

<voices interval="5000" chance="10">

<voice sentence="Let's have a fight!" />

<voice sentence="Welcome to my battleground." />

<voice sentence="Have you seen princess Lumelia?" />

<voice sentence="I will sing a tune at your grave." />

</voices>

 

<loot capacity="800">

<item id="2148" countmax="100" chance1="83000" chancemax="0" /> gold

<item id="2469" chance="500" /> dragon scarle l

<item id="2120" chance="50000" /> rope

<item id="2471" chance="1000" /> golde helmet

<item id="1949" chance="50000" /> scroll

<item id="2646" chance="1000" /> golde boots

<item id="2666" countmax="5" chance1="20000" chancemax="0" /> meat

<item id="5911" countmax="1" chance1="2100" chancemax="0" /> red piece of cloth

<item id="1987" chance="100000">

<inside>

<item id="2392" chance="1200" /> fire sword

<item id="2114" chance="1600" /> piggy b

<item id="2377" chance="3600" /> ths

<item id="2519" chance="1100" /> crown s

<item id="2456" chance="48333" /> bow

<item id="2661" chance="26000" /> scarf

<item id="2121" chance="4500" /> wedding r

<item id="2488" chance="800" /> crown l

<item id="2071" chance="10000" /> lyre

<item id="2544" countmax="15" chance1="25000" chancemax="0" /> arrow

<item id="2652" chance="13000" /> green t

<item id="2164" chance="1500" /> might r

<item id="2391" chance="2300" /> war h

<item id="2744" chance="6666" /> red rose

</inside>

</item>

</loot>

</monster>

 

 

SCRIPTS É

 

 

function onMonsterDeath(killer, monster, corpse, damage, totaldamage)

wallpos = {x=38, y=269, z=7, stackpos=1}

wall = getThingfromPos(wallpos)

 

if wall.itemid == 1497 then

doRemoveItem(wall.uid,1)

doSendMagicEffect(wallpos,2)

end

return 1

end

 

function onUse(cid, item, frompos, item2, topos)

telpos = {x=149, y=49, z=7, stackpos=253}

wallpos = {x=38, y=269, z=7, stackpos=1}

wall = getThingfromPos(wallpos)

 

if item.uid == 1000 then

queststatus = getPlayerStorageValue(cid,1000)

if queststatus == -1 then

doPlayerSendTextMessage(cid,22,"Você achou um Dragon scale legs.")

doPlayerAddItem(cid,2469,1)

setPlayerStorageValue(cid,1000,1)

doTeleportThing(cid,telpos)

doCreateItem(1497,1,wallpos)

doSendMagicEffect(telpos,13)

else

doPlayerSendTextMessage(cid,22,"Você ja recebeu seu prêmio.")

doTeleportThing(cid,telpos)

doCreateItem(1497,1,wallpos)

doSendMagicEffect(telpos,13)

end

return 1

else

return 0

end

end

 

action eu add assim la

<action uniqueid="1497" script="miroquest.lua" />

<action uniqueid="1000" script="miroquest.lua" />

 

 

o que tem de errado por favor me ajuda

Editado por anjocelestial

Compartilhar este post


Link para o post
Compartilhar em outros sites
Eventide    7
Eventide

nosss, ajudo muito!

talvez por não ser muito utilizado, essa função é meiio disconhecida, valeu Vufusuf!

Compartilhar este post


Link para o post
Compartilhar em outros sites
shakeee    0
shakeee

Assim ó, se alguem poderia me ajudar, meu ot é 8.10, quando eu mato o monstro a mwall simplesmente não desaparece... fiz tudo corretamente, refiz e deu em nada :S, tipo ainda tentei usar o que um cara aí tinha falado, "if monster == "Demon" then", olhem isso para ver se está certo

 

function onMonsterDeath(killer, monster, corpse, damage, totaldamage)

wallpos = {x=58, y=223, z=0, stackpos=1}

wall = getThingfromPos(wallpos)

 

if wall.itemid == 1497 then

doRemoveItem(wall.uid,1)

doSendMagicEffect(wallpos,2)

end

return 1

end

function onUse(cid, item, frompos, item2, topos)

telpos = {x=56, y=222, z=0, stackpos=253}

wallpos = {x=58, y=223, z=0, stackpos=1}

wall = getThingfromPos(wallpos)

if item.uid == 3100 then

queststatus = getPlayerStorageValue(cid,3100)

if queststatus == -1 then

doPlayerSendTextMessage(cid,22,"You have found a Dragon Backpack.")

container = doPlayerAddItem(cid, 3939, 1)

doAddContainerItem(container, 2469, 1)

doAddContainerItem(container, 2505, 1)

doAddContainerItem(container, 2506, 1)

setPlayerStorageValue(cid,3100,1)

doTeleportThing(cid,telpos)

doCreateItem(1497,1,wallpos)

doSendMagicEffect(telpos,13)

else

doPlayerSendTextMessage(cid,22,"It is empty.")

doTeleportThing(cid,telpos)

doCreateItem(1497,1,wallpos)

doSendMagicEffect(telpos,13)

end

return 1

else

return 0

end

end

 

e no monsters.xml

 

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

<monster name="test" nameDescription="a test" race="blood" experience="100000" speed="600" manacost="0" script="testchest.lua">

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

<look type="229" head="20" body="30" legs="40" feet="50" corpse="6078"/>

<targetchange interval="60000" chance="0"/>

<strategy attack="100" defense="0"/>

<flags>

<flag summonable="0"/>

<flag attackable="1"/>

<flag hostile="1"/>

<flag illusionable="0"/>

<flag convinceable="0"/>

<flag pushable="0"/>

<flag canpushitems="1"/>

<flag staticattack="50"/>

<flag lightlevel="0"/>

<flag lightcolor="0"/>

<flag targetdistance="5"/>

<flag runonhealth="0"/>

</flags>

<attacks>

<attack name="melee" interval="2000" min="-100" max="-300"/>

<attack name="ultimate explosion" interval="5000" chance="70" min="-1800" max="-100"/>

<attack name="great energy beam" interval="4000" chance="50" min="-1000" max="-100"/>

<attack name="great fireball" interval="7000" chance="50" min="-100" max="-1525"/>

</attacks>

<defenses armor="37" defense="35">

<defense name="ultimate healing" interval="5000" chance="80" min="100" max="300"/>

</defenses>

<immunities>

<immunity physical="0"/>

<immunity energy="1"/>

<immunity fire="1"/>

<immunity poison="1"/>

<immunity lifedrain="0"/>

<immunity paralyze="1"/>

<immunity outfit="0"/>

<immunity drunk="1"/>

<immunity invisible="1"/>

</immunities>

<summons max="4">

<summon name="Fire Elemental" interval="4000" chance="10"/>

</summons>

<voices interval="2000" chance="5">

<voice sentence="test."/>

</voices>

<loot>

<item id="2160" countmax="20" chance1="100000" chancemax="0"/>

</loot>

</monster>

 

alguem poderia me ajudar por favor?

Editado por shakeee
outro erro

Compartilhar este post


Link para o post
Compartilhar em outros sites
MotoBoy    0
MotoBoy

num precisa por nada no global.lua x.x

 

que rox cara

 

meus parabéns!

Compartilhar este post


Link para o post
Compartilhar em outros sites
Fighters    3
Fighters

Meu muito legal isso é bom para tipo colocar em arena :D, valeu mesmo pelo tutorial e o Script já ta no meu OT quando Abrir te chamo pra jogar...

Compartilhar este post


Link para o post
Compartilhar em outros sites
Snaven    0
Snaven

massa di mais ja estou trabalhando em cima disso e tentando melhorar exclusivamente para meu ot xD vlw ai

Compartilhar este post


Link para o post
Compartilhar em outros sites
Eventide    7
Eventide

não entendi uma parada, essa função serve pra todos os OTs?

 

meu amigo me disse que não , é vdd?? O_O

Compartilhar este post


Link para o post
Compartilhar em outros sites
MotoBoy    0
MotoBoy

eu to achando que esse comando soh server pra alguns OTs.. pois depende do global.lua issow x.x

o meu peogu.. mais do meu colwega naum....

LorDz funfou normal!

TheForgotten naum funfou...

 

eh tipo aquele "mayNotMove" que muitos poucos OTs tem...

 

tem que dar sorte =D

 

mais continuo agradecido pakas!

Compartilhar este post


Link para o post
Compartilhar em outros sites

Faça login para comentar

Você vai ser capaz de deixar um comentário após fazer o login



Entrar Agora
Entre para seguir isso  

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×