Oi TibaKing. Neste caso estou em busca de um script, para fazer aparecer um monstro dando "Use" (Right Click) na esta estátua,
igual a Wrath of The Emperor Quest
Eu já tentei com estes scripts mas não funcionam quando testo no servidor
OT/data/actions/scripts/statue1.lua
local config = {
[64307] = {
item = 12383,
delay = 1,
monster = "Mutated Zalamon",
msg = "Use the statue again!.",
pos = {x = 1290, y = 1218, z = 12}
},
[64308] = {
item = 12383,
delay = 1,
monster = "Scorn Of The Emperor",
msg = "Use the statue again NOOB!.",
pos = {x = 1283, y = 1224, z = 12}
},
[64309] = {
item = 12383,
delay = 1,
monster = "Spite Of The Emperor",
msg = "Prepare for die.",
pos = {x = 1293, y = 1224, z = 12}
},
[64310] = {
item = 12383,
delay = 1,
monster = "Fury Of The Emperor",
msg = "Grrrroaar!.",
pos = {x = 1293, y = 1230, z = 12}
},
[64311] = {
item = 12383,
delay = 1,
monster = "Wrath Of The Emperor",
msg = "Rest In Peace!.",
pos = {x = 1283, y = 1230, z = 12}
},
[64312] = {
item = 12383,
delay = 1,
monster = "Snake God Essence",
msg = "Im gonna kill you!.",
pos = {x = 1289, y = 1235, z = 12}
}
}
local active = -1
function onUse(cid, item, fromPosition, itemEx, toPosition)
if (item.itemid == config.item and item.uid == config.uid and active == -1) then
doCreatureSay(cid, config.msg, TALKTYPE_MONSTER_SAY)
active = 1
addEvent(summonMonster, 1000, cid)
end
return true
end
function summonMonster(cid)
if (second == nil) then
second = config.delay
else
second = (second - 1)
end
if (second == 0) then
doCreateMonster(config.monster, config.pos)
second = config.delay
active = -1
else
doCreatureSay(cid, second, TALKTYPE_MONSTER_SAY)
addEvent(summonMonster, 1000, cid)
end
return true
end
OT/data/actions/actions.xml
<action uniqueid="64307-64312" event="script" value="statue1.lua"/>
Eu quero que ele funcione bem:
Usando o Estátua 1, Aparece um Mutated Zalamon
Usando o Estátua 2, Aparece um Scorn of The Emperor
Usando o Estátua 3, Aparece um Spite of The Emperor
Usando o Estátua 4, Aparece um Fury of The Emperor
Usando o Estátua 5, Aparece um Wrath of The Emperor
Usando o Estátua 6, Aparece um Snake God Essence
Obrigado por ler o tópico, ter um bom dia, tarde ou noite e eu espero que você possa me ajudar, saudações.