51 Commits

Author SHA1 Message Date
False.Genesis
83780495a8 forgot small addition 2007-10-28 12:33:01 +00:00
False.Genesis
f84037ad77 * DefScript: added initial support for escape sequences "\{ \} \x0A \n \t \\". please report any bugs with this!
note: variables MUST be stored unchanged!
* changed ListStorage class to TypeStorage template class
2007-10-28 12:08:55 +00:00
False.Genesis
87f708a0fd * made better base for different scenes (startup, loading, world,...)
* first time to display something on GUI.
* corrected (again) major typo, thx bLuma!
* added some sample data to display.
* moved log.cpp/h to shared.
* cant update vc80 files right now, sorry.
2007-10-21 20:52:29 +00:00
False.Genesis
b7a4ae92c5 * added long time forgotten script func "leavechannel"
* added script func "listchannel" (get all guids on players in a channel, query their names and store them in list macro @ChannelList.
* fixed /me-like emotes (server will no longer treat them as crash attempt :D )
* stuffextract: added output of database names into SCP files.
2007-10-21 00:28:15 +00:00
False.Genesis
8d261e5da0 * fixed some memleaks at shutdown. thx to bLuma for patch! 2007-10-19 20:01:15 +00:00
False.Genesis
f0b340ef3d * finally fixed + enabled chatAI scripting!
* added core funcs "bigger_eq/greater_eq, smaller_eq" in addition to "bigger/greater, smaller & equal"
* added scripted func "lfind" - return position of element in a list.
2007-10-17 10:59:01 +00:00
False.Genesis
993bc000df * fixed a major bug in the DefScript engine that messed up correct bracketing in nested fuctions (example:
?{equal,{hello world} {hello world}} returning false.
* enabled map tile duming also for release mode
* small fix with SCP reading in case this should ever be ported to mac osx.
2007-10-16 12:07:11 +00:00
False.Genesis
97f5d0da98 * implemented patch download supplied by realm server (does NOT yet support resuming a download)
* fixed a few bugs in RealmSession (ticket #14, thx bLuma)
* fixed a mistake in DefScript.cpp added in prev commit.
* added wrapper class for MD5 hashes
2007-08-29 18:35:12 +00:00
False.Genesis
71b17e7ced while custom script logging functions dont work, use an own logfile instead 2007-08-28 17:02:19 +00:00
False.Genesis
cb26f947c5 general fixes before release [part 1].
* added script handler "_onchatmessage" that gets triggered when ANY chat message is recieved.
* TODO: finish & debug "processchatai" and "registerchataiscript" scripts.
2007-08-27 20:46:27 +00:00
False.Genesis
12b508fc9f some little fixes 2007-08-20 16:16:33 +00:00
False.Genesis
3100f68a30 last changes before 2.1.3:
* added script to support /me-like emotes (scriptname is "me")
* changed the permission system: now a script cant be used as game command f no permission is explicitly set
* implemented threadsafe CLI queue to solve crashes with short-intervalled events that ran on 2 threads
* fixed name return at "getitemprotovalue" script
* iplemented DrawObject class and a Mgr for those objects; they will ease object drawing once implemented. the Mgr works under control of the GUI thread and is threadsafe.
* implemented auto-loading of SCP files if a name-tag is present somewhere in the file ("#dbname=...") and no explicit db name was passed to "loadscp" script.
* changed internal ObjMgr storage to std::map (instead of list) for faster access
* fixed call of "_enterworld" script
* fixed handling of MyCharacter(), which could cause crashes after newly changes
* fixed GetFileList() func in tools.cpp (this fixes also related "lgetfiles" script func). now it will only parse files, not directories. might still need some fixing for linux.
2007-08-01 19:09:17 +00:00
False.Genesis
8ff8117e53 * implemented map loading. new conf option: 'useMaps'
* found a problem with file listing, _startup.def refuses to load some .def files. trying to fix that now...
2007-06-24 17:53:54 +00:00
False.Genesis
652a599ce4 * scriptnames must be lowercased
* finished alpha 13.2 release version.
2007-06-22 11:33:40 +00:00
False.Genesis
4845888fc3 * compacted scripts. needs min rev 141 to run (skipping 'lsort'). deleted old scripts.
* added script func 'lsort'. more args will be added later.
2007-06-22 11:20:50 +00:00
False.Genesis
996256718c * implemented multiple scripts per .def file. ATTENTION: scripts will no longer be auto-loaded by the engine; they will be loaded via startup.def now. scripts will be compacted in next revs.
* forgot to use repository's openssl in Network system also.
* moved _startup.def to PseuWoW base folder!
2007-06-19 19:44:14 +00:00
False.Genesis
dff2d2085e * implemented DefScript "list" datatype.
* wiki information & documentation will come soon.
2007-06-09 17:54:13 +00:00
False.Genesis
a39849b2c9 * little scripts update 2007-05-26 23:45:07 +00:00
False.Genesis
5731cfa03b * started with linux preparations; thx to Skycrapper ;) 2007-05-13 19:51:46 +00:00
False.Genesis
6c4ae79a87 * rewrote the realm/world login code.
-> reconnecting does work now, finally.
* updated conf setting: reconnect=0: dont reconnect; reconnect=X: reconnect after X msecs.
* misc code cleanups, crash fixes, and overall improved stability.
* splitted RealmSocket into a RealmSession and the original RealmSocket code. better read-/useabilty because now its handled as WorldSession and related.
2007-05-11 20:55:38 +00:00
False.Genesis
54a37a3ff9 * updated items & items cache to 2.0.12
* added extracting of map & area names to stuffextract
* code cleanups
2007-05-06 00:34:30 +00:00
False.Genesis
c92f1ea824 * huge changes:
* few script changes; added new func "ScriptExists".
* started an extractor tool; using StormLib (thx to Ladislaw Zezula!). for now convert some dbc files to scp. more stuff will follow.
* some changes to the realm/world connect code; still needs a rewrite.
* support conf parameters for GUI (check conf/gui.conf/gui.conf[.default] )
2007-04-10 22:42:42 +00:00
False.Genesis
a3ae8273ba * auto-load all .def files in ./scripts/ directory after executing _startup.def
* fixed exception at DefScript:substr when called with empty string
* added 3 new functions: uppercase, lowercase, random[,<min>] <max>.
* added some better debug output when an incorrect script is loaded
2007-04-02 22:41:33 +00:00
False.Genesis
7961aa9046 * (hopefully) fixed several bugs related to number rounding and wrong math calculations. thx to crogge for the report.
* deleted old files
2007-04-02 01:07:28 +00:00
False.Genesis
1299c5490f * new conf option: "cmdchar". default is "."
* various .def scripts updates
* added cmd.def & getchatitem.def
* fixed: correctly check variable names in function "isset"
* fixed problems with loading scripts that cosist captalized IF/ENDIF/LOOP/ENDLOOP statments. now  upper, lower and mixedcase work as they should.
2007-03-24 00:07:59 +00:00
False.Genesis
0aaf7b45d6 * implemented usage of if/loop statements in #onload blocks
* check for if/loop/endif/endloop match in scripts
* check for brackets match (same amount of opening/closing brackets) at line load. skip corrupt lines
* some code cleanups
2007-03-23 21:00:20 +00:00
False.Genesis
74ded46daa * fixed DefScript tohex function to work with numbers up to 2^64
* fixed a bug that allowed to execute scripts via ingame commands without any permission
* added DefScript functions substr, getplayerperm, getscriptperm
2007-03-22 21:33:44 +00:00
False.Genesis
c8015e9929 * fixed if (error on multiple endifs)
* implemented loop...endloop & exitloop
* fixed crash on parsing ${} (var with no name)
* added an example .def file to explain loop/if-statements
2007-03-20 21:37:38 +00:00
False.Genesis
7de82dd3a9 * fixed if..else..endif
* small .def update
* misc, minor changes to some functions
* added a few more DefScript functions (and, or, xor, GetObjectType, ObjectKnown)
2007-03-16 16:14:13 +00:00
False.Genesis
6fef92a30c * added if..else..endif expressions to DefScript. they seem to work after a short test.
* inverted "bigger,a b", it gets now interpreted as a<b instead of b<a. same for "smaller".
2007-03-15 21:51:15 +00:00
False.Genesis
d9a56b2a00 * more updates around DefScript stuff
* added some databases to make a start
* misc stuff
* added macro "@myrace"
2007-03-12 20:39:36 +00:00
False.Genesis
2f459f9d0f * updated some DefScript stuff
* added some DefScript return values for SCP databases
2007-03-11 15:13:04 +00:00
False.Genesis
6c2355b75c * implemented DefScript return values. use like vars: ?{func}
* note that this version might still be buggy! please test and give feedback on forum!
* added a temp workaround to prevent the execution of dangerous scripts over return values as ingame commands.
( -out ?{say .shutdown} )
2007-03-10 23:54:29 +00:00
False.Genesis
06942daea6 * fixed a little bug(?) in the variable importer
* implemented SCP database functionality (.scp files). (sounds familiar? :P )
* new DefScript command: "loadscp,name filename"
* added .def file: append.def. (wrapper to concat strings)
** -> note that the scp db has no real use right now, just some program internal stuff which will come tomorrow. soon i'll have a go at DefScript return values, useable e.g. to get data from the dbs.
2007-03-04 00:18:58 +00:00
False.Genesis
6df34baf6a * implemented basic targeting. new DefScript command: "target <name>". works only on players for now, and name must be exact. 2007-02-27 19:04:17 +00:00
False.Genesis
e9946c4330 fixed compile error with VC++ 2005 express. thx to bLuma for the report. 2007-02-09 12:20:12 +00:00
False.Genesis
bd103935d0 * Added support for timed scripts (=event timers)
-> 2 new script commands: "addevent,$eventname,$interval $script" and "removeevent $eventname". note that you cannot register 2 events under the same name!
* Fixed a minor bug with ${@myname} when called in an #onload block
* Added an example script file autobroadcast.def
2007-02-08 17:41:52 +00:00
False.Genesis
d6b6960c29 * Added support for item prototypes
* new DefScript command: "queryitem #id"
* added cache for known item prototypes
* fixed a little typo in script: reply.def
* error logs go to stderr now
* misc stuff
2007-02-03 23:24:02 +00:00
False.Genesis
f7415df6e3 * object classes update
* first touch with update packets!
* added some code coloring
2007-02-02 23:08:28 +00:00
Mini
826019f889 Added a Player and PlayerSettings class.
Added castspell to defscript.
2007-01-29 20:47:35 +00:00
False.Genesis
b15aff0b5d *New DefScript API functions: loadconf, applyconf, applypermissions; log, logdebug, logdetail (according to debug level set in conf).
-> moved conf loading from core to scripts.
*New DefScript call: _leaveworld.def
*Fixed crash when calling _leaveworld on ~WorldSession()
* some updates to internal variable name handling
* added new macro: @n : newline (\n)
* cleanups
* added a bunch of new scripts + examples
2007-01-29 15:09:11 +00:00
False.Genesis
9d0dd30a0c * fixed channels & linked them with DefScript
* functions: joinchannel, leavechannel
* added script: chan.def (say on channels)
* fixed DefScript loaddef & reloaddef
* misc stuff
2007-01-21 22:02:16 +00:00
False.Genesis
3b5f986d09 fixed compile error; added math functions to DefScript; removed old, commented out code 2007-01-17 14:46:44 +00:00
False.Genesis
fa4385c74f prerelease version + implemented logfile support 2007-01-12 14:03:08 +00:00
False.Genesis
e69375d76e Fixed: permissions system for players & script commands.
Fixed: ingame commands ("-say hi") are useable again. 
/!\ Added now conf option: "allowgamecmd" 
+ fixed debugger working directory
2007-01-11 18:11:54 +00:00
False.Genesis
889238cfb7 + added default config files + SDL.dll
+ added some DefScripts 
+ fixed the DefScript system. TODO: permissions & stuff will come in next rev. :)
2007-01-10 22:24:19 +00:00
False.Genesis
0962bec886 + proper shutdown
+ better thread pausing
+ misc stuff
2007-01-06 15:29:00 +00:00
False.Genesis
d744135e02 etc 2007-01-05 22:00:53 +00:00
False.Genesis
fe91c8ebd6 2007-01-05 21:35:23 +00:00
Mini
4905b42cdb Was referring to a non-existing header file which wasn't needed. 2007-01-05 19:12:22 +00:00