Drazzio
New Member
- Joined
- May 10, 2011
- Messages
- 5
- Reaction score
- 0
Hello. I try to do monster, which can't attack player without the storage and when someone kill monster (one or several people) then gives storage.
It's my try do to it.
It's my try do to it.
I wanna to, choose monster by write his Name like this "getCreatureName(cid) == "Raditz" ".if (isMonster(cid) and getCreatureName(cid) == "Raditz") then
if isPlayer(target) and getPlayerStorageValue(target, storage) >= 2 and getPlayerStorageValue(target, storage) == 0 then
doChangeSpeed(cid, -getCreatureSpeed(cid))
doMonsterChangeTarget(cid)
return true
else
if getCreatureSpeed(cid) == 0 then
doChangeSpeed(cid, getCreatureBaseSpeed(cid))
end
end
return true
end