MOVEMENT
When monster step on this floor then action happens again.. So i want only players could open 'THE DEMONIC PORTAL' Aaargh!
It's simple but not 4 me
I've added this line "if isplayer (cid) then" but i don't even check it because it's shit .
Lua:
local t = {
storage = 32001,
monster = {"Grim Reaper", {x=1110, y=1250, z=11}},
msg = "You've inject the demonic portal!!"
}
m1pos = {x=1117, y=1244, z=11}
m2pos = {x=1118, y=1244, z=11}
m3pos = {x=1118, y=1243, z=11}
m4pos = {x=1111, y=1249, z=11}
m5pos = {x=1116, y=1245, z=11}
function onStepIn(cid, item, position, fromPosition)
if getPlayerStorageValue(cid, t.storage) < 1 then
if isplayer (cid) then
doCreatureSay(cid, t.msg, TALKTYPE_ORANGE_1)
doSummonCreature(t.monster[1], t.monster[2])
doSummonCreature("Uber Demon", m1pos)
doSummonCreature("Infernalist", m2pos)
doSummonCreature("Plaguesmith", m3pos)
doSummonCreature("Nightmare", m4pos)
doSummonCreature("Hellspawn", m5pos)
setPlayerStorageValue(cid, t.storage, 1)
end
return TRUE
end
It's simple but not 4 me
I've added this line "if isplayer (cid) then" but i don't even check it because it's shit .