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

Frag reward depending on skull

Nightimarez

New Member
Joined
Jul 24, 2008
Messages
287
Reaction score
2
PHP:
local loot = 5944
 
function onKill(cid, target, lastHit)
	if (getCreatureSkullType(target)  == 5) then
			local item = getPlayerItemById(cid, true, loot)
			if item.uid == 0 or item.type == 100 then
				doPlayerAddItem(cid, loot, 1)
			else
				doTransformItem(item.uid, loot, item.type + 1)
			end
end
	return true
end

I would need a script like that, but for every type of skull.

PHP:
skull 6, 20 soul orb.
skull 1, 40 soul orbs.
skull 2, 60 soul orbs.
skull 3, 80 soul orbs.
skull 4, 100 soul orbs.
skull 5, 1 soul orb.
 
local loot = 5944
Skulls = {}

Skulls[1] = {Skull = 40}

Skulls[2] = {Skull = 60 }

Skulls[3] = {Skull = 80}

Skulls[4] = {Skull = 100}

Skulls[5] = {Skull = 1}

Skulls[6] = {Skull = 20}

function onKill(cid, target, lastHit)
doPlayerAddItem(cid, loot, Skulls[getCreatureSkullType(target)].Skull)
end




It was a very long time ago I scripted for tibia but I think it might be something like this
 
PHP:
local loot = 5944
Skulls = {}

Skulls[1] = {Skull = 40}

Skulls[2] = {Skull = 60 }

Skulls[3] = {Skull = 80}

Skulls[4] = {Skull = 100}

Skulls[5] = {Skull = 1}

Skulls[6] = {Skull = 20}
 
function onKill(cid, target, lastHit)
                doPlayerAddItem(cid, loot, Skulls[getCreatureSkullType(target)].Skull)
end




It was a very long time ago I scripted for tibia but I think it might be something like this

The monster stays alive without moving, name, or health bar. And you keep getting soul orbs non stop because he is still dying.
 
Back
Top