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

Two functions, Help

ToninhoGC

WarGate.EnT
Joined
Oct 2, 2007
Messages
194
Reaction score
1
The first is when the dying monster "Pirate Ghost" add a storagevalue the person who killed him.

The first is resolved

PHP:
function onDeath(cid, corpse, killer)
    if "Pirate Ghost" == getCreatureName(cid) then
        setPlayerStorageValue(killer, 10000,1)	
    else
        return FALSE
    end
	return TRUE
end

The second is to remove a monster if it is to a certain area, for example if the monster "Demon" is in the area of the town of Carlin, he will be removed.



Thanks for the help of everybody here in topic Requests & Support. I will now be more active in the area of Requests & Support, to help in simple scripts.
 
Last edited:
Back
Top