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

No exp From Player Script, No Exp from same IP

Onizuka

Member
Joined
Jul 5, 2008
Messages
2,291
Reaction score
14
Needing 2 scripts.

Both for tfs 0.4


1. No Exp from same IP Killer. Simple for some people i guess, playera kills playerb if same ip = no exp



2. Creaturescript?

If playera kills playerb more than 6 times, than after 6th time he will get no exp. pvp-enfo based.


Thanks! Love :>
 
first one should be like this, not sure if it works.

LUA:
function onKill(cid,target,deathList)
	if not getPlayerIp(cid) == getPlayerIp(target) then
		return not doCreatureSay(cid,'No EXP!',19)
	end
	return true
end
 
first one should be like this, not sure if it works.

LUA:
function onKill(cid,target,deathList)
	if not getPlayerIp(cid) == getPlayerIp(target) then
		return not doCreatureSay(cid,'No EXP!',19)
	end
	return true
end
then player won't die? :p you also much check if isPlayer(target) if there are monsters on server :p
 
LUA:
function remove_exp(cid, old)
    if isPlayer(cid) then
        doPlayerAddExperience(cid, - (getPlayerExperience(cid) - old))
    end
end

function onKill(cid, target, deathList)
    if not isPlayer(target) then
        return true
    end
    
    if (getPlayerIp(cid) == getPlayerIp(target)) then
        addEvent(remove_exp, 100, cid, getPlayerExperience(cid))
    end
    return true
end
 
hi, im bumping this because i need, i use janos script but dont works, im using tfs 0.4 it doesnt give any console error i put that script on
creaturescritps:
Code:
	<event type="kill" name="NoExp" event="script" value="noexp.lua"/>

and registered in login

can someone helpme
 
Back
Top