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

Help with Script - Rep

Waller

gogo
Joined
Jun 19, 2008
Messages
770
Reaction score
14
Location
Sweden
Hi out there!

I want the "worldtype" as PVP.

But I want so players can get experience by killing another player in-game. So if anyone there can give me a script that doing so you can get exp by killing players.

I will rep you.


Regards,
Waller!
 
You dont need a script for that, just go into config.lua and search for this line "rateExperienceFromPlayers" then you also need to balance these two lines "minLevelThresholdForKilledPlayer" "maxLevelThresholdForKilledPlayer"
Dont forget to rep ;)
 
You dont need a script for that, just go into config.lua and search for this line "rateExperienceFromPlayers" then you also need to balance these two lines "minLevelThresholdForKilledPlayer" "maxLevelThresholdForKilledPlayer"
Dont forget to rep ;)

Imho. won't change anything if he wants to use PvP. He needs onKill/onDeath script that will add experience points to killers, if he wants to use TFS built-in exp system like for Hardcore PvP, it requires source edit.
 
It's not advanced, but still some basic so you'll know how to do that:
Code:
function onKill(cid, target, flags)
	if(isPlayer(target)) then
		local xp = math.ceil(0.1 * getPlayerExperience(target))
		doPlayerAddExperience(cid, xp)
	end
	return true
end
 
Back
Top