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

CreatureEvent Double Experience for Epic Vocations

Sirion_Mido

Experienced Member
Joined
Jul 22, 2012
Messages
579
Reaction score
43
Location
E-G-Y-P-T
it's could be not hard but could be useful for some people :)
this script giving double experience to the epic vocations or any vocation id you want :p
Here We Are :)
in your creaturescripts/scripts create file name ExpVoc.lua and paste the following:
Lua:
local rate = 2
local rates = getPlayerRates(cid)
local vocations = {9,10,11,12} -- the vocations id 


function onLogin(cid)
if isInArray(vocations,getPlayerVocation(cid)) then
doPlayerSetExperienceRate(cid, rates[SKILL__LEVEL]+rate)

end
return true
end

now in your creaturescripts/creaturescripts.xml paste the following:
XML:
	<event type="login" name="ExpVoc" event="script" value="ExpVoc.lua"/>

Now in your login.lua
after line
Lua:
registerCreatureEvent(cid, "GuildMotd")
paste this code
Lua:
registerCreatureEvent(cid, "ExpVoc")


Rep++ If It Helpful For You :)
 
very nice :) could you made a effect when i promoted to Epic Elite knight say in effect Epic/ Epic ?
 
ooooorrrrrr...

you can simple set `experience` in vocations.xml to 2.0 .
ex:
XML:
		<skill fist="1.1" club="1.5" sword="1.5" axe="1.1" distance="2.0" shielding="1.5" fishing="1.1" experience="2.0"/>
:)
 
Code:
doPlayerSetExperienceRate(cid, rates[SKILL__LEVEL]+rate)
or
Code:
doPlayerSetExperienceRate(cid, rates[SKILL__LEVEL]*rate)
 
Back
Top