Hey i have problem with parchment room quest.
Script works good. when i take parchment, scripts summons 4 demons but only GM can take parchment :S
data/movemens/scripts/Demon-Edron-Summon4.lua
data/movements/movement.xml
What's wrong?
Script works good. when i take parchment, scripts summons 4 demons but only GM can take parchment :S
data/movemens/scripts/Demon-Edron-Summon4.lua
Code:
function onAddItem(moveitem, tileitem, position)
if moveitem.itemid == 1953 then
doRemoveItem(60999)
parchment = {x=33063, y=31623, z=15}
demon1pos = {x=33060, y=31623, z=15}
demon2pos = {x=33066, y=31623, z=15}
demon3pos = {x=33060, y=31627, z=15}
demon4pos = {x=33066, y=31627, z=15}
doSummonCreature("Demon", demon1pos)
doSummonCreature("Demon", demon2pos)
doSummonCreature("Demon", demon3pos)
doSummonCreature("Demon", demon4pos)
addEvent(doCreateItem,10000,1953,1,parchment)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You made the demon lord angry and he summoned 4 demons around you.")
end
return TRUE
end
data/movements/movement.xml
Code:
<movevent type="AddItem" event="script" actionid="60999" value="Demon-Edron-Summon4.lua"/>
What's wrong?