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

[REQUEST] Skulls

Your Master

♫ ₥ẳ₱₱ễᏑ ♫
Joined
Dec 11, 2008
Messages
244
Reaction score
0
Hello

I need script that i can use on war server i mean:

If u kill 10 ppls u get White Skull
If u kill 30 ppls u get Red Skull
If U kill 100 ppls u get Yellow Skull
If U kill 150 ppls u get Green Skull


U can use for this soul system - I'm working on War Server 1.1 by Karaxel that use soul to be frags

10 Souls - White Skull
30 Souls - Red
100 Souls - Yellow
150 Souls - Green

Thanks
 
Not tested

Code:
function onKill(cid, target)
if getPlayerFrags(cid) == 10 then 
 doCreatureSetSkullType(cid, 3)  -- 3 is white skull
  else if getPlayerFrags(cid) == 30 then
   doCreatureSetSkullType(cid, 4)  -- 4 is red skull
      else if getPlayerFrags(cid) == 100 then
   doCreatureSetSkullType(cid, 1)  -- 1 is yellow
   else if getPlayerFrags(cid) == 150 then
   doCreatureSetSkullType(cid, 2)  -- 2 is green
      end
         end
            end
               end
                  end
 
Not tested

Code:
function onKill(cid, target)
if getPlayerFrags(cid) == 10 then 
 doCreatureSetSkullType(cid, 3)  -- 3 is white skull
  else if getPlayerFrags(cid) == 30 then
   doCreatureSetSkullType(cid, 4)  -- 4 is red skull
      else if getPlayerFrags(cid) == 100 then
   doCreatureSetSkullType(cid, 1)  -- 1 is yellow
   else if getPlayerFrags(cid) == 150 then
   doCreatureSetSkullType(cid, 2)  -- 2 is green
      end
         end
            end
               end
                  end

Whats up with all the ends?

Try
Lua:
function onKill(cid, target)
  if getPlayerFrags(cid) == 10 then 
    doCreatureSetSkullType(cid, 3)  -- 3 is white skull
  elseif getPlayerFrags(cid) == 30 then
    doCreatureSetSkullType(cid, 4)  -- 4 is red skull
  elseif getPlayerFrags(cid) == 100 then
    doCreatureSetSkullType(cid, 1)  -- 1 is yellow
  elseif getPlayerFrags(cid) == 150 then
    doCreatureSetSkullType(cid, 2)  -- 2 is green
  end
end
 
Back
Top