summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2013-02-17 12:24:45 +0100
committerErik Schilling <ablu.erikschilling@googlemail.com>2013-08-26 22:56:47 +0200
commit44ee071d7ece5a2023f79307f36e8a244c9e7b3a (patch)
tree06b7fcea59bbbf1963b460ca9b678d0ea6fa90e4 /example
parente3a1e9c89e102dbf961c624435c495c759776312 (diff)
downloadmanaserv-44ee071d7ece5a2023f79307f36e8a244c9e7b3a.tar.gz
manaserv-44ee071d7ece5a2023f79307f36e8a244c9e7b3a.tar.bz2
manaserv-44ee071d7ece5a2023f79307f36e8a244c9e7b3a.tar.xz
manaserv-44ee071d7ece5a2023f79307f36e8a244c9e7b3a.zip
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.
Diffstat (limited to 'example')
-rw-r--r--example/monsters.xml5
-rw-r--r--example/permissions.xml1
-rw-r--r--example/settings.xml1
-rw-r--r--example/skills.xml22
4 files changed, 0 insertions, 29 deletions
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 <TAG>: 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<TAG>: Tells how much experience point a monster is giving upon victory.
-->
<monsters>
@@ -44,7 +43,6 @@ exp<TAG>: Tells how much experience point a monster is giving up
size="4"
mutation="50"
/>
- <exp>10</exp>
<attribute id="HP" value="200" />
<attribute id="Max HP" value="200" />
<attribute id="Movement speed" value="2" />
@@ -62,7 +60,6 @@ exp<TAG>: Tells how much experience point a monster is giving up
<drop item="2" percent="1"/>
<drop item="5" percent="0.5"/>
<drop item="9" percent="7"/>
- <exp>20</exp>
<attributes
size="8"
/>
@@ -91,7 +88,6 @@ exp<TAG>: Tells how much experience point a monster is giving up
<drop item="4" percent="5"/>
<drop item="6" percent="0.1"/>
<drop item="9" percent="5.4"/>
- <exp>50</exp>
<attributes
size="8"
gender="female"
@@ -113,7 +109,6 @@ exp<TAG>: Tells how much experience point a monster is giving up
<drop item="7" percent="1.9"/>
<drop item="8" percent="0.1"/>
<drop item="9" percent="7.5"/>
- <exp>60</exp>
<attributes
size="4"
/>
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 @@
<allow>@money</allow>
<allow>@spawn</allow>
<allow>@attribute</allow>
- <allow>@skills</allow>
<allow>@charwarp</allow>
<allow>@killmonsters</allow>
<allow>@getpos</allow>
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 @@
<include file="attributes.xml" />
<include file="abilities.xml" />
<include file="maps.xml" />
- <include file="skills.xml" />
<include file="equip.xml" />
<include file="items.xml" />
<include file="monsters.xml" />
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 @@
-<?xml version="1.0" encoding="utf-8"?>
-<skills>
- <skill-set name="Weapons">
- <skill id="100" name="Unarmed" icon="graphics/skills/unarmed.png" default="true" />
- <skill id="101" name="Knife" icon="graphics/skills/knife.png" />
- <skill id="102" name="Sword" icon="graphics/skills/sword.png" />
- <skill id="103" name="Polearm" icon="graphics/skills/polearm.png" />
- <skill id="104" name="Staff" icon="graphics/skills/staff.png" />
- <skill id="105" name="Whip" icon="graphics/skills/whip.png" />
- <skill id="106" name="Bow" icon="graphics/skills/bow.png" />
- <skill id="107" name="Shooting" icon="graphics/skills/shooting.png" />
- <skill id="108" name="Mace" icon="graphics/skills/mace.png" />
- <skill id="109" name="Axe" icon="graphics/skills/axe.png" />
- <skill id="110" name="Thrown" icon="graphics/skills/thrown.png" />
- </skill-set>
- <skill-set name="Magic">
- <skill id="200" name="Magic Example" />
- </skill-set>
- <skill-set name="Crafts">
- <skill id="300" name="Craft Example" />
- </skill-set>
-</skills>