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

Outfit Automatic Change For Frags Record

JuanC

New Member
Joined
Sep 24, 2009
Messages
220
Reaction score
3
It is not a Reputation System, but something like...
I like a script wich change the outfit of each player in accordance with the quantity of frags/kills; the outfit return to normal at dead.

It is better if this can set for each vocation, and texts are showed for record. For example:

Knight
Demon Skeleton /at 3 kills
Orc Berserker /at 4 kills
Destroyer /at 6 kills ""
Demon /at 7 kills
Morgaroth /at 9 kills
Dworc voodoomaster /at 10 kills or more...

Sorcs/Druids
Fire Devil /at 3 kills
Diabolic imp /at 4 kills
Ghost /at 5 kills
Adept of the cult /at 6 kills
Necromancer /at 8 kills
Lost soul /at 9 kills
Ferumbras /at 11 kills
Hero /at 16 or more kills ...

I can make other list for paladins if somebody can fix this script :thumbup:
Texts to show: "¡GREAT!", "Monster Kill", "Dominating...", "Owner", "Perfect PK", "Apocalypsis", etc...

PD: Sorry for my bad english...
 
take a look here you might be able to make it yourself :)

http://otland.net/f82/addons-frags-60890/
Addons Frags
Light Edition

Lua:
local t =   {
    baseSt = 3633, --storages from 3633 to +21 up will be used
    frags = 9999 --storage to store the amount of kills of the player
    }

local s = { --frags, storage, outfitID, name
    {1200,t.baseSt+21,22,'Warmaster'},
    {1000,t.baseSt+20,21,'Yalaharian'},
    {900,t.baseSt+19,20,'Demonhunter'},
    {800,t.baseSt+18,19,'Brotherhood'},
    {700,t.baseSt+17,18,'Jester'},
    {600,t.baseSt+16,17,'Nightmare'},
    {525,t.baseSt+15,16,'Norsemen'},
    {450,t.baseSt+14,15,'Shaman'},
    {375,t.baseSt+13,14,'Beggar'},
    {325,t.baseSt+12,13,'Assassin'},
    {275,t.baseSt+11,12,'Pirate'},
    {225,t.baseSt+10,11,'Oriental'},
    {175,t.baseSt+9,10,'Wizard'},
    {150,t.baseSt+8,9,'Druid'},
    {125,t.baseSt+7,8,'Barbarian'},
    {100,t.baseSt+6,7,'Warrior'},
    {75,t.baseSt+5,6,'Summoner'},
    {50,t.baseSt+4,5,'Noble'},
    {35,t.baseSt+3,4,'Knight'},
    {20,t.baseSt+2,3,'Mage'},
    {10,t.baseSt+1,2,'Hunter'},
    {5,t.baseSt,1,'Citizen'}
    }

function getFrags(cid,storage)
    for _, t in ipairs(s) do
        if getCreatureStorage(cid,storage) >= t[1] then
            return t
        end
    end
end

function onKill(cid, target, lastHit)
    if not isPlayer(cid) or not isPlayer(target) then
        return true
    end
   
    doCreatureSetStorage(cid,t.frags,getCreatureStorage(cid,t.frags)+1)
   
    if getCreatureStorage(cid, t.frags) < 5 or getCreatureStorage(cid, t.frags) > 1200 then
        return true
    end

    if getFrags(cid,t.frags)[2] == nil then
        return true
    end
   
    if getCreatureStorage(cid,getFrags(cid,t.frags)[2]) == 1 then
        return true
    end
       
    doPlayerAddOutfitId(cid,getFrags(cid,t.frags)[3],3)
    doPlayerSendTextMessage(cid,21,'For obtaining '.. getCreatureStorage(cid,t.frags) ..' kills in total you are rewarded with full '.. getFrags(cid,t.frags)[4] ..' outfit addons!')
    doSendMagicEffect(getCreaturePosition(cid), math.random(67))        
    doCreatureSetStorage(cid,getFrags(cid,t.frags)[2],1)
    return true
end
 
does it work as doplayersetoutfit? instead of addoutfit? because then it shouldnt store it just auto sets their outfit to their current frag value. also you could remove the storage value with a code in onlogin
 
Last edited:
Maybe using this:
doPlayerAddOutfit(cid,looktype, addons)
doPlayerRemoveOutfit(cid,looktype, addons)
But, I don't know how apply them :S
 
well i haven't rescripted it because i dont understand your request, 'bout the outfit part
 
Its for change the looktype if a player have kills; and lost this at death.
Read the first post, please...
 
Back
Top