From 44ee071d7ece5a2023f79307f36e8a244c9e7b3a Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Sun, 17 Feb 2013 12:24:45 +0100 Subject: Removed skills This removes support for skills. The plan is to allow to implement the skills as they were implemented before via attributes. This adds a lot more flexibility to the server creators while also removing the confusion about skills and attributes. So this change does: - Remove the skillmanager with all its calls, the skill xml file, etc - Move exp giving to the script engine: --> Allows to implement the old behaviour (and more) in the scripts - Remove the exp tag from the monster definition: + Since the server itself does not require it anymore it feels wrong to require it for EVERY monster. TODO: Add a system to add properties to the monsters/items.xml which allow defining things like the exp and allows to read the value from the script engine. + Small drawback, but it should not be hard to implement this property system. - Drop the level networking and calculation. + level calculation will happen via the attribute system later but i would prefer to do this in a seperate patch since this patch already got longer than expected especially since this requires to make setting correction points and available status points scriptable. + The level would be simply set as a attribute, the int number of it will be the level, the remaining digits will be the % number till the next levelup. - NOT remove any existing skill tables in the database update scripts. + There is no way to move them into the attribute table in a unified way (there are too many different way they could have been used). So server admins have to care about moving theirs skills to attributes themselves. + Keeping the old tables does not hurt for existing databases. So removing does not give any advantage/is required anyway. The now obsolote info about the EXP transaction is not removed for updated databases either. (The update script basically only bumps the version number without doing anything else. - bump the network protocol version --> old clients won't be able to connect. - bump the database version --> serveradmins need to update their db. --- example/monsters.xml | 5 ----- example/permissions.xml | 1 - example/settings.xml | 1 - example/skills.xml | 22 ---------------------- 4 files changed, 29 deletions(-) delete mode 100644 example/skills.xml (limited to 'example') diff --git a/example/monsters.xml b/example/monsters.xml index 890a3b2b..53fd3382 100644 --- a/example/monsters.xml +++ b/example/monsters.xml @@ -25,7 +25,6 @@ attributes : Tells all the monsters attribute. These attribute, as for ite For instance, with a mutation of 50, each attribute can be altered to become 100% to 149% of what they are. element[string]: Tells to which element the weakness is. ('fire', 'earth', 'ice', 'metal' are some examples.) factor[float]: Tells the defense against an element is reduced in percent. (A value of 0.7 indicates that the defense is lowered by 30%). -exp: Tells how much experience point a monster is giving upon victory. --> @@ -44,7 +43,6 @@ exp: Tells how much experience point a monster is giving up size="4" mutation="50" /> - 10 @@ -62,7 +60,6 @@ exp: Tells how much experience point a monster is giving up - 20 @@ -91,7 +88,6 @@ exp: Tells how much experience point a monster is giving up - 50 : Tells how much experience point a monster is giving up - 60 diff --git a/example/permissions.xml b/example/permissions.xml index 6385d505..97ce8c6f 100644 --- a/example/permissions.xml +++ b/example/permissions.xml @@ -20,7 +20,6 @@ @money @spawn @attribute - @skills @charwarp @killmonsters @getpos diff --git a/example/settings.xml b/example/settings.xml index 6f2516d5..edb90406 100644 --- a/example/settings.xml +++ b/example/settings.xml @@ -3,7 +3,6 @@ - diff --git a/example/skills.xml b/example/skills.xml deleted file mode 100644 index 7019759f..00000000 --- a/example/skills.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -- cgit v1.2.3-70-g09d2