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

-ReQ-Party System

HamTheKratos

Member
Joined
Jan 14, 2009
Messages
243
Reaction score
8
Location
I Dunno
Hello.........

May Some One Help Me In Editing Party System So:any monster the leader kills it's exp get shared on all other party members(exp don't go to the leader)


Thanks For Reading And Please Help
 
No just with lua, cuz you can't stop player from gaining xp.
You need source edit..
 
it is not stopping gain exp. Lemme explain more : lets say demon give100exp and a leader of party with 10 members kill demon each member gets 10exp in other words leader's exp get shared
 
It is stopping the player from gaining exp. Because if a player kills a monster he will gain exp and if you divide the exp to all party members he will get exp again. So you need to add a feature that stop the first exp.
 
you said it is impossible to make it cancel gain exp.okay lets say demon gives100exp a leader of party with 10members kills a demon he gets 100exp and each one in the party gets 10exp how about that. Now it exp gain wont be cancelled. Btw im using tfs 0.4
 
you said it is impossible to make it cancel gain exp.okay lets say demon gives100exp a leader of party with 10members kills a demon he gets 100exp and each one in the party gets 10exp how about that. Now it exp gain wont be cancelled. Btw im using tfs 0.4

Try out this one:
PHP:
function onKill(cid, target, lastHit)
	if isMonster(target) and getPlayerParty(cid) ~= nil then
		local p = getPartyMembers(getPlayerParty(cid))
		local exp = #p ~= 1 and math.floor(getMonsterInfo(getCreatureName(target)).experience/#p) or 0
		
		for i = 1, #p do
			doPlayerAddExperience(p[i], exp)
			doSendAnimatedText(getPlayerPosition(p[i], exp, COLOR_WHITE)
		end
	end
	return true
end

Also register it in login.lua

and ofc there is a exp shared party mode..
 

Similar threads

Back
Top