• 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!

CreatureEvent Special monster.

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.
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
I wanna to, choose monster by write his Name like this "getCreatureName(cid) == "Raditz" ".
 
Back
Top