From 8d050598f736bdb24f4eccf1760bc04c26e39e31 Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Sat, 20 Dec 2008 22:57:29 +0000 Subject: * Extended how duplicates work: (based on Orcao's work in bugreport:2361) [FlavioJS] - you can duplicate warps/shops/cashshops/npcs (before only npcs could be duplicated) - warp duplicates inherit the target location - shop/cashshop duplicates inherit the item list - npc duplicates inherit the script code (backward compatible behaviour) - updated script_commands.txt with the information git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13407 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 7 ++ doc/script_commands.txt | 33 +++--- src/map/npc.c | 262 ++++++++++++++++++++++++++++++++++++++---------- src/map/npc.h | 2 +- 4 files changed, 236 insertions(+), 68 deletions(-) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 53b3a613e..65ea86bd5 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -3,6 +3,13 @@ Date Added AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. +2008/12/20 + * Extended how duplicates work: (based on Orcao's work in bugreport:2361) [FlavioJS] + - you can duplicate warps/shops/cashshops/npcs (before only npcs could be duplicated) + - warp duplicates inherit the target location + - shop/cashshop duplicates inherit the item list + - npc duplicates inherit the script code (backward compatible behaviour) + - updated script_commands.txt with the information 2008/12/17 * Removed charcommand code and allowed atcommand code to support its functionality. [SketchyPhoenix] - Charcommands still retain their '#' symbol but now looks for a character name as the first parameter instead of last. diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 6a3f6c6ac..becbc060d 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -4,7 +4,7 @@ //= A reference manual for the eAthena scripting language. //= Commands are sorted depending on their functionality. //===== Version =========================================== -//= 3.34.20081111 +//= 3.25.20081220 //========================================================= //= 1.0 - First release, filled will as much info as I could //= remember or figure out, most likely there are errors, @@ -124,8 +124,10 @@ //= Adjusted the 'getequipname' description to match src [ultramage] //= 3.23.20080909 //= Added WoE SE related commands. [L0ne_W0lf] -//= 3.34.20081111 +//= 3.24.20081111 //= Changed the error behaviour of delitem/delitem2/Zeny. [FlavioJS] +//= 3.25.20081220 +//= Extended the behaviour of duplicates (warps/shops/cashshops). [FlavioJS] //========================================================= This document is a reference manual for all the scripting commands and functions @@ -375,15 +377,6 @@ triggered. It may contain commands and function calls, descriptions of which compose most of this document. It has to be in curly brackets, unlike elsewhere where we use curly brackets, these do NOT signify an optional parameter. -** Define an NPC duplicate. - -,,,%TAB%duplicate(