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

Pass trough exp stage if you have a certain storage value

Mjmackan

Mapper ~ Writer
Joined
Jul 18, 2009
Messages
1,488
Solutions
18
Reaction score
199
Location
Sweden
Is it able to make it needed to have an storage value for passing trough the exp stage?

If so, please tell me how, in lua.
Here's the expstage, however its maybe need to be configured in other maps like creaturescripts thats okay ofcourse, so far its lua. If you got any sort of idea how it may work post it, since i am pretty good handling with lua myself and it may leads to an solution.

(I haven't tested anything, maybe an :if not storage: could work, no idea.)

LUA:
<?xml version="1.0" encoding="UTF-8"?>
<stages>
	<world id="0" multiplier="1">
		<stage minlevel="1" maxlevel="8" multiplier="7"/>
		<stage minlevel="9" maxlevel="20" multiplier="6"/>
		<stage minlevel="21" maxlevel="50" multiplier="5"/>
		<stage minlevel="51" maxlevel="100" multiplier="4"/>
		<stage minlevel="101" multiplier="5"/>
	</world>
</stages>

Not what i wanted, i want you to need a storage to continue exp after level 100.

Thats maximum level 100 then you cant gain more experience until you have get a storage id and then you can continue exp to maximum 150 etc..
 
Last edited:
Sorry for i couldnt explain in more detail but its not extra experience i want, i want you to need a storage to continue exp after level 100.

Thats maximum level 100 then you cant gain more experience until you have get a storage id and then you can continue exp to maximum 150 etc..
 
Last edited:
onAdvance event (Creaturescript) / onLogin event (Creaturescript)

if getPlayerLevel(cid) >= 100 and getPlayerStorageValue(cid, 12345) == -1 then
doPlayerSetRate(cid, SKILL__LEVEL, 0)
else
doPlayerSetRate(cid, SKILL__LEVEL, 1)
end
 
Oh thanks, are you sure it will work out, i totaly forgot to tell about the rev i use etc but i will need a week or two before i can start make the tests on the server.
 
Back
Top