Hello.
I have problem with my monster to Saga (mission).
TFS 0.3.5pl1
It should be like (GOOD):
- Before start saga i get storage 99,1 (i cannot target monster, the monster cannot attack me, i cannot attack with melee and area spells the monster [i dont have required storage to attack], monster should stay in sqm and dont react to player (without req. storage) on battle list)
- After talking with npc i get storage 100,1 (Now i CAN target monster, kill them, monster automatically attack me, i can attack with melee & spells) [i have required storage to attack, the monster should be now aggressive if he see me).
In my script is like this: (WRONG)
- If i dont have required storage (100,1) i can attack monster, monster cannot attack me but monster still follow me ...
- If i have required storage (100,1) the monster attack me, monster follow me , i can attack monster..
i added to login.lua, monster .xml file...
Please, somebody can fix it ;///
@ Edit
I tried: http://otland.net/f132/attack-monster-111505/
But still dont work perfectly ("what it should be like...")
I have problem with my monster to Saga (mission).
TFS 0.3.5pl1
It should be like (GOOD):
- Before start saga i get storage 99,1 (i cannot target monster, the monster cannot attack me, i cannot attack with melee and area spells the monster [i dont have required storage to attack], monster should stay in sqm and dont react to player (without req. storage) on battle list)
- After talking with npc i get storage 100,1 (Now i CAN target monster, kill them, monster automatically attack me, i can attack with melee & spells) [i have required storage to attack, the monster should be now aggressive if he see me).
In my script is like this: (WRONG)
- If i dont have required storage (100,1) i can attack monster, monster cannot attack me but monster still follow me ...
- If i have required storage (100,1) the monster attack me, monster follow me , i can attack monster..
LUA:
function onCombat(cid, target)
if isMonster(cid) and getCreatureName(cid, Test) and getPlayerStorageValue(cid, 99) == 1 then
doPlayerSendCancelMessage(cid,"You cannot attack this monster now.")
return false
elseif isMonster(cid) and getCreatureName(cid, Test) and getPlayerStorageValue(cid, 100) == 1 then
return true
end
return true
end
Please, somebody can fix it ;///
@ Edit
I tried: http://otland.net/f132/attack-monster-111505/
But still dont work perfectly ("what it should be like...")
Last edited: