• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[creaturescripts] Help-me...

ka9

New Member
Joined
Jul 25, 2009
Messages
32
Reaction score
0
Hi, I'm predicament with this script ...

PHP:
function onCombat(cid, target)
local pos = {x=5011, y=5131, z=7}
targets = getMonsterTargetList(cid)
if(not isPlayer(targets)) then
doTeleportThing(targets, pos)
end
return TRUE
end
When a monster of a target player in the player goes through the temple,,

Help-me please....
 
Last edited by a moderator:
when a monster shoots a player it teleports to the temple?

or when a player shoots this monster it teleports to the temple?
what do you mean exactly?

if you mean that if a player is not being attacked by this monster then this might work
i havent tested the script though

Code:
local temple_pos =  {x=5011, y=5131, z=7 monster = "MONSTERNAME"}
function onCombat(cid, target)
if (getMonsterTargetList(cid) == isPlayer) then
return false
else 
if (getMonsterTargetList(cid) == 0) then
doTeleportThing(temple_pos)
return true
end
end
end
 
Last edited by a moderator:
well thats what i thought to at first but this seems like the oppesit

if(not isPlayer(targets)) then
doTeleportThing(targets, pos)

so that made me think if the creature isnt attacking the player it wil teleport to temple lol
it might help if he dousnt use a google translator and just typed it proper english like making a friend translate xD
 
Back
Top