Any ways to (HARD) limit the srv to 80cap ?

05/11/2012 23:07 Janick_#16
Quote:
Originally Posted by Shifty* View Post
Why don't you just edit the Gameserver with ollydbg?
If you do so it works, but then you kill lord yarkan titan and u still reach any level above 80..
05/11/2012 23:12 zikor1337#17
Yup, even if you do it with olly . It will still go over the "cap" level you setted.

Anyway .. problem solved in the easy way. Changed the exp to 999tril 999 bil 999 mil 999 thousand 999.
05/11/2012 23:21 Getzabelz#18
Quote:
Originally Posted by zikor1337 View Post
Too complicated and too much work. It's not for my server ... so ... the exp limit (99999999999999999999) should be enough .
Is not hard dude, I don't mind to make it for you if you want.

There are several ways to control this issue.

Look, this is the trigger:

/*Script by Getzabelz (Class Online)*/
use SRO_VT_SHARD;
CREATE TRIGGER 'controlLevel80' AFTER UPDATE ON _Char
FOR EACH ROW
IF OLD.CurLevel>80 THEN
SET NEW.CurLevel=80;
END IF;
END;

I haven't checked it but should work