• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Creaturescript - Chance to gain exp after level X

chiitus

Member
Joined
Jun 1, 2009
Messages
206
Reaction score
12
Hi guys,
I want a script that if the player's level is higher than X, will have a chance to don't come the experience to the player.

thanks adv!
 
you mean if player is ex: lvl 400 and kill monster there is chance he will not gain any exp?
or same but for pvp ? player A kill player B 10 times but only 4 times get exp for that ?
 
Example, if player level is higher than 250 the chance of the player gain the monster's exp is 70%, so the chance to not gain is 30%.
I think is possible setting the player's exp rate to 0x, it's possible?

Someone ? Help please :x
 
Last edited:
Why would you just set the players Experience Rate to 0.7? SO he gains 70% experience?

No.. he means, when he kills a monster on only has a 70% CHANCE to gain exp. the other 30% of the time they would gain nothing.

It wouldn't change the rate at all, just change the chance of getting any exp at all.
 
I know what he MEANS I was asking, why WOULDN'T you just set the experience rate to 70% rather than gaining experience 70% of the time. Which is pretty close to the same thing.

There is no logical reason why on any server you would want a player to only gain experience 70% of the time, rather than just gaining 70% of the total experience.
 
I know what he MEANS I was asking, why WOULDN'T you just set the experience rate to 70% rather than gaining experience 70% of the time. Which is pretty close to the same thing.

There is no logical reason why on any server you would want a player to only gain experience 70% of the time, rather than just gaining 70% of the total experience.

While I agree that the idea itself isn't that good, there are two massively different things occurring.

Imagine for a second on his server, there are not that many monsters that give a lot of exp, and the few monsters that give you a lot of exp, are deep down in a cave.

That means once you have taken the time to get to that monster that gives you a lot of exp, say a demon, you have a chance to kill it and GAIN NOTHING, rather than get a lower amount of exp.

And if it had a long respawn time, that would force the player to wait around, and still have a chance of getting no exp when he kills it.

This system would make camping one monster a bad idea(or a spawn, like say, edron heroes, or the black knight on real tibia), and promote hunting areas that have a lot of monsters in the area, because it would be more likely to gain any exp at all.

I would imagine that his server would also have staged exp rates, so what you suggested would already be doable, this would just be an addition to exp stages, and how it limits exp gaining.


Also, say on his server, fighting monsters is really deadly, with a high chance of dying, if a player actually killed something, and got no exp at all, that would hit harder than just having a decreased gain.

Overall the point would be to cause people to spread out more, and not camp smaller spawns, or single boss spawns.
 
Last edited:
Back
Top