Commit Graph

24 Commits

Author SHA1 Message Date
azazel 885fc368fd * Implement item limit category (based on changes by VladimirMangos)
* Additional check for HandleAutoBankItemOpcode (thanks to VladimitMangos)
* Properly show empty vendor list for empty item list (author: a1ien)
* More stricted checks for store operations (thanks to VladimirMangos)
* Prevent autostoring of not empty bags (thanks to L1ghtGu4rd)

Changes need testing. Please post bugs on our tracker.

--HG--
branch : trunk
2010-08-05 22:08:07 +06:00
azazel f3eab91102 * Convert SCRIPT_COMMAND_* defines to enum. Make comments for values up-to-date.
* Cleanup ScriptsProcess method. Move repeating parts of code to inline helper methods.
* Improve SCRIPT_COMMAND_CAST_SPELL command. You can specify triggered attribute when datalong2 = 4 by making dataint negative.
* Improve SCRIPT_COMMAND_KILL command. Now, if source is not a creature, it tries to use target object instead.

--HG--
branch : trunk
2010-08-05 00:55:10 +06:00
QAston 48b360097c *use ASSERT macro instead of regular assert for better output.
--HG--
branch : trunk
2010-07-30 20:04:28 +02:00
click 3296a944e7 Convert to using ACE for reading configurationfiles, and remove dependency on dotconfpp configuration library and related files
(patch by astellar - and a thankyou to vladimir for being a russian teddybear)

--HG--
branch : trunk
2010-07-29 01:22:45 +02:00
QAston e232c0e235 *Cleanup in ObjectAccessor - this should fix some crashes
--HG--
branch : trunk
2010-07-28 00:08:21 +02:00
Shauren 4ea385ec50 Small fix for previous revision
--HG--
branch : trunk
2010-07-27 19:28:02 +02:00
Shauren de2f63bcfb Added possibility to cast spells with triggered flag using SCRIPT_COMMAND_CAST_SPELL, original patch by Az@zel
Fixed SCRIPT_COMMAND_CAST_SPELL for casting on creatures with selected entry

--HG--
branch : trunk
2010-07-27 19:18:44 +02:00
click e5b7f6ad01 Add option for search distance to getHeight() functions and make Creature::FallGround() use VMaps properly. (Fix by Lynx3d)
This finally prevents flying creatures from falling to infinity (basically instantly diappearing) in several instances, aswell
as prevent creatures from falling inside larger solid object around the world.

--HG--
branch : trunk
2010-07-27 17:29:33 +02:00
click 07c1d011d4 Reinstate ITEM_FLAGS_NO_EQUIP_COOLDOWN implementation and the serverside checks for ITEM_FLAGS_INDESTRUCTIBLE (with prototypes this time)
--HG--
branch : trunk
2010-07-11 23:53:48 +02:00
click 307bf7f73e Backed out changeset 6670e64b2d92
--HG--
branch : trunk
2010-07-11 22:33:18 +02:00
click 66547c5fbd Implement ITEM_FLAGS_NO_EQUIP_COOLDOWN support + add serverside checks for ITEM_FLAGS_INDESTRUCTIBLE (code by Vladimir)
--HG--
branch : trunk
2010-07-11 22:22:49 +02:00
Tartalo 9182ab6ead Uncomment the assert that I commented some revs ago on InstanceMap::CanEnter()
--HG--
branch : trunk
2010-07-09 13:23:22 +02:00
Tartalo e58ca4d363 Coment annoying assert that nobody knows why is there
--HG--
branch : trunk
2010-07-07 22:30:38 +02:00
Tartalo 7969723527 Deny access to instances if other party/user with the same perm id is inside
Fixes #2844

--HG--
branch : trunk
2010-07-07 22:22:16 +02:00
Shauren 1740bace3a Initialize a pointer with NULL value to prevent possible crashes.
--HG--
branch : trunk
2010-06-30 14:48:38 +02:00
click 988467467c Properly initialize variable in WorldObject::PlayDirectSound()
Fixes issue 2838

--HG--
branch : trunk
2010-06-28 14:40:57 +02:00
Machiavelli 0f7657b68c Get rid of Trinity Singleton and Threading patterns and replace them with ACE_Singletons and ACE_GUARD_x macro´s with ACE_Thread_Mutex´es respectively.
Also get rid of unused CountedReference class that used Trinity threading pattern.

--HG--
branch : trunk
2010-06-25 00:18:01 +02:00
Machiavelli 95ddfbd9e2 Remove some redundant explicit NULL checks for pointers before ´delete´ or ´delete[]´ calls since this check is done implicitly when deleting.
Also fixes a memory leak in .reload creature_template command

--HG--
branch : trunk
2010-06-21 23:20:58 +02:00
Machiavelli e6d0fa20cd Typo spotted by glizzard.ad
--HG--
branch : trunk
2010-06-13 14:24:44 +02:00
Machiavelli b6621ddf90 Add some safer casting conditions in Map::ScriptsProcess.
Fixes issue #2676
Fixes issue #2553

--HG--
branch : trunk
2010-06-13 13:29:31 +02:00
click 39e793b2bd Add extractors and assembler - EXTRACTION OF NEW MAPS IS REQUIRED!
This will allow for easier testing of functionality between different
projects, ie. one set of maps/vmaps instead of 2 (saves space, saves
time and saves us some confusion).

--HG--
branch : trunk
2010-06-11 05:01:30 +02:00
Brian dee7fd1382 * Remove more not needed relative paths in include files
--HG--
branch : trunk
2010-06-08 16:13:55 -06:00
Brian 6650068b5e * Nearly done with fixing the Linux build.
* Thanks to samccstudios for saving me some time with the Outlands scripts.

--HG--
branch : trunk
2010-06-07 15:59:21 -06:00
XTZGZoReX 62200e8d02 * Even more restructuring of the game library.
--HG--
branch : trunk
2010-06-06 22:55:56 +02:00