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

soulpints = kills

calum69

New Member
Joined
Aug 12, 2007
Messages
346
Reaction score
3
Location
Great Britain
ive set soulmax="1000" and gainsoulticks="0"

and also added to frag rewards

doPlayerAddSoul(cid, 1)

but how do i make players show kills through frags?

also i would need some sort of script to show on look player has X kills and it works through soulpoints so if a player has 5 soulpoints it says player has (5 kills)
 
Last edited:
This is for onlook
LUA:
function onLook(cid, thing, position, lookDistance)
     if isPlayer(thing.uid) then
            doPlayerSetSpecialDescription(thing.uid, (getPlayerSex(thing.uid) == 0 and ". She" or ". He") .." has killed "..getPlayerSoul(thing.uid).." players")
            
	   return true
     end
return true
end
 
Last edited:
for gain soul points = kill u need make Function addsoul,here a script of my server war.

LUA:
function onKill(cid, target, lastHit)

	local p_skullStorage = getPlayerStorageValue(cid, skullStorage)

	if isPlayer(target) == TRUE then
		if getPlayerIp(cid) == getPlayerIp(target)
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don't gain points or experience from players with the same ip then you.")
			return true
		end
		doPlayerAddSou(cid, 1)
		doPlayerAddExp(cid, (getPlayerExperience(target)/80))
		setPlayerStorageValue(cid, skullStorage, p_skullStorage + 1) 
	end
	return true
end


Go to config lua and put rateExperienceFromPlayers to 0 ZERO

Now go to vocations,all with soul put to 0 ZERO

REP + me
 
Last edited:
for gain soul points = kill u need make Function addsoul,here a script of my server war.

LUA:
function onKill(cid, target, lastHit)

	local p_skullStorage = getPlayerStorageValue(cid, skullStorage)

	if isPlayer(target) == TRUE then
		if getPlayerIp(cid) == getPlayerIp(target) and string.lower(allowSelfLeveling) ~= "yes" then
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don't gain points or experience from players with the same ip then you.")
			return true
		end
		doPlayerAddSou(cid, 1)
		doPlayerAddExp(cid, (getPlayerExperience(target)/80))
		setPlayerStorageValue(cid, skullStorage, p_skullStorage + 1) 
	end
	return true
end


Go to config lua and put rateExperienceFromPlayers to 0 ZERO

Now go to vocations,all with soul put to 0 ZERO

REP + me

where do i put that + how much xp player get?
 
Code:
function onKill(cid, target, lastHit)

	local p_skullStorage = getPlayerStorageValue(cid, skullStorage)

	if isPlayer(target) == TRUE then
		if getPlayerIp(cid) == getPlayerIp(target) and string.lower(allowSelfLeveling) ~= "yes" then
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don't gain points or experience from players with the same ip then you.")
			return true
		end
		doPlayerAddSou(cid, 1)
		[B]doPlayerAddExp(cid, [COLOR="Red"](getPlayerExperience(target)/80)[/COLOR])[/B]
		setPlayerStorageValue(cid, skullStorage, p_skullStorage + 1) 
	end
	return true
end

here
 
is percent ,higher less exp u get

Code:
doPlayerAddExp(cid, (getPlayerExperience(target)/[COLOR="Red"]80[/COLOR]))
 

Similar threads

Back
Top