Ezzam
New Member
- Joined
- Jan 16, 2008
- Messages
- 213
- Reaction score
- 2

I havn't tested this yet, but i tried to start the ot (TFS 0.3.2)
and i didn't get any error. Hopefully it works. All made by me!
(sorry if it not work's, but some other lua-scripters can fix it if they have time)
Add this line to Movements.XML
Code:
<movevent event="AddItem" actionid="60999" script="Demon-Edron-Summon4.lua"/>
And create a file called: Demon-Edron-Summon4.lua and add this inside
Code:
function onAddItem(moveitem, tileitem, position)
if moveitem.itemid == 1951 then
doRemoveItem(moveitem.uid)
parchment = {x=33063, y=31624, 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,1951,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
Last edited: