FL
action

[action] Stuffed Dragon

Por flavio12, 18 de abr. de 2009 em Actions e Talkactions

otserv
tibia
script
7
2.3k
flavio12F
18 de abril de 2009 às 21:30

Action Simple porem bem legalzinha ^^

 

Vamos la:

Stuffed_Dragon.gif

 

Primeiramente copie e cole um arquivo da pasta data/actions/scripts e renomeie-o para Stuffed Dragon e coloque isto dentro dele:

 

--Stuffed Dragon action by Pokus--
function onUse(cid, item, frompos, item2, topos)
sorte = math.random(1,5)
pos = getPlayerPosition(cid)

if item.itemid == 5791 and sorte == 1 then
doCreatureSay(cid, "Fchhhhhh!", TALKTYPE_ORANGE_1)

elseif item.itemid == 5791 and sorte == 2 then
doCreatureSay(cid, "Zchhhhhh!", TALKTYPE_ORANGE_1)

elseif item.itemid == 5791 and sorte == 3 then
doCreatureSay(cid, "Grooaaaaar", TALKTYPE_ORANGE_1)

elseif item.itemid == 5791 and sorte == 4 then
doCreatureSay(cid, "Aaa... CHOO!", TALKTYPE_ORANGE_1)

elseif item.itemid == 5791 and sorte == 5 then
doSendMagicEffect(pos,6)
doCreatureAddHealth(cid,-1)
doCreatureSay(cid, "You... will.... burn!!", TALKTYPE_ORANGE_1)
end
return TRUE
end

 

Agora no arquivo actions.xml coloque isto

 

<action itemid="5791" script="stuffed dragon.lua"/>

 

é isso ai galera action simples porem legalzinha ^^

 

PS: eu tava com um probleminha nesta parte:

 

doCreatureAddHealth(cid,-1)

esta é a parte que o player sofre o dano de -1 no seu hp

se esta funçao nao funcionar em seu OT subistua o arquivo por este:

 

--Stuffed Dragon action by Pokus--
function onUse(cid, item, frompos, item2, topos)
sorte = math.random(1,5)
pos = getPlayerPosition(cid)

if item.itemid == 5791 and sorte == 1 then
doCreatureSay(cid, "Fchhhhhh!", TALKTYPE_ORANGE_1)

elseif item.itemid == 5791 and sorte == 2 then
doCreatureSay(cid, "Zchhhhhh!", TALKTYPE_ORANGE_1)

elseif item.itemid == 5791 and sorte == 3 then
doCreatureSay(cid, "Grooaaaaar", TALKTYPE_ORANGE_1)

elseif item.itemid == 5791 and sorte == 4 then
doCreatureSay(cid, "Aaa... CHOO!", TALKTYPE_ORANGE_1)

elseif item.itemid == 5791 and sorte == 5 then
doSendMagicEffect(pos,6)
doPlayerAddHealth(cid,-1)
doCreatureSay(cid, "You... will.... burn!!", TALKTYPE_ORANGE_1)
end
return TRUE
end

 

Espero que gostem :blush:

Editado Abril 19 por Bugh

19 de abril de 2009 às 00:12

Realmente bom, porque eh dessas coisas que fazem um ot!!

Criando coisas novas, manerias e divertidas, o publico gosta mais =D

 

Gratz Ai pelo script!! (Apesar de muito facil)

flavio12F
19 de abril de 2009 às 07:13

Sim vc tem razao! Coisas assim sao boas para ot's com low exp ^^

os players gostam :D

 

Script facil mesmo mais é bem divertido ^^

zani123Z
20 de abril de 2009 às 10:20

Muito bom gostei!

 

Mas eu tbm tive uma ideia: Se voce ficar clicando muitas vezes,e for "burned" mais de 10 vezes,o dragaozinho vira um DL 'o.O...

 

USASUHHAUS..

 

Mas o script ta muito bom!Parabéns.

1 mês depois...
FilaosF
15 de maio de 2009 às 15:16

legal lek

marcelinhomp13M
15 de maio de 2009 às 23:15

Legal e inútil ao mesmo tempo.

LorD SybianL
20 de maio de 2009 às 18:17

Sem Comentarios

 

---

 

Aprovado

 

esK~