• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[Request] Skull System for 0.4 or source edit codes i give rep!!

narko

vertrauenswürdig ~
Joined
Oct 19, 2008
Messages
1,317
Solutions
2
Reaction score
132
Location
Unknown
Hello, Otlanders i need a script of works skull system for 0.4 or 0.3.6 (or source edit codes)

i give much rep ++
 
source code

Code:
f(!pzLocked)
{
pzLocked = true;
sendIcons();
}

if(getZone() != target->getZone() || skull != SKULL_NONE
#ifdef __WAR_SYSTEM__
|| targetPlayer->isEnemy(this, true)
#endif
)
return;

[B][COLOR="red"]if(targetPlayer->getSkull() != SKULL_NONE)
targetPlayer->sendCreatureSkull(this);
else if(!hasCustomFlag(PlayerCustomFlag_NotGainSkull))
{
setSkull(SKULL_WHITE);
g_game.updateCreatureSkull(this);
}[/COLOR][/B]
}

wHAT I MUST TO REMOVE IN SORCE ?

this
 
where to add??? creaturescripts?

function onKill(cid, target, lastHit)
if isPlayer(target) and cid ~= target then
local frags = math.max(0, getCreatureStorage(cid, storage)) + 1
setPlayerStorageValue(cid, storage, frags)
if frags >= 10 then
doCreatureSetSkullType(cid, SKULL_YELLOW)
elseif frags >= 20 then
doCreatureSetSkullType(cid, SKULL_WHITE)
elseif frags >= 50 then
doCreatureSetSkullType(cid, SKULL_RED)
end
end
return true
end
 
#up.
yeah, creaturescript.
with this line on creaturescripts.xml
XML:
     <event type="kill" name="SkullSystem" event="script" value="skullsystem.lua"/>

#Cyko.
It Won't work if i set pvp mode as 'hardcore'? i've tried to make this but in hardcore it doesn't show any skull, even if set by a script. (like this)
 
Back
Top