Trying to do an quest that when you click an specifik "lever" you spawn 1 monster in the middle and 4 monsters in each corner.. when the 4 monsters are dead a stone gets removed located 4 steps south of where the monster in the middle was, and an tp is created..and if the 1 monster in the middle dies before the other 4, you get tped to a place starting over.
Rep+ for help.
P.S if you dont understand il try to explain what my quest is... im trying to make an part 1/5 quest where this is the first part called "restoration"... the 4 monsters will attack with ue at you/team. while you're standing beside the monster in the middle .. so in order to pass the quest you have to heal the monster in the middle preventing it from dying while killing the other 4 monsters.
This is what i got so far
Rep+ for help.
P.S if you dont understand il try to explain what my quest is... im trying to make an part 1/5 quest where this is the first part called "restoration"... the 4 monsters will attack with ue at you/team. while you're standing beside the monster in the middle .. so in order to pass the quest you have to heal the monster in the middle preventing it from dying while killing the other 4 monsters.
This is what i got so far
function onUse(cid, item, fromPosition, itemEx, toPosition)
local name = 'Frozen Demon'
local named = 'Ninja Rabbit'
local pos7 = {x = 1339, y = 1021, z = 7}
local pos = {x = 1343, y = 1024, z = 7}
local pos1 = {x = 1343, y = 1019, z = 7}
local pos9 = {x = 1335, y = 1024, z = 7}
local pos8 = {x = 1335, y = 1019, z = 7}
if item.itemid == 1945 then
doPlayerSendTextMessage(cid,21,"It works !")
doTransformItem(item.uid, item.itemid + 1)
doCreateMonster(name, pos)
doCreateMonster(name, pos1)
doCreateMonster(name, pos8)
doCreateMonster(name, pos9)
doCreateMonster(named, pos7)
elseif item.itemid == 1946 then
doPlayerSendTextMessage(cid,21,"You pulled it back!")
doTransformItem(item.uid, item.itemid - 1)
end
return TRUE
end -- Every Function has to have an own "end" too.
Last edited: