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

Enfo req level

GOD Wille

Excellent OT User
Joined
Jan 11, 2010
Messages
2,826
Solutions
2
Reaction score
815
Location
Sweden
how to fix that u can pvp by normal at lvl 1-159,999k but when lvl 160k u get exp from players?

(so nobody under 160k can let other kill they for lvls)

Help

Rep++
 
if u dont know how tofix u maybe know how to fix: exp stages to pvp enf like:

At lvl 1-20k = 20lvls each kill 20k-40k 40lvls each kill etc
 
PHP:
function onKill(cid, target)
	if not (isPlayer(target)) then
		return true
	end

	if getPlayerLevel(cid) >= 160 and getPlayerLevel(target) >= 160 then
	doPlayerAddExperience(cid, (getPlayerExperience(target)/2)/20)
	end
end

NOTE: in login.lua put:

registerCreatureEvent("PvpEnf")

and creaturescript.xml

<event type="kill" name="PvpEnf" event="script" value="pvpenf.lua"/>



REP ++ plz
 
PHP:
function onKill(cid, target)
	if not (isPlayer(target)) then
		return true
	end

	if getPlayerLevel(cid) >= 160 and getPlayerLevel(target) >= 160 then
	doPlayerAddExperience(cid, (getPlayerExperience(target)/2)/20)
	end
end

NOTE: in login.lua put:



and creaturescript.xml





REP ++ plz

He said level 160,000.. and your exp formula isn't that great.

I'm not sure if there is a option for this, but you could always change it directly in the sources very easily.
 
Back
Top