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

show kills on look

calum69

New Member
Joined
Aug 12, 2007
Messages
346
Reaction score
3
Location
Great Britain
i remember on old war OT's you used to be able to see players kills on look,

i was wondering if anyone could update one they have or post an up to date one

example:
You see yourself. You are a paladin. You have (15) Kills.

You see "Player" (Level 85). He is a paladin. He has (15) kills.
 
Last edited:
Yes, but it would be faster if you stored them, for example, as player's soul points - instead of executing quer[y/ies] on database every time a player looks at another player.
 
problem is i use soul points for custom spells called last stand, a player has 110 soul points he can use a last stand spell

knights: heals 80% health
mages: 80% mana
paladins: 50% health 30% mana

so they can use it when trapped on their last ditch effort to save their lives.

is their another way to do it than soulpoints?
maybe change the reputation script to run on kills?
 
Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Kills" version="1.0" author="Slaktaren" contact="otland.net" enabled="yes">

local storage = 1234

<event type="kill" name="Kills" event="script"><![CDATA[
if isPlayer(cid) and isPlayer(target) then
    setPlayerStorageValue(cid, storage, getPlayerStorageValue(cid, storage)+1)
end
return true
]]></event>

<event type="login" name="Kills" event="script"><![CDATA[
doPlayerSetSpecialDescription(cid, "Kills: " .. getPlayerStorageValue(cid, storage))
if getPlayerStorageValue(cid, storage) == -1 then
    setPlayerStorageValue(cid, storage, 0)
end
return true
]]></event>
</mod>
Maybe this would work? :p
 
Back
Top