diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-01-27 01:31:17 +0100 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-01-27 01:31:17 +0100 |
commit | 0b10fd63ad74a5c1fad4e1cc59e2b623e7049e44 (patch) | |
tree | 98e1839741f977d0fbcf1ec558359c0427728a01 /example | |
parent | f8cde72ad21ea16f129203a5740db02da7a24f0a (diff) | |
download | manaserv-0b10fd63ad74a5c1fad4e1cc59e2b623e7049e44.tar.gz manaserv-0b10fd63ad74a5c1fad4e1cc59e2b623e7049e44.tar.bz2 manaserv-0b10fd63ad74a5c1fad4e1cc59e2b623e7049e44.tar.xz manaserv-0b10fd63ad74a5c1fad4e1cc59e2b623e7049e44.zip |
Updates to the example data.
- Fixed monsters Id.
- Added collision layer to the desert map.
- Added a few simple NPCs on the map (They still need a sprite.)
- Added player and hairstyles sprites files and definition in items.xml.
Diffstat (limited to 'example')
42 files changed, 794 insertions, 8 deletions
diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle0.xml b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle0.xml new file mode 100644 index 00000000..7fecdadf --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle0.xml @@ -0,0 +1,80 @@ +<?xml version="1.0"?> +<sprite> + <!-- + This is the bald hairstyle, hence it should need no imageset and no actions. + However, that crashes 0.0.23, so some stuff is included now, including an + empty image set (it's empty since the icon is 32x32 so there isn't even one + 40x40 frame). + --> + +<!-- Testing no content + <imageset name="base" src="graphics/items/armor-chest-cottonshirt.png" width="40" height="40" /> + + <action name="stand" imageset="base"> + <animation direction="down"> + </animation> + <animation direction="left"> + </animation> + <animation direction="up"> + </animation> + <animation direction="right"> + </animation> + </action> + + <action name="walk" imageset="base"> + <animation direction="down"> + </animation> + <animation direction="left"> + </animation> + <animation direction="up"> + </animation> + <animation direction="right"> + </animation> + </action> + + <action name="attack" imageset="base"> + <animation direction="down"> + <end /> + </animation> + <animation direction="left"> + <end /> + </animation> + <animation direction="up"> + <end /> + </animation> + <animation direction="right"> + <end /> + </animation> + </action> + + <action name="attack_bow" imageset="base"> + <animation direction="down"> + <end /> + </animation> + <animation direction="left"> + <end /> + </animation> + <animation direction="up"> + <end /> + </animation> + <animation direction="right"> + <end /> + </animation> + </action> + + <action name="sit" imageset="base"> + <animation direction="down"> + </animation> + <animation direction="left"> + </animation> + <animation direction="up"> + </animation> + <animation direction="right"> + </animation> + </action> + + <action name="dead" imageset="base"> + <animation direction="default"> + </animation> + </action>--> +</sprite> diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle1.png b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle1.png Binary files differnew file mode 100644 index 00000000..6bb2657e --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle1.png diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle1.xml b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle1.xml new file mode 100644 index 00000000..44b1d4e7 --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle1.xml @@ -0,0 +1,143 @@ +<?xml version="1.0"?> +<sprite> + + <imageset name="base" src="graphics/sprites/races/humans/hairstyles/hairstyle1.png|M" width="40" height="40" /> + + <action name="stand" imageset="base"> + <animation direction="down"> + <frame index="0" offsetX="0" offsetY ="-29" /> + </animation> + <animation direction="left"> + <frame index="1" offsetX="0" offsetY ="-29"/> + </animation> + <animation direction="up"> + <frame index="2" offsetX="-1" offsetY ="-25"/> + </animation> + <animation direction="right"> + <frame index="3" offsetX="0" offsetY ="-29"/> + </animation> + </action> + + <action name="walk" imageset="base"> + <animation direction="down"> + <frame index="0" offsetX="0" offsetY ="-28" delay="75"/> + <frame index="0" offsetX="0" offsetY ="-29" delay="75" /> + <frame index="0" offsetX="0" offsetY ="-29" delay="75" /> + <frame index="0" offsetX="0" offsetY ="-28" delay="75" /> + <frame index="0" offsetX="0" offsetY ="-29" delay="75" /> + <frame index="0" offsetX="0" offsetY ="-29" delay="75" /> + </animation> + <animation direction="left"> + <frame index="1" offsetX="0" offsetY ="-29" delay="75"/> + <frame index="1" offsetX="0" offsetY ="-28" delay="75"/> + <frame index="1" offsetX="0" offsetY ="-29" delay="75"/> + <frame index="1" offsetX="0" offsetY ="-29" delay="75"/> + <frame index="1" offsetX="0" offsetY ="-28" delay="75"/> + <frame index="1" offsetX="0" offsetY ="-29" delay="75"/> + </animation> + <animation direction="up"> + <frame index="2" offsetX="-1" offsetY ="-25" delay="75"/> + <frame index="2" offsetX="-1" offsetY ="-26" delay="75"/> + <frame index="2" offsetX="-1" offsetY ="-26" delay="75"/> + <frame index="2" offsetX="-1" offsetY ="-25" delay="75"/> + <frame index="2" offsetX="-1" offsetY ="-26" delay="75"/> + <frame index="2" offsetX="-1" offsetY ="-26" delay="75"/> + </animation> + <animation direction="right"> + <frame index="3" offsetX="0" offsetY ="-29" delay="75"/> + <frame index="3" offsetX="0" offsetY ="-28" delay="75"/> + <frame index="3" offsetX="0" offsetY ="-29" delay="75"/> + <frame index="3" offsetX="0" offsetY ="-29" delay="75"/> + <frame index="3" offsetX="0" offsetY ="-28" delay="75"/> + <frame index="3" offsetX="0" offsetY ="-29" delay="75"/> + </animation> + </action> + + <action name="attack" imageset="base"> + <animation direction="down"> + <frame index="0" offsetX="0" offsetY ="-27" delay="75" /> + <frame index="0" offsetX="0" offsetY ="-28" delay="75" /> + <frame index="0" offsetX="0" offsetY ="-25" delay="75" /> + <frame index="0" offsetX="0" offsetY ="-24" delay="75" /> + <end /> + </animation> + <animation direction="left"> + <frame index="1" offsetX="4" offsetY ="-30" delay="75" /> + <frame index="1" offsetX="4" offsetY ="-31" delay="75" /> + <frame index="1" offsetX="0" offsetY ="-28" delay="75" /> + <frame index="1" offsetX="-1" offsetY ="-27" delay="75" /> + <end /> + </animation> + <animation direction="up"> + <frame index="2" offsetX="-2" offsetY ="-25" delay="75"/> + <frame index="2" offsetX="-2" offsetY ="-25" delay="75"/> + <frame index="2" offsetX="-2" offsetY ="-25" delay="75"/> + <frame index="2" offsetX="-2" offsetY ="-23" delay="75"/> + <end /> + </animation> + <animation direction="right"> + <frame index="3" offsetX="-3" offsetY ="-30" delay="75"/> + <frame index="3" offsetX="-3" offsetY ="-31" delay="75"/> + <frame index="3" offsetX="0" offsetY ="-28" delay="75"/> + <frame index="3" offsetX="1" offsetY ="-27" delay="75"/> + <end /> + </animation> + </action> + + <action name="attack_bow" imageset="base"> + <animation direction="down"> + <frame index="0" offsetX="0" offsetY ="-28" delay="75" /> + <frame index="0" offsetX="0" offsetY ="-28" delay="75" /> + <frame index="0" offsetX="0" offsetY ="-28" delay="75" /> + <frame index="0" offsetX="0" offsetY ="-27" delay="75" /> + <frame index="0" offsetX="0" offsetY ="-28" delay="75" /> + <end /> + </animation> + <animation direction="left"> + <frame index="1" offsetX="3" offsetY ="-29" delay="75" /> + <frame index="1" offsetX="3" offsetY ="-29" delay="75" /> + <frame index="1" offsetX="3" offsetY ="-29" delay="75" /> + <frame index="1" offsetX="5" offsetY ="-30" delay="75" /> + <frame index="1" offsetX="5" offsetY ="-30" delay="75" /> + <end /> + </animation> + <animation direction="up"> + <frame index="2" offsetX="-1" offsetY ="-25" delay="75"/> + <frame index="2" offsetX="-1" offsetY ="-25" delay="75"/> + <frame index="2" offsetX="-2" offsetY ="-25" delay="75"/> + <frame index="2" offsetX="-2" offsetY ="-24" delay="75"/> + <frame index="2" offsetX="-2" offsetY ="-25" delay="75"/> + <end /> + </animation> + <animation direction="right"> + <frame index="3" offsetX="-3" offsetY ="-29" delay="75"/> + <frame index="3" offsetX="-3" offsetY ="-29" delay="75"/> + <frame index="3" offsetX="-3" offsetY ="-29" delay="75"/> + <frame index="3" offsetX="-5" offsetY ="-30" delay="75"/> + <frame index="3" offsetX="-5" offsetY ="-30" delay="75"/> + <end /> + </animation> + </action> + + <action name="sit" imageset="base"> + <animation direction="down"> + <frame index="0" offsetX="0" offsetY ="-17" /> + </animation> + <animation direction="left"> + <frame index="1" offsetX="4" offsetY ="-20"/> + </animation> + <animation direction="up"> + <frame index="2" offsetX="0" offsetY ="-17"/> + </animation> + <animation direction="right"> + <frame index="3" offsetX="-6" offsetY ="-20"/> + </animation> + </action> + + <action name="dead" imageset="base"> + <animation direction="default"> + <frame index="4" offsetX="21" offsetY="-4"/> + </animation> + </action> + +</sprite> diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle10.png b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle10.png Binary files differnew file mode 100644 index 00000000..d52924be --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle10.png diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle10.xml b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle10.xml new file mode 100644 index 00000000..665c432c --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle10.xml @@ -0,0 +1,8 @@ +<?xml version="1.0"?> +<sprite> + + <imageset name="base" src="graphics/sprites/races/humans/hairstyles/hairstyle10.png|W" width="40" height="40" /> + + <include file="hairstyle1.xml"/> + +</sprite> diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle11.png b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle11.png Binary files differnew file mode 100644 index 00000000..284772de --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle11.png diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle11.xml b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle11.xml new file mode 100644 index 00000000..c6d23eca --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle11.xml @@ -0,0 +1,8 @@ +<?xml version="1.0"?> +<sprite> + + <imageset name="base" src="graphics/sprites/races/humans/hairstyles/hairstyle11.png|W" width="40" height="40" /> + + <include file="hairstyle1.xml"/> + +</sprite> diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle12.png b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle12.png Binary files differnew file mode 100644 index 00000000..03096379 --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle12.png diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle12.xml b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle12.xml new file mode 100644 index 00000000..3a8c2f48 --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle12.xml @@ -0,0 +1,8 @@ +<?xml version="1.0"?> +<sprite> + + <imageset name="base" src="graphics/sprites/races/humans/hairstyles/hairstyle12.png|W" width="40" height="40" /> + + <include file="hairstyle1.xml"/> + +</sprite> diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle13.png b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle13.png Binary files differnew file mode 100644 index 00000000..0421089a --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle13.png diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle13.xml b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle13.xml new file mode 100644 index 00000000..56caee00 --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle13.xml @@ -0,0 +1,143 @@ +<?xml version="1.0"?> +<sprite> + + <imageset name="base" src="graphics/sprites/races/humans/hairstyles/hairstyle13.png|W" width="32" height="32" /> + + <action name="stand" imageset="base"> + <animation direction="down"> + <frame index="0" offsetX="3" offsetY ="-33" /> + </animation> + <animation direction="left"> + <frame index="3" offsetX="3" offsetY ="-33"/> + </animation> + <animation direction="up"> + <frame index="6" offsetX="3" offsetY ="-33"/> + </animation> + <animation direction="right"> + <frame index="9" offsetX="3" offsetY ="-33"/> + </animation> + </action> + + <action name="walk" imageset="base"> + <animation direction="down"> + <frame index="0" offsetX="3" offsetY ="-32" delay="75"/> + <frame index="1" offsetX="3" offsetY ="-33" delay="75" /> + <frame index="1" offsetX="3" offsetY ="-33" delay="75" /> + <frame index="0" offsetX="3" offsetY ="-32" delay="75" /> + <frame index="2" offsetX="3" offsetY ="-33" delay="75" /> + <frame index="2" offsetX="3" offsetY ="-33" delay="75" /> + </animation> + <animation direction="left"> + <frame index="3" offsetX="3" offsetY ="-33" delay="75"/> + <frame index="4" offsetX="3" offsetY ="-32" delay="75"/> + <frame index="4" offsetX="3" offsetY ="-33" delay="75"/> + <frame index="3" offsetX="3" offsetY ="-33" delay="75"/> + <frame index="5" offsetX="3" offsetY ="-32" delay="75"/> + <frame index="5" offsetX="3" offsetY ="-33" delay="75"/> + </animation> + <animation direction="up"> + <frame index="6" offsetX="3" offsetY ="-33" delay="75"/> + <frame index="7" offsetX="3" offsetY ="-34" delay="75"/> + <frame index="7" offsetX="3" offsetY ="-34" delay="75"/> + <frame index="6" offsetX="3" offsetY ="-33" delay="75"/> + <frame index="8" offsetX="3" offsetY ="-34" delay="75"/> + <frame index="8" offsetX="3" offsetY ="-34" delay="75"/> + </animation> + <animation direction="right"> + <frame index="9" offsetX="3" offsetY ="-33" delay="75"/> + <frame index="10" offsetX="3" offsetY ="-32" delay="75"/> + <frame index="10" offsetX="3" offsetY ="-33" delay="75"/> + <frame index="9" offsetX="3" offsetY ="-33" delay="75"/> + <frame index="11" offsetX="3" offsetY ="-32" delay="75"/> + <frame index="11" offsetX="3" offsetY ="-33" delay="75"/> + </animation> + </action> + + <action name="attack" imageset="base"> + <animation direction="down"> + <frame index="0" offsetX="3" offsetY ="-30" delay="75" /> + <frame index="0" offsetX="3" offsetY ="-31" delay="75" /> + <frame index="0" offsetX="3" offsetY ="-28" delay="75" /> + <frame index="0" offsetX="3" offsetY ="-27" delay="75" /> + <end /> + </animation> + <animation direction="left"> + <frame index="3" offsetX="7" offsetY ="-34" delay="75" /> + <frame index="3" offsetX="7" offsetY ="-35" delay="75" /> + <frame index="3" offsetX="3" offsetY ="-32" delay="75" /> + <frame index="3" offsetX="2" offsetY ="-31" delay="75" /> + <end /> + </animation> + <animation direction="up"> + <frame index="6" offsetX="2" offsetY ="-33" delay="75"/> + <frame index="6" offsetX="2" offsetY ="-33" delay="75"/> + <frame index="6" offsetX="2" offsetY ="-33" delay="75"/> + <frame index="6" offsetX="2" offsetY ="-31" delay="75"/> + <end /> + </animation> + <animation direction="right"> + <frame index="9" offsetX="0" offsetY ="-34" delay="75"/> + <frame index="9" offsetX="0" offsetY ="-35" delay="75"/> + <frame index="9" offsetX="3" offsetY ="-32" delay="75"/> + <frame index="9" offsetX="4" offsetY ="-31" delay="75"/> + <end /> + </animation> + </action> + + <action name="attack_bow" imageset="base"> + <animation direction="down"> + <frame index="0" offsetX="3" offsetY ="-32" delay="75" /> + <frame index="0" offsetX="3" offsetY ="-32" delay="75" /> + <frame index="0" offsetX="3" offsetY ="-32" delay="75" /> + <frame index="0" offsetX="3" offsetY ="-31" delay="75" /> + <frame index="0" offsetX="3" offsetY ="-32" delay="75" /> + <end /> + </animation> + <animation direction="left"> + <frame index="3" offsetX="6" offsetY ="-33" delay="75" /> + <frame index="3" offsetX="6" offsetY ="-33" delay="75" /> + <frame index="3" offsetX="6" offsetY ="-33" delay="75" /> + <frame index="3" offsetX="8" offsetY ="-34" delay="75" /> + <frame index="3" offsetX="8" offsetY ="-34" delay="75" /> + <end /> + </animation> + <animation direction="up"> + <frame index="6" offsetX="3" offsetY ="-33" delay="75"/> + <frame index="6" offsetX="3" offsetY ="-33" delay="75"/> + <frame index="6" offsetX="2" offsetY ="-33" delay="75"/> + <frame index="6" offsetX="2" offsetY ="-32" delay="75"/> + <frame index="6" offsetX="2" offsetY ="-33" delay="75"/> + <end /> + </animation> + <animation direction="right"> + <frame index="9" offsetX="0" offsetY ="-33" delay="75"/> + <frame index="9" offsetX="0" offsetY ="-33" delay="75"/> + <frame index="9" offsetX="0" offsetY ="-33" delay="75"/> + <frame index="9" offsetX="-2" offsetY ="-34" delay="75"/> + <frame index="9" offsetX="-2" offsetY ="-34" delay="75"/> + <end /> + </animation> + </action> + + <action name="sit" imageset="base"> + <animation direction="down"> + <frame index="0" offsetX="3" offsetY ="-21" /> + </animation> + <animation direction="left"> + <frame index="3" offsetX="7" offsetY ="-24"/> + </animation> + <animation direction="up"> + <frame index="6" offsetX="4" offsetY ="-25"/> + </animation> + <animation direction="right"> + <frame index="9" offsetX="-3" offsetY ="-24"/> + </animation> + </action> + + <action name="dead" imageset="base"> + <animation direction="default"> + <frame index="12" offsetX="23" offsetY="-8"/> + </animation> + </action> + +</sprite> diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle14.png b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle14.png Binary files differnew file mode 100644 index 00000000..7b4cddd0 --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle14.png diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle14.xml b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle14.xml new file mode 100644 index 00000000..9f073a84 --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle14.xml @@ -0,0 +1,8 @@ +<?xml version="1.0"?> +<sprite> + + <imageset name="base" src="graphics/sprites/races/humans/hairstyles/hairstyle14.png|W" width="40" height="40" /> + + <include file="hairstyle1.xml"/> + +</sprite> diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle15.png b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle15.png Binary files differnew file mode 100644 index 00000000..cd77639c --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle15.png diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle15.xml b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle15.xml new file mode 100644 index 00000000..6d4f5c3c --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle15.xml @@ -0,0 +1,8 @@ +<?xml version="1.0"?> +<sprite> + + <imageset name="base" src="graphics/sprites/races/humans/hairstyles/hairstyle15.png|W" width="40" height="40" /> + + <include file="hairstyle1.xml"/> + +</sprite> diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle16.png b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle16.png Binary files differnew file mode 100644 index 00000000..fc13907b --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle16.png diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle16.xml b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle16.xml new file mode 100644 index 00000000..b41f1a3a --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle16.xml @@ -0,0 +1,8 @@ +<?xml version="1.0"?> +<sprite> + + <imageset name="base" src="graphics/sprites/races/humans/hairstyles/hairstyle16.png|W" width="40" height="40" /> + + <include file="hairstyle1.xml"/> + +</sprite> diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle2.png b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle2.png Binary files differnew file mode 100644 index 00000000..f80ad787 --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle2.png diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle2.xml b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle2.xml new file mode 100644 index 00000000..79b30f08 --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle2.xml @@ -0,0 +1,8 @@ +<?xml version="1.0"?> +<sprite> + + <imageset name="base" src="graphics/sprites/races/humans/hairstyles/hairstyle2.png|W" width="40" height="40" /> + + <include file="hairstyle1.xml"/> + +</sprite> diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle3.png b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle3.png Binary files differnew file mode 100644 index 00000000..b04df515 --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle3.png diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle3.xml b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle3.xml new file mode 100644 index 00000000..217f449f --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle3.xml @@ -0,0 +1,8 @@ +<?xml version="1.0"?> +<sprite> + + <imageset name="base" src="graphics/sprites/races/humans/hairstyles/hairstyle3.png|W" width="40" height="40" /> + + <include file="hairstyle1.xml"/> + +</sprite> diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle4.png b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle4.png Binary files differnew file mode 100644 index 00000000..b004080f --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle4.png diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle4.xml b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle4.xml new file mode 100644 index 00000000..f66b3e7e --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle4.xml @@ -0,0 +1,8 @@ +<?xml version="1.0"?> +<sprite> + + <imageset name="base" src="graphics/sprites/races/humans/hairstyles/hairstyle4.png|W" width="40" height="40" /> + + <include file="hairstyle1.xml"/> + +</sprite> diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle5.png b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle5.png Binary files differnew file mode 100644 index 00000000..d034fe67 --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle5.png diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle5.xml b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle5.xml new file mode 100644 index 00000000..f04c5603 --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle5.xml @@ -0,0 +1,8 @@ +<?xml version="1.0"?> +<sprite> + + <imageset name="base" src="graphics/sprites/races/humans/hairstyles/hairstyle5.png|W" width="40" height="40" /> + + <include file="hairstyle1.xml"/> + +</sprite> diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle6.png b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle6.png Binary files differnew file mode 100644 index 00000000..b8710253 --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle6.png diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle6.xml b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle6.xml new file mode 100644 index 00000000..b00aea68 --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle6.xml @@ -0,0 +1,8 @@ +<?xml version="1.0"?> +<sprite> + + <imageset name="base" src="graphics/sprites/races/humans/hairstyles/hairstyle6.png|W" width="40" height="40" /> + + <include file="hairstyle1.xml"/> + +</sprite> diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle7.png b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle7.png Binary files differnew file mode 100644 index 00000000..c3a27ddc --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle7.png diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle7.xml b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle7.xml new file mode 100644 index 00000000..2994f9e1 --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle7.xml @@ -0,0 +1,8 @@ +<?xml version="1.0"?> +<sprite> + + <imageset name="base" src="graphics/sprites/races/humans/hairstyles/hairstyle7.png|W" width="40" height="40" /> + + <include file="hairstyle1.xml"/> + +</sprite> diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle8.png b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle8.png Binary files differnew file mode 100644 index 00000000..3c81a1a8 --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle8.png diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle8.xml b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle8.xml new file mode 100644 index 00000000..7300dc93 --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle8.xml @@ -0,0 +1,8 @@ +<?xml version="1.0"?> +<sprite> + + <imageset name="base" src="graphics/sprites/races/humans/hairstyles/hairstyle8.png|W" width="40" height="40" /> + + <include file="hairstyle1.xml"/> + +</sprite> diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle9.png b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle9.png Binary files differnew file mode 100644 index 00000000..01bc3606 --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle9.png diff --git a/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle9.xml b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle9.xml new file mode 100644 index 00000000..065e5b2a --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/hairstyles/hairstyle9.xml @@ -0,0 +1,8 @@ +<?xml version="1.0"?> +<sprite> + + <imageset name="base" src="graphics/sprites/races/humans/hairstyles/hairstyle9.png|W" width="40" height="40" /> + + <include file="hairstyle1.xml"/> + +</sprite> diff --git a/example/clientdata/graphics/sprites/races/humans/human_female_base.png b/example/clientdata/graphics/sprites/races/humans/human_female_base.png Binary files differnew file mode 100644 index 00000000..c4c0a80b --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/human_female_base.png diff --git a/example/clientdata/graphics/sprites/races/humans/human_female_base.xml b/example/clientdata/graphics/sprites/races/humans/human_female_base.xml new file mode 100644 index 00000000..1d0ffeaa --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/human_female_base.xml @@ -0,0 +1,104 @@ +<?xml version="1.0"?> +<sprite name="player" action="stand"> + + <imageset name="base" src="graphics/sprites/races/humans/human_female_base.png" width="64" height="64" /> + + <action name="stand" imageset="base"> + <animation direction="down"> + <frame index="0" /> + </animation> + <animation direction="left"> + <frame index="18" /> + </animation> + <animation direction="up"> + <frame index="36" /> + </animation> + <animation direction="right"> + <frame index="54" /> + </animation> + </action> + + <action name="walk" imageset="base"> + <animation direction="down"> + <sequence start="1" end="6" delay="75" /> + </animation> + <animation direction="left"> + <sequence start="19" end="24" delay="75" /> + </animation> + <animation direction="up"> + <sequence start="37" end="42" delay="75" /> + </animation> + <animation direction="right"> + <sequence start="55" end="60" delay="75" /> + </animation> + </action> + + <action name="sit" imageset="base"> + <animation direction="down"> + <frame index="7" /> + </animation> + <animation direction="left"> + <frame index="25" /> + </animation> + <animation direction="up"> + <frame index="43" /> + </animation> + <animation direction="right"> + <frame index="61" /> + </animation> + </action> + + <action name="dead" imageset="base"> + <animation direction="down"> + <frame index="8" /> + </animation> + <animation direction="left"> + <frame index="26" /> + </animation> + <animation direction="up"> + <frame index="44" /> + </animation> + <animation direction="right"> + <frame index="62" /> + </animation> + </action> + + <action name="attack" imageset="base"> + <animation direction="down"> + <sequence start="9" end="12" delay="75" /> + <end /> + </animation> + <animation direction="left"> + <sequence start="27" end="30" delay="75" /> + <end /> + </animation> + <animation direction="up"> + <sequence start="45" end="48" delay="75" /> + <end /> + </animation> + <animation direction="right"> + <sequence start="63" end="66" delay="75" /> + <end /> + </animation> + </action> + + <action name="attack_bow" imageset="base"> + <animation direction="down"> + <sequence start="13" end="17" delay="75" /> + <end /> + </animation> + <animation direction="left"> + <sequence start="31" end="35" delay="75" /> + <end /> + </animation> + <animation direction="up"> + <sequence start="49" end="53" delay="75" /> + <end /> + </animation> + <animation direction="right"> + <sequence start="67" end="71" delay="75" /> + <end /> + </animation> + </action> + +</sprite>
\ No newline at end of file diff --git a/example/clientdata/graphics/sprites/races/humans/human_male_base.png b/example/clientdata/graphics/sprites/races/humans/human_male_base.png Binary files differnew file mode 100644 index 00000000..72b9b375 --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/human_male_base.png diff --git a/example/clientdata/graphics/sprites/races/humans/human_male_base.xml b/example/clientdata/graphics/sprites/races/humans/human_male_base.xml new file mode 100644 index 00000000..fe495ddc --- /dev/null +++ b/example/clientdata/graphics/sprites/races/humans/human_male_base.xml @@ -0,0 +1,110 @@ +<?xml version="1.0"?> +<sprite name="player" action="stand"> + + <imageset name="base" + src= "graphics/sprites/races/humans/human_male_base.png" + width= "64" + height= "64" + /> + + <action name = "stand" + imageset = "base" + > + <animation direction="down"> + <frame index="0" /> + </animation> + <animation direction="left"> + <frame index="18" /> + </animation> + <animation direction="up"> + <frame index="36" /> + </animation> + <animation direction="right"> + <frame index="54" /> + </animation> + </action> + + <action name="walk" imageset="base"> + <animation direction="down"> + <sequence start="1" end="6" delay="75" /> + </animation> + <animation direction="left"> + <sequence start="19" end="24" delay="75" /> + </animation> + <animation direction="up"> + <sequence start="37" end="42" delay="75" /> + </animation> + <animation direction="right"> + <sequence start="55" end="60" delay="75" /> + </animation> + </action> + + <action name="sit" imageset="base"> + <animation direction="down"> + <frame index="7" /> + </animation> + <animation direction="left"> + <frame index="25" /> + </animation> + <animation direction="up"> + <frame index="43" /> + </animation> + <animation direction="right"> + <frame index="61" /> + </animation> + </action> + + <action name="dead" imageset="base"> + <animation direction="down"> + <frame index="8" /> + </animation> + <animation direction="left"> + <frame index="26" /> + </animation> + <animation direction="up"> + <frame index="44" /> + </animation> + <animation direction="right"> + <frame index="62" /> + </animation> + </action> + + <action name="attack" imageset="base"> + <animation direction="down"> + <sequence start="9" end="12" delay="75" /> + <end /> + </animation> + <animation direction="left"> + <sequence start="27" end="30" delay="75" /> + <end /> + </animation> + <animation direction="up"> + <sequence start="45" end="48" delay="75" /> + <end /> + </animation> + <animation direction="right"> + <sequence start="63" end="66" delay="75" /> + <end /> + </animation> + </action> + + <action name="attack_bow" imageset="base"> + <animation direction="down"> + <sequence start="13" end="17" delay="75" /> + <end /> + </animation> + <animation direction="left"> + <sequence start="31" end="35" delay="75" /> + <end /> + </animation> + <animation direction="up"> + <sequence start="49" end="53" delay="75" /> + <end /> + </animation> + <animation direction="right"> + <sequence start="67" end="71" delay="75" /> + <end /> + </animation> + </action> + +</sprite>
\ No newline at end of file diff --git a/example/clientdata/items.xml b/example/clientdata/items.xml index 9fd64a24..504ced4f 100644 --- a/example/clientdata/items.xml +++ b/example/clientdata/items.xml @@ -1,5 +1,62 @@ <?xml version="1.0" encoding="utf-8"?> <items> + + <!-- Kept for now to display the player correctly. Will be moved to races.xml later --> + <item id="-1" type="hairsprite" name="Flat ponytail"> + <sprite>races/humans/hairstyles/hairstyle1.xml</sprite> + </item> + <item id="-2" type="hairsprite" name="Bowl cut"> + <sprite>races/humans/hairstyles/hairstyle2.xml</sprite> + </item> + <item id="-3" type="hairsprite" name="Combed back"> + <sprite>races/humans/hairstyles/hairstyle3.xml</sprite> + </item> + <item id="-4" type="hairsprite" name="Emo"> + <sprite>races/humans/hairstyles/hairstyle4.xml</sprite> + </item> + <item id="-5" type="hairsprite" name="Mohawk"> + <sprite>races/humans/hairstyles/hairstyle5.xml</sprite> + </item> + <item id="-6" type="hairsprite" name="Pompadour"> + <sprite>races/humans/hairstyles/hairstyle6.xml</sprite> + </item> + <item id="-7" type="hairsprite" name="Center parting/Short and slick"> + <sprite>races/humans/hairstyles/hairstyle7.xml</sprite> + </item> + <item id="-8" type="hairsprite" name="Long and slick"> + <sprite>races/humans/hairstyles/hairstyle8.xml</sprite> + </item> + <item id="-9" type="hairsprite" name="Short and curly"> + <sprite>races/humans/hairstyles/hairstyle9.xml</sprite> + </item> + <item id="-10" type="hairsprite" name="Pigtails"> + <sprite>races/humans/hairstyles/hairstyle10.xml</sprite> + </item> + <item id="-11" type="hairsprite" name="Long and curly"> + <sprite>races/humans/hairstyles/hairstyle11.xml</sprite> + </item> + <item id="-12" type="hairsprite" name="Parted"> + <sprite>races/humans/hairstyles/hairstyle12.xml</sprite> + </item> + <item id="-13" type="hairsprite" name="Perky ponytail"> + <sprite>races/humans/hairstyles/hairstyle13.xml</sprite> + </item> + <item id="-14" type="hairsprite" name="Wave"> + <sprite>races/humans/hairstyles/hairstyle14.xml</sprite> + </item> + <item id="-15" type="hairsprite" name="Mane"> + <sprite>races/humans/hairstyles/hairstyle15.xml</sprite> + </item> + <item id="-16" type="hairsprite" name="Bun"> + <sprite>races/humans/hairstyles/hairstyle16.xml</sprite> + </item> + + <!-- Base race player sprite --> + <item id="-100" type="racesprite" name="Human"> + <sprite gender="male">races/humans/human_male_base.xml</sprite> + <sprite gender="female">races/humans/human_female_base.xml</sprite> + </item> + <!-- Example of an usable items --> <item id="1" image="usable/usable-candy.png" diff --git a/example/clientdata/maps/desert.tmx b/example/clientdata/maps/desert.tmx index e8efd269..f07aaebf 100644 --- a/example/clientdata/maps/desert.tmx +++ b/example/clientdata/maps/desert.tmx @@ -8,7 +8,12 @@ </tileset> <layer name="Ground" width="40" height="40"> <data encoding="base64" compression="gzip"> - H4sIAAAAAAAAA+2Y2Q6CMBBFqzy4kLgmrlFR3Bcw/v/HOcYSyKSBUttxNDycCKakxzsjTFgKIZYO6QBdoOd4HxMihd+Kgdev5PcARsAYmDDwUVED6oCX+c5VjafArARzoAW0AZ8gizWwKUHo0O+Y47cFzsDui355+YWaeVL47Rn63ZEX9ruKd//fiP1wz+HzorxwX9rwU/0Pjii/5LjID+dqK78DOk98yubnur7YE3OS9dPlYsGvIWmK9FmUh6e5LmHxoV9XpPNF8lvz8DXXqa4z8RuLdL7oA4MChprrVNe57D1qAqGeczh5BoQ+JrMZhVckP3XundnnT2hpf110/F5Od7mW0i9m6If7mpufSX2z8wWVX1zCD2fJLT9VrTn7UeZnMptR+v0LAQOHXwFnxe3dYFXjiorPeAK3IQLdABkAAA== + H4sIAAAAAAAAA+2Y2Q6CMBBFqzy4Ja6Ja1QUF9yA//86x0gDmTTQVjqOhocTwZT0eGeECRshxMYhfWAADB3vY0Ok8Nsy8PqV/E7AFJgBcwY+KhpAE/By37mq8QJYGrACOkAX6BFksQP2BgQO/cICvwNwBY5f9CvKL9DMk8LvxNAvQV7Y7y7e/f8g9sM9h8/L8sJ9WYWf6n8QovzkcZkfzrWq/M7oXPqY5ue6vtgTc0nrp8utAr9WSltkz6IiPM11kvWHfgORzRfytxbR01ynus7Gbyay+WIEjEuYaK5TXeey96jxhXrO4eTpE/rYzGYUXlH6qXPvzD9/gor210XH7+WUpGsp/WKGfrivufnZ1Dc/X1D5xQZ+OEtu+alqzdmPMj+b2YzS71/wGTj8Cjgrbu8G6xrX1HzGE2RW0EoAGQAA + </data> + </layer> + <layer name="Fringe" width="40" height="40"> + <data encoding="base64" compression="gzip"> + H4sIAAAAAAAAA+3BAQ0AAADCoPdPbQ8HFAAAAAAAwJcBSxPzAQAZAAA= </data> </layer> <layer name="Collision" width="40" height="40"> @@ -19,7 +24,7 @@ <objectgroup name="Objects" width="40" height="40"> <object name="Main script" type="SCRIPT" x="16" y="25" width="167" height="10"> <properties> - <property name="FILENAME" value="scripts/bomtest.lua"/> + <property name="FILENAME" value="scripts/maps/desert.lua"/> </properties> </object> </objectgroup> diff --git a/example/clientdata/monsters.xml b/example/clientdata/monsters.xml index 70d4009f..c820178e 100644 --- a/example/clientdata/monsters.xml +++ b/example/clientdata/monsters.xml @@ -35,7 +35,7 @@ exp<TAG>: Tells how much experience point a monster is giving up <monsters> - <monster id="0" name="Maggot" targetCursor="small"> + <monster id="1" name="Maggot" targetCursor="small"> <sprite>monsters/monster-maggot.xml</sprite> <sound event="hit">monsters/maggot/maggot-hit1.ogg</sound> <sound event="hit">monsters/maggot/maggot-hit2.ogg</sound> @@ -84,7 +84,7 @@ exp<TAG>: Tells how much experience point a monster is giving up <script>testmonster.lua</script> <!-- only Proof of Concept--> </monster> - <monster id="1" name="Scorpion"> + <monster id="2" name="Scorpion"> <sprite>monsters/monster-scorpion.xml|#4d422d,826242,d8c282,ffffff</sprite> <sound event="hit">monsters/scorpion/scorpion-hit1.ogg</sound> <sound event="hit">monsters/scorpion/scorpion-hit2.ogg</sound> @@ -138,7 +138,7 @@ exp<TAG>: Tells how much experience point a monster is giving up /> </monster> - <monster id="2" name="Red Scorpion"> + <monster id="3" name="Red Scorpion"> <sprite>monsters/monster-scorpion.xml|#791d0a,cd5d27,f28d54,ffffff</sprite> <sound event="hit">monsters/scorpion/scorpion-hit1.ogg</sound> <sound event="hit">monsters/scorpion/scorpion-hit2.ogg</sound> @@ -185,7 +185,7 @@ exp<TAG>: Tells how much experience point a monster is giving up /> </monster> - <monster id="3" name="Green Slime"> + <monster id="4" name="Green Slime"> <sprite>monsters/monster-slime.xml|#72982c,ffffff</sprite> <sound event="hit">monsters/slime/slime-hit1.ogg</sound> <drop item="502" percent="2"/> diff --git a/example/serverdata/scripts/maps/desert.lua b/example/serverdata/scripts/maps/desert.lua new file mode 100644 index 00000000..6491b8ca --- /dev/null +++ b/example/serverdata/scripts/maps/desert.lua @@ -0,0 +1,32 @@ +---------------------------------------------------------- +-- Tulimshar Bazaar -- +---------------------------------------------------------------------------------- +-- Copyright 2008 The Mana World Development Team -- +-- -- +-- This file is part of The Mana World. -- +-- -- +-- The Mana World is free software; you can redistribute it and/or modify it -- +-- under the terms of the GNU General Public License as published by the Free -- +-- Software Foundation; either version 2 of the License, or any later version. -- +---------------------------------------------------------------------------------- + +-- From scripts/ +require "scripts/lua/npclib" +-- From example/serverdata/scripts +require "scripts/npcs/banker" +require "scripts/npcs/barber" + +atinit(function() + create_npc("Barber", 100, 14 * TILESIZE + TILESIZE / 2, 9 * TILESIZE + TILESIZE / 2, Barber, nil) + create_npc("Barber 2", 100, 20 * TILESIZE + TILESIZE / 2, 11 * TILESIZE + TILESIZE / 2, npclib.talk(Barber, {14, 15, 16}, {}), nil) + create_npc("Banker", 149, 35 * TILESIZE + TILESIZE / 2, 24 * TILESIZE + TILESIZE / 2, Banker, nil) + + create_npc("Test", 102, 4 * TILESIZE + TILESIZE / 2, 25 * TILESIZE + TILESIZE / 2, npclib.talk(Test, "String1", "String2", "String3", "Etc"), nil) +end) + +function Test(npc, ch, list) + for i = 1, #list do + do_message(npc, ch, list[i]) + end + do_npc_close(npc, ch) +end diff --git a/example/serverdata/scripts/npcs/barber.lua b/example/serverdata/scripts/npcs/barber.lua index 24ad8c9b..bf872a0c 100644 --- a/example/serverdata/scripts/npcs/barber.lua +++ b/example/serverdata/scripts/npcs/barber.lua @@ -92,7 +92,7 @@ function Barber(npc, ch, data) -- Repeat until the user selects nothing repeat if (result == 1) then -- Do styles - result = do_choice(npc, ch, "Bald", styles, "Supprise me", "Never mind") + result = do_choice(npc, ch, "Bald", styles, "Surprise me", "Never mind") result = result -1 @@ -114,7 +114,7 @@ function Barber(npc, ch, data) result = 3 end elseif (result == 2) then -- Do colors - result = do_choice(npc, ch, colors, "Supprise me", "Never mind") + result = do_choice(npc, ch, colors, "Surprise me", "Never mind") --Random if (result == #colors + 1) then |