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

Lua When in party receive X% bonus experience after kill monster

Fresh

Quack!
Joined
Oct 21, 2009
Messages
1,855
Solutions
18
Reaction score
665
Hello.
Anyone can help me with : when someone is in party he receive X% bonus experience after kill monster ?

I need that and the option in config.lua about more percent exp when in party not working ;/

TFS 0.36pl1
 
Config.lua
LUA:
EnableExtraPartyEXP = true -- if true then enabled, if false then disabled

If you didn't know this is a creaturescript.
LUA:
function onCombat(cid, target)
 local pid = isInParty(cid)
local exp = 1.0
if pid ~= false then
end
local _v = getPlayerRates(cid)[SKILL__LEVEL]
if pid ~= true and getConfigValue("EnableExtraPartyEXP") == true then
doPlayerSetRate(cid, SKILL__LEVEL, (_v+exp))
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are currently gaining more experince due to being in a party.")
		end
	return true
	end


Are all your posts from requests? <_<
 
Last edited:
Config.lua
LUA:
EnableExtraPartyEXP = true -- if true then enabled, if false then disabled

If you didn't know this is a creaturescript.
LUA:
function onCombat(cid, target)
 local pid = isInParty(cid)
local exp = 1.0
if pid ~= false then
end
local _v = getPlayerRates(cid)[SKILL__LEVEL]
if pid ~= true and getConfigValue("EnableExtraPartyEXP") == true then
doPlayerSetRate(cid, SKILL__LEVEL, (_v+exp))
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are currently gaining more experince due to being in a party.")
		end
	return true
	end


Are all your posts from requests? <_<

What to put in creaturescripts.xml & login.lua?
 

Similar threads

Back
Top