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

Add line to script

Nightimarez

New Member
Joined
Jul 24, 2008
Messages
287
Reaction score
2
PHP:
local loot = 5944
 
function onKill(cid, target, lastHit)
	if isPlayer(target) and getPlayerLevel(cid) < 300 then
		if getPlayerIp(cid) ~= getPlayerIp(target) then
			doPlayerAddLevel(cid, 1)
			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
		else
				doPlayerAddLevel(cid, -1)
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'You have been punished for killing a player of the same IP.')
		end
	end
	return true
end

Add this to it please.

PHP:
if isPlayer(target) and getPlayerLevel(cid) > 300 then
		local baseExp = math.random(40000,50000)
 
LUA:
local loot = 5944

function onKill(cid, target, lastHit)
	if isPlayer(target) then
		if getPlayerIp(cid) ~= getPlayerIp(target) then
			if getPlayerLevel(cid) < 300 then
				doPlayerAddLevel(cid, 1)
			else
				local r = math.random(40000, 50000)
				doPlayerAddExp(cid, r)
				doSendAnimatedText(getThingPos(cid), r, 215)
			end
			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
		else
			doPlayerAddLevel(cid, -1)
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'You have been punished for killing a player of the same IP.')
		end
	end
	return true
end
 
Back
Top