Lbtg
Advanced OT User
- Joined
- Nov 22, 2008
- Messages
- 2,398
- Reaction score
- 165
Hello the script aint working well if player doesnt have party even on he gets insane exp and it gets doubled every same monster kill can someone fix it please 
PHP:
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