summaryrefslogtreecommitdiffstats
path: root/example/serverdata/scripts/maps
Commit message (Collapse)AuthorAgeFilesLines
* Merged the example client and server dataThorbjørn Lindeijer2012-02-251-149/+0
| | | | | | | | | It's easier to just talk about world data and to modify it as a whole. If there is really a need to separate it, a project can still choose to do that (and in whatever suitable way). There is no need to enforce this separation or to do it in our example. Reviewed-by: Erik Schilling
* Added the chr_get_inventory and chr_get_equipment functions.Yohann Ferreira2012-01-181-0/+28
| | | | | | | | | | | Those will make the scripters able to get a full view of the current player's possessions. Use with care. + Fixes following Ablu's review. Resolves: Mana-Mantis #207. Reviewed-by: Ablu
* Fixed the chr_inv_count function to handle equipment.Yohann Ferreira2012-01-181-2/+11
| | | | | | | | | | | | | | | the function can now count in the inventory and/or the player's equipment. I also fixed the script function and added a use case in the example map. + Fixes after Ablu's review. + 2nd fix after Ablu's review: Fix the inventory remove behaviour. Resolves: Mana-Mantis #288 Reviewed-by: Ablu
* Made all beings capable of having a genderErik Schilling2012-01-021-7/+7
| | | | Reviewed-by: o11c, bjorn, Bertram.
* Made do_npc_close to be called by default after the end of the talk functionErik Schilling2012-01-021-1/+0
| | | | Reviewed-by: Bertram.
* Merge branch 'master' of github.com:mana/manaservYohann Ferreira2011-10-191-7/+12
|\ | | | | | | | | Conflicts: src/game-server/accountconnection.cpp
| * Prevent server crash by not having beings talk after spawn for nowThorbjørn Lindeijer2011-10-191-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At the moment it is the responsibility of the script to make sure any references to beings passed into script functions are valid. This means you can't schedule delayed scripts like the one making maggots say 'Roaaarrrr!!!', since the being might have been removed before the script gets executed. In the case of this bug the maggots are removed by some script code testing 'mana.monster_remove'. We should of course fix the way actor handles are used in Lua so that scripts can't end up crashing the server. Mantis-issue: 384 Reviewed-by: Yohann Ferreira
| * Added LUA function for changing anger of monsters.Erik Schilling2011-08-181-1/+4
| | | | | | | | | | | | | | You now can change the anger of a monster to a being using mana.monster_change_anger(monster, being, anger) Resolves: Mana-Mantis #366.
* | Added the chr_get_level script function.Yohann Ferreira2011-09-281-0/+1
| |
* | Merge branch 'equipment-fix' of github.com:Bertram25/manaservYohann Ferreira2011-08-251-2/+2
|\ \
| * \ Merge git://gitorious.org/~bertram/mana/manaserv-equipment-fix into ↵Yohann Ferreira2011-08-191-2/+2
| |\ \ | | |/ | |/| | | | | | | | | | | | | equipment-fix Conflicts: example/serverdata/scripts/maps/desert.lua
| | * Added boots and pants to play with on the test map.Yohann Ferreira2011-08-191-1/+1
| | |
| | * Used the client base to make a final bugfix on the server code.Yohann Ferreira2011-08-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Made the server handle only one slot type requirement since it's irrelevant to have more anyway. Plus, it simplifies the code for both equipping/unequipping. I also added a dagger to show how equipping/unequipping is working.
* | | Added LUA function for changing anger of monsters.Erik Schilling2011-08-181-1/+4
|/ / | | | | | | | | | | | | You now can change the anger of a monster to a being using mana.monster_change_anger(monster, being, anger) Resolves: Mana-Mantis #366.
* / Made chr_inv_count and npc_trade capable of taking a name or an id.Erik Schilling2011-08-101-3/+4
|/ | | | | | Resolves: Mana-Mantis #318. Reviewed-by: Bertram.
* Allowed names of items and monsters in scripts - part 1.Erik Schilling2011-08-041-1/+1
| | | | | | | | | You can now use either the name or the id of the item in the LUA functions chr_inv_change, monster_create, item_drop. Part of: Mana-Mantis #318. Reviewed-by: Bertram.
* Added monster_remove lua function.Erik Schilling2011-08-031-0/+9
| | | | | | | | | mana.monster_remove(monster) can now be used to remove a monster from a map. Resolves: Mana-Mantis #352. Reviewed-by: Bertram.
* Added new lua function for calculating distances.Ablu2011-07-041-0/+2
| | | | | | | | | You can now call mana.get_distance(being1, being2) or mana.get_distance(x1, y1, x2, y2) for calculating distances. Reviewed-by: Jaxad0127, Bertram. Resolves: Mana-Mantis #370.
* Added a shake effect when Harmony is disappearing.Yohann Ferreira2011-04-171-1/+7
| | | | | | ... And one when she's coming back. Reviewed-by: Jaxad0127.
* Change the monster talking delay to 0.5 to minimize test failures.Yohann Ferreira2011-03-111-1/+1
| | | | | | | This should do the trick until we have a better time management system. This closed issue: Mana-Mantis #205.
* Show a way to make monsters speak at spawn time.Yohann Ferreira2011-03-091-2/+11
| | | | | | | | | | | | | | Even when events are inserted before game state update time, the monsters don't speak since they still don't have an id (-1). As I thought that reworking the mapcomposite engine for that particular point was ineffective, here is another working way to make monsters speak at spawn time by using the schedule_in function with 0.3 second (or 3 ticks). Resolves: Mana-Mantis #205. Reviewed-by: Thorbjorn.
* Made use of npc_disable(), npc_enable() on the template map.Yohann Ferreira2011-02-201-0/+4
|
* Added a merchant and a blacksmith on the template map.Yohann Ferreira2011-02-151-0/+14
| | | | | | They're both using a fully working merchant lua function. Resolves: Mana-mantis #295.
* Finally fix Harmony giving some GP to characters.Yohann Ferreira2011-02-111-7/+4
|
* Added first visible npcs and play with them a bit.Yohann Ferreira2011-01-311-6/+36
|
* Simply fixing the map script header while i see it.Yohann Ferreira2011-01-271-4/+4
|
* Updates to the example data.Yohann Ferreira2011-01-271-0/+32
- 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.