1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25. | local mob = {
['Merihathor'] = {
itms = {[1] = 1486, [2] = 1404},
pos = {x = 1, y = 1, z = 1, stackpos = 1},
time = 5*60*1000
}
}
onKill(cid, target, lastHit)
local mobs = mob[getCreatureName(cid)]
if mobs ~= nil then
local function on_items()
if getThingfromPos(mobs.pos).itemid == mobs.itms[2] then
doTransformItem(getThingfromPos(gatepos).uid, mobs.itms[1])
end
end
if getThingfromPos(mobs.pos).itemid == mobs.itms[1] then
doTransformItem(getThingfromPos(gatepos).uid, mobs.itms[2])
addEvent(on_items, mobs.time)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Please contact to GM")
end
end
return true
end |