Hi OTland. In this case im looking for a script, that when i "Use" (right click) to this statue,
a monster appears, like Wrath of The Emperor Quest
I have already tried with these scripts but do not work when i test.
OT/data/actions/scripts/statue1.lua
OT/data/actions/actions.xml
My idea is that it looks like:
Thx for read the thread, have a good day, i hope someone can help me, greetings.
a monster appears, like Wrath of The Emperor Quest
I have already tried with these scripts but do not work when i test.
OT/data/actions/scripts/statue1.lua
Code:
local config = {
item = 12383,
uid = 64307,
delay = 1,
monster = "Mutated Zalamon",
msg = "Use the statue again!.",
pos = {x = 1290, y = 1218, z = 12}}
local config = {
item = 12383,
uid = 64308,
delay = 1,
monster = "Scorn Of The Emperor",
msg = "Use the statue again NOOB!.",
pos = {x = 1283, y = 1224, z = 12}}
local config = {
item = 12383,
uid = 64309,
delay = 1,
monster = "Spite Of The Emperor",
msg = "Prepare for die.",
pos = {x = 1293, y = 1224, z = 12}}
local config = {
item = 12383,
uid = 64310,
delay = 1,
monster = "Fury Of The Emperor",
msg = "Grrrroaar!.",
pos = {x = 1293, y = 1230, z = 12}}
local config = {
item = 12383,
uid = 64311,
delay = 1,
monster = "Wrath Of The Emperor",
msg = "Rest In Peace!.",
pos = {x = 1283, y = 1230, z = 12}}
local config = {
item = 12383,
uid = 64312,
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
Code:
<action uniqueid="64307-64312" event="script" value="statue1.lua"/>
My idea is that it looks like:
Thx for read the thread, have a good day, i hope someone can help me, greetings.
Last edited: