Changelog-Trunk.txt 285 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124
  1. Date Added
  2. AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
  3. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
  4. 2007/04/07
  5. Updated the server's PCRE components to 7.0
  6. - dll, library, header
  7. - cleaned the only existing example and moved it to /samples
  8. - changed the interface, now $@ is used instead of $ to store the result
  9. - /!\ adjust your scripts if you are using npc regexp parsing /!\
  10. * Fixed the start_point setting smashing t3h stack in some situations
  11. * Fixed some over/under-dimensioned arrays (defines already cover the '\0')
  12. * Fixed an unupdated define making Warp Portal fail with an error [ultramage]
  13. * Final touches to the whole map crap [DracoRPG]
  14. - changed MAP_NAME_LENGTH to 12, now there's MAP_NAME_LENGTH_EXT at 16 for
  15. uses where there is / may be the .gat extension, code adjusted accordingly
  16. - moved map_normalize_name to mapindex_normalize_name so that everything
  17. handling map names uses the same extension-removing function
  18. - greatly enhanced the map cache generator, complete documentation on the
  19. tool and the map cache format can be found in doc/
  20. - the map cache format changed a bit as a consequence, but of course a new
  21. valid one is included (contains latest Nameless Island maps)
  22. - and I'm sorry for the number of times I've moved around and renamed files,
  23. now the final structure should have been reached
  24. * Capped clif_heal's heal field (the argument received is int, but the
  25. packet field is short, meaning that if the heal is high enough, the client
  26. would receive a negative heal amount). [Skotlex]
  27. 2007/04/06
  28. * Made a crazy attempt to at least partially synchronize login&char code
  29. * Major edit to the way the servers handle ip addresses, making them obey
  30. the "host byte order inside, network byte order outside" rule [ultramage]
  31. - hopefully covered all entry- and exit-points for IP address data
  32. - discovered several places where Gravity's client breaks the convention,
  33. will need to come up with a suitable countermeasure for that
  34. - other than that, the code should be portable, except for printing and
  35. ipban mask testing (those still assume a specific byte order)
  36. - tested both txt and sql in all usual situations; tested single- and
  37. multi-server setups, all seems to work (but watch out for hidden bugs!)
  38. 2007/04/05
  39. * Cleaned @whogm. It will display the name of all gms online. If their GM
  40. level is above your own, it will only display their name, otherwise level,
  41. position, and party/guild info is displayed. GM's using gm-hide will not
  42. appear on this list.
  43. * Corrected song/dances/encores reducing SP at the incorrect intervals
  44. (either never, or every second).
  45. 2007/04/04
  46. * Corrected Longing for Freedom, it should triple SP cost rather than
  47. modifying SP cost to 1/sec
  48. * SC_ENCHANTARMS will no longer fail to start if it's already running with
  49. a "higher elemental level".
  50. * When trying to trade an untradeable item, the add-item-fail packet will
  51. be sent so the client does not gets stuck. [Skotlex]
  52. 2007/04/03
  53. * Some spring-cleaning in sql-files, only left SVN 8k+ files [DracoRPG]
  54. * Updated sql files [Playtester]
  55. * Fixed char-server crash on @changegm use.
  56. * Cleaned up mmo_auth, this function wasn't only poorly coded, it also had
  57. a SQL-related memory leak in it!
  58. * Corrected the attack_attr_none check being backwards (ie: this config was
  59. working backwards!)
  60. * All pets can now move regardless of their Mob counter part setting.
  61. [Skotlex]
  62. * Some source code cleaning
  63. - Fixed the badly worded messages during mapserver startup
  64. - Cleaned up socket config reading
  65. - Split resolve_hostbyname() into 2 separate functions for clarity
  66. - Moved the probably obsolete LOWER/UPPER macros to db.c (TODO: remove)
  67. - Moved the badly placed compare_item() function to storage.c (see r779)
  68. * Fully removed the msvcr80.dll dependency from the vs8 project files
  69. 2007/04/02
  70. * Removed some overly verbose item group messages & code
  71. * re-added the item_group_list for consistency's sake, moved to itemdb.h
  72. (after some hacking to remove the ugly map.h dependency)
  73. * Fixed the server crashing on a timer-queued disguise / undisguise
  74. * Fixed the server crashing on startup due to bad define [ultramage]
  75. * Removed bonus 'bAspdAddRate'. bAspdRate now behaves on a stackable
  76. matter, so it's no longer needed.
  77. * Reimplemented the bonus 'bAspd' (raw Aspd increase) [Skotlex]
  78. 2007/03/31
  79. * Added all the missing defines for ctype.h functions and converted all
  80. the direct uses to the defines. [FlavioJS]
  81. 2007/03/30
  82. * Added "do_abort" function to the core. It is invoked when the server has
  83. received a Segmentation Fault or Floating Point Exception signal. Currently
  84. the only one that uses it is the map-server, which then attempts to save
  85. all online characters before aborting. Note that due to the current
  86. coding of the sig plugin, do_abort will not be invoked if you use it!
  87. This plugin needs to be updated... [Skotlex]
  88. * Continued script.c cleanup [Toms]
  89. 2007/03/29
  90. * Corrected OPTION_XMAS since 2007 clients have split it up from
  91. OPTION_FLYING (on previous clients both were the same option value).
  92. * Corrected statp array not being long enough to actually hold the status
  93. points of ALL levels up to and including MAX_LEVEL. Fixes reaching final
  94. level and resetting giving you an unpredictable amount of status points.
  95. 2007/03/28
  96. * Negative aspd rate bonuses will be handled as aspd add rate since the
  97. default non-stackable bonus is useless on penalty bonuses.
  98. * Added check to prevent the client from using passive skills. [Skotlex]
  99. * Updated sql-files [Playtester]
  100. * Removed a missing file reference in the athena-start script
  101. * Fixed a #error "<malloc.h> has been replaced by <stdlib.h>" problem
  102. * Fixed the msg_silent setting not being announced every time [ultramage]
  103. 2007/03/27
  104. * Cleaned up some the mob skill use code. The skill re-use delay is set at
  105. the time the skill is used rather than when it finishes casting. The
  106. invalid target check was also moved to the mob skill db reading function.
  107. * Skills can be used now when the autoskill menu is open (since there's no
  108. packet sent by the client when you hit on cancel). [Skotlex]
  109. * Added some svn:ignore properties [Toms]
  110. * Solved console plugins compilation error [Toms]
  111. * Changed MAX_LEVEL to the standard value 99. Memory consumption-= 55MB.
  112. - !!!WARNING!!! If your server uses higher levels, be sure to adjust
  113. this appropriately! (the define can be found in /src/map/map.h)
  114. * Corrected SC_COMA's success chance (X.4 says it's unconditional 100%)
  115. * Changed the vs8 used crt library to static linking [ultramage]
  116. 2007/03/26
  117. * Coma now reduces SP to 0 (with the exception of Dark Blessing) [Skotlex]
  118. * Corrected "format '%lu' expects type 'long unsigned int', but argument 4
  119. has type 'unsigned int'" warning on login.sql [Toms]
  120. 2007/03/24
  121. * Corrected change r10051 which prevented Ice Pick from working [ultramage]
  122. - the 'ignore_' variables are bitflags and therefore need enough bits
  123. to store all info; 8 bits wasn't enough in this case
  124. 2007/03/23
  125. * Major reconfiguration of the vs7 project files (+vs8 while I was at it)
  126. - added definitions _DEBUG and NDEBUG to tune system-specific stuff
  127. - reduced the build requirements (Pentium 4 was a bit too much)
  128. - changed build settings and project structure to match the vs8 projects
  129. - corrected some vs8 inconsistencies
  130. * Some generic typo fixes [ultramage]
  131. * Corrected Ankle Snare/Spider Web having a 1% chance to trap rather than
  132. 100%
  133. * Food boosts are now dispelled on death only.
  134. 2007/03/22
  135. * Corrected setitemscript not correctly updating the item's script.
  136. * Added define MAX_CHARS so you can easily mod the server to support a
  137. different amount of characters per account (however, there is still the
  138. issue of hexing the client to support this change)
  139. * Updated msg_athena.conf so it no longer uses broken english on several
  140. entries. Thanks to Scerez for the updated file.
  141. 2007/03/21
  142. * getpetinfo 5 will now return the pet's rename flag.
  143. * Autoloot will now only work on items dropped a certain distance from the
  144. player. The distance is defined by AUTOLOOT_DISTANCE in atcommand.h and
  145. defaults to AREA_SIZE.
  146. * Removed Magic Rod's cast bar.
  147. * Gravitation no longer causes damage flinch. [Skotlex]
  148. 2007/03/20
  149. * Increased MAX_STATUSCHANGE to 300 to make room for new statuses [DracoRPG]
  150. * Reverted mapindex reading from map_list.txt for the map-server [DracoRPG]
  151. * Patched the MAX_STATUSCHANGE startup error [ultramage
  152. * Removed the last argument from script command skillitem.
  153. * Added skill ITEM_ENCHANTARMS, this is what weapon enchanting items should
  154. use.
  155. * Added support for specifying different elements per skill level in the
  156. skill_db
  157. * Added bonus bNoKnockback.
  158. * Corrected login sql server not reseting your account state to 0 when the
  159. banuntil duration expires.
  160. * Made the skillatk bonus it's own function, it can now be used to boost
  161. Heal/Sanctuary/Potion Pitcher and Slim Pitcher as well.
  162. * Corrected Teleport's save map entry being sent without the .gat
  163. extension.
  164. * Corrected Warp Portal not sending the map names with the .gat extension.
  165. * Probably corrected Disarm's strip animation.
  166. 2007/03/19
  167. * Rewrote the jail logic to always use a status change. This means that the
  168. character's save point is not changed when jailed, and the char is always
  169. warped back to the point where it was before being jailed on unjail.
  170. * Modified @adjcmdlvl so you can't set a command to require higher level
  171. than yourself, and so you can't edit the level of a command which is higher
  172. than your own.
  173. * Corrected attack_attr_none setting disabling elemental resist cards.
  174. * Corrected Dispell removing Jailed status.
  175. * Corrected being able to revive with 0 hp.
  176. * Modified the "Restart" code so that it makes you stand on spot when
  177. pc_setpos fails to move you back to your originating location. [Skotlex]
  178. * Fixed some wrong sql login logic
  179. * Fixed some compiler warnings, cleaned up mapserver sql-related vars
  180. * Removed the old 'mapserver charsave' mechanism [ultramage]
  181. * Globalised use of script_pushint and script_getdata in script.c
  182. If someone need them, the regexp used was :
  183. sed -i "s/& *(st->stack->stack_data\[st->start *+ *\([^]]*\)\])/script_getdata(st,\1)/g" script.c
  184. sed -i "s/push_val(st->stack, *C_INT *, *\([^)]*\))/script_pushint(st,\1)/g" script.c
  185. * Little clean of unused variables in script.c [Toms]
  186. * Script engine:
  187. - calling functions without using the return value doesn't generate warnings
  188. - more work on Ticket #41
  189. * Took care of two warnings and a minor change to the makefile. [FlavioJS]
  190. 2007/03/18
  191. * Added missing VC++ 7.1 project files for mapcache. [Lance]
  192. * A followup to the login_sql server changes:
  193. Due to a missing 'else' in the case_sensitive config setting loading
  194. code (see r483 and r3316), the option was always being set to 'off'.
  195. Now that I have corrected it, make sure to set it exactly how you
  196. want it to behave (usually case-insensitive)!
  197. Failure to do so can result in half the server spamming you with
  198. messages about how they are getting 'unregistered id' errors.
  199. 2007/03/17
  200. * committing my work on the login server (mostly SQL) [ultramage]
  201. - removed the check_ip_flag from login&char (there since r1)
  202. - removed the CMP_AUTHFIFO_IP and CMP_AUTHFIFO_LOGIN2 defines (also r1)
  203. - removed dynamic_account_ban, gm_db settings, weren't doing anything at all
  204. - modified the date_format setting to take the format string directly
  205. - removed overly verbose config loading messages
  206. - removed/simplified many more useless actions
  207. - renamed the dynamic_pass_failure_ban_ settings to make more sense
  208. - collected relevant config settings into a login_config structure
  209. and documented their purpose
  210. - allowed usage of yes/no instead of the user-unfriendly 1/0 method
  211. in config settings (and added 1/0 as a possible option)
  212. - fixed dnsbl which was always taking only the first entry into account
  213. 2007/03/16
  214. * Corrected the structure and added info on the skill fail packet (0x110).
  215. * Added packet 0x223 as clif_upgrademessage (not used yet).
  216. * More work on Ticket #41. [FlavioJS]
  217. 2007/03/15
  218. * Added SC_CHANGEUNDEAD to differentiate it from the other elemental change
  219. skills. It now fails on Undead/Dark elemental targets.
  220. * Corrected party item share settings not being properly updated on logon.
  221. * Corrected battle_attr_none setting applying to elemental attacks instead
  222. of neutral ones. [Skotlex]
  223. 2007/03/14
  224. * Finished polishing the new mapcache system [DracoRPG]
  225. - common/grfio.* now empty except zipping functions (to read mapcache)
  226. - servers do not use .gat internally anymore
  227. => YOU CAN (and should) STOP USING .gat IN YOUR SCRIPTS
  228. - moved files for the mapcache builder to db/ for now
  229. - the char-server now uses the same index list as the mapcache builder
  230. => poring_c01, poring_c02 and ng_quest mapindex have changed, beware
  231. * Updated sql files [Playtester]
  232. * Adjusted @pvpoff, @gvgoff, @killer, @killable to make characters stop
  233. attacking when used.
  234. * Dispell no longer removes food boosts.
  235. * Players will stop attacking when they change their look.
  236. * Applied Alydis's fix to the mvp item logs logging mvp items even if the
  237. player couldn't get the item.
  238. 2007/03/13
  239. * Corrected the new packet version entries for skilluseposinfo
  240. * Corrected item reloading not unsetting the "delay consume" flag if the
  241. item had changed it's type.
  242. * the Attack_Type variable in skill_attack now inherits the damage.flag
  243. properties, this fixes ranged status effects not triggering.
  244. 2007/03/12
  245. * Added player not attached crash prevention to countitem/countitem2.
  246. * Probably corrected delitem not deleting pet eggs at all.
  247. * Hopefully fixed hidenpc/disablenpc not working on Guild flag sprites.
  248. * Mob skill state "anytarget" no longer triggers when the mob has an
  249. item-target (looting).
  250. * @storage/@gstorage will no longer work if you have a trade or a storage
  251. opened already.
  252. * Corrected script command movenpc so it properly moves the ontouch npc
  253. cells as well.
  254. * Changed the unit-walk packet to be 0x86 as pointed out by FlavioJS. This
  255. new packet is much smaller, and should greatly decrease bandwidth usage.
  256. The only drawback is that the character will not display at all if the
  257. client didn't know of it's existance previously, but eA should always be
  258. sending a spawn packet when an object gets into/out of sight anyway, so
  259. it should work correctly.
  260. * Modified the guild master change ack packet to return the aid/cid of the
  261. new guild master instead of the index where it was, the previous method
  262. could cause problems in situations where the order of guild members would
  263. not match exactly between char/map servers.
  264. * Updated the Soul Linker's Rogue Spirit Stealth's speed bonus to +60%,
  265. according to forum infor from ragnagate. [Skotlex]
  266. 2007/03/09
  267. * Mapcache can run on system with any endianness.
  268. The generated file contains data in little endian.
  269. * Added info on packet 0x86 (simple move packet). Not usable until a clear
  270. separation between entering sight/leaving sight/walking in sight is done.
  271. * Propagating const char* from the script engine.
  272. * ".gat" is appended to the map name before sending the changemapserver
  273. packet to the client. [FlavioJS]
  274. * Normalized the mapname in guild get/set castle data, should fix guild
  275. flags.
  276. * Added log options 0x800/0x1000 to log storage moves ('R') and guild
  277. storage moves ('G')
  278. * Added upgrade_svn9976.sql to include 'R'/'G' on the picklog type column
  279. set.
  280. * Updated the logs_athena description to include the letter of each type
  281. (512 - M, 32 - N, etc)
  282. 2007/03/08
  283. * Corrected the pet/homunc data not being free'd if the player logs out
  284. before being authed.
  285. * Initialized player's speed on pc_setnewpc to prevent homunculus copying a
  286. speed of 0.
  287. * Corrected ranged add-status only triggering if the attack is arrow
  288. based.
  289. * Updated counter add-status so they trigger on ranged attacks instead of
  290. using "arrow_atk" state. [Skotlex]
  291. * Here comes the new mapcache system! [DracoRPG]
  292. - The last and only big "feature" (kind of cleanup in fact) you'll see
  293. - Totally removes GRF/GAT handling from map-server that only reads from cache
  294. - The cache now also contains map indexes, and is mostly zipped (1.5MB atm)
  295. - It is shipped with eA => 100% client-independant, no more missing maps
  296. - If you want to add custom maps, the mapcache builder is available, doc
  297. and Unix Makefile coming as soon as possible (VC8 project only ATM :/)
  298. - Removed now useless AFM/AF2 support, as well as the startup screen notice
  299. 2007/03/07
  300. * Corrected the define for NK no cardfix (def).
  301. * Fixed the char sql server not escaping the server name before inserting
  302. it on the ragsrvinfo table.
  303. * Corrected @lvup not doing the party even share check.
  304. * Corrected breaker's misc part not ignoring element.
  305. 2007/03/06
  306. * Added NK value 0x80: ignore target's cards (0x8 will now only ignore
  307. attacker's cards).
  308. * Corrected Soul Breaker ignoring target's cards instead of the caster's.
  309. [Skotlex]
  310. * Fixed an infinite loop if script name contains a single ':' [Toms]
  311. * Simplified the Utsusemi/Bunsinjyutsu check to only block weapon skills
  312. that do not ignore offensive cards. [Skotlex]
  313. * Added support for the 2 new packet versions. [Zephiris]
  314. * Fixed the loginlog's `user` column length (use upgrade_svn9957.sql)
  315. 2007/03/05
  316. * More tweaks to socket.c to simplify the code [ultramage]
  317. - many generic cleanups - reformatting, useless code removal, etc
  318. - made the mode_neg setting a compile-time decision, not a run-time one
  319. - removed the silly frame_size setting (there since r1)
  320. - added some TODOs to http://www.eathena.ws/board/index.php?showtopic=127988
  321. * Added the +20hit that were missing the NPC elemental attack skills.
  322. * Added support for autospells using "a random skill level". The last value
  323. of bonus4 bAutoSpell is used for determining this as well as the target. &1
  324. is to cast on target (otherwise cast on self), and &2 is to use a random
  325. level UP to the level specified in the script (otherwise always cast the
  326. specified level)
  327. * Updated item_bonus.txt with the documentation for the
  328. bAutoSpell/bAutoSpellWhenHit changes.
  329. * Corrected @refresh not reupdating the basic stat bonuses.
  330. 2007/03/03
  331. * Modified a bit the storm gust counter code to see if it fixes storm gusts
  332. sometimes freezing on first hit.
  333. 2007/03/02
  334. * Tatami Gaeshi state (proyectile blocking) now ends when you move.
  335. * SG Union will consume now SP if you use it while not soul linked.
  336. * Added variable "skip" to the mob spawn data, to know how many mobs to
  337. skip when spawning because they were not removed due to the
  338. "mob_remove_damaged" setting.
  339. * Corrected the Hp/Sp regen formulas from Hp/Sp/Spirit Recovery and
  340. Happy/Peaceful break according to recent forums discussions (formula is
  341. changed from x*lv +max*lv/500 to lv*(x+max/500). [Skotlex]
  342. * Added new script function: setiteminfo. Now you can make custom items [Lupus]
  343. - Updated script function setitemscript(itemID,script,WhichScript)
  344. now u can set one of 3 item scripts: use/update, equip, unequip
  345. But it works only if the original item had 3 non empty scriptsin ITEM_DB
  346. can't fix this issue yet
  347. 1201,Knife,Knife,4,50,,400,17,,1,3,0xFE9F7EEF,7,2,2,1,1,1,1,{dispbottom "1";},{dispbottom "2";},{dispbottom "3";}
  348. and... if u've used this function, later @reloaditemdb may crush the map server ^_-
  349. - Check npc/sample/npc_test_setitemx.txt as example of setiteminfo & setitemscript
  350. 2007/03/01
  351. * Corrected raid not doing the "can hit?" check on splash area targets.
  352. * Fixed the definition of warpwaitingpc so that it allows an optional
  353. argument (number of people to warp).
  354. * Modified the Palm Strike packet so the initial hit animation does not
  355. displays "Miss".
  356. * Added a check to prevent trades from being commited if either character
  357. is in final-save state.
  358. * Checked and cleaned up the online_check code in the char-server. Further
  359. connections to the char-server are rejected when the account already has a
  360. connection (previously this would happen only if there was already another
  361. character IN game, not just waiting on the char-select screen). [Skotlex]
  362. 2007/02/28
  363. * Added the source and VC8 project for my experimental mapcache generator;
  364. it is NOT compatible with eA's current mapcache but uses a brand new format
  365. that I still have to embed into the map-server [DracoRPG]
  366. 2007/02/27
  367. * NPC_AGIUP now boosts flee by 100% and duration is 5+5*lv secs, as stated
  368. on the Ragnarok Bible.
  369. * Fixed Soul Breaker's misc part not ignoring flee.
  370. * Fixed misc attack's flee check being backwards (the less hit%, the more
  371. chance you had to connect)
  372. * Corrected the range check in vending.c [Skotlex]
  373. * Added map & distance check to vending to prevent WPE hacks. [Lupus]
  374. E.g. buying items from WoE castle
  375. * Fixed a compiler warning in char_sql\login.c
  376. * Minor source documentation/cleanup. [FlavioJS]
  377. 2007/02/26
  378. * You are allowed to expel guild mates that are not online now.
  379. * Corrected damage of BloodDrain
  380. * Moved the "already connected" checks to pc_authok, since a dual login
  381. doesn't needs to be checked until the new connection is accepted.
  382. * You are allowed to attack/use skills now when your cloaking level is
  383. below 3.
  384. * Small change to Stone Curse that may fix the permanent "semi-stone"
  385. status.
  386. * Corrected "taming monster" having your skill-use be stuck if you cancel
  387. the target selection process.
  388. * config setting party_show_share_picker now displays the jname of the item
  389. picked as well.
  390. * Corrected some typos and small details
  391. (forgotten bInfiniteEndure [r6487], mysterious '1' in help file, etc)
  392. 2007/02/25
  393. * Added Krade's makefile fix for 64bit compilers [ultramage]
  394. - ref: http://www.eathena.ws/board/index.php?showtopic=136622
  395. * Minor cleanup/documentation on the script engine. [FlavioJS]
  396. 2007/02/24
  397. * Fixed the mob_override_name setting not working on summoned mobs.
  398. * The server now prints an error message when it the produce_db reaches the
  399. max number of allowed produce recipes.
  400. * The NK value of the skill_db has been made a hexadecimal value, and
  401. expanded to include more information about a skill's damage properties: 0x8
  402. ignore caster's cards, 0x10 ignore element adjustments, 0x20 ignore
  403. target's defense, 0x40 ignore target's flee. Note that magic attacks
  404. always ignore flee, and misc attacks always ignore defense.
  405. * Autoguard will no longer work on skills that don't take in card
  406. adjustments
  407. * utsusemi & bunsinjyutsu no longer work on skills that don't take in card
  408. adjustments.
  409. * Corrected damage of the NPC elemental attack skills, Blood Drain and
  410. Energy Drain
  411. * Adjusted menu-based skills so you can't reuse the same skill until you've
  412. dealt with the menu.
  413. * Adjust autospells so that removing an autospell works when the script of
  414. the card that removes the autospell is triggered before the script that
  415. adds the spell.
  416. * The "requested name of gm-hidden char" warning will not be displayed when
  417. the object in question is an NPC (since you can use Intravision to do
  418. this).
  419. * Venom Knife no longer takes into accounts cards or EDP.
  420. 2007/02/23
  421. * Guild expulsion now will fail when the character to be kicked is in a
  422. guild castle (rather than checking for the character doing the expulsion)
  423. * pk damage reduction settings now will take effect only on Player VS
  424. player damage.
  425. * Fixed produce_db2.txt entries overwriting produce_db.txt ones.
  426. * Fixed item-granted/plagiarized skills unlocking skill trees when only
  427. your real learned level should. [Skotlex]
  428. 2007/02/21
  429. * Applied a consistent look to all header files (copyright, ifdefs)
  430. * Minor stuff (typos, socket.c, junk in login reply packet) [ultramage]
  431. 2007/02/19
  432. * Fixed @cartlist info message typo [Lupus]
  433. 2007/02/17
  434. * Fixed a typo from r9778, allowing non-gm chars to use /kill [ultramage]
  435. 2007/02/16
  436. * Fixed the structure of packet 0x6d (new char info). It's the same as the
  437. one used for packet 0x6b (chars info). [FlavioJS]
  438. * Updated script commands startnpctimer, stopnpctimer, initnpctimer so you
  439. can attach a player to them, this is done because the attach/detach
  440. functions can't be used to attach to a different script than the one
  441. currently running.
  442. * Updated the script_command reference with the new flag values of
  443. [start/stop/init]npctimer.
  444. * Modified the "guardian" spawn script command, it no longer receives a
  445. "amount" argument (since that only leads to trouble), if the class is
  446. negative, it'll pick a random class the same way the monster spawn script
  447. command does, and if you pass a spawn position with coordinates equal or
  448. less to 0, a random spot in the map will be taken. However you can't use
  449. "this" as a map name anymore since these script commands do not need an
  450. attached player.
  451. * Guardian spawning will now fail if you attempt to spawn a guardian that
  452. already exists on the same position.
  453. * Miracle of the Sun, Moon and Stars can now retrigger to lenghten it's
  454. effect, and it is cancelled on warp/map-change. [Skotlex]
  455. 2007/02/15
  456. * Reverted some of my mobdb code
  457. * Cleaned up clif_party_info a bit
  458. * Cleaned up set_reg (the same procedure as get_val) [ultramage]
  459. * The default packet version is now 8. Clients from November2006 and before
  460. can no longer get past the char-server unless you change it back to 7.
  461. * Fixed Storm Gust counter freezing on fourth hit instead of third.
  462. * Fixed @homstats not taking into consideration that the stat growth
  463. decimals get discarded on level up (so the real minimum/maximum displayed
  464. was off).
  465. 2007/02/13
  466. * Applied Rayce's dangling pointer fix when returning a temporary npc
  467. string variable (those starting with .@)
  468. * Required Weapon, ammo, and skill state are now only checked on begin
  469. casting, instead of both on begin and end casting.
  470. 2007/02/12
  471. * Fixed Resurrect Homunculus and Wedding skills failing. [Skotlex]
  472. * A bit more work on Ticket #41.
  473. * Added 'r' (variable reference) to the script argument definitions.
  474. * Added a simple define for suspitious actions. (empty at the moment)
  475. * Added clif_clearcart and moved sending cart packets to pc_setoption.
  476. * clif_parse_ChangeCart checking the player level. [FlavioJS]
  477. * Fixed clif_parse_GMmessage cutting off messages randomly [ultramage]
  478. (due to a typo in revision r9778)
  479. * Fixed Wand of Hermod
  480. * Corrected Spider Web casting around caster instead of target's position.
  481. * Corrected a possible crash during login due to checking for the incorrect
  482. variable (lets pc_calc_status be invoked when it shouldn't)
  483. * Added bounds checking to map_foreachincell.
  484. * Opt2 values (poison, blind, and so on) are now resent on warp/map-change.
  485. * Corrected description of isloggedin script command. [Skotlex]
  486. 2007/02/11
  487. * Fixed the inverted behavior of display_skill_fail, caused by r9823
  488. * Fixed @loadnpc not updating the script_event[] array
  489. 2007/02/10
  490. * Fixed clif_party_message using an incorrect buffer length [ultramage]
  491. * Cosmetic changes to the buildin section of script.c (use defines for
  492. function names/definitions). [FlavioJS]
  493. 2007/02/09
  494. * Updated the 'unit walk' to functions so they stop your attack if it's
  495. possible to walk.
  496. * Fixed char server SQL not sending the guild info update to other map
  497. servers when a new member is added.
  498. 2007/02/08
  499. * Modified Spider Web so it can instantly retrap a target, rather than
  500. idling on the ground waiting for a new target.
  501. * Cleaned up some the rude-attacked code, being attacked while under spider
  502. web now triggers rude-attacked. [Skotlex]
  503. * Added code for SQL that will automatically detect the ping interval
  504. at startup, and copy-pasted it around the code; removed the conf setting
  505. * Added a missing null pointer check in clif_parse_globalmessage
  506. * Fixed the new socket code, which was triggering the inactivity timeout
  507. on the servers' listening sockets
  508. * Fixed the TURBO code not working since r4468 (parse func never called)
  509. 2007/02/07
  510. * More aggressive cleaning up of the socket code [ultramage]
  511. - removed unused session_data2 entry in sd
  512. - added a new create_session() function, helps keep things cleaner
  513. (although it's ad-hoc and not perfect, since this is C)
  514. - undid r4978 since it was getting in the way (re-add it if you need it)
  515. - added defines for the recv, send and parse func pointers
  516. - added null functions for the three actions, and made create_session()
  517. calls use those instead of NULL pointers; insignificant penalty and now:
  518. - since all three funcs are always initialized, removed all those NULL checks
  519. - removed the efd set, since as the people from the developernet forums
  520. pointed out, it's only for out-of-band data and NOT for error checking
  521. (in fact, select() bails out without giving any info if it errors out)
  522. - reorganized the randomly placed socket.c contents somewhat
  523. - it'll be a miracle if this works like it should ^^;
  524. * Modified spider web so that the skill_unit_db flag restrictions may take
  525. place. [Skotlex]
  526. * Cleaning up of the socket code [ultramage]
  527. - Shuffled includes around for files that were leeching off of socket.h
  528. - Added code that enforces standard shutdown behavior for sockets
  529. - Wiped out the poorly written parse code from r2211
  530. * Removed old script bonuses bMatk, bMatk1, bMatk2.
  531. * Fixed char-server not sending online notification when a party member
  532. logs in.
  533. * When skill range by distance is set, the distance checked for is now 5
  534. cells rather than 3.
  535. * Fixed bMatkRate bonuses not applying to status earned modifications to
  536. int/matk. [Skotlex]
  537. * Removed deprecated console code.
  538. * Moved CHAT_SIZE back to map.h because log_atcommand uses it on sql
  539. builds. (moved to clif.c in r9811) [FlavioJS]
  540. 2007/02/06
  541. * Cleaned up the script engine's get_val() function [ultramage]
  542. - changed the long if-spaghetti into a compact switch statement
  543. - changed its behavior so that it exits if !sd and it requires one
  544. - upon exiting, it will now ensure that meaningful values get returned
  545. (the old code had no qualms about returning random junk from memory
  546. for integer queries, and crashing for string queries)
  547. - removed many !sd checks since they are done at the beginning now
  548. * Fixed #lvup having the gm level check backwards.
  549. * Fixed the stormgust freeze counter going up even if the attack is
  550. blocked/cancelled.
  551. * Cleaned up homunc attack request parsing. Homunculus no longer goes into
  552. auto-attack (ctrl+click) mode since the client does every attack request
  553. individually.
  554. * Fixed char-server not sending party status update when a member logs
  555. on/off.
  556. * Fixed crash when parsing guild member information change from the
  557. char-server if the specified character is not found in the guild.
  558. * Fixed MvP mobs giving exp when killed even if they shouldn't.
  559. 2007/02/05
  560. * Fixed @lvup, #lvup not doing a stat reset and lowering your status points
  561. if you had 0 status points at that time.
  562. * Fixed MvP exp and item rewards being given even when the mob_dead flag
  563. specifies you should not receive exp or items.
  564. * Updated the code so that now a range of a skill is determined by the
  565. skill's range in the db. Now only skills with less than 5 cells of range
  566. are melee.
  567. * The inf2 parameter of the skill_db is now red as an hexadecimal.
  568. * The super novice self-revive angel will now trigger only once per
  569. session, if you relog you can have it trigger again. [Skotlex]
  570. * Fixed the skill tree not always updating when using @allskill
  571. * Probably fixed the target-change on melee attack setting not working.
  572. * Moved the deletion of the invincible timer when using skills so that it
  573. is not deleted for skills such as Ashura (when just selecting a target)
  574. [Skotlex]
  575. 2007/02/03
  576. * Continuing the checking of script buildin functions and stop the script
  577. execution when an attached player is required but not found.
  578. This task will be referenced as Ticket #41 from now on. [FlavioJS]
  579. * Updated the TXT login server's account id checker
  580. (it was still saying the minimum is 700000 instead of 2000000)
  581. * Changed the 'getpartyleader' script command so that it returns a map
  582. name instead of the useless mapindex number. Also fixed it so that it
  583. doesn't throw a 'args of aFree is not valid pointer' error.
  584. (although I'm not at all sure that the fix is correct)
  585. Ref: http://www.eathena.ws/board/index.php?showtopic=137274
  586. * Removed the silly and misleading 'firewall detected' message
  587. * Added missing vc6 project file
  588. * Corrected a lie in the script documentation [ultramage]
  589. 2007/02/02
  590. * Fixed the flag parameter not working on npcshopattach.
  591. * Updated the walk delay code so that it parses homunculus as well as
  592. players. What this means is that a homunculus walk request won't go ignored
  593. if it's issued during the 'can't walk delay' after being hit.
  594. * Added a possible crash protection in clif_skillfail when the player is
  595. without a connection. [Skotlex]
  596. * Fine-tuned the global message processing function [ultramage]
  597. - now detects access-out-of-rfifo attempts (idea from eA++)
  598. - uses the new CHAT_SIZE define to restrict message lengths
  599. - detects Frost Joke/Dazzler and gives them more freedom (from Freya)
  600. - more strict non-conformant message detection
  601. - logging every problem to the mapserver console
  602. * Resetting skills will now automatically remove peco, falcon, cart and
  603. homunculus (vaporize).
  604. * Fixed random mob picking choosing clones.
  605. * Fixed critical spots that could be exploited [Skotlex]
  606. - The define MESSAGE_SIZE was wrong! It is only used for input boxes.
  607. Therefore now it is only used for Vending, Talkie box and Graffiti
  608. - Added new define CHAT_SIZE which holds the max length that a client
  609. can send from the chat buffer
  610. - Added define msg_len_check which crops incoming client text if it's
  611. longer than CHAT_SIZE. Added cropping to all incoming messages except
  612. normal chatting which is already accounted for.
  613. - Removed variable talkie_mes, this is now handled by sd->message
  614. - Cleaned up parser functions for /b /lb, gm kick, /shift, /recall
  615. - Added crash protection to the logging functions when they receive
  616. a too long string.
  617. 2007/02/01
  618. * Restricted global messages to 255 characters (client shows only ~80 anyway,
  619. wanted to use 127 but frost joke's lines are longer than that ...)
  620. - prevented using a ~22+kB long message to crash everyone on screen
  621. - prevented faking the message length to cause an out-of-bounds access crash
  622. - removed the unneccessary 'buf'ffer (inspiration from jAthena)
  623. - Ref: http://www.eathena.ws/board/index.php?showtopic=137770
  624. * Corrected the chat system to allow 8-letter passwords
  625. * Minor details (pdb file location, improved debug, npc typo) [ultramage]
  626. * Cleaned up the npcshop(add/del)item script commands, fixed a possible
  627. dangling pointer crash caused by their improper use of realloc. They no
  628. longer automatically attach the script to the shop, and they will return
  629. true/false based on whether the shop was found or not.
  630. * Added script command npcshopattach to enable attaching/detaching your
  631. script from any npc shop.
  632. * Updated doc/script_commands.txt with entries for npcshopitem,
  633. npcshopadditem, npcshopdelitem and npcshopattach [Skotlex]
  634. * A followup to r9761, a header include that somehow didn't commit [ultramage]
  635. * Item search is now a bit smarter. When no item is found with the same
  636. 'aegis name', then the 'normal' name is used instead.
  637. * Updated the @/# commands that take an item name so that you can use
  638. quotes when specifying item names with spaces in them. For example, @item
  639. "poring card" 1 will work now. Note that only the commands that work on ONE
  640. item have been updated, those that do an item list need to be updated as
  641. well. [Skotlex]
  642. * Updated the old vs6 files to latest, thanks to k3dt for contributing them
  643. * Reorganized the vs6 project files (update will follow)
  644. * Fixed an accidental change in r9758 (edit&continue) [ultramage]
  645. * Added support for mob skill target 'randomtarget', when specified, it
  646. will pick a random enemy from within the skill's cast range. [Skotlex]
  647. * Added string function strnlen [ultramage]
  648. - This thing is useful for removing potential out-of-bounds crashes.
  649. Had to #ifdef it because some systems implement it, some don't provide
  650. the header, and some don't have it at all. Adjust/improve as neccessary.
  651. * Corrected homunculus's aspd being halved after using some aspd adjusting
  652. skill.
  653. * Removed the log info message 'created homunc...', and the 'loaded homunc'
  654. message will only show if the save_log is enabled.
  655. * When when a party-member levels up, the level change is sent to the
  656. char-server to update the even-share range values.
  657. * When joining a gvg_dungeon, the pvp packet will be sent to signal
  658. versus. With this gvg dungeons should be working correctly now. [Skotlex]
  659. 2007/01/31
  660. * Changes in the VS8 project files: [FlavioJS]
  661. - synchronized the settings between the projects
  662. - joined all .h and .cpp files and grouped them based on the src subfolder
  663. - added Debug/Release build targets that build txt/sql only
  664. - other minor changes
  665. * Removed graph, httpd and webserver
  666. * Wiped out the old night code (use svn if you want it) [ultramage]
  667. 2007/01/30
  668. * 'Long Range Attacked' mob skill conditions will no longer trigger on
  669. magic attacks.
  670. * Corrected char deletion not working (column is called homun_id, not
  671. hom_id...)
  672. * Collapsed config settings produce_item_name_input,
  673. produce_potion_name_input, making_arrow_name_input, holywater_name_input,
  674. cdp_name_input into a single config produce_item_name_input which uses
  675. bitmasks to determine what it affects.
  676. * Updated arrow_decrement to have 3 possible values: Disabled, Enabled, and
  677. Enabled + Autoguess (gives arrow consumption as appropiate to
  678. plagiarized/acquired skills).
  679. 2007/01/29
  680. * Corrected the homunculus deletion functions so that the homunculus is
  681. deleted together with the character.
  682. * Added npc_check_areanpc so that Wand of Hermod will correctly check for
  683. nearby warps.
  684. * Emergency avoid now stacks with other speed boost statuses
  685. * Item skills and skills that bring up a menu now are cleared on death.
  686. [Skotlex]
  687. * Added a nasty hack to prevent multilanguage clients from breaking guild notices
  688. 2007/01/27
  689. * Made @reloadscript wipe ALL previous mobs that the script engine spawned
  690. - this way it is manageable via global vars; the other way doesn't allow that
  691. * Some misc cleanups (typos, formatting, forgotten changelog entry etc)
  692. * Reformatted and translated atcommand.c
  693. - in the process improved @marry, allowing spaces after the first comma
  694. * Simple cleanup
  695. - removed atcommands @w, @server_date/time, @red, @happyhappyjoyjoy, @shuffle
  696. - synced gm level of @jailfor, @charjailtime, @npcmove, @chardropall,
  697. @charstoreall, @send, @mute, @changelook, @exp and @nuke
  698. - added conf entries for @whozeny, @kamic, @tonpc, @petid, @identify, @adopt,
  699. @trade, @changelook, @send
  700. - reorganized the atcommand_athena.conf file a bit
  701. * Corrected indentation of the atcommand table (editor compatibility)
  702. * BEGIN atcommand cleanup process
  703. (according to http://www.eathena.ws/board/index.php?showtopic=111996)
  704. * Fixed a C language restriction preventing compilation [ultramage]
  705. 2007/01/26
  706. * Removed all those useless read-from-GRF features noone would ever use,
  707. also removed cutincard script command as a consequence [DracoRPG]
  708. - this is only the beginning of full grfio disparition from map-server
  709. * Now assassins can equip arrows, and status arrows trigger on any ranged
  710. physical attack: mimics Grimtooth + status arrow "Aegis bug" [DracoRPG]
  711. * Added some random Storage Password packets thingies [DracoRPG]
  712. * Kaite and Assumptio no longer stack. One will remove the other in the
  713. same way Assumptio and Kyrie do.
  714. * Made homunculus renaming go through the char-server so it can be
  715. validated against the allowed characters setting.
  716. * Added battle config hom_rename so you can enable renaming multiple times
  717. your homunc.
  718. * Fixed the normalizing function not sending first classes back to novice
  719. if they do not have basic skill maxed.
  720. * Added a wrapper to delete_timer so it prints out from where the
  721. invocation was done.
  722. * Fixed Splash attacks consuming 2 ammo on each attack. [Skotlex]
  723. * Added some more freedom for the txt log paths since 32 wasn't enough
  724. * Removed log_uptime that was accidentally introduced in r1208 [ultramage]
  725. 2007/01/24
  726. * Cleaned up some more the Joint Beat implementation, so the status don't
  727. take effect until the attack connects. [Skotlex]
  728. 2007/01/23
  729. * Fixed int/dex foods using an incorrect icon for their status [ultramage]
  730. * Changed the night status from 149 to 160, which seems to work so much
  731. better, and also enabled simplifying the night code.
  732. * A skill's walk delay will also delay your can-attack time when the skill
  733. connects, since this is the behaviour of Sonic Blows as described by
  734. Tharis.
  735. * Added view_data support to mercenary.*, so that the Homunculus entries
  736. are no longer required on the mob_db.
  737. * Added the status icon to NPC_CHANGEUNDEAD and the Flee/Hit foods.
  738. * Corrected the check that lets you walk when vending/chatting/etc.
  739. 2007/01/22
  740. * Reverted the battle_calc_return_damage code as the previous one was
  741. correct, ninja self-targetted skills CAN be reflected. [Skotlex]
  742. 2007/01/21
  743. * Fixed while statements not "reserving" the curly before parsing the test
  744. expression. [FlavioJS]
  745. 2007/01/20
  746. * Fixed some joker's code trying to dereference a null pointer
  747. * Fixed the server not reacting properly to atcommands/charcommands when using
  748. langtype 10/11 (the |XY codepage indicator wasn't being trimmed) [ultramage]
  749. * Updated @homshuffle so that the skill tree and current skill points are
  750. not messed up.
  751. 2007/01/19
  752. * Fixed the label dup code, it now works correctly with const.txt switch
  753. labels.
  754. * Reverted the dup-label check code since it has a bug that needs to be
  755. fixed first (it fails to recognize const.txt values) [Skotlex]
  756. * Fixed a client crash during SQL char selection if you for some reason had
  757. more than 9 characters in your account (thanks to Daegaladh) [ultramage]
  758. - note that the TXT version already guards against this since long ago
  759. * Merged Rayce's cleanups of the script engine that account for duplicate
  760. labels, non-numeric labels and makes the engine case-insensitive towards
  761. keywords like if/case/switch/etc/
  762. * Added the icons for the Food boosts (need packet version 8 to get them,
  763. as these icons will just display Gloria, or crash you, when used on older
  764. clients).
  765. 2007/01/18
  766. * Modified the Storm Gust freeze counter code. It now takes into
  767. consideration the ID of the skill before increasing the counter, which
  768. should effectively yield the closest aproximation to official (even though
  769. the counter will reset if you step out of a SG and into another one, we do
  770. not know yet what should happen in such a case).
  771. * Added @homshuffle. It recalculates the homunculus stats, as if the homunc
  772. was sent back to level 1, and then releveled. This command is mean to help
  773. fix those previously created Homunculus that are much stronger than they
  774. should be.
  775. * Fixed overflow on the mob delay adjustment setting.
  776. * Fixed characters being unable to trade again if you attempt a trade on
  777. someone who is on storage/npc when you accept the trade. [Skotlex]
  778. * Fixed a crash when a castle from [0..MAX-1] wasn't in the db [ultramage]
  779. 2007/01/17
  780. * Corrected atcommand @homstats so it shows the correct minimum/maximum
  781. possible values.
  782. * Simplified the hom level up function, now decimal stats are no longer
  783. stored. This should correct eA's homunculus on average being much stronger
  784. than Aegis's.
  785. * Cleaned up pc_allskillup, @allskills should work correctly now.
  786. 2007/01/16
  787. * Added atcommand @homstats so you can check your homunculus stats and
  788. compare them to the minimum/maximum values that you could have at your
  789. current level. This command is meant to help figure out if homuncs are
  790. indeed getting a faster stat growth than they should have.
  791. * Fixed the next invoked skill after AbraCadabra not having requirements
  792. even when it is a different skill than the one chosen by AbraCadabra.
  793. * Implemented Intravision as it should be. Thanks to HelloKitty2 for the
  794. captured packets.
  795. * Some cleaning on the mob_ai to enable mobs to run away from their current
  796. target when they are rude-attacked by them.
  797. 2007/01/15
  798. * The NPC elemental attacks will display a skill animation again.
  799. * Mob instant cast skills will use their adelay now.
  800. * Spirit of Wizard won't work on Ganbantein
  801. * The pc normalize job function will consider you as novice if you don't
  802. have maxed out basic skill.
  803. * Cleaned up pc_calc_skilltree and related functions so that the id is left
  804. as 0 when you can't raise the skill even if you meet the prerequisites.
  805. This is to prevent raising quest/soul/marriage skills through packets.
  806. * Slaves should lock unto their master's target even if they are not
  807. attacking yet (eg: in chase mode)
  808. * Updated the Summon Slave skill to use the slave distance define as valid
  809. distance to spawn from master.
  810. * Fixed Joint Beat's speed penalty.
  811. * Added a pc_authok check to prevent the case in which somehow another
  812. character of the same account manages to log in as well.
  813. * The pc normalize job function will now recognize you as a novice if you
  814. don't have NV_BASIC maxed.
  815. * Accessories will now by default go into the rigth-side rather than the
  816. left-side of the equip window.
  817. * Added a check in the mob_ai_subhard function to make mobs unlock targets
  818. which have their invincible timer set.
  819. * Probably fixed the registration flood protection code being broken.
  820. * Joint Break should only re-start the bleeding timer when it currently IS
  821. the one that causes bleeding. [Skotlex]
  822. 2007/01/12
  823. * Cleaned up the ip rules/DDoS section of the code. (the allow,deny and
  824. deny,allow cases were switched)
  825. * Fixed autotrading characters not being able to reconnect. Seams like I
  826. misunderstood how id_db and pc_db are used. [FlavioJS]
  827. 2007/01/11
  828. * Fixed the script engine not parsing strings in multibyte charsets
  829. correctly (should have been done in r9532).
  830. * Console plugin working when built as Windows native. [FlavioJS]
  831. 2007/01/10
  832. * Combined most of the txt/sql mobdb reading code [ultramage]
  833. - mob.c is now some 10kB less redundant (now using a common function)
  834. - automatically filled in some missing parts of the txt part
  835. (view_range_rate, chase_range_rate, line counting, etc)
  836. - also cleaned it up significantly
  837. 2007/01/09
  838. * Changes to script buildin functions: [FlavioJS]
  839. - functions checking if a player is attached as soon as possible.
  840. - functions that required a player attached and would crash if none was
  841. there terminate the script now. (others keep the current behaviour to
  842. maintain full backward compatibility)
  843. - removed the unused flag argument in guildskill.
  844. - bonus,bonus2,bonus3,bonus4 use the same function now (remains the same
  845. script-wise)
  846. - added an optional parameter to setcart,setfalcon,setriding so it's
  847. possible to remove the cart/falcon/mount or select a specific cart
  848. - other cleanups
  849. 2007/01/08
  850. * Hotfix: Freeing of freed pointer when replacing script functions. [Lance]
  851. * Unimportant cleanups
  852. * Moved the plugin.def file to the plugins dir and added console.def
  853. * Found the reason why the console didn't want to run on windows
  854. (Microsoft uses !0 and unix uses 0 in pipe_create)
  855. * Commented out a login_log call (sql doesn't implement that function!)
  856. * Fixed an old debug message displaying %d instead of a number
  857. * Silenced the plugin export messages during startup [ultramage]
  858. * Added a precompiler error when the shutdown defines are not found.
  859. * Added parse_console to the plugin API.
  860. * Added plugin for parsing the console. (working with cygwin)
  861. * Copied the parse_console code form login txt to login sql and char.
  862. * Added propper plugin version compatibility tests.
  863. * Better output when a plugin fails to load. [FlavioJS]
  864. 2007/01/07
  865. * Fixed the sleep timers not being removed when the an npc was being
  866. unloaded and when reloading scripts. [FlavioJS]
  867. * Updated the documentation to match the agitcheck() behavior
  868. * Undid the memset->malloc_set replacement
  869. (let's be compatible and leave such optimizations to system devs, ok?)
  870. * Small reformatting of conf-tmpl
  871. * Renamed atcommand_sub to is_atcommand_sub (charcommand too)
  872. * Re-added the duplicit nj/gs name messages in msg_athena [ultramage]
  873. (the code was using those and they look better in that position)
  874. 2007/01/06
  875. * Now winsock 2 is required.
  876. * Cleaned up do_close and socket_init a bit.
  877. * Fixed the weight icon dissapearing and reappearing when attacking.
  878. (introduced by me at r9600, fix based on ultramage's code) [FlavioJS]
  879. 2007/01/05
  880. * Also discarded some veeery old utils code that has got equivalents
  881. in the std libs (and therefore is silently causing a nasty collision).
  882. * Major reconfiguration of the VS8 project files. [ultramage]
  883. - Removed the migration binding to a VS71 template.
  884. - Disabled the setting that defines char -> unsigned char (non-conformant).
  885. - Switched all projects to use the common C runtime library DLL
  886. instead of linking the static version to each exe.
  887. - Enabled edit&continue on the TXT version (SQL already had it).
  888. - Reconfigured the linker to use only the really required dependencies.
  889. - Enabled full optimization and whole program optimization,
  890. with additional speed-improving settings for the release build.
  891. - Set the compiler/linker to produce detailed debug information even for release builds
  892. (no performance penalty because the debug info is stored in a separate .pdb file!).
  893. - I tested all 4 build combinations and it works for me, and it should work for you.
  894. - There is still one very useful thing missing - setting the working dir to '..'.
  895. I don't know how to do that, tho' since VS stores it in a separate user file.
  896. 2007/01/04
  897. * Fixed old @go bug (it ignored einbech) [Lupus]
  898. * Added Au{R}oN's updated version of the effect list.
  899. * Completed adding of the new cities to @go.
  900. > that function is ugly and needs a complete rewrite, asap.
  901. * Updated thor volcano warps.
  902. * Updated /doc from jAthena. [ultramage]
  903. 2007/01/03
  904. * Added Rachel and Veins to the list of @go destinations.
  905. * Added a first approximation of warps for the new maps (by $ephiroth).
  906. * Now the server will by default perform symmetric adding of friends. [ultramage]
  907. > TODO - symmetric deletion (http://www.eathena.ws/board/index.php?showtopic=130749)
  908. * Fixed TURBO FIFO defines.
  909. * Moved refusal of a known packet versions to clif_parse_WantToConnection
  910. and made it check for non-player object with that id.
  911. * JK_JOINTBEAT as described in:
  912. http://www.ragnainfo.net/wiki/index.php/Vital_Strike
  913. Although not clear, it's being assumed that the 2x damage is only for the
  914. break neck ailment. [FlavioJS]
  915. * Modified the useless error message in atcommand_effect.
  916. * Silenced the debug message in socket.c that's been freaking people out.
  917. * Added support for text/comments at the end of monster spawn lines (<tab> required)
  918. * Added the official behavior of monsters regaining full hp when they morph.
  919. > info at http://www.eathena.ws/board/index.php?showtopic=130103
  920. * Fixed pc_calc_skilltree ignoring prerequisites / joblvl requirements for soullinked skills.
  921. > TODOs at http://www.eathena.ws/board/index.php?showtopic=130788
  922. * Re-applied change r9593 that got accidentally reverted by r9595. [ultramage]
  923. 2007/01/02
  924. * Fixed SC_JOINTBEAT not doing crit damage for the Neck Break ailment.
  925. * Gospel sends the buff message to the affected player. [FlavioJS]
  926. 2006/12/31
  927. * Made HSCR bypass both Guard and Shield Reflect using the dirty way [DracoRPG]
  928. > cleaner way would need to rethink the whole skill's implementation
  929. * Added more info when npc_scriptcont tries to continue a different script.
  930. * Refer to http://www.eathena.ws/board/index.php?showtopic=130285
  931. - Renamed pc_checkweighticon to pc_updateweightstatus and cleaned it.
  932. - Updated pc_is50overweight to use battle_config.natural_heal_weight_rate.
  933. - Added 90% weight check when attacking.
  934. * Updated getitem and guardian entries in script_commands.txt.
  935. * Fixed getitem trying to get <character ID> from the wrong argument.
  936. * Now getitem can be run on scripts without a player attached if
  937. <character ID> is specified.
  938. * Now the two last arguments of guardian are optional and independant of
  939. each other ("<event label>" and <guardian index>). This way the previous
  940. implementation and script_commands definition are still valid code.
  941. * Now buildin function names and argument definitions are checked for
  942. validity before adding the function to the script engine.
  943. Argument definitions follow the pattern: (v|s|i|l)*\?*\*? [FlavioJS]
  944. 2006/12/30
  945. * Reverted the packet structure changes to mmo_char_send006b in r9588 (was
  946. using the wrong exe for the final tests) except for the bug that I was
  947. originally fixing. [FlavioJS]
  948. 2006/12/29
  949. * Skill use is now cancelled when you use it while cloaking, and the
  950. uncloaking process warps you. [Skotlex]
  951. 2006/12/28
  952. * Reapplied Skotlex's socket.c changes from r9587 and r9582. :S
  953. * Part 3 of TheUltraMage's socket cleanup.
  954. * Fixed the packet structure in mmo_char_send006b for PACKETVER 8.
  955. * Removed search_str from add_str (add_str already searches for the
  956. string).
  957. * Native script words like do,while,for,... are case insensitive now.
  958. * Changed SCRIPT_HASH_SIZE to 1021 (prime hash sizes give better
  959. distributions).
  960. * Added alternative hash implementations to the script engine (to try out
  961. later). [FlavioJS]
  962. * Added a func_parse invocation when an invalid socket is found, so that
  963. the underlying code (char/map/login) can handle it and free any related
  964. resources.
  965. * Added some skill effect packets so it displays a generic effect for
  966. unknown targetted skills.
  967. * Some cleaning in do_sendrecv, added error messages when handling an
  968. incorrect socket. [Skotlex]
  969. 2006/12/27
  970. * Fixed Super Novice 99%+ invincibility triggering when
  971. the character dies in a GvG area. [blackhole89]
  972. * Updated SQL Files [Toms]
  973. * Fixed a bug which makes the group heal bonus be applied as many times as
  974. the item is in that group.
  975. * Applied Rayce's suggestion to improve the script hash size usage. eA now
  976. uses a hash of 1024.
  977. * Full Buster's auto-blind chance is now reducable by stats/items.
  978. 2006/12/2
  979. * Updated Charge Attack's damage equation as per the only source I've seen
  980. of it so far.
  981. * Now Guardians/Emperium can't hit /be hit if their current map isn't a
  982. gvg_castle or woe is off. This enables "localized" WoE by removing/setting
  983. the mapflag gvg_castle on the castles where you want WoE to take effect
  984. (note that even though normal players can't be hit on non gvg_castle maps,
  985. normal mobs can still be killed in such maps, you'd still need to modify
  986. the WoE scripts to use this kind of feature)
  987. * TK_MISSION will now pick any mob from the DB as long as it is not a boss
  988. type and it gives base exp.
  989. * Fixed the double-stone issue when hitting a petrified character.
  990. [Skotlex]
  991. 2006/12/25
  992. * Fixed buildin_getscrate, thanks Trancid.
  993. * Applied part 1 of TheUltraMage's socket cleanup.
  994. "Basically what I did was perform simple one-liner substitutions for
  995. ugly repetitive blocks of code. The most apparent are the send/recv
  996. code and the other basic socket calls."
  997. * flush_fifo is non-blocking now. I guess best effort is good enough...
  998. * Copied header files from vcproj-7.1 files to vcproj-8 files.
  999. * Applied the rest of Rayce's suggestions and fixes
  1000. (http://www.eathena.ws/board/index.php?showtopic=129185)
  1001. * warn_cmd_no_comma, warn_func_no_comma, warn_cmd_mismatch_paramnum are
  1002. now warn_func_mismatch_paramnum and it only prevents showing the error,
  1003. as it was probably intended in the first place. (correct me if i'm wrong)
  1004. * Merged the parsing of function calls in the script engine, removing the
  1005. parse_cmd hackery, and made "heal (.@val+rand(0xff))&0xff,0;" valid
  1006. again. [FlavioJS]
  1007. 2006/12/24
  1008. * Small fix for changeset 9539 (support for PACKETVER above 7) [KarLaeda]
  1009. 2006/12/23
  1010. * Fallback for parenthesis argument lists in the script engine.
  1011. "func (exp) , ..." is valid again.
  1012. * Moved "#include <limits.h>" to cbasetypes.h to ensure it's included
  1013. before checking if UINT_MAX has been defined.
  1014. * Minor changes in pc_readdb related to max_level being unsigned.
  1015. [FlavioJS]
  1016. 2006/12/22
  1017. * Simplified function agitcheck so it isn't crash prone. Now it takes no
  1018. arguments, and will return whether WoE is on or not.
  1019. * Now when you specify a max level beyond what the exp table has, the last
  1020. entry of the exp table will be duplicated to fill in the remaining levels.
  1021. [Skotlex]
  1022. * Change strncpy to memcpy when parsing switches in the script engine
  1023. since it's guaranteed to be a word of that size (skip_word).
  1024. * Made scriptlabel_db duplicate the key. When str_buf is reallocated, the
  1025. keys in scriptlabel_db could become invalid, causing a crash in
  1026. npc_convertlabel_db.
  1027. * Now npc_convertlabel_db clears scriptlabel_db after using it.
  1028. * parse_script has an extra parameter options. At the moment it only
  1029. indicates if scriptlabel_db should be used or not.
  1030. * Fixed "UINT_MAX undeclared" on systems that don't declare it in limits.h
  1031. [FlavioJS]
  1032. 2006/12/21
  1033. * Applied Rayce's suggestions and fixes to the script engine
  1034. (http://www.eathena.ws/board/index.php?showtopic=129185)
  1035. * Some cleaning to the character deletion code.
  1036. * Changed a certain snprintf to strncpy, which should fix the problems with
  1037. parsing switches in the script engine.
  1038. * Added back cropping the attack delay to attack motion for those weird mobs
  1039. that have a aDelay less than their aMotion time. [Skotlex]
  1040. * Added a 1-node cache to db. Removed party_cache and guild_cache since
  1041. now the database has a cache.
  1042. * Fixed "warning: comparison is always false due to limited range of data type"
  1043. by restricting script words to ASCII characters only.
  1044. * Moved md5calc to common. [FlavioJS]
  1045. 2006/12/20
  1046. * Fixed ISSPACE and ISALPHA casting their returned value to a char, which
  1047. can really mess up the scripting engine when the returned value is true,
  1048. yet casted to false.
  1049. * Moved the strip unequip code to before deleting the timer, this fixes
  1050. trying to "re-strip" someone causing the skill to fail and on top of that
  1051. terminate their current strip effect.
  1052. * Reading of TK Mission variables will now happen if you are a TK-class
  1053. character regardless of whether you know TK_MISSION or not. Should fix
  1054. being able to reset skills to reset your Mission data.
  1055. * Added an ugly work around to the issue of skills with additional effect
  1056. causing opt1 status when they have just terminated them (in short, you
  1057. shouldn't be able to hit someone with, say, sleep, and then have the same
  1058. skill cause them stun, since both are opt1 values). [Skotlex]
  1059. * Now root script functions calls can have parenthesis (will take any
  1060. parenthesis after the function as the start of the argument list).
  1061. - This means "func (exp),exp;" isn't valid anymore.
  1062. * Replaced our fix for "mes ();" crashing by jA's version.
  1063. * Merged the fix for & having the same precedence as << and >> from jA.
  1064. * Merged the C_OP3 operator from jA: test ? if_true : if_false
  1065. * Changed the script source from unsigned char* to const char*.
  1066. * Updated plugins Makefile. [FlavioJS]
  1067. 2006/12/19
  1068. * Reverted the mob ThinkTime update, that field is again aDelay as it
  1069. apparently should be. [Skotlex]
  1070. * Cleanups or minor changes.
  1071. * Now addtick_timer invokes settick_timer, so keep an eye for whatever
  1072. timer issues it's supposed to have.
  1073. * Removed the flush_fifo from clif_parse_TickSend until the socket
  1074. problems are fixed. [FlavioJS]
  1075. 2006/12/18
  1076. * Updated POS2 macros. The 6th byte is subx0 and suby0. [FlavioJS]
  1077. * Added hom_setting to specify which homunculus 'quirks' are in effect. The
  1078. default activates all of them, if you set them to 0 then homuncs will not
  1079. be treated in any special matter, pretty much like standard mobs. if I
  1080. missed any 'quirky' homunc behaviour from it, report it so it can be added
  1081. to the list.
  1082. * Made flooritem_lifetime a int so you can specify much longer life times
  1083. (the default of 60k was already very close to the max of 65k)
  1084. * Removed monster_ai 0x80 since it's now handled by hom_setting.
  1085. * When walking into a Guild Dungeon your pvp_points will be set to 5 so you
  1086. have to die twice before being warped out.
  1087. * If jobchanging while disguised, the disguise will be removed, since it
  1088. can't be kept and still calculate correctly the new job class to use.
  1089. * Fuuma shurikens are now unbreakable code-wise (like all maces, books,
  1090. etc)
  1091. * Applied Meruru's patch to increase speed of easy path seeks. [Skotlex]
  1092. * Cosmetic changes to db.
  1093. * Fixed the unused MAPINDEX_AUTOADD section in mapindex.c (mapindex.h
  1094. wasn't being included) [FlavioJS]
  1095. 2006/12/16
  1096. * Moved packet_len_table values to packet_db[SERVER].
  1097. * When an invalid packet_ver is found, all it's entries are discarted
  1098. intead of just stopping the parsing.
  1099. * Increased MAX_PACKET_DB to 0x300 and added a warning for when packet ids
  1100. greater than MAX_PACKET_DB are found. [FlavioJS]
  1101. 2006/12/15
  1102. * There will be now warnings printed when a shop sells an item which's buy
  1103. price is 20z, since those usually are "rare" items with no buyying price
  1104. set. Note that this reports one fake, and that is the selling of a certain
  1105. shuriken that indeed costs 20z.
  1106. * Most likely fixed client crash when xmas/wedding status runs out.
  1107. 2006/12/14
  1108. * Removed "mobs being enemies of each other all the time" because, even
  1109. though mobs can hit each other as they should, they will refuse to use
  1110. support skills on enemies, which breaks several of their skills. Mobs can't
  1111. both help and attack someone tagged as enemy!
  1112. (I guess eA is just too smart to emulate Aegis's sloppy coding)
  1113. * Cleaned up the strip code (GS_DISARM, rogue skills).
  1114. * Cleaned some the MD_DETECTOR code.
  1115. 2006/12/13
  1116. * Additional damage bonuses (True Sight, EDP, Assassin Link, Crusader Link,
  1117. Card skill damage bonuses) are now applied independently of each other,
  1118. which lets them stack. [Skotlex]
  1119. * Modified flush_fifo so the code do what is written in the comment [Toms]
  1120. * Modified flush_fifo so you can decide whether to block the current thread
  1121. or not until the data is sent. The server-tick reply no longer blocks the
  1122. current thread.
  1123. * Fixed mobs being unable to attack anything...
  1124. 2006/12/12
  1125. * Reverted the knockback update since it isn't working right with all
  1126. skills.
  1127. * Mobs now by default are "everyone's" enemy, so mobs are able to hit each another.
  1128. * Moved "unsetting" the angry mode from the mob_ai to the mob_damage
  1129. function, where it'll work regardless of who hits the mob.
  1130. * Modifed a bit the clif_change_look function, it should fix crashes with
  1131. the Xmas sprite when changing maps.
  1132. * Fixed skills displaying a 32k damage when used while disguised. [Skotlex]
  1133. * Minor changes to ers.
  1134. * Removed unused/hardly used cbasetypes typedefs.
  1135. * Updated txt-converter's makefile to include utils.o [FlavioJS]
  1136. * Updated npc_event_dequeue to free up your current npc information, and
  1137. not just the npc_id.
  1138. * Modified the skill damage packet and the knockback packets to mimic aegis
  1139. sent packets for such skills.
  1140. * Removed CART_MASK as OPTION_CART can take care of that.
  1141. * Moved the OPTION_MASK define to status.h
  1142. * Reverted the knockback implementation to use clif_slide instead of
  1143. clif_fixpos [Skotlex]
  1144. 2006/12/11
  1145. * Added various missing checks when parsing several guild actions.
  1146. * made @hominfo display the six basic stats.
  1147. * Simplified the MD_DETECTOR checks, since now all insects/demons have it
  1148. set, and it's no longer needed to check for the race. [Skotlex]
  1149. * Updated sql files [Playtester]
  1150. * Spirit of Sin and Enchant Deadly Poison now stack.
  1151. * Fixed skill damage card bonuses not working on magic skills.
  1152. * Moved the setting of sd->npc_id = 0 in npc_dequeue to the beginning,
  1153. since this function is called when a script is cancelled
  1154. * Made homunc's speed be recalculated when you respawn it from rest state.
  1155. [Skotlex]
  1156. * Fixed @revive not reviving the good char [Toms]
  1157. 2006/12/10
  1158. * Added more helpfull messages when packet_ver=-1.
  1159. * Joined normal and MINICORE's main function.
  1160. * Put malloc_init() first and malloc_final() last as it's needed for Show*
  1161. in display_title(). [FlavioJS]
  1162. 2006/12/09
  1163. * Reversed revision #9415 (messages with server_tick field being sent as
  1164. soon as possible) since it didn't fix the client synchronization issue.
  1165. * clif_parse_TickSend is sent immediately so the client gets accurate
  1166. "pings". [FlavioJS]
  1167. 2006/12/08
  1168. * Now you can request a trade regardless of the state of the target trader.
  1169. [Skotlex]
  1170. * The trade will now fail when you accept it and either character is
  1171. speaking with an npc, vending or has the storage open. [Skotlex]
  1172. * Fixed crash when looters became full. [Skotlex]
  1173. * Autospell delay time is now the skill's full delay. [Skotlex]
  1174. 2006/12/07
  1175. * Fixed ladmin's linux compilation and moved some platform specific
  1176. defines to cbasetypes.h [FlavioJS]
  1177. * Cleaned up implementation of NPC_EMOTION/NPC_EMOTION_ON. Now val0 is the
  1178. emotion, val1 sets the mode, val2 adds to the mode, val3 removes from the
  1179. mode. val4 asks to remove the previous mode change, otherwise it will stack
  1180. with the changes from the previous skill call. [Skotlex]
  1181. * Updated the mob skill reading code so it accepts hexadecimals in the
  1182. 'val' fields. Also, it will optimize the NPC values so that when you set a
  1183. mob's mode to their db mode, it will just remove the previous mode.
  1184. [Skotlex]
  1185. * NPC_EMOTION_ON will now automatically move it's new mode to val2 since it
  1186. should add a mode, and if this mode doesn't has the aggressive bit, it will
  1187. remove it. See this "ancient" hypothesis on how NPC_EMOTION_ON should work
  1188. for the details: [Skotlex]
  1189. http://www.eathena.ws/board/index.php?showtopic=63606
  1190. * Fixed npc commands atcommand & charcommand not working with a custom
  1191. command_symbol [Toms]
  1192. 2006/12/06
  1193. * Changed the order of view-change packets for SC xmas/wedding, should fix
  1194. crashing if you change into xmas suit while in fighting stance. [Skotlex]
  1195. * Renamed the mob mode Cast-Sensor Melee to Cast-Sensor idle since these
  1196. mobs really should only be cast-sensing when they are not after another
  1197. target. [Skotlex]
  1198. * Added a Aegis Mob Type -> eA Mode table conversion to the mob modes doc.
  1199. [Skotlex]
  1200. * Updated sql-files [Playtester]
  1201. * Gave a minimum think time to the dummy mob and to clones. [Skotlex]
  1202. * Moved setting a mob's chase/attack states from the mob_ai to unit_attack
  1203. and unit_walktobl for better state-handling precision. [Skotlex]
  1204. * Cleaned the change-target/cast-sensor code to account for the new mob
  1205. modes. [Skotlex]
  1206. * Updated the doc explaining mob modes. [Skotlex]
  1207. * When GM skill unconditional is set, the arrow state of the skill will be
  1208. calculated, this fixes all skills getting stuck on arrow-type after you
  1209. attack normally. [Skotlex]
  1210. * Alchemist famous potions get their 50% bonus on top of the natural
  1211. bonuses as a 1.5x type of bonus. In other words, now alchemist potions
  1212. will really heal 50% more than when you use the non-famous potion
  1213. version.
  1214. [Skotlex]
  1215. * Messages with server_tick field are sent as soon as possible now.
  1216. This might fix client synchronization issues.
  1217. * Added StringBuf_Vprintf to utils.c and changed the showmsg.c buffer.
  1218. Now it uses a static buffer and a StringBuf when needed (a debug message
  1219. indicating the static buffer needs to be increased is shown). [FlavioJS]
  1220. 2006/12/05
  1221. * The can log value now is "reset" when you die allowing you to
  1222. respawn/quit instantly after death. [Skotlex]
  1223. * Fixed sc data load failing when using charsave_method: 1 [Skotlex]
  1224. * Fixed the interserver link reserve size being 8 times instead of 1/8th
  1225. the default size. Changed it to be 1/4th as well. [Skotlex]
  1226. * Found the position of emblem_id in packet 1b6.
  1227. * Moved START_ACCOUNT_NUM and END_ACCOUNT_NUM from login.h to mmo.h and
  1228. changed clif_guess_PacketVer to use that.
  1229. * Made the script engine big-endian compatible.
  1230. * Commented out the remnants of ladmin packet parsing in map-server.
  1231. * Added a warning when a player has an invalid packet version (shouldn't
  1232. happen). [FlavioJS]
  1233. 2006/12/04
  1234. * Fixed HVAN_INSTRUCT int bonuses. [Skotlex]
  1235. * Renamed mob_db's "adelay" column to ThinkTime and made the mob.c code use
  1236. it instead of MIN_MOBTHINKTIME. The adelay of mobs will also be equal to
  1237. their thinktime unless their thinktime is less than their attack motion.
  1238. [Skotlex]
  1239. * Added a static +100 Hp to ninjas and gunslingers since it's required for
  1240. the best approximated hp growth algorythm. [Skotlex]
  1241. * Knockback will again use the fixpos packet instead of the slide packet
  1242. (slide was introduced with high jump) since Aegis captures say that packet
  1243. is still used for knockbacks. [Skotlex]
  1244. * Repairing items via scripts no longer displays "item has been repaired"
  1245. [Skotlex]
  1246. * Status Recovery again makes mobs unlock their current target. [Skotlex]
  1247. * Moved requesting party/guilds from the char-server from pc_authok to
  1248. pc_reg_received, since map_nick2sd and map_getallsd won't work until the
  1249. characters are authentified. Also removed the guild master setting from
  1250. clif_parse_LoadEndAck to pc_reg_received since guild master setting will
  1251. work there. [Skotlex]
  1252. * Fixed homun hunger timer being started on login even when hom is
  1253. vaporized/dead. [Skotlex]
  1254. * Fixed mvp exp attacker bonus applying incorrectly. [Skotlex]
  1255. * Removed duplicate msg_athena.conf entries 619 and 620 for
  1256. Ninja/Gunslinger.[Skotlex]
  1257. * Fixed the txt->sql converter not escaping character names before saving
  1258. them. [Skotlex]
  1259. * Fixed a pet's level not resetting to their db level when you enable pet
  1260. leveling and later on decide to turn it off. [Skotlex]
  1261. * Fixed restricted equipment not updating your view info after they are
  1262. unequipped. [Skotlex]
  1263. * Removed a bunch of extra text/checks when ignoring characters (/ex) when
  1264. Aegis does none of these checks. /inall now wipes your ignore list (it does
  1265. this on Aegis, too). [Skotlex]
  1266. 2006/12/03
  1267. * If somehow a player logs out and it's saved with 0 hp, on login his state
  1268. will be set to dead as well so he can respawn (otherwise that leads to a
  1269. stuck char) [Skotlex]
  1270. * Fixed even share exp flutuating as described in:
  1271. http://www.eathena.ws/board/index.php?showtopic=126139
  1272. thanks to TheUltraMague for the fix.
  1273. * Made ers double frees report as missing entries on destruction.
  1274. * Only one swap function (in cbasetypes.h) is used. [FlavioJS]
  1275. 2006/12/02
  1276. * Added buildin_checkvending and buildin_checkchatting. [Lance]
  1277. * Enabled atcommand parsing for clients with Korean langtype and version. [Lance]
  1278. * Added missing min/max definitions to cbasetypes.h, needed for the @send change.
  1279. * Replaced @send with the version I use for testing packets.
  1280. Can display the packet length. Supports dynamic packets, quoted strings
  1281. with escaped characters and fixed/variable length, and normal/hex
  1282. byte/word/long data types. The number of fields is not limited, but it
  1283. automatically stops parsing when the packet is full. [FlavioJS]
  1284. 2006/12/01
  1285. * Fixed passive mobs becoming increasingly unlikely to retaliate to attacks
  1286. after they got inflicted by a disabling status change. [Skotlex]
  1287. * Changed the "is_boss" define to check for mode MD_BOSS instead of giving
  1288. mvp exp. [Skotlex]
  1289. * Updated sql files [Playtester]
  1290. * Fixed txt-converter compilation. [Skotlex]
  1291. * STRECOVERYno longer makes a mob unlock it's target like Cure does.
  1292. [Skotlex]
  1293. * Fixed GS_GROUNDDRIFT consuming ammo when it's time expires (so it was
  1294. consuming 2 grenades instead of one). Also added a "explosion effect" when
  1295. their time runs out. [Skotlex]
  1296. * gvg_dungeon mapflag won't set pvp related mapflags anymore, pc_dead will
  1297. force pvp ranking gain/loss on gvg_dungeon maps now. [Skotlex]
  1298. * Now when coming out of hiding land-effects will trigger on the character.
  1299. [Skotlex]
  1300. * Fixed land effects not taking effect inmediately on map-load when the
  1301. invincible timer is disabled. [Skotlex]
  1302. 2006/11/29
  1303. * Probably fixed the Segmentation Faults we've been having.
  1304. Description: A player quits and it's session is freed and set to NULL,
  1305. but the char server already sent a packet with player information
  1306. (registers, storage, ...). If a message is sent in consequence of
  1307. updating that info, a segmentation fault happens because
  1308. session[sd->fd] is already NULL.
  1309. Fix: make shure the session of the target player is valid before
  1310. processing the rest of the char server's message.
  1311. * Some minor cleanups. [FlavioJS]
  1312. * Fixed the new npc parsing code not accounting for windows-style line
  1313. terminators, which as a side effect messed up mapflag parsing if the file
  1314. had windows-style terminators, which coincidentally was the case for the
  1315. nopvp file, which unfortunately meant that all towns became pvp! [Skotlex]
  1316. * HT_PHANTASMIC no longer knocks back even when it misses. [Skotlex]
  1317. * Earned exp by dead homuns will now be lost (same treatment as earned exp
  1318. from players that died) [Skotlex]
  1319. * Now gvg_dungeon mapflag will activate the other mapflags which are
  1320. required: pvp, pvp_nocalcrank and pvp_noparty/pvp_noguild (they are forced
  1321. to off if gvg_dungeon is on and viceversa) [Skotlex]
  1322. * Cleaned the pvp ranking code so that it takes effect even if
  1323. pvp_nocalcrank is active WHEN the map is a gvg_dungeon one. [Skotlex]
  1324. * Now homuncs and their masters are the only ones who can use support
  1325. skills on them. [Skotlex]
  1326. * Some cleaning on the homunc speed calculating code, so that it correctly
  1327. uses the default walk speed if the player has no speed yet. [Skotlex]
  1328. 2006/11/28
  1329. * Fixed a typo which made the wedding_ignore_palette setting not work when
  1330. you log on with them equipped [Skotlex]
  1331. * Applied The Ultra Mage's patch to use strict npc header formatting
  1332. parsing. Updated the relevant stock scripts/mapflags that didn't conform to
  1333. the standard. [Skotlex]
  1334. * Moved the blocking of casting supportive skills on homunculus from
  1335. battle_check_target to status_check_skilluse as bct is not invoked unless
  1336. the skill is offensive (or party/guild only) [Skotlex]
  1337. * Cleaned up status_calc_bl_sub_hom, fixed recasting dex/str/vit/int
  1338. bonuses skills making their atk/def/mdef stack with itself over and over.
  1339. [Skotlex]
  1340. * Updated sql files [Playtester]
  1341. * Changing setting the Guild Master from pc_authok to clif_parse_LoadEndAck
  1342. so that it will not fail to set the gmaster flag when the first person of a
  1343. guild to log on is the guild master. [Skotlex]
  1344. * Modified the way Storm Gust freeze's counter works. Now it checks for the
  1345. caster of the Storm Gust, if it's the same as the previous hit, the counter
  1346. is increased, otherwise, the ID is updated and the counter is changed to 1.
  1347. [Skotlex]
  1348. * Fixed always receiving at least 1 bexp/jexp even when the mob gives no
  1349. exp at all. [Skotlex]
  1350. * Changed write to send as suggested by TheUltraMage in:
  1351. http://www.eathena.ws/board/index.php?showtopic=105417
  1352. Hopefully that will take care of the SIGPIPE problem in Debian and cygwin.
  1353. * Server name in core.c skipping '\\' characters.
  1354. * Memory allocation functions using file,line,func from the invoking functions.
  1355. * Other minor malloc changes. [FlavioJS]
  1356. 2006/11/27
  1357. * Now when a player's "attack once" request fails due to range, the client
  1358. is told to move to the target to attack it. This sort of fixes the problem
  1359. of the client SPAMMING the server with attack requests from afar without
  1360. even approaching the icewall. [Skotlex]
  1361. * Updated the status change field "option" to an int rather than short.
  1362. This fixes the option values for xmas/sightblaster not getting set, which
  1363. could explain why some people crash when equipping weapons while in xmas
  1364. suit. [Skotlex]
  1365. * Fixed the Homunculus hungry timer not starting on login. [Skotlex]
  1366. * Added logging for standard GM commands (/mm /b /kick etc) [KarLaeda]
  1367. * Some cleanups on the trade_additem function. When specifying a qty of 0,
  1368. an ack will be returned to the client so it doesn't gets stuck. [Skotlex]
  1369. * Update sql files [Toms]
  1370. * Corrected the skill animation for Absorb Spirits [Skotlex]
  1371. * Cleaned up a bit the implementation of how Gravity Field blocks the
  1372. caster from moving. [Skotlex]
  1373. * Mob class-changing will fail if the new class is the same as the previous
  1374. one. [Skotlex]
  1375. 2006/11/24
  1376. * Homunc's min matk is now always equal to max matk [Skotlex]
  1377. * Fixed EDP's damage being 100% more than it should (should be 4x, not 5x
  1378. on normal attacks) [Skotlex]
  1379. * Self Destruction will only hit everyone and not just enemies when used by
  1380. mobs (non marine spheres) unless the map is a versus map. [Skotlex]
  1381. * Spider Web's duration is now halved on players (before it was halved in
  1382. pvp maps only) [Skotlex]
  1383. * Likely fixed Homunculus not disappearing the second their intimacy hit 0.
  1384. [Skotlex]
  1385. * Fixed uninitialized variable fd being used in WFIFOHEAD in a few clif
  1386. functions. [Skotlex]
  1387. * Fixed the fact that the TURBO code breaks when you attempt to handle more
  1388. than one connection at a time within the same function. However this broke
  1389. map-server compilation, therefore, don't use TURBO yet! [Skotlex]
  1390. * While at it, cleaned a few packet implementations in the char/login
  1391. servers which were not only ugly, but had some really stupid flaws within.
  1392. [Skotlex]
  1393. 2006/11/23
  1394. * Completed Reddozen's hanging mapwarp code to support party and old syntax. [Lance]
  1395. * Updated sql files [Playtester]
  1396. * Made WFIFOHEAD() check for available buffer size remaining on the
  1397. connection, and when there's not enough space, it will increase it.
  1398. [Skotlex]
  1399. * Added define TURBO to the Makefile. It enables MouseJstr's socket access
  1400. optimization which should speed up the code when accessing the write/read
  1401. buffers repeatedly within a function. [Skotlex]
  1402. * Fixed the functions where the RFIFOHEAD/WFIFOHEAD functions were used
  1403. incorrectly (prevents TURBO enabled compilations from finishing) [Skotlex]
  1404. 2006/11/22
  1405. * Modified slaves_inherit_speed and slaves_inherit_mode so you get better
  1406. control of when to copy/remove modes/speed. See the conf changelog for
  1407. details. [Skotlex]
  1408. * Reenabled usage of mode MD_CHANGETARGET, so mobs with mode 0x200 will be
  1409. able to switch targets while attacking. [Skotlex]
  1410. * Some cleanups around usage of session[] in the map server, hoping that it
  1411. may fix some not very likely crashes. [Skotlex]
  1412. * Rewrote a few messy @ commands. [Skotlex]
  1413. * Fixed the homunc hungry timer being started when the homun data is
  1414. received from the char-server and the homunc is NOT 'active'. [Skotlex]
  1415. 2006/11/21
  1416. * Fixed the Auto-Berserk giving you back defense when it triggers during
  1417. berserk's HP penalty. [Skotlex]
  1418. * Some small changes in the pet ai to make it more responsive. [Skotlex]
  1419. * Rewrote the pet looting behaviour (taken from the mob's), pets are much
  1420. more smarter now when looting from multiple possible items. [Skotlex]
  1421. * Fixed pets/homunc trying to be deleted twice when they had 0 intimacy and
  1422. their master logs out. [Skotlex]
  1423. * Added support for specifying ammo type = 99 in the skill_require_db file,
  1424. it can be used to specify that any kind of ammo can be used with the skill,
  1425. but you NEED to have ammo equipped. [Skotlex]
  1426. * Corrected GS_DISARM, it is now a normal attack, which, when it connects,
  1427. has a chance to do strip weapon at a 3*lv% rate (modified by dex) [Skotlex]
  1428. * Fixed GS_PIERCINGSHOT, it should ignore defense [Skotlex]
  1429. * Corrected Gatling Fever costing SP when trying to turn it off. Also,
  1430. speed increases bonuses won't take effect while it's active. [Skotlex]
  1431. * Updated the main makefile with a new OPT line. It is commented by default
  1432. since it only works with GCC 4.X, when unset, it will hide away a huge
  1433. amount of warnings that have to do with stuff that is not gonna be
  1434. corrected in eA anyway. [Skotlex]
  1435. * Corrected TripleAction's damage. It should do 150%*3 instead of 100*3%
  1436. damage. [Skotlex]
  1437. * Updated GS_CRACKER's stun chance using Doddler's info as reference.
  1438. [Skotlex]
  1439. * GS_FLING won't reduce armor defense when used on players. [Skotlex]
  1440. * Moved ignoreAll to state.ignoreAll so it saves some space. [Skotlex]
  1441. * Cleaned up clif_parse_Wis to prevent crashes from forged packets
  1442. [Skotlex]
  1443. * Cleaned up the implementation of the ignore list so it's more efficient.
  1444. [Skotlex]
  1445. 2006/11/20
  1446. * Implemented NPC_DEFENDER. Reduces ranged Physical+Misc damage by 80%
  1447. [Skotlex]
  1448. * Improved the battle config reader so it accepts hexadecimal values.
  1449. Updated the monster_ai description to make use of this [Skotlex]
  1450. * Added monster_ai&0x200. When set, mob skill delays are shared. That is,
  1451. if the mob has several lines with the same skill, when the skill is used,
  1452. the delay will be set to all of them, not just the one entry used.
  1453. [Skotlex]
  1454. * Corrected NPC_BARRIER so it grants 100 def/mdef (and not just mdef)
  1455. [Skotlex]
  1456. * Weapon ATK bonuses will now only apply to watk and NOT watk2 on players
  1457. (on players watk2 is refine bonus) [Skotlex]
  1458. * Corrected NPC_KEEPING. it should give 90 def, not 100 [Skotlex]
  1459. * You now can't use other skills while a skill-induced "window" is up
  1460. (teleport, refining, etc). However, be warned that we aren't quite sure how
  1461. the server will clear this out if you decide to hit cancel on the window,
  1462. so skill-blockage is likely to happen (temporary solution: whenever you
  1463. change maps or warp the state is reset server-side). [Skotlex]
  1464. * Fixed itemskill variable being cleared before parsing the skill, this
  1465. causes auto-casted teleport to fail to skip the skill menu. It is now
  1466. cleared on castend_pos/id directly. [Skotlex]
  1467. * Skills with state 'move_enable' will now do a "walk path" check between
  1468. target cell/object and caster instead of a "shoot path" check, this would
  1469. fix skills like snap or charge from letting you "teleport" across pits.
  1470. [Skotlex]
  1471. * Raised the amount of skills that can stack on a single cell before the
  1472. "in-area/out-area" detection code breaks to 24 (from 8) [Skotlex]
  1473. * Fixed a crash in clif_SkillInfoBlock if the passed player already
  1474. disconnected. [Skotlex]
  1475. * Added limiting drop rate to 100% from item-bonuses that depend on the
  1476. mob's level so that "@autoloot 100" will catch them. [Skotlex]
  1477. 2006/11/19
  1478. * Removed security check since source level patch is applied.
  1479. * Reverted select(), created prompt().
  1480. * Hack protection from packet monkeys in clif_parse_NpcSelectMenu. [Lance]
  1481. * Added 'cancel' button parsing in buildin_select menu system. Now scripts will continue
  1482. to load if 'cancel' is pressed and 255 will be returned. [Lance]
  1483. 2006/11/17
  1484. * Corrected use of the party invitation reply packet, thanks to FlavioJS.
  1485. [Skotlex]
  1486. * Fixed potential hack by modifying packet of whispers. [Lance]
  1487. * Fixed potential crash in IRC processing message with '%' using *printf. [Lance]
  1488. * Fixed memory leaking caused by homun_data not freed when removed. [Lance]
  1489. * Fixed client not validating the chat-kick-request packet, which can cause
  1490. crashes. [Skotlex]
  1491. * Updated map_quit to handle removing of players who are not even
  1492. authenticated yet. [Skotlex]
  1493. * New connection requests are now also blocked when there's a player
  1494. already online but hasn't finished loading yet. [Skotlex]
  1495. * Because of these changes, the friendlist notification when people join
  1496. has been moved to LoadEndAck from pc_authok [Skotlex]
  1497. 2006/11/16
  1498. * Updated sql files [Toms]
  1499. * For the sake of avoiding confusion, all script events are named with prefix 'On'
  1500. from now on. [Lance]
  1501. * Edited atcommand and charcommand syntax. Now it doesn't need the useless
  1502. character name and ":". [Lance]
  1503. * Shadow Jump and Kirikage won't "move" you if you use them in GvG grounds.
  1504. Fixed Kirikage so it first warps you, and then you unhide. [Skotlex]
  1505. * Corrected Zeny Nage so the Zeny spent on the attack is always the exact
  1506. same value as the damage you are dealing. Also corrected it so it does half
  1507. damage when used on players. [Skotlex]
  1508. * Overlapping song/dances will now cause dissonance/ugly-dance level 1
  1509. instead of retaining the level of their song/dance. [Skotlex]
  1510. * Fixed wrong check in @petrename, thanks to The Ultra Mage.[Skotlex]
  1511. 2006/11/14
  1512. * Early Christmas present. 3 new "features" which were very easy to code,
  1513. and should help scripters tremendously. Eapp is quite a way from being
  1514. ready, so these can't hurt:
  1515. * Implemented Karma: It turns out that when someone has karma, the client
  1516. believes this character is "evil", and will give you a cursor sword on top
  1517. of them automatically. So now the code will let characters with karma to
  1518. fight each other. This enables duels and other types of restricted pvp
  1519. where only the characters with karma can hit each others, and the rest of
  1520. players with neutral karma cannot be affected. Note that Karma cannot be
  1521. negative, and it can have any value between 0 and 256 (any non-zero value
  1522. makes them appear evil on the client). For now, characters with karma can
  1523. hit each other regardless of karma value, but perhaps it may be better to
  1524. let them to hit each other ONLY if they have the same karma (the whole
  1525. duel implementation COULD be cleaned up using Karma instead!)
  1526. * Added mapflags partylock and guildlock, which lock the state of the
  1527. parties/guilds on said maps:
  1528. partylock: blocks user party requests to create/invite/leave/kick
  1529. guildlock: blocks user guild requests to create/invite/leave/expel/
  1530. make alliance/make opposition/delete alliance/delete opposition/
  1531. break guild
  1532. 2006/11/13
  1533. * Fixed a bug where the char-txt server was incorrectly saving memos,
  1534. causing character data to be lost on restart. [Skotlex]
  1535. * HP Conversion will fail when used at max SP. It should not display any
  1536. errors to the client. [Skotlex]
  1537. * Modified yet again the login procedure to enable character variables to
  1538. work on item scripts. It SHOULD work crashless now. Please report any
  1539. problems it may cause.
  1540. * Volcano/Deluge/Violent Gale are now interchangeable, in the sense that
  1541. as long as one of these is out, casting any of the three will not consume
  1542. gems, and will use the remaining time of the previous one. In turn, Land
  1543. Protector will now always consume gems on every cast. [Skotlex]
  1544. * Small cleanup in the Land protector code which may fix it not blocking
  1545. AoE skills. [Skotlex]
  1546. * Fixed the interpretation of "head_dir". Removed setting head_dir to match
  1547. character direction in the whole code. Now it is only reset to 0 (look
  1548. forward) when unit_setpos is invoked, or when a character begins walking.
  1549. Thanks to FlavioJS for figuring out how the client parses the head
  1550. direction. [Skotlex]
  1551. * Moved status_calc_pc back to pc_authok. [Lance]
  1552. 2006/11/11
  1553. * Fixed debug message in login_sql [KarLaeda]
  1554. 2006/11/10
  1555. * Deluge/Violent Gale/Volcano tiles will now fail to be placed on cells
  1556. that are already ocuppied by anything else. [Skotlex]
  1557. * status_is_immune will now return 0 or the amount of immunity of the
  1558. target. In which cases it returns 100 for WoH and the GTB bonus when they
  1559. have passed the gtb_sc_immunity setting. This enables targetted spells to
  1560. not "fail silently" unless GTB's magic reduction is 100. [Skotlex]
  1561. * Fixed Homunculus being spawned as soon as they arrive from the
  1562. char-server even if the Master has not spawned on the map yet. [Skotlex]
  1563. * AL_TELEPORT now fails when used on top of Land Protector. [Skotlex]
  1564. * Some minor cleanings in pc_setpos, it may (or not) help fix that
  1565. homunc-caused "map_addblock" error message. [Skotlex]
  1566. * Corrected fog of wall, so that the deleted/doubled-duration effects are
  1567. calculated on a cell-by-cell basis. [Skotlex]
  1568. * Updated Land Protector: It will now delete/block effects of ALL ground
  1569. skills EXCEPT: Song/Dances/Traps (encores are still blocked). Land skills
  1570. blocked/deleted by LP also can't be casted on top of an existing LP. The
  1571. code uses the inf2 value of the skill to determine if it is a
  1572. song/dance/trap. [Skotlex]
  1573. * Ganbantein, mimicking LP, will now also remove ensembles. [Skotlex]
  1574. * Fog of Wall will fail when casted on top of a Volcano/Violent Gale
  1575. [Skotlex]
  1576. * Applied FlavioJS's fix to the npc whisper system. [Skotlex]
  1577. 2006/11/09
  1578. * Fixed status-change loading not working. [Skotlex]
  1579. * Fixed permanent mob-spawn script-events not working. [Skotlex]
  1580. * AL_CURE won't confuse undead players. [Skotlex]
  1581. * Corrected the Fog of Wall check so that it lasts 2x when it is placed on
  1582. TOP of a suiton/deluge, not when the caster is on top of them. [Skotlex]
  1583. * Updated status_check_skilluse so that when the caster has a disabling
  1584. status change (stun/petrify/etc) it will block the skill in all cases
  1585. EXCEPT on cast-end when the skill is ground-targetted. [Skotlex]
  1586. * Fixed Health Conversion skill formula bug. [Lupus]
  1587. 2006/11/08
  1588. * Fixed Desperado's hit-rate, now it behaves as it should. [Skotlex]
  1589. * The GVG map-packet will now also be sent for guild dungeon maps.
  1590. [Skotlex]
  1591. * Added clif_gospel_info which displays info about the buffs you are
  1592. receiving. Thanks to Rayce for the packet information. [Skotlex]
  1593. * Fixed Spider Web not ending when hit by a fireelemental attack. [Skotlex]
  1594. * Cast-time reductions from status changes will not be executed until right
  1595. before casting, to prevent status changes from ending when attempting to
  1596. cast and the attempt fails (invalid cells, not enough sp, wrong target,
  1597. etc, etc) [Skotlex]
  1598. * Added check to prevent Wand of Hermod from seeking for a partner to
  1599. encore, since the partner is supposed to be the warp. [Skotlex]
  1600. * Corrected the mob spawn reading code so that the event-name can be up to
  1601. 50 characters long (which is the actual event length) and so that it can
  1602. read spaces within them, it will also strip the leading/trailing quotes if
  1603. you use them so that the event is actually found on mob-death (so you can
  1604. do stuff like "My NPC::OnDead" as a valid event). [Skotlex]
  1605. * Moved the homunc inherit speed from the master from status_calc_pc to
  1606. LoadEndAck, since the hom's speed matches that of the master each time the
  1607. master changes maps. [Skotlex]
  1608. 2006/11/07
  1609. * Applied FlavioJs's patch which enables colored console output for Windows
  1610. systems. It also includes a config setting called
  1611. "stdout_with_ansisequence" with which you can turn off the color codes (in
  1612. case you are logging all output) [Skotlex]
  1613. * Added error reporting when the max number of ground unit cells has been
  1614. reached (this may be the reason why sometimes it fails to recognize when
  1615. you step out of a song/dance/encore) [Skotlex]
  1616. * Added passing the Endure effect to other devoted people. Note that the
  1617. "hit count" is individual for each character, and only when it ends on the
  1618. Crusader himself will that force it to end on everyone else. It also will
  1619. not transfer on gvg grounds, but it does transfer in pvp. [Skotlex]
  1620. * Fixed Reflect-Shield triggering Auto-Guard instead on devoted chars.
  1621. [Skotlex]
  1622. * Added a check to prevent casting ground skills on a target and vice-versa
  1623. when said skill use packets are received. It really shouldn't be
  1624. exploitable, but doing that certainly makes the server print a lot of
  1625. "unknown skill used!" messages. [Skotlex]
  1626. * Fixed map_foreachiddb and map_foreachpc so they don't encapsulate the
  1627. variable arguments into a double va_arg list. Thanks to the Ultra Mage for
  1628. the tip. [Skotlex]
  1629. * Cleaned up the clif_hate/mob_info functions with the correct fields/usage
  1630. as explained by Rayce. [Skotlex]
  1631. * Implemented clif_feel_hate_reset packet to properly display the Angel of
  1632. the Sun/Moon/Stars, thanks again to Rayce for the relevant information.
  1633. [Skotlex]
  1634. * LP will again block all land-stuff from being placed down on top of it
  1635. for the exception of Song/Dance/Encores. [Skotlex]
  1636. 2006/11/06
  1637. * Reapplied 'fix equipment scripts which are based on character variables not
  1638. working.' [Lance]
  1639. * Multiple Gunslinger skill corrections, refer to
  1640. http://ro.doddlercon.com/guides/gunslinger.html for information source:
  1641. [Skotlex]
  1642. - Corrected Ground Drift. Splash range of 3x3, stackable and placeable
  1643. underneath others, cast time is 2 secs. It's considered ranged, and it's
  1644. bonus damage increase is defense ignoring, always neutral.
  1645. - Corrected Bull's Eye implementation, it should deal normal damage against
  1646. non brute/demi-human targets.
  1647. - GS_DUST is now considered a short-range attack.
  1648. - Implemented Desperado's hit rate based on distance to caster as it's
  1649. believed to behave.
  1650. - GS_TRACKING's range is no longer affected by Snake Eye.
  1651. - GS_FLING's defense reduction is now 5*lv%
  1652. * Suiton's Speed/Agi penalty will affect everyone when used in versus maps.
  1653. * Corrected Kaupe so it doesn't ends on the first part of Soul Destroyer.
  1654. [Skotlex]
  1655. * Applied some cleaning to the way Tatami Gaeshi knocks back. [Skotlex]
  1656. * Cleaned up the way mobskill_use checks for the correct event. It should
  1657. fix unlimited mob-skill-casting issues. [Skotlex]
  1658. * Removed the return code entry when logging GM reload-GM requests
  1659. (login-sql),it'll just be stored as zero. [Skotlex]
  1660. * Added a fix on socket.c to not pick INADDR_ANY when choosing our own IP.
  1661. [Skotlex]
  1662. * Applied the correction on maprespawnguildid so that it parses ALL players
  1663. and not just those on a map. [Skotlex]
  1664. * TK_JUMPKICK now dispels normal aspd/speed potions (not berserk pitched
  1665. ones) and Preserve will be unable to block this. [Skotlex]
  1666. * Soul Linkers are now inmune to SA_DISPEL [Skotlex]
  1667. * You can now place everything (except magic skills) on top of LPs.
  1668. [Skotlex]
  1669. * Corrected Ganbantein to not touch song/dance/ensembles. [Skotlex]
  1670. * Status_calc_pc will refuse to execute if the player is still tagged as a
  1671. "new connection" and the invocation is not meant to be the first one.
  1672. [Skotlex]
  1673. * Swapped the order of checks in status_isimmune so that Wand of Hermod
  1674. skill blocking takes precedence over GTB's [Skotlex]
  1675. * Client packets will all be ignored while a player is not on a map until
  1676. the LoadEndAck packet is received. [Skotlex]
  1677. * Reverted changes, moved status_calc_pc(sd,1) back to pc_authok
  1678. since it causes problems. [Lance]
  1679. * Temperory fixed stability issue caused by initial status_calc_pc
  1680. being placed AFTER another status_calc_pc. [Lance]
  1681. 2006/11/05
  1682. * Updated sql files [Toms]
  1683. * Updated perl files acording to rev 9135 [Toms]
  1684. 2006/11/04
  1685. * Readded duel code in map_quit. Why it has been removed!? [LuzZza]
  1686. * Converted itemdb tables to use smallint. Credits to ALZ. [Lance]
  1687. 2006/11/01
  1688. * Reverted LK_Berserk HP requirement, as everything, including kRO X.2 and
  1689. pRO X.3, points that way. [Vicious]
  1690. 2006/10/31
  1691. * Fixed song/dance/encore cells not being placed down when casted on top of
  1692. a land Protector. [Skotlex]
  1693. * Update homunc's speed when master's speed changes, should avoid homunc's
  1694. speed = 0 on login (homunc's stats are calculated before master's stats) [Toms]
  1695. * When Kaizel (or super novice rebirth skill) triggers, you get debuffed
  1696. now. [Skotlex]
  1697. * Modified the player_cloak_check_type and monster_cloak_check_type
  1698. settings. 1 makes it check for walls, 2 makes cloaking NOT end on normal
  1699. attacks, and 4 makes cloaking NOT end when using skills. The default
  1700. setting for players is still 1, but for mobs the default has been changed
  1701. to 4. [Skotlex]
  1702. * Non-players can now use all skills while hidden. [Skotlex]
  1703. * Added a check to prevent adding negative damage to the total accumulated
  1704. damage in mob_damage. It could fix some exploits, even though mob_damage
  1705. should never be invoked with negative damage anyway. [Skotlex]
  1706. * Implemented the property where the first attacker get's double exp-share
  1707. than the others. Due to the way exp calculation is done, this bonus will
  1708. not apply when you use exp_calc_type 1 (damage/max_hp) instead of the
  1709. default (damage/total-damage). For now this bonus is done after calculating
  1710. who is the MVP character instead of before. [Skotlex]
  1711. 2006/10/30
  1712. * Fixed a little bug in event enqueue code [Toms]
  1713. * Updated the code so mobs can use ChainAction as a targetted skill.
  1714. [Skotlex]
  1715. * Added GroundDrift effects for Wind (Stun) and Fire (knockback). The
  1716. knockback value is unknown, so 3 is used for now. [Skotlex]
  1717. * Cleaned up some more the steal code, now you can't steal the last slot
  1718. regardless of skill level used. [Skotlex]
  1719. * Added consideration of Chain Action when cloning GunSlingers. [Skotlex]
  1720. * Modified battle_calc_return_damage to take the skill id as well, now
  1721. magic damage return will not work on skills tagged as ground or self
  1722. targetted. [Skotlex]
  1723. * Fixed Gank not working at all with the default max steal tries setting.
  1724. [Skotlex]
  1725. * Soul Drain won't work with skills tagged as self-targetted. [Skotlex]
  1726. * Improved the Suiton code so that the walk/agi penalty only applies to
  1727. enemies of whoever casted the skill. [Skotlex]
  1728. * Moved the initial status_calc_pc call to when you finish loading the map,
  1729. should fix equipment scripts which are based on character variables not
  1730. working. [Skotlex]
  1731. * Fixed getcharid according to samples and docs. [Lupus]
  1732. Thanks to joshuaali for pointing it out. eAPP has no such bug
  1733. 2006/10/27
  1734. * Fixed mob-skill event "skillused" not triggering at all. [Skotlex]
  1735. * Summoned mobs will only be removed from a map if their master is also
  1736. removed (dynamic mobs) [Skotlex]
  1737. 2006/10/26
  1738. * Updated sql files [Playtester]
  1739. * Experimental tweak to npc_parse_function - Overwrite existing functions. [Lance]
  1740. 2006/10/25
  1741. * Cleaned up some more the event dequeue code, it will no longer clear out
  1742. the npc_id if there's no events waiting to be executed (why does it clears
  1743. the npc_id anyway?) [Skotlex]
  1744. * Because of possible conflicts with this change and the on-login script,
  1745. now the on-login script is executed when the player has finished loading
  1746. into their start-up map rather than as soon as receiving the registry
  1747. variables from the char-server. [Skotlex]
  1748. * Some cleaning of the pc_eventtimer and pc enqueue code, it should fix
  1749. some memory leaks when the event counter does not matches with the actual
  1750. number of queued timers during logout. [Skotlex]
  1751. * Fixed "skill_sp_override_grffile: yes" causing crashes when parsing
  1752. Homuncuus/Guild skills. [Skotlex]
  1753. * Made the exp bonus settings be adjustable: [Skotlex]
  1754. - exp_bonus_attacker: Indicates how much additional exp a mob gives per
  1755. additional attacker (eg: 10 -> +10%*attacker)
  1756. - exp_bonus_max_attacker: Indicates at which number of attackers the bonus
  1757. is capped (eg: 5 -> 5 attackers, so a mob yield the same exp whether 5 or
  1758. 10 people attack it)
  1759. - Changed the way the party_even_share_bonus setting works. It now uses a
  1760. simple linear bonus increase (eg: 10 -> +10%*party member)
  1761. - The defaults are as explained by Tharis: +25%/attacker, capped at 12
  1762. attackers, no party bonus. The first two can be found in exp.conf, the last
  1763. one was left in party.conf
  1764. * MG_STONECURSE and NPC_PETRIFYATTACK now use time1 to specify the
  1765. "petrifying time". This value has been set to 5 seconds. [Skotlex]
  1766. * Now when SC_STONE is triggered from status-change cards, it's petrifying
  1767. duration will be passed as 0, causing the minimum (1 sec) to be used.
  1768. [Skotlex]
  1769. * Got rid of clones in src: old Novice Grounds map -> new_zone0? [Lupus]
  1770. 2006/10/24
  1771. * Removed again your mdef reducing "petrifying" time as apparently it can't
  1772. be reduced by mdef. [Skotlex]
  1773. * Cleaned up the "show_steal_in_party" setting so it only takes effect when
  1774. the item was successfully stolen (there was no point in telling you the
  1775. item couldn't be stolen due to being overweight) [Skotlex]
  1776. * Cleaned up the pc_steal_item implementation (again). It now uses a more
  1777. random, simple approach in each steal attempt. [Skotlex]
  1778. * Changed the way the skill_steal_max_tries work. Now it actually MEANS the
  1779. max number of steal tries, use 0 to disable (unlimited tries). [Skotlex]
  1780. 2006/10/23
  1781. * Added a bunch of important indexes when dealing with the log tables.
  1782. Added upgrade_svn9050.sql which adds these indexes as well. [Skotlex]
  1783. * Expanded the family check to work as it should, exp-share-range is
  1784. respected, and the child is not considered for it (thanks to TheUltraMage
  1785. for the investigation) [Skotlex]
  1786. * Double Casting will no longer fail when used. [Skotlex]
  1787. * Modified SC_STONE so that the duration of the "petrifying" time is 5 secs
  1788. reduced by your natural resistance to petrify (which is mdef%) [Skotlex]
  1789. * Modified the meaning of the third column in the skill_require_db. Instead
  1790. of MaxHP, this is now called MaxHPTrigger. This column (which was
  1791. previously unused by all skills) signals the limit HP% that you can have to
  1792. be able to use the skill. For example, setting it to 20 means the skill is
  1793. unusable if you have more than 20% life (note that this is merely a
  1794. threshold setting, it won't actually substract HP when used!) [Skotlex]
  1795. * Adjusted LK_BERSERK so you can only use it when you have 20% or less
  1796. life. [Skotlex]
  1797. * Removed NJ_TOBIDOUGU adding damage to W_HUUMA weapons which somehow got
  1798. readded. [Skotlex]
  1799. * When nonplayers use Cloaking, it will be forced to level 10 since mobs
  1800. shouldn't have movement/attack restrictions while walking cloaked.
  1801. [Skotlex]
  1802. 2006/10/20
  1803. * Made HAMI_CASTLE use clif_slide rather than clif_fixpos. This should
  1804. fix clientside problems when castling between two positions the (client)
  1805. path finding can't find a walkable bath between anymore. [blackhole89]
  1806. * Fixed the Homunc not spawning next to you after receiving it's data from
  1807. the char-server. [Skotlex]
  1808. * Fixed Charge Atk being able to go through chasm/pits. [Skotlex]
  1809. * Moved the homunculus DB information from the player structure to the
  1810. homun structure. Modified the homunculus creation packets to hold this
  1811. information during creation, also, all initial values are handled by the
  1812. map-server, the char server only assigns it a homun ID. [Skotlex]
  1813. WARNING: This is yet untested! It's very possible something could had
  1814. broken after changing the format/size of the homunc creation packets.
  1815. * Added config setting "summon_flora_setting", which it you can decide now
  1816. two things: a. Whether or not players can harm your floras outside versus
  1817. grounds, and b. Whether or not you can summon out and mix different types
  1818. of plants at the same time. [Skotlex]
  1819. * Likely fixed pc_steal_item always failing to steal (it was attempting to
  1820. steal random item IDs...) [Skotlex]
  1821. * Cleaned up a bit the mob on-death event so that when the killer is a
  1822. homunculus, it's master will be taken. Also, the variable killerrid will be
  1823. set before running the script to specify who delivered the final blow. If
  1824. the killerrid matches with the script attached player, you can be sure your
  1825. player did the final blow to the mob, otherwise, the attached player is who
  1826. did the most damage to the mob. [Skotlex]
  1827. 2006/10/19
  1828. * Cleaned up the log.c file. [Skotlex]
  1829. * Fixed log_chat not recording anything if the server is compiled in SQL
  1830. mode and sql_logs is turned off (it should then record to a plain txt file)
  1831. [Skotlex]
  1832. * Fixed SG_FRIEND, it should be triggering when Monks do Combo Finish (not
  1833. triple blows), and the trigger rate increase should be based on your known
  1834. level of SG_FRIEND, not TK_COUNTER. [Skotlex]
  1835. * Phantasmic arrow now knockbacks even if it misses. [Skotlex]
  1836. * Adjusted the way Monk combo times work. The combo time is now always
  1837. 300ms (adjusted by combo_delay_rate) which takes effect inmediately AFTER
  1838. your current skill's canact-delay (which is why the particular skill delays
  1839. were moved to skillcast_db) [Skotlex]
  1840. * Modified skill_delayfix so it performs the can-act reduction from agi/dex
  1841. for combos there. [Skotlex]
  1842. * Modified pc_steal_item so that it behaves more closely to the way it does
  1843. on Aegis. [Skotlex]
  1844. 2006/10/18
  1845. * Added a overflow check when calculating party exp share. [Skotlex]
  1846. 2006/10/16
  1847. * Adjusted UTSUSEMI/BUNSINJYUTSU so that they block range/melee weapon
  1848. attacks and only melee misc attacks. This isn't 100% correct, but it's a
  1849. better approximation to the way these skills behave. [Skotlex]
  1850. * Emergency call &16 (disable skill from nowarpto maps) will now NOT block
  1851. Emergency Call if that map is also a gvg-castle map. Makes it safe to turn
  1852. on this option to prevent usage from special maps (like Lhz3) without
  1853. crippling the skill during WoE. [Skotlex]
  1854. * Applied most of Mpeg's work on Ninja Skills. For information see:
  1855. http://gpegon.free.fr/ea/ninja_10-15-06_mpeg.txt [Skotlex]
  1856. * When reinvoking a combo-time, the previous combo time will be terminated.
  1857. This could fix the ongoing difficulties pulling off Monk combos. [Skotlex]
  1858. * Fixed Esma-state not ending after casting it. [Skotlex]
  1859. * Fixed @hominfo displaying intimacy on a 1/10k scale. [Skotlex]
  1860. 2006/10/14
  1861. * Homun info window to show crit value. As default, homun does NOT crit,
  1862. as monsters do not crit. This is purely for display purpose for players
  1863. to identify their homon's luk value. [Vicious]
  1864. 2006/10/13
  1865. * Base attack for non players is now calculated as str + [str/10]^2 (it
  1866. does not has +dex/5+luk/5 which players do have) [Skotlex]
  1867. * Fixed the char-sql server trying to read the gms off a "gm_db" config
  1868. setting stead of "login_db" [Skotlex]
  1869. * Corrected Throw Arrow/Musical Strike's damage formula [Skotlex]
  1870. * Altered Trick Dead. It doesn't prevents skills from being casted on you
  1871. now, but damage-based skills will do no damage. [Skotlex]
  1872. * Made the battle_config.attack_attr_none apply to pets when using the
  1873. "fixed damage" pet skill scripts. [Skotlex]
  1874. 2006/10/12
  1875. * made @killmonster make the mobs drop items again. [Skotlex]
  1876. * Added a temporary message when Angel of the Sun, Moon and Stars trigger
  1877. so you know it triggered. [Skotlex]
  1878. * When slaves_inherit_speed is set (which is also the default), homun will
  1879. have the same speed of their master when spawned. [Skotlex]
  1880. * When using Hatred and you already have a hate target, your current hate
  1881. target is displayed now. [Skotlex]
  1882. 2006/10/11
  1883. * Cleaned up the char-server code when the last point of a player is not
  1884. found. First it'll check if there's any mapserver online, and then, if
  1885. there is, it'll look for the major cities. If this fails, then the player
  1886. will be told server is closed instead of trying to send him to a "random
  1887. map". Will fix the char-server printing the misleading message "map
  1888. server not found, sending to major city" when in reality there just
  1889. aren't any map servers connected. [Skotlex]
  1890. * Corrected the mob damagelog structure so that you can't exploit it by
  1891. switching characters. [Skotlex]
  1892. 2006/10/09
  1893. * Fixed crash when char-server sends to a "random" map-server online on
  1894. connect. Thanks to TheUltraMage for pointing it out. [Skotlex]
  1895. * Should have fixed being petrified not reducing your defense and
  1896. increaseing your mdef. [Skotlex]
  1897. * Fixed SC_NOCHAT printing the "skills are now available" message twice on
  1898. natural expiration. [Skotlex]
  1899. 2006/10/08
  1900. * Updated sql files [Playtester]
  1901. 2006/10/06
  1902. * Updated Land Protector to block absolutely every land-based skills with
  1903. the exception of Encores/Dances. [Skotlex]
  1904. * Disabling status abnormalities will now reset a mob's target. [Skotlex]
  1905. * Mob morphing also resets their target now. [Skotlex]
  1906. * Monk combos no longer can ignore skill delay (delay skill for all their
  1907. combo-related skills is ASPD) [Skotlex]
  1908. * Now you can trade while in a chatroom. [Skotlex]
  1909. * Fixed homun-txt reading when the file has DOS line-type delimiters (\r\n)
  1910. [Skotlex]
  1911. 2006/10/05
  1912. * skill_blown will now trigger on-touch npcs on the landing tile. [Skotlex]
  1913. * Max trade distance has been reduced from 5 to 2. [Skotlex]
  1914. * Undisguising will now resend the cart-contents. [Skotlex]
  1915. * Added function npc_unload_duplicates(), it unloads all npcs that are a
  1916. duplicate of the passed one. For use with @unloadnpc to prevent crashes
  1917. when you unload the npc that has duplicates. [Skotlex]
  1918. 2006/10/04
  1919. * Bowling bash now always hits twice regardless of situation. [Skotlex]
  1920. * Added an underflow check to prevent sending to the client negative mdef2
  1921. value (for Frenzy'ed characters) [Skotlex]
  1922. * Modified pc_jobchange so that it automatically removes
  1923. peco/falcon/cart/homun if the new job you are changing to does not possess
  1924. the required skill for them. [Skotlex]
  1925. 2006/10/03
  1926. * Fixed a possible crash with @reloadmobdb due to pet loot timers.
  1927. [Skotlex]
  1928. * Fixed a possible crash and a memory leak on the login-SQL server when
  1929. parsing unban requests. [Skotlex]
  1930. * Renamed setting delay_dependon_dex to delay_dependon_agi, the delay of
  1931. skills is reduced now (when enabled) by AGI instead of DEX, which makes a
  1932. lot more sense than DEX. [Skotlex]
  1933. 2006/10/02
  1934. * Modified item-granded status resistance reduction to behave as explained
  1935. by Vicious (Ragnarok Monthly magazine) [Skotlex]
  1936. * Added the opt3 values to Eske [Skotlex]
  1937. * Fixed the txt->sql converter only saving the very first character
  1938. permanent variable. [Skotlex]
  1939. * Fixed the txt->sql converter saving account-wide variables as
  1940. character-wide ones. [Skotlex]
  1941. * Renamed nopenalty mapflag to noexppenalty. Using nopenalty will turn
  1942. on/off both noexppenalty and nozenypenalty now. [Skotlex]
  1943. 2006/10/01
  1944. * Removed the speed adjustment per level of Increase/Decrease Agility
  1945. [Skotlex]
  1946. * Fixed humunculi skill exploit, thanks to mr.rkit [Lupus]
  1947. 2006/09/30
  1948. * Rewrote the txt->sql converter. It now links directly to the char server
  1949. files so that it should get auto-updated with any code changes in the
  1950. later. [Skotlex]
  1951. * The converter will now also convert: account-wide variables, parties,
  1952. guilds, guild storage and guild castles. At this point the only two things
  1953. not converted are login-server-wide account variables (##, they belong to
  1954. the login converter) and homunculus (the SQL save function is messy and
  1955. doesn't lends itself to be integrated with the converter the way all the
  1956. other functions are). [Skotlex]
  1957. * misceffect2 will no longer cause the effect on top of the source object
  1958. when it is the fake npc. [Skotlex]
  1959. * Added check so that Frost Nova doesn't hides hitting animation on
  1960. targets. [Skotlex]
  1961. * Added the missing brackets around the trade logs condition check, thanks
  1962. to Coltaro. [Skotlex]
  1963. 2006/09/29
  1964. * Spurt state will now trigger on Soul Linkers as well. [Skotlex]
  1965. * Added a check un unit_run when unit_walktoxy fails. Should fix running
  1966. getting you stuck sometimes when running on diagonals near obstacles.
  1967. [Skotlex]
  1968. 2006/09/28
  1969. * Merged the necessary changes to make the script engine support negative
  1970. constants (db/const.txt). Thanks to Rayce (from jA) for the code. [Skotlex]
  1971. * Cleaned up the skill.c code to take into account when skill_unitsetting
  1972. returns null (skill failed), fixes a possible crash with Wand of Hermode
  1973. [Skotlex]
  1974. 2006/09/27
  1975. * Cleaned up status_get_party/guild_id, it should also fix a possible crash
  1976. when invoking such a functio on a masterless pet. [Skotlex]
  1977. * Sharp-Shooting will now display a skill animation. [Skotlex]
  1978. * The no_spawn_on_player setting will now also work for static mobs, but
  1979. only if the setting is set to 100 or higher. [Skotlex]
  1980. 2006/09/26
  1981. * Yet again messed with the packet sent during a splash attack, but this
  1982. time taking into account the packets that eA was using some many revisions
  1983. ago. Tests are needed to see if Magnum Break/Grimtooth don't spam the skill
  1984. animation anymore, and to see if GrandCross didn't break it's animation as
  1985. well. [Skotlex]
  1986. * Added function skill_dance_switch which handles converting overlapping
  1987. song/dances to dissonance/ugly dance. It should make the overlapping area
  1988. now behave completely like the mentioned song/dances (taking into account
  1989. interval and target type changes). [Skotlex]
  1990. * Updated battle_check_target so that non-offensive skills cannot be used
  1991. on a homun except for the homun and it's master. [Skotlex]
  1992. * Steal zeny won't work on treasure chests now. [Skotlex]
  1993. 2006/09/25
  1994. * Added an ugly check so that Heal will display 0 when healing a berserked
  1995. character (and it will again display full heal amount when healing a player
  1996. who's at full life) [Skotlex]
  1997. * Disabled again client-self-muting since it's causing too much trouble.
  1998. [Skotlex]
  1999. * Merged FlavioJS's script patch which should fix stuff like "mes ();"
  2000. causing crashes. [Skotlex]
  2001. * Item group reading will now complain when a line doesn't has enough
  2002. fields. [Skotlex]
  2003. * Fixed #baselevelup adding instead of substracting status points when used
  2004. with negative levels. Also made it reset your stats if there wasn't enough
  2005. to substract from. [Skotlex]
  2006. * Applied FlavioJS's suggestion of expanding WFIFOPOS to also take the
  2007. direction. This had the side effect of fixing the direction missing from
  2008. the mob spawn packet, which explains why all npcs face north when you are
  2009. within sight while doing a @reloadscript. [Skotlex]
  2010. * Changed the order of packets in TK_HIGHJUMP, may fix the reports of
  2011. getting stuck when jumping into a warp. [Skotlex]
  2012. * Changed a bit the code of marionette control, where a redefined local
  2013. variable may be the cause of mob-targetted Marionette Control stacking
  2014. stats up. [Skotlex]
  2015. 2006/09/24
  2016. * When the code auto-guesses that a skill should require ammo, it will
  2017. accept any type of ammo for using it instead of only arrows. Fixes Magnum
  2018. Break usage on Gunslingers. [Skotlex]
  2019. 2006/09/22
  2020. * Probably fixed a signed/unsigned mismatch warning on the new socket code.
  2021. [Skotlex]
  2022. * Fixed the "map server claims to have char online, but this other map
  2023. server also has it tagged as online" message triggering in some cases where
  2024. it shouldn't. [Skotlex]
  2025. * Fixed some maps in db/mapindex.txt being under the wrong id and added comments
  2026. so this will not happen again. [Zephiris]
  2027. --- ATTENTION! ---
  2028. People running TXT servers will have to tell their players to redo their /memo
  2029. points since the map ids of the old file were wrong.
  2030. 2006/09/21
  2031. * Fixed a bug on "select" when skipping empty entries when the selected
  2032. entry is the last. [Skotlex]
  2033. * Improved a bit RFIFOFLUSH as suggested by Harbin. [Skotlex]
  2034. 2006/09/20
  2035. * A mob's HP is set temporarily to 0 before invoking it's on-death script,
  2036. prevents said scripts being able to "rekill" the mob indefinitely (if stuff
  2037. like killmonster is used within) [Skotlex]
  2038. * Some small cleanups in chat.c [Skotlex]
  2039. * Fixed party_sub_count (TK_POWER) failing when the idle_no_share setting
  2040. was disabled. [Skotlex]
  2041. * Enabled Star Gladiators and Soul Linkers to do /doridori [Skotlex]
  2042. 2006/09/19
  2043. * Fixed nocommand mapflag causing the "you can't use commands on this map"
  2044. message to trigger one very single chat, instead of only for actual @/#
  2045. command invocation. [Skotlex]
  2046. * Added support for skipping empty string menu entries for the select()
  2047. command (just as `menu` has it already) [Skotlex]
  2048. * Fixed pc_set_hate_mob letting you place mobs on any of the three
  2049. positions regardless of size [Skotlex]
  2050. * The double continuation error will now display both scripts that
  2051. triggered it. [Skotlex]
  2052. * Loading the storage from the char-server will fail if player is already
  2053. tagged in final save state. [Skotlex]
  2054. * Removed setting ban_spoof_namer, sending invalid global-talk packets will
  2055. now just kick the player out of the server. [Skotlex]
  2056. * Added echoing messages back to self when using @/# commands on whispers
  2057. and party/guild messages, to prevent the client from muting yourself.
  2058. [Skotlex]
  2059. * Fixed some gcc4 warnings [Toms]
  2060. 2006/09/18
  2061. * Fixed Spider Web fire damage bonus. [Skotlex]
  2062. * Made Global chat always reply back to you even on @/# commands, this
  2063. prevents the client from muting yourself due to "hack". However, this same
  2064. fix isn't easily applicable to @ commands invoked from whispers or
  2065. party/guild messages, those are still pending. [Skotlex]
  2066. * Merged Meruru's update to socket.c, which includes a rewritten parse
  2067. function, which should hopefully be more efficient than the previous code.
  2068. [Skotlex]
  2069. * The new code includes support for two config settings
  2070. (packet_athena.txt): frame_size, which can be used to alter the logic
  2071. packet-size allowed by the code, and mode_neg, which when set to yes, sets
  2072. TCP_NODELAY on all connections (defaults to yes). [Skotlex]
  2073. * High-Jump is usable everywhere now, except that on maps where it
  2074. previously failed, now will just make you jump in place. [Skotlex]
  2075. * Fixed TK_RUN as per packets provided by AuronX. [Skotlex]
  2076. * Moved the equipment/card resistances to status ailments outside of
  2077. status_get_sc_def, so that they are applied only to rate, not duration.
  2078. [Skotlex]
  2079. * Modified the Asura code (again), hopefully movement sprite issues are
  2080. fixed now [Skotlex]
  2081. * @reloadscript scripts will no longer eliminate mobs with no respawn data.
  2082. But watch out for possible bugs (I think someone mentioned 1 extra
  2083. treasure box will spawn when you use it? This needs testing!) [Skotlex]
  2084. * Made speed_add_rate a linearly stacking increase. [Skotlex]
  2085. * Corrected a possible overflow when using show_mob_info to display the
  2086. mob's up as a percent. [Skotlex]
  2087. * Corrected the documentation for checkoption/checkoption1/checkoption2
  2088. [Skotlex]
  2089. * Reenabled client requesting to self mute, as the whole knockback packet
  2090. issues of the past which were causing players to mute themselves when being
  2091. knockback is no longer there. [Skotlex]
  2092. 2006/09/17
  2093. * Fixed NPC_INVISIBLE's cloak ending after attacking once. [Skotlex]
  2094. * Fixed SG_FUSION being castable without Soul Link state. [Skotlex]
  2095. * Moved the item-use restriction SC checks from clif.c to pc_use_item,
  2096. fixed Gravitation blocking potion usage on it's area of effect. [Skotlex]
  2097. * Sphere Marines and Summoned Flora are now inmune to class-changing.
  2098. [Skotlex]
  2099. 2006/09/16
  2100. * Added monster_ai&256. When set, a monster will pick a random starting
  2101. position to begin checking versus it's skills, otherwise, it will always
  2102. begin checking from the beginning. [Skotlex]
  2103. * Fixed the status change duration reduction equation was was totally
  2104. wrong, thanks to k3dt [Skotlex]
  2105. 2006/09/15
  2106. * Now mobs won't do a distance check to lose their target on every ai
  2107. iteration, but only when they finish walking (unless you set monster_ai&1)
  2108. [Skotlex]
  2109. * The chase distance before a mob gives up following a player has been
  2110. increased from view-size (range2) to min-chase (range3). [Skotlex]
  2111. * Reverted the Summon Flora change where all plants were being summoned in
  2112. one go. [Skotlex]
  2113. * Moved the weapon repair effect to where it belongs (after successfully
  2114. repairing an item) [Skotlex]
  2115. * Added config setting "friend_auto_add" (battle/player.conf), if set, when
  2116. you accept someone as your friend, both characters will show up on each
  2117. other's friend list. [Skotlex]
  2118. 2006/09/14
  2119. * Changed Extremity Fist's code to make you actually walk past your target,
  2120. which displays a much more correct "animation" for the skill. Thanks to
  2121. HiddenDragon for the information and code. [Skotlex]
  2122. * Updated the item_db search functions so that when returning the
  2123. dummy-item, it first updates the nameid to match the requested one, this
  2124. prevents pc_additem later on giving you an item with ID 500 instead of the
  2125. ID requested. [Skotlex]
  2126. * Added a clif_skill_nodamage packet when using Repair Weapon, just to see
  2127. what happens. [Skotlex]
  2128. * Likely fixed "half" of the alliance being saved, which ends up in guilds
  2129. that can attack another, but not viceversa. [Skotlex]
  2130. * Added deleting of saved Status changes on character delete for the
  2131. Char-TXT server. [Skotlex]
  2132. * Fixed the can-act delay never being checked when requesting to use
  2133. Homunculus Skills. [Skotlex]
  2134. * Fixed warmth skills draining SP of the target, not the caster. [Skotlex]
  2135. * When TK_DODGE triggers, it will no longer delay your attack or movement.
  2136. [Skotlex]
  2137. * Estimation /Sense/ whatever will no longer hide the vit bonus to mdef2,
  2138. as reported by Playtester. [Skotlex]
  2139. * Updated Summon Flora to summon the max number of possible plants on one
  2140. cast. It will consume as many bottles as monsters summoned. Also cleaned up
  2141. the function to be usable by non players. [Skotlex]
  2142. * Shadow Jump no longer goes over walls. [Skotlex]
  2143. * battle_calc_gvg_damage will be invoked in gvg maps regardless of woe
  2144. time. [Skotlex]
  2145. * NPC_MENTALBREAKER now zaps matk*lv SP based on observations by Tharis.
  2146. [Skotlex]
  2147. * md->class_ will be changed on mob-class-change to fix all class-change
  2148. related bugs. On respawn, the spawn data will be used to revert to the
  2149. original class. [Skotlex]
  2150. * Improved the pet skillbonus timer for "eternal bonuses" cases where the
  2151. bonus delay is 0. [Skotlex]
  2152. 2006/09/13
  2153. * SC_CHANGE cannot override itself anymore. This fixes being able to
  2154. "recast" the skill while it's still active to lengthen the duration AND
  2155. reheal the target. [Skotlex]
  2156. * Changed a bit the dnsbl lookup in the login servers to make it faster.
  2157. [Skotlex]
  2158. * Moved the pc rate modifiers from items
  2159. (hp/sp/matk/hit/flee/cri/flee2/def2/mdef2/def/def2/speed) from
  2160. status_calc_bl_sub_pc to status_calc_pc, as it simplifies code vastly, and
  2161. also fixes Osiris card not applying to said bonuses. [Skotlex]
  2162. * Fixed pc_damage_delay_rate not working, thanks to Orn. [Skotlex]
  2163. * Modified the nocommand mapflag so you can specify the GM range that is
  2164. blocked from using commands (eg: "prontera.gat mapflag nocommand 40"
  2165. disables commands to characters in the GM range 0~39) [Skotlex]
  2166. * Modified the char-server TXT whisper system to use the online_db to know
  2167. to which map server forward whispers, instead of just sending the whisper
  2168. to every map server. [Skotlex]
  2169. * Readded the setting TCP_NODELAY on socket.c to see if it fixes the
  2170. walk-lag issue. [Skotlex]
  2171. 2006/09/12
  2172. * Modified the login SQL server so that case insensitive lookups use "where
  2173. name = BINARY 'name'" instead of "where BINARY name = 'name'", since this
  2174. way the name index should be used, and performance will no longer be
  2175. heavily affected. [Skotlex]
  2176. * Modified main.sql to add 4 missing indexes (thanks to ErkDog): char_id on
  2177. the tables memo/friends, and online/name on the char table. Added
  2178. upgrade_svn8728.sql to add these indexes to already existing tables.
  2179. [Skotlex]
  2180. * Updated convert_engine.sql to use TYPE instead of ENGINE to be compatible
  2181. with Mysql 4 installations. [Skotlex]
  2182. * Moved the morph restrictions from skill_additional_effect to
  2183. mob_class_change, so that SA_MONOCELL will not convert clones, emperium, or
  2184. treasure boxes. [Skotlex]
  2185. * Fixed 'range' might be used uninitialized warning [Toms]
  2186. * Added Jaguar's sql script to convert all tables to MyISAM. It's located
  2187. in sql-files/convert_engine.sql WARNING: Using MyISAM is much faster than
  2188. InnoDB, but you are strongly recommended to backup your database before
  2189. switching engines since we don't know if eA is fully coded to work
  2190. correctly with MyISAM yet. [Skotlex]
  2191. * Added manual deletion of sc_data entries when deleting a character
  2192. (char-SQL) [Skotlex]
  2193. * Updated main.sql to use pure MyISAM tables, removed all foreign keys.
  2194. [Skotlex]
  2195. * Updated battle_switch to use strncmpi instead of strcmpi, it makes it so
  2196. using "yessir" will match "yes", this is actually needed because if you set
  2197. a config setting to "yes " (notice the trailing space), then the map config
  2198. engine fails to read it right, and will set the config setting to 0 (no).
  2199. [Skotlex]
  2200. * Some corrections to hate_mob cleanup when triggering the Angel stuff. [Skotlex]
  2201. * Updated the show_mob_info setting to add another space to the separating
  2202. pipes, so that each field is separated by " | " instead of " |". [Skotlex]
  2203. * Homunculus intimacy will go back to 500 on evolution. [Skotlex]
  2204. * Baphomet splash damage will now hit nearby enemies regardless of flee
  2205. (but the initial attack still has to connect for the splash to trigger)
  2206. [Skotlex]
  2207. 2006/09/11
  2208. * Modified set_nonblocking and setsocketoptions in socket.c, using eApp's
  2209. code as reference. Hopefully should improve performance somewhat. [Skotlex]
  2210. * Added a comment explaining what a comment is to login/char/map config
  2211. files, as well as the main script config file. [Skotlex]
  2212. * Modified SG_FEEL so that it works the same way that in Aegis
  2213. (packet-wise) [Skotlex]
  2214. * Added a comment to explain how to "remove" a string variable from the
  2215. msg_athena entries. [Skotlex]
  2216. * Summoned and slave mobs won't show up on @showmobs anymore. [Skotlex]
  2217. * Moved Spider Web damage bonus from battle_calc_damage to battle_attr_fix,
  2218. so that damage will be doubled based on the actual attack element.
  2219. [Skotlex]
  2220. * Adjusted autospell cards to trigger only on physical weapon attacks.
  2221. [Skotlex]
  2222. * Adjusted a bit the heal code, it should now show either the full heal
  2223. amount, or 0, depending on whether the target was healed at all or not
  2224. (this also means it shows 0 if you try to heal a full-life character.. but
  2225. it's the closest I've gotten to make it display 0 on Berserked chars)
  2226. [Skotlex]
  2227. * Memorize will be consumed even on instant cast spells now. [Skotlex]
  2228. * Berserk will end now if hit and remaining hp is less or equal to 100.
  2229. [Skotlex]
  2230. * Guild Aura will be removed on sc-load to prevent Guild Masters from
  2231. getting that bonus from the old implementation. [Skotlex]
  2232. * Added D-Kalck's fix of the TXT -> SQL converter [Playtester]
  2233. 2006/09/10
  2234. * Thanks to KarLaeda, added missing function in @showmobs [Lupus]
  2235. - Script function 'query_sql': In the TXT version it doesn't fill the array
  2236. and always return -1. Added for scripts compatibility. Your scripts
  2237. won't crash in TXT version. They can work it around.
  2238. I suggest we need a function getversion()
  2239. * Updated item_db.sql and mob_db.sql [Playtester]
  2240. 2006/09/09
  2241. * Added a crash protection in case mapfreeblock unlock tries to free a null
  2242. pointer. [Skotlex]
  2243. * Moved perfect_hiding from state to special_state, so that it clears out
  2244. when you remove your pet. [Skotlex]
  2245. * Probably fixed the Taekwon Rest skills. [Skotlex]
  2246. * Fixed a npc-timer memory leak on npc_unload ("[Warning]: ers_obj_destroy:
  2247. X entries missing, continuing destruction. Manager for entries of size
  2248. 16.") [Skotlex]
  2249. 2006/09/08
  2250. * Unified the rest and ganster paradise code into a single function.
  2251. [Skotlex]
  2252. * Moved the Happy State trigger to the regen function, it now triggers at
  2253. the same time SPTIME does. [Skotlex]
  2254. * Cleaned up SG_HATE, hope it works now. [Skotlex]
  2255. * Removed sg_miracle_skill_duration, replaced it with
  2256. sg_miracle_skill_min_duration and sg_miracle_skill_max_duration, to specify
  2257. a range for the duration of the skill. [Skotlex]
  2258. * Added upgrade_svn8675.sql in case, for some reason, your guild table
  2259. still has the emblem_data field as a 'blob' with "NOT NULL" specified.
  2260. [Skotlex]
  2261. * Fixed alliance/opposition making not cancelling out map-server-side when
  2262. the guild already had max number of alliances/oppositions (thanks to k3dt)
  2263. [Skotlex]
  2264. 2006/09/07
  2265. * Fixed SC_BERSERK setting Hp to 100 when dispelled by unnatural means (eg:
  2266. wand of hermod) [Skotlex]
  2267. * Cleaned up the doridori parse clif function. [Skotlex]
  2268. * Merged some of mpeg's work on NJ skills [Skotlex]
  2269. * Removed the Warmth "stacking" code. [Skotlex]
  2270. * Added back the effect of /doridori to skill-SP regen [Skotlex]
  2271. * Implemented a rough version of Angel of the Sun/Moon/Stars, it has a low
  2272. chance of triggering on doridori-boosted SP-regen events. However, it has
  2273. no client-side messages yet (need to add these in) [Skotlex]
  2274. * Added sg_angel_skill_ratio to specify rate at which the Angel skill
  2275. triggers. [Skotlex]
  2276. * Added unit_cancel_combo which takes care of ending a combo time and
  2277. resuming normal attack 'inmediately' [Skotlex]
  2278. * Cleaned up some the SG_HATE code, you can't change hate targets anymore.
  2279. [Skotlex]
  2280. 2006/09/06
  2281. * Fixed the memset in status_calc_pc, corrects some mysterious bugs such as
  2282. item-drop bonuses suddenly not working anymore. [Skotlex]
  2283. * Corrected SC_INCREASEAGI and SC_DECREASEAGI speed-change formula.
  2284. [Skotlex]
  2285. * Fixed Aex Aeterna ending on Soul Breaker's first half. [Skotlex]
  2286. * Applied Orn's modification on speed increases/reductions with increase/
  2287. decrease agi [Toms]
  2288. 2006/09/05
  2289. * Removed setting mob_show_hp, it's been replaced now by mob_show_info,
  2290. which can be used to specify what kind of info should be displayed from a
  2291. mob. Current options are two different formats for Hp display, and current
  2292. level (monster.conf). [Skotlex]
  2293. * Fixed Signum Crucis Def reduction being 10+2*lv% instead of 10+4*lv%
  2294. [Skotlex]
  2295. * Applied the Ultra Mage's suggestion to have the map server strip trailing
  2296. spaces/comments from the config files. It will also now print out when an
  2297. unknown config setting is found. [Skotlex]
  2298. * Fixed status change resistance not being invoked at all for pretty much
  2299. all cases. [Skotlex]
  2300. * Corrected SC_INTRAVISION not starting. [Skotlex]
  2301. * Fixed crash when attempting to read a Label as a string on a script
  2302. (thanks to End of Exam) [Skotlex]
  2303. * Fixed possible crash when changing a chat-room's owner (thanks to End of
  2304. Exam) [Skotlex]
  2305. * Fixed dispell removing SC_NOCHAT [Skotlex]
  2306. * Small fix which should correct skill_attack damaging hidden characters
  2307. when it shouldn't. [Skotlex]
  2308. * Fixed connect_until field being a smallint rather than int in the login
  2309. table (upgrade with upgrade_svn8630.sql) [Skotlex]
  2310. 2006/09/04
  2311. * Fixed crash when using Adaptation during an Encore. [Skotlex]
  2312. * Should have fixed manner being reset to 0 on logout while muted.
  2313. [Skotlex]
  2314. * Removed status_get_sc_tick, duration and chance are now both handled by
  2315. status_get_sc_def (this means status change duration and success rate
  2316. both will always follow the very same formula) [Skotlex]
  2317. * Fixed mob-kill experience getting screwed up when characters who did
  2318. damage die/logout at the moment the mob dies. [Skotlex]
  2319. * Should have fixed "sleep", thanks to Lance for figuring out the error.
  2320. [Skotlex]
  2321. * SC_REFLECTSHIELD will now be passed to devoted characters at cast-time.
  2322. [Skotlex]
  2323. * Added a check to make a mob's level 1 if the read level from the db is
  2324. less than it. [Skotlex]
  2325. * status_calc_misc will now be invoked in status_calc_bl even on the first
  2326. call, since status could have gone up due to skill bonuses. [Skotlex]
  2327. * Moved max HP/SP calculations to before invoking status_calc_misc
  2328. [Skotlex]
  2329. * Simplified distance and check_distance to use "aegis" methods (greater of
  2330. dx/dy = distance), there's a new define in map.h called CIRCULAR_AREA, when
  2331. set, the previous method is used, and "for each in range" calls will also
  2332. check for distances, making most ground skills and battle system use real
  2333. circles instead of squares. [Skotlex]
  2334. 2006/09/03
  2335. * Fixed SC_BERSERK's no regen penalty lasting pretty much forever.
  2336. [Skotlex]
  2337. 2006/09/02
  2338. * SC_REGENERATION's val4 now holds the RGN flag of what is blocked rather
  2339. than blocking all types of regen. [Skotlex]
  2340. * LK_BERSERK will now only block natural regen on state-end. [Skotlex]
  2341. * SC_EXTREMITYFIST/SC_DANCING/SC_EXPLOSIONSPIRITS will only block natural
  2342. sp regen and not skill regen [Skotlex]
  2343. * SC_REGENERATION blocking will be cancelled on logout now. [Skotlex]
  2344. * Corrected SCB_LUK not updating SCB_BATK as well. [Skotlex]
  2345. 2006/09/01
  2346. * Corrected script_commands description of getequipid, it returns -1, not 0
  2347. on fail. [Skotlex]
  2348. * Fixed the mob-id check during pet_db loading, it will also now print when
  2349. a pet is not loaded due to having an invalid mob class specified. [Skotlex]
  2350. * The "delete_timer error/no such timer" report will now print the related function [Toms]
  2351. * The Clearing unused stack report will now print the related NPC [Toms]
  2352. * The duplicate npc report will now print the related file name [Toms]
  2353. * Added config setting "partial_name_scan", which specifies whether @ given
  2354. names should use a partial string lookup or absolute name lookup. Defaults
  2355. to no (gm.conf) [Skotlex]
  2356. * Expanded status_calc_misc so it may also calculate the batk of characters
  2357. as well as their regen data (if they have it) [Skotlex]
  2358. * Fixed a memory leak when using charsave_method:1 [Skotlex]
  2359. * Soul Breaker will now be affected by Lex Aeterna on both parts of the
  2360. attack. [Skotlex]
  2361. * Status changes with no skill and no SCB* data will now go through if they
  2362. have an SI* icon. This should fix SC_MIRACLE [Skotlex]
  2363. * Reverted switching a mob's adelay/amotion when the later is longer than
  2364. the former, now both get updated to amotion. [Skotlex]
  2365. 2006/08/31
  2366. * Moved the intimacy penalty of HFLI_SBR44 and HVAN_EXPLOSION to
  2367. skill_counter_additional_effect [Skotlex]
  2368. * Simplified skillnotok_hom by using an invocation to skillnotok [Skotlex]
  2369. * Hopefully fixed BD_ADAPTATION [Skotlex]
  2370. * Homun won't lose any intimacy on death now. [Skotlex]
  2371. * Homun will be saved together with the master now (as long as the homun is
  2372. active) [Skotlex]
  2373. * Modified the error reporting in map_freeblock_unlock so that when there's
  2374. an error, the reported line number is the file's linenumber plus the
  2375. object's type *10000. This is for debug information to help track down the
  2376. already-freed error. [Skotlex]
  2377. * pc_adopt will now preserve the kid's job/job-level/experience. This means
  2378. that if you adopt a Swordman level 45, it will become a baby-swordman level
  2379. 45, with the exact same exp as before. [Skotlex]
  2380. * Fixed new mob's name not sent to the client when the mob is morphed [Toms]
  2381. * Added setting attack_walk_delay which specifies whether a character
  2382. should (or not) be able to move inmediately after starting a normal attack
  2383. (battle.conf). Defaults to 0 since that's what Aegis uses. [Skotlex]
  2384. * Fixed @summon's delete timer being screwed up. [Skotlex]
  2385. * Cleaned up a bit the summon script command. [Skotlex]
  2386. * Fixed the clone script command's delete-timer being screwed up. [Skotlex]
  2387. 2006/08/30
  2388. * Skill required-state will now only be checked on cast-begin, not
  2389. cast-end. [Skotlex]
  2390. * Added a check in status_calc_pc to prevent player rate adjustments from
  2391. from going below 0. [Skotlex]
  2392. * Removed sending normal-damage packets instead of skill packets for
  2393. splash-damaged skills, since... well, that's how Aegis does it. [Skotlex]
  2394. * Updated HLIF_CHANGE to work as explained by Tharis -> It now adds 30*lv
  2395. vit and 20*lv int, is dispelled on warp, and can-act delay is 5+5*lv
  2396. minutes. Hp/Sp is no longer set to 10 after a forced expiration. [Skotlex]
  2397. * Fixed up char-sql compilation. [Skotlex]
  2398. * Added a message to @clearweather stating when climate changes will
  2399. dispel. [Skotlex]
  2400. * Corrected @hidenpc saying that it's command name was "@npcoff" [Skotlex]
  2401. * Updated itemdb reading on the char-sql server so that it reads both
  2402. item_db and item_db2 files (totally untested yet) [Skotlex]
  2403. 2006/08/29
  2404. * Added printing out whenever the irc-module attempts to connect, to debug
  2405. whether the map-server lag is due to this or not. [Skotlex]
  2406. * Mobs will now always chase players using hard-path seeks. [Skotlex]
  2407. * monster_ai&1 now only signals whether mobs should update their target
  2408. cell while chasing more frequently (rather than being state-driven like
  2409. Aegis) [Skotlex]
  2410. * Changed the defaults of view_range_rate and chase_range_rate to 120 to
  2411. aproximate better Aegis's view ranges (which are square areas and not
  2412. circles) [Skotlex]
  2413. * Applied Mpeg's work on GS [Toms]
  2414. ( http://gpegon.free.fr/ea/gunslinger_08-29-06_mpeg.txt )
  2415. * Fixed a syntax error in @showmobs [Toms]
  2416. * Added @showmobs. It shows selected mobs on your mini-map (excluding
  2417. mini-bosses & MVP) thanks to KarLaeda for the command [Lupus]
  2418. 2006/08/28
  2419. * Modified the dancing code and Moonlit Petals in particular, so that it is
  2420. treated as an ensemble like any other, it will just knockback people when
  2421. they step into it. [Skotlex]
  2422. * The memory leak reports will now print out in the logs also the revision
  2423. they belong to. [Skotlex]
  2424. * Cleaned up the scriptable npc-shop code, it should be crash-proof now.
  2425. [Skotlex]
  2426. * Added TK level-up buffs to SG too, and extended them to 10 min [DracoRPG]
  2427. * Added "Barefeet Mastery" effect to TK_RUN (thanks Tharis for both) [DracoRPG]
  2428. * Changed the produce_db format, now there's a skill-lv column right after
  2429. the skill-id column to specify required skill-level to craft this item.
  2430. [Skotlex]
  2431. * Modified the skill produce_db code to take into account the new skill-lv
  2432. requirement. [Skotlex]
  2433. * Fixed exp bonuses applying twice for the job-exp [Skotlex]
  2434. * @reloadbattleconf will now also update the ragsrvinfo table on the
  2435. char-server. [Skotlex]
  2436. * Fixed homun hp/sp growth rates stacking with HP/SP passive increasing
  2437. skills. [Skotlex]
  2438. 2006/08/27
  2439. * Fixed undefined reference to 'malloc_set' in log.c [Toms]
  2440. * Updated svn-revision reading, now it can read the new svn file system [Toms]
  2441. * Fixed a bug with homunc which could spawn on a non-walkable cell [Toms]
  2442. 2006/08/26
  2443. * Optional macro MEMSET_TURBO for faster low-level memory initializations. [Lance]
  2444. * Small bug fix in read_homunculus_expdb (a warning was always displayed) [Toms]
  2445. * Small adjustment on the mob_ai code which could fix mobs not chasing you
  2446. if you hit them from the maximum possible diagonal distance. [Skotlex]
  2447. 2006/08/25
  2448. * Cleaned some the skill unit removal added flag so that it signals whether
  2449. the skill is being force-removed, or it has "naturally expired". [Skotlex]
  2450. * The following skills will display a normal attack animation now:
  2451. NPC_WATERATTACK, NPC_GROUNDATTACK, NPC_FIREATTACK, NPC_WINDATTACK,
  2452. NPC_POISONATTACK, NPC_HOLYATTACK, NPC_DARKNESSATTACK,
  2453. NPC_TELEKINESISATTACK, NPC_SPLASHATTACK
  2454. * Skills that require a weapon and consume spirit spheres will no longer be
  2455. auto-tagged to require ammo. [Skotlex]
  2456. * Now MISC skills with delay 0 will also use the attack delay (if the skill
  2457. is tagged to do damage) [Skotlex]
  2458. * Added script commands roclass/eaclass to enable scripts to access eA's
  2459. job format. Read script_commands.txt and ea_job_system.txt for a more
  2460. complete explanation of how this job system works. [Skotlex]
  2461. * Added a flag to skill_delunitgroup, skill_delunit & skill_unit_onlimit.
  2462. If 1 is passed, it will avoid UNT_WARP_ACTIVE to be transformed in
  2463. UNT_WARP_WAITING and will destroy it. [Toms]
  2464. ( To avoid such crash : http://www.eathena.ws/board/index.php?showtopic=114102
  2465. when the code need an empty slot and the oldest one is UNT_WARP_ACTIVE )
  2466. 2006/08/24
  2467. * Little cleanup on homunc's code [Toms]
  2468. * Modified @reloadmobdb & @reloadskilldb to reload homunc's db too [Toms]
  2469. * Now when a mob's adelay is set to be less than the amotion, both values
  2470. will be swapped (this is an attempt to understand how those mobs actually
  2471. work on aegis) [Skotlex]
  2472. * script command "isrefine" will no longer return always false for equip
  2473. positions above 6 (this has not been needed since the addition of the
  2474. refine column to tbe item_db many months ago) [Skotlex]
  2475. * Added NPC_CRITICALSLASH to the list of skills that display as a normal
  2476. attack. [Skotlex]
  2477. * Reverted the previous change, changed the pet capture code to try to
  2478. capture a mob based on their view class rather than actual class.
  2479. [Skotlex]
  2480. * Fixed the md->class_ variable not being updated when a mob's class is
  2481. changed. [Skotlex]
  2482. * Added setting clear_skills_on_warp to specify when a character's
  2483. land-based skills are deleted when the caster changes maps. Defaults to all
  2484. types. [Skotlex]
  2485. * Should have fixed Brandish Spear not passing the flag to skill_attack,
  2486. causing it to do miserable damage. [Skotlex]
  2487. * Warp Portal will no longer be removed when caster steps through it (this
  2488. is left to the new clear_skills_on_warp setting) [Skotlex]
  2489. * Cleaned up status_percent_change to switch equations when the target has
  2490. high hp to prevent overflows, also it will directly take hp/maxhp when a
  2491. rate of 100 or higher is passed to prevent calculations. [Skotlex]
  2492. * Traps and Land Elemental fields are no longer automatically removed on
  2493. map change (handled now by clear_skills_on_warp) [Skotlex]
  2494. * traps_setting &2 no longer does anything (handled now by blah blah)
  2495. [Skotlex]
  2496. * Applied some change from mpeg on Ninja Skills [Toms]
  2497. * Put HVAN_Explosion based on max_hp instead of current hp [Toms]
  2498. 2006/08/23
  2499. * Fixed mob_clone_spawn completely ignoring the mode variable. [Skotlex]
  2500. * Fixed Energy Coat reducing and consuming more than it should when you
  2501. have 100% SP [Skotlex]
  2502. * Cleaned up getmapxy script function, also added support for type 4 so
  2503. that it returns a player's homunculus position if such exists. [Skotlex]
  2504. * SC_ARMOR_ELEMENT looks like gone away from status_change_start since ... rev 6791.
  2505. Try to reimplement it. [Toms]
  2506. * Fixed HVAN_EXPLOSION [Skotlex]
  2507. * Frost Nova won't display a nodamage skill packet (still need to sort out
  2508. a way to fix the splash damaged packets) [Skotlex]
  2509. * Fixed a possible SIGSEGV on buildin_maprespawnguildid if the map is unknown [Toms]
  2510. * Added debug on "Inifity loop" to know which script is making this loop [Toms]
  2511. 2006/08/22
  2512. * More fixes to the splash code. Kamaitachi and Sharpshooting should
  2513. display correctly now. [Skotlex]
  2514. * Fixed a crash on the mobspawn script command. [Skotlex]
  2515. * Made SC_FLEET increase batk as well as watk. [Skotlex]
  2516. * Fixed gcc warning [Toms]
  2517. * Fixed AM_REST not closing the homunc status window [Toms]
  2518. * Fixed SC_NEN according to Mpeg [Toms]
  2519. * Added a ShowStatus("Terminating...\n") on login-server_sql [Toms]
  2520. * Some corrections to make Tatami Gaeshi work correctly. [Skotlex]
  2521. * Fixed SBR44 doing 100% more damage than it should. [Skotlex]
  2522. * Some more work on the splash skill code. Now splash-damaged enemies
  2523. should show no animation at all, just the damage-number, while only the
  2524. targetted character should still display the full skill animation.
  2525. [Skotlex]
  2526. * Modified the homun-txt file-save format to separate the name from the
  2527. rest of fields with tabs (like character saving does), this may fix homun
  2528. save/loading when using non-latin characters on the name, but be warned
  2529. that it also means the previous homun-data files are lost! (unless you
  2530. replace the comma before the start of a name with a tab) [Skotlex]
  2531. * getnameditem will now also work on stackable items [Skotlex]
  2532. * Corrected battle_calc_weapon_attack so that all skills ignore your
  2533. left-hand weapon, and that the Katar's double-attack damage bonus for the
  2534. offhand damage applies ONLY on normal attacks. [Skotlex]
  2535. * Fixed Resurrect Homunculus's % to 20*lv% [Skotlex]
  2536. * Added SQL update which should remove \' from guild names [Toms]
  2537. * Added option to disable character deletion of certain levels [Lupus]
  2538. check char_athena.conf for this option format
  2539. 2006/08/21
  2540. * Some more cleaning up of the splash skill code. Now the passed hit value
  2541. for the splash targetted mobs is 9 instead of 5, this allows multi-hitting
  2542. splash skills to display the number of hits correctly. [Skotlex]
  2543. * Fixed call homunc bug when the homunc was vapo and the master has change
  2544. of map [Toms]
  2545. * Fixed SQL-Guild Creation, guild name was escaped 2 times [Toms]
  2546. * Some cleaning of the splash skills. Updated skill-attack to enable again
  2547. passing of flag 0xF000 which signals that the skill level sent to the
  2548. client should be -1 (no skill name shouted). Should (hopefully) clear/clean
  2549. up a bunch of splash damage skill animation-related packets. [Skotlex]
  2550. * Homun saving won't cap hp/sp to max hp/sp since a homun can have higher
  2551. hp/sp than the one stated in the db (due to skill bonuses or status
  2552. changes) [Skotlex]
  2553. * Cleaned up some more the regen_data structure, so that
  2554. skill/sitting-skill related data is optional (since only players have it).
  2555. [Skotlex]
  2556. * Fixed AM_RESURRECTION, thanks to RockmanEXE for %HP values [Toms]
  2557. * Fixed HAMI_CASTLE, HAMI_DEFENCE & HLIF_AVOID [Toms]
  2558. * Adjusted Glittering's success rate to 20+10*lv% [Skotlex]
  2559. * Corrected isequipped() so that cards will not be tagged as "used up"
  2560. unless all the specified items were found. [Skotlex]
  2561. * Fixed a confusion in skill_attack using the src instead of dsrc for some
  2562. calls, which was causing some problems with the KAITE check from AoE
  2563. spells. [Skotlex]
  2564. * Fixed ASC_BREAKER's misc damage part not having the ignore-element flag
  2565. set. [Skotlex]
  2566. * Moved homunc battle conf from misc.conf to homunc.conf [Toms]
  2567. * Some cleaning in skill.c in regard to homun skills. [Skotlex]
  2568. * Madness Canceller now stacks with other aspd bonuses, just like Berserk
  2569. does. [Skotlex]
  2570. * Removed config setting "muting_players", and expanded the manner_system
  2571. config to specify how having negative manner (mute) affects a player (see
  2572. battle/misc.conf). [Skotlex]
  2573. * Expanded the pk_mode setting from no/yes to 0/1/2. 1 is normal pk_mode,
  2574. if 2 is used, it makes killing players give you a loss of 5 manner points.
  2575. [Skotlex]
  2576. * Fixed WS_WEAPONREFINE always failing when at less than job 50. [Skotlex]
  2577. * Fixed the Autosave routine not working when there's only one player
  2578. online. [Skotlex]
  2579. * Disabled command @rain since the client no longer supports it anyway.
  2580. [Skotlex]
  2581. * Fixed delitem not checking for the first slot's card, also optimized it
  2582. so that it doesn't checks on the other slots. [Skotlex]
  2583. 2006/08/20
  2584. * Added a check during mob_db loading so that the six basic stats, max hp
  2585. and max sp are never below 1, as this could cause crashes when using
  2586. certain skills. [Skotlex]
  2587. * Gravitation now only blocks the caster from using potions. [Skotlex]
  2588. * Corrected Madness Canceller letting you walk while the effect lasts.
  2589. [Skotlex]
  2590. * Splitted yet again ASC_BREAKER into a two-part attack. This time the
  2591. int-based damage is a MISC type attack, and gets reduced by skills as such.
  2592. [Skotlex]
  2593. * Fixed "int format, long unsigned int arg" warning [Toms]
  2594. * Fixed a warning when using cap_value(x, 0, x) on an unsigned value [Toms]
  2595. * Added clif_skill_fail for homunc to skill_castend_id & skill_castend_pos [Toms]
  2596. * Fixed homunc skill 8016 not considered as homunc skill [Toms]
  2597. * @useskill will now cause your homun to use the skill instead of you if
  2598. the skill is a Homun skill and you have an active homunculus. [Skotlex]
  2599. * Reduced the Success Chance of GS_FLING to 10+10*lv% (Playtester told me
  2600. that Vicious told him the chance was much lower like that) [Skotlex]
  2601. * Fixed some Homunc issues with HR servers (capping some values) [Toms]
  2602. * Added @hominfo command to obtain real values (not capped ones) [Toms]
  2603. 2006/08/19
  2604. * Fixed @homlvup bug [Toms]
  2605. * Fixed AM_REST & AM_RESU consumming SP if they fail [Toms]
  2606. * Fixed homunc spawning bug (they was spawned after an AM_REST + master warp for example)[Toms]
  2607. * Fixed GS_GROUNDDRIFT [Skotlex]
  2608. * Increased chance of GS_DESPERADO connecting to 20% [Skotlex]
  2609. * Fixed battle_calc_base_damage being called for the left hand even for
  2610. non-dual-wielding attacks. left-hand damage was being set to 0 later
  2611. anyway, so no exploit existed. [Skotlex]
  2612. * Moved the weapon_atk_rate bonus to battle_calc_base_damage so that it'll
  2613. apply correctly when dual-wielding different types of weapons. [Skotlex]
  2614. * Fixed job-mask 0x100000 in the item_db enabling Dancers/Bards to use the
  2615. items (0x80000 should be for them and 0x100000 should be currently unused)
  2616. [Skotlex]
  2617. * Fixed a possible sigsegv when deleting lif under Mental Change [Toms]
  2618. * Fixed HAMI_CASTLE [Toms]
  2619. * Fixed HLIF_CHANGE [Toms]
  2620. * Updated HLIF_BRAIN skill [Toms]
  2621. * Fixed homunculus intimacy on feeding [Toms]
  2622. * Added homunculus_friendly_rate battle config [Toms]
  2623. * Some compilation warnings fixed [Toms]
  2624. * Added skill's required item check on homunc skills [Toms]
  2625. * Add Condensed Red Potion as a required item for HLIF_HEAL [Toms]
  2626. 2006/08/18
  2627. * Little code cleanup on last fix [Toms]
  2628. * Fixed HLIF_HEAL healing the homunc instead of the master [Toms]
  2629. * Fixed HLIF_AVOID not increasing walk speed of master [Toms]
  2630. * Fixed the atk_rate (Turtle General Card) bonus not working on
  2631. dual-wielders. [Skotlex]
  2632. * Made HLIF_HEAL a self skill that auto-selects target to caster's master.
  2633. [Skotlex]
  2634. * Implemented SC_BLOODLUST and SC_CHANGE, cleaned up HLIF_CHANGE [Skotlex]
  2635. * Applied a correction to HVAN_EXPLOSION [Skotlex]
  2636. * Fixed Homun ASPD calculation being able to underflow and give you min
  2637. speed. [Skotlex]
  2638. * Added monster_ai&128 to make aggressive mobs ignore that behaviour of
  2639. always picking Homun targets above player targets regardless of who is
  2640. closer. [Skotlex]
  2641. * Fixed homun info packet being unable to display HP/SP correctly once the
  2642. values are above 32k. [Skotlex]
  2643. * Applied Mpeg's work on ninja [Toms]
  2644. * Fixed @homlvup [Toms]
  2645. * Added guild_aura (skill.conf) setting so you can specify when it works
  2646. and if it works on the guild-master itself. Defaults to working all the
  2647. time on everyone except GM. [Skotlex]
  2648. * Little code cleanup [Toms]
  2649. * Cleaned merc_hom_evolution to avoid free'ing/realloc'ing [Toms]
  2650. * Fixed "args of aFree is freed pointer" on Homunc deletion [Toms]
  2651. * Changed unit_free so that it receives which cleartype should be used when
  2652. the character is still on a map. Used this on status_damage so that mobs
  2653. that do not respawn when killed will properly display the death animation.
  2654. [Skotlex]
  2655. * Fixed Energy Coat consuming 10x less SP per hit than it should.
  2656. * Fixed signed/unsigned comparison issues with natural heal system [Toms]
  2657. 2006/08/17
  2658. * Vaporize will no fail when the homun is dead. [Skotlex]
  2659. * Corrected thhe double free issue that occurs when a homun dies and has no
  2660. intimacy left. [Skotlex]
  2661. * Fixed the charsave_method:1 saving/loading exp as signed ints rather than
  2662. unsigned. [Skotlex]
  2663. * Applied use of structure regen_data for a unified regen module. Natural
  2664. and skill-heal is handled by this structure, while sitting-skill-heal is
  2665. still player dependant (mostly because the other object types can't sit)
  2666. [Skotlex]
  2667. * Cleaned up the status calc code for homun by moving it from
  2668. status_calc_bl_sub_homun to status_calc_homun (where it should had always
  2669. been) [Skotlex]
  2670. * Updated SQL files [Playtester]
  2671. * Corrected map_random_dir algorithm [Toms]
  2672. * Fixed homunc natural heal and little code cleanup [Toms]
  2673. * Changed AM_CALLHOMUN Skill to spawn the homunc at 1 cell from his master [Toms]
  2674. 2006/08/16
  2675. * Fixed being unable to recast Adrenaline Rush to reset the duration
  2676. timers. [Skotlex]
  2677. * Cleaned up skill_get_range2 so that using range 0 for non-self skills
  2678. uses the caster's attack range. [Skotlex]
  2679. * Fixed AM_CALLHOMUN checking for an embryo when you have a vaporized
  2680. homun. [Skotlex]
  2681. * Spirit of Wizard will now consume an item 7321 each time it blocks
  2682. reflected magic. [Skotlex]
  2683. * Added script command jobname, retrieves a given's class name as per the
  2684. appropiate msg_athena.txt entry (this command should had been added years
  2685. ago) [Skotlex]
  2686. * Fixed null-pointer crash on Evolving a homunculus. [Skotlex]
  2687. * @produce now can make any kind of equipment [Skotlex]
  2688. * Made HLIF_AVOID and HAMI_DEFENCE cause the status change on both caster
  2689. and target. [Skotlex]
  2690. * AM_REST shouldn't be checking for a range now (since it's a self skill)
  2691. [Skotlex]
  2692. * Updated mob_ai so that mobs will use their rude-attacked skill when they
  2693. can't reach their current target. [Skotlex]
  2694. * Fixed the default txt config making pets be saved to the homun file
  2695. instead of to the pet file. [Skotlex]
  2696. * Now arrow-consuming skills where your main weapon is a whip or musical
  2697. instrument WILL count as arrow-type attacks, using the atk of the arrow and
  2698. all related bonuses. [Skotlex]
  2699. * Fixed some homun timer initialization code. [Skotlex]
  2700. 2006/08/15
  2701. * Applied multiple fixes which should take care of making homun save/load
  2702. work on TXT now. [Skotlex]
  2703. * Added Gatling Fever's batk bonus. [Skotlex]
  2704. * Some cleaning in status_damage which should prevent trying to free
  2705. already free'd pointers when unit_remove_map invokes unit_free (when
  2706. status_damage was going to invoke unit_free anyway) [Skotlex]
  2707. * Delete homunc's skills from sql when the homunc is destroyed [Toms]
  2708. * Homunc Timers should be disabled when the homunc is vaporized or dead an re-enabled on call/resu [Toms]
  2709. * Updated vc-project files to compile with the new int_homun files.
  2710. [Skotlex]
  2711. * Hopefully fixed the crash when using charsave_method = 1 [Skotlex]
  2712. * Moved s_pet structure from map_session_data to pet_data, this enabled the
  2713. removal of a few redundant values in the pet_data structure (name, class,
  2714. equip) [Skotlex]
  2715. * Cleaned up some of the pet related @/# commands, same for some script
  2716. commands. [Skotlex]
  2717. * Pet offensive skills who's inf value is self will be casted on the pet
  2718. now (for stuff like Grand Cross) [Skotlex]
  2719. * Added homun saving/loading support to char-TXT. Note that this is
  2720. completely untested, so it may be as good as broken. [Skotlex]
  2721. * Added a crash-fix on status_calc_bl_sub_homun to abort in case the homun
  2722. has no master (need to clean up this function later) [Skotlex]
  2723. * Tested char-txt load/save, it seems to be working fine, but you should
  2724. STILL backup, as I only launched the server (read old character format),
  2725. closed it down (saved into the new format) and relaunch it (read the new
  2726. format) and it didn't give problems (but there's still the possibility of
  2727. some field being read in the incorrect offset or such). [Skotlex]
  2728. * Updated the char save structure for char-TXT servers so that the homun id
  2729. will be saved, now also the map info (last point, save point, memo maps)
  2730. are now saved using the mapindex rather than the string. BACKUP BEFORE
  2731. UPDATING since this code isn't yet tested. [Skotlex]
  2732. * Cleaned up a bit the char-saving code, added overflow crash prevention in
  2733. case there are more memos than the max-allowed saved. [Skotlex]
  2734. * AM_CALLHOMUN can now be used to recall vaporized homuns. [Skotlex]
  2735. * AM_RESURRECTHOMUN will now fail when the homun is vaporized. [Skotlex]
  2736. * Added SCB_DYE which marks which status-changes need a forced cloth dye
  2737. change to 0 due to sprite issues. Currently only NJ_BUNSINJYUTSU's status
  2738. uses it. [Skotlex]
  2739. * Asura Strike now moves you to the target on fail always (unless the
  2740. target does not exists or is in another map or there's a obstacle on the
  2741. way) [Skotlex]
  2742. * Corrected skill_attack_area hitting dead characters on it's splash range.
  2743. [Skotlex]
  2744. * Swapped the values for OPTION_XMAS and OPTION_FLYING. This should enable
  2745. SG to show the fly animation again, even if sometimes others will see him
  2746. as Santa. As for xmas cloth, it shouldn't make much of a difference since
  2747. the view class is changed to christmas anyway. [Skotlex]
  2748. * Made AM_CALLHOMUN and AM_RESURRECTHOMUN be like the wedding skills, where
  2749. they automatically pick a spot around you. [Skotlex]
  2750. * Cleaned up some the AM_RESURRECTHOMUN code. Hopefully it works now.
  2751. [Skotlex]
  2752. * Cleaned up some the hom evolution code. [Skotlex]
  2753. * Fixed SIGSEGV with homunc save [Toms]
  2754. 2006/08/14
  2755. * Removed support for negative autosave intervals, instead added a
  2756. minsave_interval setting which specifies which is the minimum time between
  2757. character saves. Default to 100ms (map_athena.conf). [Skotlex]
  2758. * Sacrifice no longer shows damage to self. [Skotlex]
  2759. * When Asura fails, the skill display will still come off. [Skotlex]
  2760. * Lots of cleaning of the Homun-code. Perhaps the crashes as of late will
  2761. be fixed now (reusing AM_CALLHOMUN seems to be the cause of them)
  2762. [Skotlex]
  2763. * Increased Run's walk speed bonus to 25->50% [Skotlex]
  2764. * Modified emergency_call setting to allow for more specific configuration
  2765. (woe/non-woe, gvg-grounds/non-gvg-grounds, disable from nowarpto maps), see
  2766. skill.conf for details. [Skotlex]
  2767. * Fixed script engine allowing scripts to set a player's zeny to negative
  2768. values. [Skotlex]
  2769. * Fixed setting hide_woe_damage making even "miss" attacks seem to connect.
  2770. [Skotlex]
  2771. * When readjusting the fame-list, the last entry's id is also reset (may
  2772. fix characters appearing more than once on it?) [Skotlex]
  2773. 2006/08/13
  2774. * Removed @itemcheck as it was totally pointless. [Skotlex]
  2775. * Corrected states killer/killable being easily dispellable. [Skotlex]
  2776. * Fixed the totally wrong text messages being used for @killer/@killable
  2777. related atcommands, added appropiate entries to msg_athena [Skotlex]
  2778. * Magic and Misc attacks will now get type "flee" when they do less than 1
  2779. damage, this blocks them from causing additional status effects when they
  2780. are blocked. [Skotlex]
  2781. * Cleaned up a bit the Basilica code, it should now properly end when you
  2782. walk. [Skotlex]
  2783. * Fixed some logs not working when you enabled all logs. [Skotlex]
  2784. * Corrected unmute being a level 60 command by default (should be 80)
  2785. [Skotlex]
  2786. * Corrected the mapif_parse_PartyChangeMap function to correctly update
  2787. level-range when someone logs on/off, fixes being unable to set even-share
  2788. on once it's been broken even when the characters out of range logoff.
  2789. [Skotlex]
  2790. 2006/08/11
  2791. * Fixed Kagebunshin no Jutsu crashing for dyes > 0; though this solution
  2792. might seem hackish (changing clothes colour to 0 when it starts while
  2793. storing original colour back in val4, restoring original dye upon
  2794. end), I believe this is the best way there currently is to solve
  2795. the issue. [blackhole89]
  2796. * Fixed Dancers/Bards being able to use normal attacks while performing.
  2797. [Skotlex]
  2798. 2006/08/10
  2799. * Fixed the item group bonus not working. [Skotlex]
  2800. * Fixed songs/dances always being considered overlapped with themselves.
  2801. [Skotlex]
  2802. * Added some additional song/dance overlap code that should correctly
  2803. change the effect of songs/dances when they overlap. [Skotlex]
  2804. * Added a check so that the status-change packet is always send to self
  2805. when the inflicted char is a player disguised. [Skotlex]
  2806. * Code cleanup on homunc, they stay in memory until player disconnect or
  2807. homunc destruction [Toms]
  2808. * Corrected Advanced Jobs HP bonus from 30% -> 25% [Skotlex]
  2809. * Hopefully fixed family-party-even-share not breaking when a member logs
  2810. out. [Skotlex]
  2811. * Should have fixed the login-sql crash when passed user-name's length is
  2812. beyond the limit. [Skotlex]
  2813. * Changed setting attack_attr_none to affect all neutral-element attacks.
  2814. Basicly, this setting is now used to determine who can hit for full damage
  2815. always when using neutral-attacks (defaults to non-players) [Skotlex]
  2816. * Fixed two instances in the login-sql server where the ip in the log-login
  2817. table was being stored backwards. [Skotlex]
  2818. * Now when a skill's range is 0 and the skill is NOT casted on self, it
  2819. will take the basic weapon's range (without Vulture/Snake Eye bonus).
  2820. [Skotlex]
  2821. * Now when a duration is not specified, sc_start/sc_start2/sc_start4 will
  2822. try to guess the duration by extracting it from the skill_db (it uses
  2823. skill_get_time on whatever skill is associated to the status-change using
  2824. val1 as skill-level) [Skotlex]
  2825. * Some cleanups on trade_tradeaccept to prevent packets being resent when
  2826. they shouldn't. [Skotlex]
  2827. * Fixed syntax error in 'guild' create table statement [Toms]
  2828. 2006/08/09
  2829. * Fixed Asura not wasting all SP away when it fails on cast-end. [Skotlex]
  2830. * Fixed homunc skill up bug [Toms]
  2831. * Adjusted some the dance/song/encore code so that the source of an
  2832. ensemble will always get checked, so that walking out of an ensemble skill
  2833. should make it end now. However, it's likely this is not completely solved
  2834. yet and will require further tweaking. [Skotlex]
  2835. * Added crash protection to the mob_db txt reading when the mob_db file has
  2836. lines with insufficient number of columns. [Skotlex]
  2837. * Moved the class-change code from battle_calc_weapon_attack to
  2838. skill_additional_effect. Alchemist summons now also have a chance of
  2839. triggering polymorphing. [Skotlex]
  2840. * Removed the code which was auto-setting attacks that do no damage to type
  2841. FLEE, since that was disabling status-effects which should incur even when
  2842. the damage was blocked. [Skotlex]
  2843. * Trade requests will now fail when either character is unable to act
  2844. (character in storage, vending, interacting with an npc, petrified, etc)
  2845. [Skotlex]
  2846. * Heard skotlex voice, changed all msg_table[] into msg_txt() in atcommand.c [Toms]
  2847. 2006/08/08
  2848. * Fixed the char-server not invoking the party_calc_state function when the
  2849. third party-member is added to a party, hence failing to check for families
  2850. and disabling even share from them unless all three relog first (state is
  2851. correctly calculated when party is first loaded). [Skotlex]
  2852. * Crash-protections in the mail-checking function. [Skotlex]
  2853. * Some additional parenthesis on equipment check in pc_equipitem, seems to
  2854. have fixed the mid/lower headgear-sprites not showing up. [Skotlex]
  2855. * Added back missing state set to prevent Ankle-Snare from being retrieved
  2856. after the target dies. [Skotlex]
  2857. * Fixed compilation warning [Toms]
  2858. * Added a check to handle Spider Web as a targetted skill. If there's more
  2859. than one character on the targetted cell, a different one may get trapped,
  2860. but it will mostly do as it is now. [Skotlex]
  2861. * Added check to Asura so that it will move you to the target when it fails
  2862. ONLY when you can cast the skill on the target (not stunned, asleep, target
  2863. not hidden, etc) [Skotlex]
  2864. * Changed the map_freeblock_unlock code so that when there's an "already
  2865. free'd pointer" error, the memory manager will print out the invoking
  2866. function rather than map_freeblock_unlock, this should help fix it up next
  2867. time it happens and is reported. [Skotlex]
  2868. * Casting Kaensin will clear out Suiton and viceversa now. [Skotlex]
  2869. * Fixed drop-rates (@whodrops) getting duplicates when you use @reloadmobdb
  2870. [Skotlex]
  2871. * Fixed unjailing not sending characters to Prontera. [Skotlex]
  2872. * Fixed yet again AS_SPLASHER doing full damage on all characters. Now you
  2873. can use the NK split damage value in the skill_db if you want damage
  2874. divided by the amount of targets rather than by 2. [Skotlex]
  2875. * Fixed crash on the battle_drain functions. [Skotlex]
  2876. * Cleaned up HAMI_CASTLE, HLIF_AVOID, HAMI_DEFENCE so that it's usable by
  2877. other types of objects other than Homunculus. [Skotlex]
  2878. * Cleaned up the Asura Strike code so that the SP/Spheres/States is not
  2879. consumed when the skill fails due to Fog of Wall. [Skotlex]
  2880. * When a negative delay for a skill is specified, this delay is now added
  2881. on top of the character's amotion rather than adelay [Skotlex]
  2882. * Modified main.sql to make the guild table allow NULL on the emblem data.
  2883. [Skotlex]
  2884. * Added file conf-tmpl/Changelog.txt to log config changes. [Skotlex]
  2885. 2006/08/07
  2886. * Fixed the login-sql server replying to the change-sex packet with the
  2887. wrong gender, causing the char-server to screw-up job-change updates.
  2888. [Skotlex]
  2889. * Cleaned up the apparent mess that is pc_skill. Hopefully it SHOULD work as
  2890. described on the docs now, this should also fix adopting not correctly
  2891. giving the family-related skills. The flag value of skill should be: 0 to
  2892. set the skill (if skill level is 0, this removes a learned skill), 1 grants
  2893. the skill as an item bonus which is temporary, and 2 will add a skill bonus
  2894. like 1, except the skill level adds up to whatever level already known of
  2895. that skill. [Skotlex]
  2896. * Fixed EQP_WEAPON related code messing up with both weapon AND shield.
  2897. [Skotlex]
  2898. * Cleaned up the Asura code so that when the skill fails your
  2899. SP/Spheres/Fury are all taken away always, as well as moving you next to
  2900. the target (as long as the target still exists within a reachable path from
  2901. your position) [Skotlex]
  2902. * SC_GUILDAURA is now removed on logout. [Skotlex]
  2903. * Fixed Venom Splasher doing half-damage instead of full-damage to the
  2904. "exploding" character. [Skotlex]
  2905. * Hopefully fixed the party_even_share cast-overflow bug as reported by
  2906. Adobe. [Skotlex]
  2907. * Standarized the autosave interval setting to be always in seconds
  2908. regardless of type. [Skotlex]
  2909. * Moved the "bosses can't be knockback" logic from battle_calc_* functions
  2910. and placed it on skill_blown. [Skotlex]
  2911. * Some parenthesis cleanup before invoking battle_calc_base_damage, could
  2912. be fixing the current issue with arrow attacks not adding the arrow damage.
  2913. [Skotlex]
  2914. * Fixed the map_search_freecell error which was making mobs fail to
  2915. respawn. [Skotlex]
  2916. * Added in Lupus's suggestion of not making multi-slot headgears set all
  2917. slot view-ids, which supposedly causes the client to re-draw the headgear
  2918. multiple times on characters. [Skotlex]
  2919. * Fixed HT_BLITZBEAT hitting neutral characters when it auto-triggers.
  2920. [Skotlex]
  2921. * Simplified the Tatami Gaeshi code. [Skotlex]
  2922. * Fixed AS_SPLASHER doing full damage on everyone except targetted char
  2923. instead of the other way around. [Skotlex]
  2924. * Fixed KAENSIN clearing out SUITON cells and viceversa. [Skotlex]
  2925. * The spawn area is now seen as range rather than absolute for mob spawn
  2926. lines. This means that x,y,10,10 will spawn the mob on a 21x21 grid around
  2927. the given x,y point. [Skotlex]
  2928. * Some clean up of the mob-spawn code. Now you can specify negative areas,
  2929. so that a spawn location such as 100,150,0,-1 will spawn a mob always on
  2930. x=100, but any Y value of the current map. [Skotlex]
  2931. * Reflected damage will now also have a chance of draining hp/sp. [Skotlex]
  2932. * Adjusted the order in which option/sc change packets are sent to match
  2933. Aegis's [Skotlex]
  2934. * Added script command getpartyleader through which you can retrieve
  2935. various information of a party's leader. See doc/script_commands.txt for
  2936. further information. [Skotlex]
  2937. * mpeg's Ninja work [Vicious]
  2938. * Adjusted Battle_check_target so that alchemist summoned mobs are
  2939. targetted by everyone as long as 1. The top-level master is a player and 2.
  2940. the actual attacker is not a mob-type. [Skotlex]
  2941. * Added config force_random_spawn which overrides the spawn-files defined
  2942. coordinates to make all mobs always spawn randomly on the map. [Skotlex]
  2943. * SC_SPEEDUP0 is no longer dispellable by SA_DISPEL [Skotlex]
  2944. 2006/08/06
  2945. * Updated item_db.sql & mob_db.sql to latest. [Toms]
  2946. * Little fixes on homunc (hp/sp are now saved and init stats changed) [Toms]
  2947. 2006/08/04
  2948. * Added a commented piece of code at the end of clif_parse_LoadEndAck which
  2949. will update your direction to wherever you were facing before warping.
  2950. Should this be the default? Nearby people DO see you facing on the same
  2951. direction before warping, it's only your client that will always see you
  2952. facing north on spawn (the spawn packet does contain direction
  2953. information). [Skotlex]
  2954. * Updated @mobinfo to display slots in the drop information. [Skotlex]
  2955. * Fixed flag.elefix not being respected in battle_calc_misc_damage.
  2956. [Skotlex]
  2957. * Some code cleanups in battle_calc_damage. [Skotlex]
  2958. * Modified bAddItemHealRate so it can receive both item-id and item-group
  2959. values (since the first item-id is +500, there's no risk of mixing them
  2960. up). [Skotlex]
  2961. * Removed settings enemy_critical_rate, homun_critical_rate. Added settings
  2962. enable_critical (defaults to specify only players), mob_critical_rate and
  2963. critical_rate. The last applies to all non-mobs and non-players
  2964. (battle/battle.conf) [Skotlex]
  2965. * Removed settings mob_npc_warp, mob_warpportal. Replaced with setting
  2966. mob_warp which specifies which types of warp can a mob step into
  2967. (battle/monster.conf) [Skotlex]
  2968. * Enabled Mastery damage on Soul Breaker again, moved adv katar mastery out
  2969. of the mastery function so that it may apply to all skills except Soul
  2970. Breaker. [Skotlex]
  2971. * Changed name of the setting log_pick to log_filter since that's what it
  2972. does now. [Skotlex]
  2973. * Modified enable_logs so that instead of a 0/1 setting, you can specify
  2974. which kind of events to log (so you can use a combination), see log_athena
  2975. for the bitmask configuration. [Skotlex]
  2976. * Cleaned a bit the contents of log_athena.conf
  2977. * Hide/Chasewalk will again stop screaming skill name. [Skotlex]
  2978. * Soul Breaker will no longer receive Mastery damage. [Skotlex]
  2979. * Fixed warning:'type' might be used uninitialized in this function [Toms]
  2980. 2006/08/03
  2981. * Added a check to skip the experience share of characters who are dead or
  2982. on another map. [Skotlex]
  2983. * Reverted the previous change, chasewalk has no icon, only the str-bonus
  2984. has that fist icon now. [Skotlex]
  2985. * Allowed chase-walk to display a skill animation when using it. [Skotlex]
  2986. * Readjusted the Chasewalk icon to be as it should be. [Skotlex]
  2987. * GS_DESPERADO is now a short-range attack skill. [Skotlex]
  2988. * Changed the Battle-Orders icon to be the Strength Up icon (for
  2989. Chasewalk's str bonus). [Skotlex]
  2990. * Fixed using the right-hand weapon's size modifiers regardless of which
  2991. weapon's damage was being calculated in regards to. [Skotlex]
  2992. * Simplified the ignore-size check by making the Weapon Perfection check be
  2993. done when specifying the flag, also moved the size-fix property of riding
  2994. spear-knights to status_calc_pc. [Skotlex]
  2995. * Changed SI_CHASEWALK value to 119 as concluded by LoneWolf [Skotlex]
  2996. * Corrected clif.c sending the raw mdef2 value to the client instead of
  2997. first substracting the "secret vit/2" bonus from it. [Skotlex]
  2998. * Added a damage cap to CR_ACIDDEMONSTRATION of INT_MAX/2 to prevent
  2999. overflows. It is not capped to INT_MAX because damage increasing skills
  3000. would cause it to still overflow afterwards. [Skotlex]
  3001. * Fixed NPC_CRITICALSLASH not being considered as a Critical hit by the
  3002. code. [Skotlex]
  3003. * Added RUDE_ATTACKED_COUNT so you can easily adjust how many rude-attacks
  3004. should happen before a mob uses the rude-attacked skill. Value has been set
  3005. to 2 for now. [Skotlex]
  3006. * Now when a mob changes target (to someone they can hit) their
  3007. rude-attacked count won't be reset, but instead will be reduced by one.
  3008. [Skotlex]
  3009. * SC_SPEEDUP0 can now stack with the other speed raising buffs. [Skotlex]
  3010. * Some adjustments so that the last-skill-used will be correctly cleared
  3011. when your combo-time ends. [Skotlex]
  3012. * Fix a bug in atcommand_charspeed [Toms]
  3013. * Fixed a logic error preventing from cooking anything [DracoRPG]
  3014. * Cleaned up the last NJ update code. [Skotlex]
  3015. * Added @ command `charspeed` [Skotlex]
  3016. * Fixed @jailfor using MAP_PRONTERA as jail instead of MAP_JAIL [Skotlex]
  3017. * Removed case for GS_SPREADATTACK on damage packets to see if the skill
  3018. displays correctly now. [Skotlex]
  3019. * Corrected Deluge/Volcano/V. Gale overlaps so that the placing tiles are
  3020. removed, NOT the ones who were already placed. [Skotlex]
  3021. * Made SC_SPEEDUP0 and SC_SPEEDUP1 use different icon IDs, to fix
  3022. icon-confusion when both are enabled at a time. [Skotlex]
  3023. * Mob rude-attacked count is not reset now on picking a new char (gotta
  3024. investigate this further) [Skotlex]
  3025. * Changed atoi to strtoul for guild-experience's field [Toms]
  3026. * Fixed a bug in int_storage.c, temp array doesn't have the good size [Toms]
  3027. 2006/08/02
  3028. * Modified yet again SC_SILENCE after iRO tests from Entwined on IRC.
  3029. Silence now ONLY blocks skills from being used, it will not stop on-going
  3030. casts. [Skotlex]
  3031. * Updated status_cast_cancel to also include silence (so the cast bar is
  3032. cancelled if you are silenced during it) [Skotlex]
  3033. * Updated the way SC_SILENCE works. From what I remember (from previous
  3034. forum discussions) it: 1- Always blocks skills from being used. 2- Will
  3035. only block a skill when the cast-bar ends IF the skill is targetted. If
  3036. anyone wants to debate to get this changed, make an appropiate forum topic
  3037. in the svn development area to discuss. [Skotlex]
  3038. * Added a check in the walking code when triggering skills.
  3039. NPC_SELFDESTRUCTION will no longer cancel walking, it will instead resend
  3040. the walk packet, this effectively causes the mob to start walking
  3041. (clientside) while the cast-bar is showing. [Skotlex]
  3042. * Fixed a logic error on battle_get_master which was causing infinite
  3043. loops.. [Skotlex]
  3044. * Fixed homunculus error message [Toms]
  3045. * Rewrote pc_payzeny to not use doubles, it may more accurately prevent
  3046. charging a player more zeny than they can withhold. [Skotlex]
  3047. * Fixed failing to create Deadly Poison Bottles damaging 50% of your max
  3048. life instead of 25% [Skotlex]
  3049. * Added the missing status-change flags to SC_FREEZE to signal it should
  3050. modify def and magic def [Skotlex]
  3051. * Little add on NJ_HUUMA [Toms]
  3052. * Merged Mpeg's work on Ninja skills [Toms]
  3053. * Fixed Martyr's Reckoning having a cap damage of 32k. [Skotlex]
  3054. * Now you can teleport in Thanatos Boss room, but you can't respawn there [Playtester]
  3055. * Fixed Defender Raising Walk speed instead of diminishing it. [Skotlex]
  3056. * Added a check on status-change load to prevent loading speed-affecting
  3057. status when their speed adjustment is 0 (prevents division by zero)
  3058. [Skotlex]
  3059. * Code cleanup & optimization on guild part of char-server [Toms]
  3060. * Fixed script code data not being free'd if a player quits in the middle
  3061. of a script. [Skotlex]
  3062. * Modified run_script so that when there are leaks, it will report the
  3063. place where run_script was called from as source rather than the inner code
  3064. of run_script (for debugging purposes) [Skotlex]
  3065. * Made recursive master check the default (otherwise it messes skill -> pet
  3066. -> player kind of herarchies) and cleaned up some the battle_get_master
  3067. code to prevent infinite loops in the weird case someone specifies that
  3068. their master is itself. [Skotlex]
  3069. * Recoded the GuildAura code to use val3 & val4, allowing much greater stat
  3070. bonuses (in case someone wants to get Guild Skill level 20 or something
  3071. crazy like that) [Skotlex]
  3072. * Updated battle_check_target so that all alchemist summoned mobs can be
  3073. target by everyone. [Skotlex]
  3074. * Cleaned up skill_check_condition_mob_master_sub, it will now count both
  3075. total number of summoned mobs and amount that belong to the same type.
  3076. [Skotlex]
  3077. * Corrected AM_CANNIBALIZE so it will fail if you already have plants of
  3078. another type out. [Skotlex]
  3079. * Using NPC_SELFDESTRUCTION no longer will make the caster stop walking.
  3080. [Skotlex]
  3081. * Removed SI_GUILDAURA, and replaced it with SI_LANDENDOW, now
  3082. Volcano/Deluge/V. Gale will get that funky icon instead. [Skotlex]
  3083. * Changed clif_hominfo to receive both sd and hd as parameters
  3084. * Some redundancy cleaning in mercenary.c [Skotlex]
  3085. * Moved updating of sd->mercenary.hp from merc_damage to pc_makesavestatus.
  3086. [Skotlex]
  3087. 2006/08/01
  3088. * Miscellanous fixes which make the Marine Sphere self destruction work as
  3089. best as I can. It only has one flaw: It self-destructs instantly after
  3090. walking because if I make it use self-destruction with a cast-bar,
  3091. client-side the object stops moving inmediately... [Skotlex]
  3092. * Modified unit_walktoxy and NPC_RUN to enable running even when the caster
  3093. does not has the MD_CANMOVE bit on. [Skotlex]
  3094. * PF_MINDBREAKER will now silently fail if you try to use it on someone who
  3095. already has the status active. [Skotlex]
  3096. * Cleaned up yet again skill_landprotector, now new cells of
  3097. Deluge/Volcano/V.Gale will delete previous cells when they are recasted on
  3098. top of each other. [Skotlex]
  3099. * Summoned Marine Spheres no longer get the MD_CANMOVE bit. [Skotlex]
  3100. * Cleaned up some more the SC_JAILED code [Skotlex]
  3101. * merged in atcommands jailfor, jailtime, charjailtime. Thanks to Meruru
  3102. and Coltaro for the code. [Skotlex]
  3103. * Cleaned the code of atcommands jail and unjail [Skotlex]
  3104. * Be warned that the code MAY contain bugs as I adjusted it to save the
  3105. character's position before jailing, allowing the automatic unjailing to
  3106. warp you back to the exact spot you were at before being jailed. [Skotlex]
  3107. * Should have fixed the cooking sets not displaying all cooking available
  3108. items. [Skotlex]
  3109. * Figured out and fixed the issue with Volcano/Deluge/Violent Gale not
  3110. really working. Thanks to Mpeg for noting it out. [Skotlex]
  3111. * Modified Self Destruction, so that Marine Spheres in non-versus maps will
  3112. hurt only enemies, while in all other situations this skill will hurt
  3113. everyone around them. [Skotlex]
  3114. * Expanded setting debuff_on_logout so that &1 removes negative buffs and
  3115. &2 removes positive buffs. [Skotlex]
  3116. * Food status boosts will no longer end on death, but they will end when
  3117. you respawn or logout. [Skotlex]
  3118. * Added battle config file status.conf, moved some settings from skill.conf
  3119. and battle.conf to it since they are entirely Status-Change related.
  3120. [Skotlex]
  3121. * Added the missing lines to enable script command "kickwaitingroomall"
  3122. [Skotlex]
  3123. * Magic Rod's can-act delay will no longer be applied when you absorb a
  3124. spell. [Skotlex]
  3125. * Fixed Don't Forget Me increasing speed instead of decreasing it. [Skotlex]
  3126. * Modified setlabel so that the script engine barks when you are trying to
  3127. use the same label name as a constant or variable name. [Skotlex]
  3128. 2006/07/31
  3129. * Fixed the subnet 0 mask being reset to 0 when someone goes up on the fame
  3130. rankings. [Skotlex]
  3131. * Updated Poison React chance to counter and number of counters as per
  3132. skill description updates. [Skotlex]
  3133. * Fixed Sharpshooting being counted as a magic attack, and hence, using
  3134. your MATK as base damage. [Skotlex]
  3135. * Fixed NPC_STOP id value in skill_cast_db [Skotlex]
  3136. * Bladestop will no longer stop when you push either of the characters
  3137. around. [Skotlex]
  3138. * Fixed Enchant Poison having a near 100% chance of poisoning target on
  3139. attack. [Skotlex]
  3140. * Little fix on duel [Toms]
  3141. * Added possibility to restrict duel usage to same map [Toms]
  3142. * Merged mpeg's fix on ninja skills [Toms]
  3143. * Corrected a status_get_race call which should be status_get_race2 in misc
  3144. attacks. [Skotlex]
  3145. * Moved the Devotion code to the top of the SC list in status_damage,
  3146. meaning that now stuff like being asleep or confused won't end if you are
  3147. hit, but the damage is absorbed by devotion. [Skotlex]
  3148. * Added the Soul Link of Rogue speed bonus to Chase-Walk. Since there's no
  3149. information of how much the bonus should be, it currently is a conservative
  3150. 10%. [Skotlex]
  3151. * Fixed a possible crash in the main script engine when restoring previous
  3152. script. [Skotlex]
  3153. * Fixed sleep.tick not being set back to 0 before resuming execution, which
  3154. leads to scripts that are continously executed even when they already ended
  3155. (they do nothing but waste resources) [Skotlex]
  3156. * Fixed a pair of free -> aFree used on stacks, which would lead to memory
  3157. manager reporting leaks where there aren't. [Skotlex]
  3158. * Removed incorrect "Waterball range+1 when standing on suiton" feature.
  3159. [Skotlex]
  3160. * Corrected the Speed update code to prevent sending "walk to xy" packets
  3161. twice when the affected character is a player. [Skotlex]
  3162. * Expanded mob can't move warning to print out where this mob was stuck at
  3163. (map, x,y) [Skotlex]
  3164. * Fixed segmentation fault in status_change_end, vd wasn't initialized [Toms]
  3165. 2006/07/30
  3166. * NPC_INVISIBLE will now use Cloaking of a level +9 of the used skill
  3167. level, so that at level 1 they can attack, use skills and receive no
  3168. walking penalty. [Skotlex]
  3169. * Mob casted Sanctuary will no longer always heal it's targets regardless
  3170. of element/race [Skotlex]
  3171. * Status change packets will now use as criteria for sending the actual
  3172. view_class instead of player/not-player. This will fix status-changes
  3173. displaying improperly on clones, and also possible crashes with disguised
  3174. players. [Skotlex]
  3175. * Merged mpeg's fix on ninja skills and SA_VOLCANO,SA_DELUGE,SA_VIOLENTGALE [Toms]
  3176. * Added bNoMiscDamage setting so you can specify misc-damage blocking from
  3177. skills. Modified battle_calc_damage so that even Pressure and similar
  3178. skills will be affected by this setting. [Skotlex]
  3179. * GS skill updates/fixes [Vicious]
  3180. * Force all users offline in sql when char-server starts [Toms]
  3181. 2006/07/29
  3182. * Removed ugly struct cast in login.c [Toms]
  3183. * New version of buildin_query_sql which accept more than one column and
  3184. can return the number of rows. See script_commands.txt for more details. [Toms]
  3185. * Fixed nullpo in merc_hom_skillup [Toms]
  3186. * Added a return value to buildin_rid2name if rid is invalid [Toms]
  3187. * Made the SQL ping interval default to 7 hours. [Skotlex]
  3188. * Made skill_unitsetting remove the group when no unit-cells were placed
  3189. down. basicly this means that if landprotector blocks all tiles, the group
  3190. will be removed from memory, preventing said group from counting to the
  3191. total number of skills you can set. [Skotlex]
  3192. * Fixed segmentation fault in script engine when calling something which is not a function [Toms]
  3193. * Fixed segmentation fault in script engine when activating DEBUG_RUN flag [Toms]
  3194. 2006/07/28
  3195. * Added Ishizu's code to check ammo type on attack. No more using Grenade
  3196. rounds with Guns. [Skotlex]
  3197. * offensive heal/sanctuary will only happen when the source of the heal is
  3198. a player, mob/pet casted heal will now always heal regardless of target.
  3199. [Skotlex]
  3200. * Shield Chain will now ignore the 'ice-pick' defense piercing bonus.
  3201. [Skotlex]
  3202. * Self destruction will now hit all characters in range, not just enemies.
  3203. [Skotlex]
  3204. * Cleaned up the NJ update code: [Skotlex]
  3205. - Restored code which was removed (stuff like SC_SKA)
  3206. - Fixed possible crashes on some NJ skills if used by non-players.
  3207. - Fixed most NJ magic spells doing more damage than they should.
  3208. - Fixed ZenyNage being able to do more damage than zeny you have.
  3209. - Cleaned up skill setting code for Suiton and Kaensin
  3210. * Some cleaning of battle_drain, Evil Druid card should work now. [Skotlex]
  3211. * Made status_damage allow damaging of objects not on a map, this should
  3212. fix pet-catching making the mob never respawn again. [Skotlex]
  3213. * Casted nothl to (unsigned int) in sprintf functions, IP is 32bits and sql field the same :) [Toms]
  3214. * Fixed "warning: `list' might be used uninitialized in this function" in char/char.c@3032 [Toms]
  3215. * Fixed "uninitialized local variable 'i' used" in skill.c and "warning: suggest explicit braces to avoid ambiguous `else'" in battle.c [Toms]
  3216. * Fixed "warning: long unsigned int format, unsigned int arg" in parse_login (login_sql\login.c) [Toms]
  3217. * Fixed sign warnings in login/login.c [Toms]
  3218. * Fixed "conversion from 'double' to 'int', possible loss of data" [Toms]
  3219. * Fixed "warning: redefinition of [ushort/uint/ulong]" [Toms]
  3220. * Fixed duplicate case value on NJ_SUITON [Toms]
  3221. 2006/07/27
  3222. * Fixed a memory leak when there exists more than one user function with
  3223. the same name, added the appropiate warning when this happens. [Skotlex]
  3224. * Added reporting source file when an npc shops item's price is
  3225. exploitable. [Skotlex]
  3226. * The picklog will now record negative values for items sold to npcs.
  3227. [Skotlex]
  3228. * Added inmediate position and hp-bar update when a character joins a
  3229. party. [Skotlex]
  3230. * Added missing SC information to NPC_CHANGEUNDEAD [Skotlex]
  3231. * Added config setting party_update_interval so you can specify how often
  3232. the party-mate minidots should be updated (defaults to 1 sec). [Skotlex]
  3233. * Removed a bunch of broken comments in skill.c [Skotlex]
  3234. * Synced the script.c file with as much data as possible from jA's:
  3235. [Skotlex]
  3236. - A lot of functions were moved around, a bunch of indentation and
  3237. space-usage changes were done to make it easier to diff against their
  3238. files.
  3239. - Miscellanous addition and corrections were applied.
  3240. - Largest one is likely a restructuring of run_script_main, which hopes to
  3241. solve the memory leaks.
  3242. - script engine now uses the setjmp functions to restore memory state when
  3243. there's an error parsing scripts, which means that script errors won't
  3244. cause the map-server to inmediately bail out anymore.
  3245. - NOTE that the amount of changes is pretty extensive, so DON'T USE THIS on
  3246. a live server. Update only to help test and debug to see if the script
  3247. engine memory leaks are gone.
  3248. * Added a cleanup routine on shutdown to remove all characters from memory
  3249. for whom the save ack has not returned from the char-server yet. [Skotlex]
  3250. * Now when you set the guardian's HP, if the guardian is spawned, it's HP
  3251. will be updated accordingly (and if you set it to 0, the guardian is
  3252. killed) [Skotlex]
  3253. * Added functions status_set_hp/status_set_sp to set hp/sp to a given
  3254. value. Applied usage of these on the Berserk and Soul Change code.
  3255. [Skotlex]
  3256. * Added config setting "party_hp_mode" (battle/party.conf) which determines
  3257. method to use to update party-mate hp bars. Aegis style is to update HP
  3258. bars whenever HP changes, while eAthena style is to update it together with
  3259. the map party dots. Defaults to aegis style. [Skotlex]
  3260. * Fixed packet 0x22a having the manner and opt3 packets in inverted
  3261. offsets. [Skotlex]
  3262. * Readded the check which prevents Cloaking from activating when your
  3263. learned level is less than 3 and you aren't next to a wall. [Skotlex]
  3264. * Some cleanups to the Frenzy/Berserk status change, it should probably
  3265. work correctly now. [Skotlex]
  3266. * Removed a redeclared variable i in the parsing of the fame list (char-sql
  3267. server) which seems to be the cause of the random memory corruptions.
  3268. [Skotlex]
  3269. * Updated item_db.sql to latest. [Toms]
  3270. * Fix homunc & code cleanup [Toms]
  3271. - Timer problems on delete_timer
  3272. - Intimacy problem (overflow & new values)
  3273. - Homunc deleted if intimacy < 0
  3274. - base exp is now given to master
  3275. - Homunc sometimes not saved
  3276. 2006/07/26
  3277. * Fixed a memory leak when reading the item_db txt. [Skotlex]
  3278. * Applied the necessary changes to make @partyoption reflect it's changes
  3279. on the alt+p window. [Skotlex]
  3280. * Modified party_item_share_type config setting so that using 1 disables
  3281. item-sharing from non-mob loot (player dropped items or pet loot) and 2
  3282. enables round-robin instead of random sharing. Using 3 obviously is
  3283. enabling both 1 and 2. [Skotlex]
  3284. * Added battle_get_master which returns the master bl of a given object.
  3285. [Skotlex]
  3286. * Recoded battle_check_target to use battle_get_master, the src/target
  3287. switch has been split into two, so that actual target and master target are
  3288. seperately treated (same for source). [Skotlex]
  3289. * Added support for "sc_end -1" which will clear all status changes. Added
  3290. the constant SC_ALL so you can use in scripts "sc_end SC_ALL;" instead.
  3291. [Skotlex]
  3292. * @pettalk will now fail when muted. [Skotlex]
  3293. * Enabled changing of equipment while stunned/asleep/petrified/etc [Skotlex]
  3294. 2006/07/25
  3295. * Cleaned up run_script_main to properly free previous stack-data when
  3296. running scripts. Note that scripts may still leak memory when run by
  3297. non-players and they don't reach the "END" state, however I am not sure how
  3298. this case should be handled, so it's left as it is for now. [Skotlex]
  3299. * Added a missing ntohl call in the loginlog code. [Skotlex]
  3300. * Added a check when buying from npcs to allow buying of item_avail items.
  3301. [Skotlex]
  3302. * Fixed duel accept invite sending the packet before the duel data is set
  3303. (resulting in a packet that noone receives). Thanks to Toms for finding it
  3304. out. [Skotlex]
  3305. * Fixed a possible crash when you dual-wield and the total damage is 0.
  3306. [Skotlex]
  3307. * Added Toms's perl scripts item_db.pl and mob_db.pl (they are in tools/),
  3308. they convert the txt databases into sql. [Skotlex]
  3309. - Usage: "script" < "input file" > "output file". eg: ./tools/item_db.pl < db/item_db.txt > sql-files/item_db.sql
  3310. * Updated the sql files since now it's quick [Skotlex]
  3311. 2006/07/24
  3312. * Re-updated the mob_db.sql to latest. [Skotlex]
  3313. * Cleaned up the skill_landprotector function to correctly block only magic
  3314. skills from being placed on land protectors. [Skotlex]
  3315. * Corrected itemdb_group so that it will not return the random item givers
  3316. (should give priority to actual item groups, so that the item heal bonuses
  3317. work correctly) [Skotlex]
  3318. * Cleaned up the Mistress Card related code so that the no-gemstone bonus
  3319. reduces item requirements by one rather than totally skip them. [Skotlex]
  3320. * Cleaned up the logs "can log"function to use the IT constants. Also
  3321. corrected the "only log large amounts" setting not working on negative
  3322. values (trades). [Skotlex]
  3323. * Adjusted skill_castfix_sc so that Suffragium will get consumed even on
  3324. instant cast skills, but Memorize won't. [Skotlex]
  3325. * BladeStop will now end when either of the characters is moved (knocked
  3326. out?) around. [Skotlex]
  3327. * Moved the Zeny penalty code from respawn to pc_dead. [Skotlex]
  3328. * Added a check to prevent Deluge/Volcano/Violent Gale from being placed on
  3329. top of each other. Reverted the previous 'fix' where atk was being
  3330. increased based on armor element rather than element of attack. [Skotlex]
  3331. * Removed the noreturn mapflag check from script command warp. [Skotlex]
  3332. * Homuculus cleanup [DracoRPG]
  3333. - Replaced nullpo's in parse functions by silent checks
  3334. - Removed server-side effect for menu option 0 (view status window...
  3335. why does the client send us the packet since we don't care? -_-)
  3336. - Rewrote intimacy underflow checks so they are really effective (no
  3337. need to check if an unsigned is < 0, it won't work... check before!)
  3338. * fixed unban unblocking players as well. [Skotlex]
  3339. * Fixed Volcano/Deluge/Violent Gale increasing damage based on element of
  3340. attack instead of defense element of attacker. [Skotlex]
  3341. * Cleaned up the code of Magic Rod, fixed it not giving SP. [Skotlex]
  3342. * Moved the code of Hermod and Basilica to castend_pos2 so it should work
  3343. now. [Skotlex]
  3344. * Modified the code of Ankle Snare so the status ends on unit's time-limit
  3345. rather than when the snared object moves away. [Skotlex]
  3346. * Re-worded the water check of ST_WATER skills. [Skotlex]
  3347. * Allowed sc-cast reductions to be processed even when cast-time is instant
  3348. (to let suffragium end even on instant-cast skills) [Skotlex]
  3349. 2006/07/23
  3350. * Modified setting skillrange_by_weapon (skill.conf) to be a
  3351. per-object-type setting instead of yes/no. The default now is that
  3352. weapon-based skills will take the attacker's range for non-players.
  3353. [Skotlex]
  3354. * Changed the default of skillrange_by_distance to include homunculus.
  3355. [Skotlex]
  3356. * Fixed buildin_isequip not working correctly with non-cards. [Skotlex]
  3357. 2006/07/22
  3358. * Updated mob_db.sql to latest. [Skotlex]
  3359. * Applied Toms's suggested corrections to homun code. [Skotlex]
  3360. * Corrected Cannibalize/Marine Sphere ignoring the selected summon spot.
  3361. [Skotlex]
  3362. * Fixed looting pets ignoring the item pick-up priority of other players.
  3363. [Skotlex]
  3364. * Should have fixed a signess warning in login txt. [Skotlex]
  3365. 2006/07/21
  3366. * Added blocking of @me when muted or in berserk status. [Skotlex]
  3367. * Corrected the @follow timer not being deleted on logout. [Skotlex]
  3368. * Applied the homunculus code fixes provided by Toms. [Skotlex]
  3369. * battle_check_target will now tag homunculus as invalid target when the
  3370. source is a skill-type object. [Skotlex]
  3371. * Added a check on pc_equipitem so that when the client specifies to equip
  3372. a weapon on the right hand when the left hand is available, the weapon will
  3373. be sent to the left hand instead (when dual-wielding is possible,
  3374. obviously). Same for the left/right accessories. [Skotlex]
  3375. * Added the necessary checks so that Suiton makes Fogwall have double
  3376. duration, and to make water-requiring skills to consume their cells.
  3377. [Skotlex]
  3378. * Corrected the loadmap event description to specify that the mapflag
  3379. required is actually "loadevent", NOT "loadmap"! [Skotlex]
  3380. * Now when the char-txt server does not finds a requested party, it will
  3381. clear out said party id of all characters (will help prevent massive
  3382. spamming/overhead when for some reason the party file needs to be deleted).
  3383. [Skotlex]
  3384. * Combo skills (inf = self, inf2 = no target self) no longer check range if
  3385. you use them while your attack-timer is still active. [Skotlex]
  3386. * Added back a map_freeblock call in skill_delunitgroup which caused a
  3387. memory leak when removed... [Skotlex]
  3388. * Added a check to prevent Blind from ending while standing on a fog of
  3389. wall. [Skotlex]
  3390. * The mob Slave ai will be executed now even when the slave has a target.
  3391. This will allow for "instant" warping to the master when it changes maps or
  3392. teleports. if the slave has a target already, it won't unlock it and chase
  3393. back to the master or anything like that. [Skotlex]
  3394. * Removed a couple of checks that prevents item ids above 20000. However,
  3395. remember that the max id is still ~32k or the client is the one who's gonna
  3396. crash! [Skotlex]
  3397. 2006/07/20
  3398. * Added source reporting when you do an invalid int&str or str&int
  3399. operation on a script. [Skotlex]
  3400. * Fixed the intif party creation packet having the incorrect size sent,
  3401. hence causing the leader's level to be read as garbage (which caused the
  3402. "impossible to even share" bug). [Skotlex]
  3403. * Added pc_check_weapontype to do a proper skill weapon check that takes
  3404. into account dual-wielding. That is, if a skill can be used with
  3405. daggers/axes, you'll be able to use the skill when dual-wielding them.
  3406. [Skotlex]
  3407. * Corrected Cloaking level 1-2 not letting you move across walls. [Skotlex]
  3408. * updated cloaking code so that when you set "enable cloaking without
  3409. walls", the code will consider you as "always next to a wall", thus you get
  3410. the wall-speed bonus always. [Skotlex]
  3411. * Applied the fix to homunculus name saving... [Skotlex]
  3412. * Added battle config settings agi_penalty_target and vit_penalty_target,
  3413. they define which object types will get vit/flee reductions when
  3414. multi-targetted and defaults to only players (battle/battle.conf) [Skotlex]
  3415. * Added the dummy intravision case for the changeoption packet 0x229
  3416. [Skotlex]
  3417. * Corrected Fog of Wall so that all targetted offensive skills (not only
  3418. those who do damage) will fail on cast-end 75% of the time. [Skotlex]
  3419. * corrected @homlevel up and one entry in the homun exp table as reported
  3420. on the forums by Albator. [Skotlex]
  3421. * Added the SQL fix to Homunculus skill learning/saving bug [DracoRPG]
  3422. * Added a status_check_skilluse on skill_attack_area call to prevent splash
  3423. damage skills from hitting hidden/trickdead/etc characters. [Skotlex]
  3424. * Corrected fog of wall to behave as best known currently: [Skotlex]
  3425. - Only takes effect when targetting a character inside it
  3426. - -50hit/-75% damage when using normal-ranged attacks
  3427. - -25% damage from all damage skills
  3428. - 75% chance of all targetted damage skills of failing.
  3429. * Should have fixed @refine applying multiple times to equipment that uses
  3430. multiple equip slots. [Skotlex]
  3431. 2006/07/19
  3432. * Fixed the inf code update breakage which was blocking all offensive
  3433. skills. [Skotlex]
  3434. * Added battle setting homun_critical_rate (defaults to 0) [Skotlex]
  3435. * Removed enemy_str/pet_str/enemy_perfect_flee and replaced them with
  3436. enable_perfect_flee which specifies which objects can have perfect flee and
  3437. enable_baseatk which specifies which objects can have a base attack value
  3438. (both in battle.conf) [Skotlex]
  3439. * Modified the targetted skill logic to enable offensive skills to be
  3440. targetted at party/guild members if the appropiate inf2 value is set.
  3441. [Skotlex]
  3442. * Added checks to make adding items to inventory/cart fail when a char is
  3443. in finalsave state. [Skotlex]
  3444. * Fixed parse_names on irc.c crashing when receiving a null argument.
  3445. [Skotlex]
  3446. * Modified the parsing of the names line, since some servers will send @
  3447. instead of = when separating the information. [Skotlex]
  3448. * Fixed the homun creation sql statement. Why noone else did so before?
  3449. [Skotlex]
  3450. * When enabling/disabling hiding/unhiding an npc, if the npc is a warp, it
  3451. will use clearchar and spawn packets instead of changeoption. Thanks to
  3452. Toms for the fix. [Skotlex]
  3453. * Corrected Trim chars to block 'enter', as explained by the Ultra mage.
  3454. [Skotlex]
  3455. * When the client passes account version 0, the login server will set it to
  3456. 1 now. [Skotlex]
  3457. * Corrected the HP bar scaling when HP is above Short Max. It should
  3458. display fine for any HP value now. [Skotlex]
  3459. * Added a check when the mob's adelay is shorter than the amotion, in which
  3460. case the adelay will be changed to the amotion value. [Skotlex]
  3461. * Some minor mapflag changes. [MasterOfMuppets]
  3462. 2006/07/18
  3463. * Added atcommand @partyoption, lets you alter the party item-distribution
  3464. type on the go. Usage is "@partyoption <pickup share> <item distribution>",
  3465. where both arguments can be 0/1, yes/no, etc. [Skotlex]
  3466. * Updated @changeleader and @partyoption to use msg_Athena entries.
  3467. [Skotlex]
  3468. * Added character 013 (enter) to the list of characters that are always
  3469. removed from new character names. [Skotlex]
  3470. * Fixed a crash when trying to extend TK's infinite combo feature. [Skotlex]
  3471. * Corrected Poison React to counter regardless of distance, and to use the
  3472. skill's 50+5*lv% counter chance (instead of 100%). [Skotlex]
  3473. * Corrected Venom splasher's splash damage [Skotlex]
  3474. * You now can't move/attack/use-skills when using Cloaking of a level less
  3475. than 3 [Skotlex]
  3476. * Fixed compilation of mercenary.c [Skotlex]
  3477. * Corrected Fog of Wall's "targetted spells fail 75% of the time" feature
  3478. by making it behave like GTB, that is, you just get a skill-failed on
  3479. cast-end, no skill-animation at all. [Skotlex]
  3480. * Added a proper check to make aggressive mobs never override homun targets
  3481. regardless of distance. [Skotlex]
  3482. * Removed a bunch of homun-related variables that are not needed at all.
  3483. The alive condition is removed, now the code checks for the hp value to
  3484. know if the homun is alive or not. [Skotlex]
  3485. * Cleaned up a bit the skill-id function, homun skill checks (such as delay
  3486. and skill-lv learned) should be correct now. [Skotlex]
  3487. * Added a proper check to make aggressive mobs never override homun targets
  3488. regardless of distance. [Skotlex]
  3489. * Fixed giving the 100% damage bonus when no-splash-targets are found in
  3490. the blown path to Grandcross instead of Bowling Bash. Bowling Bash damage
  3491. equation becomes then +50*lv% rather than +40*lv% when there's no
  3492. splash-damage (the 50*lv% figure is custom, all we know is that level 10
  3493. does 600% instead of 500% damage). [Skotlex]
  3494. 2006/07/17
  3495. * Updated mob_db.sql to current mob_db.txt data. [Skotlex]
  3496. * The char-server will allow off-line character saves when said char is
  3497. tagged for final-save (this is the scenario when the char-map reconnect).
  3498. [Skotlex]
  3499. * Should have fixed the Cart Termination damage code to be scaled correctly
  3500. when you change the max cart weight. Thanks to The Ultra Mage for the error
  3501. clarification. [Skotlex]
  3502. * Implemented Grandcross weird property where if there's noone on the path
  3503. it'll hit twice for the skill's reported damage, and when there is (or you
  3504. can't knockback the target) it'll do a splash attack that hits twice for
  3505. 500% to all affected targets. [Skotlex]
  3506. * Some cleaning of the combo code. TK Rankers will now get their combo-time
  3507. extended each time they trigger a kick, enabling them to do "unlimited
  3508. combos". [Skotlex]
  3509. * Modified the autosave function to use a sweep across the player db
  3510. instead of across connected clients. This will cause non-connected players
  3511. (like autotraders) to also be saved on a regular interval, may help with
  3512. possible data-loss from said characters on unclean shutdowns. [Skotlex]
  3513. * Removed the code that forces aggressive mobs to go after a Homun instead
  3514. of their master (no reason why there should be such a condition). [Skotlex]
  3515. * Some sign quest map flag updates [MasterOfMuppets]
  3516. * atcommand_follow is now more verbose. [Adam]
  3517. * Manually added int_homun.c to the VS8 char_sql project, *should* work [DracoRPG]
  3518. * Orn's fix to the very critical skill level up bug [DracoRPG]
  3519. * Updated mob_db.sql to current mob_db.txt data. [Skotlex]
  3520. * Added Orn's lil fix on homun [Vicious]
  3521. * Added Homunculus system, enjoy! [orn aka Nylou]
  3522. - WARNING: This currently only works with the SQL version, as the TXT char-server
  3523. has no code for it at the moment. You TXT server won't break, but the char-server
  3524. will complain of an unknown packet if you try to get an Homunculus
  3525. * Updated nomemo mapflags based on info from http://ro.doddlercon.com/images/memo.jpg [Poki#3]
  3526. 2006/07/15
  3527. * Small change in conf/battle/player.conf to say that 199 is max aspd allowed
  3528. (Haplo says that there are many reports of having over 200 is giving errors) [Evera]
  3529. 2006/07/13
  3530. * Kaahi no longer shows the heal effect to everyone. [Skotlex]
  3531. * Eska no will cause defense to change randomly every second. [Skotlex]
  3532. * Tuned up some more NJ_KAENSIN based on Tharis's information. [Skotlex]
  3533. * Corrected NJ_KAENSIN as per description. [Skotlex]
  3534. * Fixed a leaking map_freeblocklock on skill_del_unitgroup. [Skotlex]
  3535. * Changed the default save interval to 5 minutes. Added support for
  3536. specifying fixed save-intervals by using negative values. [Skotlex] EG:
  3537. - Save interval set to 300 (5 minutes): all characters will be saved in
  3538. equal time-slots, so that everyone is saved every 5 minutes regardless of
  3539. number of players online.
  3540. - Save interval set to -1000 (1000 ms): One character will be saved every
  3541. second, regardless of amount of characters online.
  3542. The new fixed-time-slots method is meant for larger servers, so that they
  3543. can control the saving-induced stressed on the char-server.
  3544. * Fixed @storeall and @charstoreall failing when the target character
  3545. already had the storage open. [Skotlex]
  3546. * Reverted temporarily the Cart Termination equation until it can be
  3547. fixed... [Skotlex]
  3548. * Fixed script command "recovery". [Skotlex]
  3549. 2006/07/12
  3550. * Fixed a small typo in my code [Zido]
  3551. * Added negative value in bonus exploit fix for more stat bonuses [Zido]
  3552. * Fixed exploit in pc_bonus there are no checks that check that the value being
  3553. added onto a status don't make it go below zero, which means if you have a mineral
  3554. card and reset stats it reduces your base attack to lower than zero, making it
  3555. go up to 64000. Fixed by adding a check for SP_BASE_ATK, although i recommend
  3556. doing it for other status bonuses also [Zido]
  3557. * Recoded NJ_BAKUENRYU to behave as I understand it best from the
  3558. skill-description (since Haplo told me this skill doesn't really has video
  3559. information or anything...) [Skotlex]
  3560. * Fixed NJ_TATAMIGAESHI to use ground-tiles rather than "for each in path"
  3561. calls. The skill should be working correctly now, except for the fact that
  3562. the correct "unit id" is missing (this is what would give the ground tile
  3563. it's correct display). Temporarily it is using 0xba until the correct value
  3564. is found. [Skotlex]
  3565. * Added back the undead check to turn undead/resurrection to prevent
  3566. damaging non-undead targets, removed it from the battle damage section.
  3567. [Skotlex]
  3568. * Resurrection will now silently fail when used on non-undead + not-dead
  3569. characters. [Skotlex]
  3570. * Poem of bragi/magic String's base delay reduction at level 10 (or above)
  3571. is now 50% instead of 3*lv%. [Skotlex]
  3572. * status_damage will no longer fail when the target is not on a map AND the
  3573. flag is 2 (charge rather than damage). Fixes SP-draining status changes
  3574. ending suddenly when in-between maps. [Skotlex]
  3575. * Fixed the IP value being apparently incorrectly casted before inserting
  3576. into the loginlog table on "connect success" events. [Skotlex]
  3577. * Fixed Cart Termination's damage. [Skotlex]
  3578. * Added the missing check to remove character from memory when logging out
  3579. and using the charsave_method which saves character map-server-side.
  3580. [Skotlex]
  3581. 2006/07/11
  3582. * Fixed inverted check which was preventing you from buying more than 1
  3583. from any stackable item.... [Skotlex]
  3584. * Should have fixed the crash in intif gm message... [Skotlex]
  3585. * Fixed GTB card only working while you had a status-change active.
  3586. [Skotlex]
  3587. * Fixed being unable to compound cards in armor. [Skotlex]
  3588. * Made @monsterignore be an universal ignore. Means you cannot be targetted
  3589. as an enemy by anything. Also added alias "@battleignore" which does the
  3590. same as monsterignore. [Skotlex]
  3591. * Fixed magic power setting your min matk as max-matk. [Skotlex]
  3592. * Modified the packets involved in @fakename in hopes it'll refresh
  3593. correctly on nearby clients now. [Skotlex]
  3594. * Fixed clif_parse not checking for func_parse before sending data to the
  3595. connected clients. This in turn required various code-rewrites in: [Skotlex]
  3596. - duel related messaging functions (added clif targets DUEL/DUEL_WOS).
  3597. - intif whisper to gm function
  3598. - day/night timers
  3599. - Rewrote the parse_console function to stop allocating/deallocating memory
  3600. on every call.
  3601. - Modified chrif_charselectreq to receive the player's ip among the data.
  3602. * Added function clif_disp_message, which is the same as
  3603. clif_disp_onlyself, except you can specify the targets (it sends a
  3604. guild-chat packet) [Skotlex]
  3605. * Fixed the subele bonus (elemental reduction) being applied to the element
  3606. of the attacker instead of the element of the attack. [Skotlex]
  3607. * mob skills now won't trigger on unit_stopwalking calls. [Skotlex]
  3608. * Coded @reset. [Skotlex]
  3609. * Reenabled @changesex [Skotlex]
  3610. * Added function pet_create_egg which handles creating pet eggs correctly
  3611. (when passed item id is indeed a valid petegg). Applied this on @createitem
  3612. and getitem. [Skotlex]
  3613. * Cleaned up code of @item [Skotlex]
  3614. * Cleaned up the itemdb_isequip functions. itemdb_isequip will now return
  3615. if the item is equipable by players, itemdb_isstackable returns if the item
  3616. can be stacked, and itemdb_isidentified returns if the item should drop
  3617. identified. [Skotlex]
  3618. * Added defines CARD0_PET/CARD0_FORGE/CARD0_CREATED to identify if a given
  3619. item has "invalid" cards, added define function itemdb_isspecial to
  3620. simplify this check. [Skotlex]
  3621. * Removed itemdb.c considering item ids above 20000 as invalid. [Skotlex]
  3622. * Cleaned up script commands getitem and card-counting related ones.
  3623. [Skotlex]
  3624. * Cleaned up a bit more pc_isequip [Skotlex]
  3625. * Added script function warpportal(x,y,targetmap$,targetx,targety).
  3626. This creates warp portals as in the skill unit as a volatile alternative
  3627. to static warp portals. [blackhole89]
  3628. * Modified the login-sql server to do the ip-ban check only on the
  3629. auth-packets instead of on every packet. [Skotlex]
  3630. 2006/07/10
  3631. * Corrected Warp Portal being unable to warp people who are standing on it
  3632. on the moment it triggers. [Skotlex]
  3633. * Fixed @follow stopping the moment you are warped. [Skotlex]
  3634. * Fixed pc_additem messing with the equip field of the passed item data.
  3635. Fixes the famous "equip stuff on your arrow slot" bug. [Skotlex]
  3636. * Fixed cart-termination crashing the server if you used level 16 of it.
  3637. [Skotlex]
  3638. * Fixed check_connect_login_server check in char-sql server. Fixes
  3639. char-server not reconnecting to the login server. [Skotlex]
  3640. * Login-sql server will no longer change an account's state to "7" when
  3641. banning a player. This should fix being able to use @ban to clear out a
  3642. @blocked player. Players will now be identified as banned only through the
  3643. banned-until timestamp. [Skotlex]
  3644. * Fixed a crash when using Gospel... [Skotlex]
  3645. * The on-place function won't be invoked on setting ground skills if the
  3646. group's tick is greater than the current tick. As Buuyo pointed out, this
  3647. should fix Sanctuary and Gospel taking effect inmediately instead of after
  3648. "x" amount of ms as they should. [Skotlex]
  3649. * Added login-char packet 0x2737. Sets all characters offline (login-server
  3650. side). [Skotlex]
  3651. * Cleaned up char server "set all offline" implementation to remove only
  3652. characters from the map-server from which the packet was invoked. It will
  3653. also now correctly kick/set-character offline from the map-server if they
  3654. are connected. [Skotlex]
  3655. * Cleaned up the char-sql reconnect code. It no longer sets everyone to
  3656. offline. [Skotlex]
  3657. * Removed setting "kick_on_disconnect", servers will no longer kick
  3658. characters out when there's a disconnection. Instead, it'll use the most
  3659. logical approach: Set characters into a "lost" state when there's a
  3660. disconnection, on reconnect, resent the list of online-characters, do a
  3661. sync, and let the difference be characters to be removed. Also, the
  3662. map-server won't release character data until it's saved and the ack
  3663. returns from the char-server to prevent data loss (all this data is resent
  3664. on reconnect for saving anyway). [Skotlex]
  3665. * Added a check in pc_equipitem so that when switching weapons and you have
  3666. the skill_range_by_weapon setting active, the skill info block (which
  3667. includes range) will be resent when the new weapon to equip has a range
  3668. different than the previous one. [Skotlex]
  3669. * One closer inspection, removed that clear in itemdb_reload for a foreach
  3670. call again. And modified itemdb_load to scrap the dummy item entry from the
  3671. item_db and replace it with proper data for the item. [Skotlex]
  3672. * itemdb_reload will clear the itemdb before reloading info instead of only
  3673. clearing the scripts now. [Skotlex]
  3674. * Some cleaning of skill_castend_pos2, fixed Gospel, and a
  3675. map_freeblock_unlock misplacement. [Skotlex]
  3676. * Sense/Estimation will now display the mob info window to all party
  3677. members in the same map. [Skotlex]
  3678. 2006/07/08
  3679. * Fixed the new addeff structure not working well with SC_STONE (because
  3680. SC_STONE is 0, which was by default not handled as a valid value).
  3681. [Skotlex]
  3682. * Added back the TF_MISS walking speed bonus to assassin type classes (how
  3683. did that got lost?) [Skotlex]
  3684. * Fixed mobinfo displaying exp as signed ints rather than unsigned.
  3685. [Skotlex]
  3686. * Added status_check_visibility to check if an object is within range of
  3687. view of another. Nothing more, nothing less. It's used by unit movement to
  3688. check whether you can continue chasing your target or not when the "chase
  3689. target" directive is given. [Skotlex]
  3690. * Fixed the char table having party/guild_id as smallint when they need int
  3691. there. Thanks to hermematon for pointing it out (use svn_ugprade7580.sql)
  3692. [Skotlex]
  3693. * Applied k3dt fixes to pet-hatching, ice-wall check, and wedding skills.
  3694. [Skotlex]
  3695. * Fixed endow skills calling the skill no damage packet twice. [Skotlex]
  3696. * Fixed a crash on warpwaitingpc when the chat-room is empty. [Skotlex]
  3697. 2006/07/07
  3698. * Fixed the Warm Skills [Skotlex]
  3699. * Removed the debug message when a player logs out and is removed from
  3700. memory, it is working fine (tested normal logging off and autotrade). [Skotlex]
  3701. * Corrected the pet-armor field of the pet not being updated on
  3702. equip/unequip of accessories, making them not show up inmediately. [Skotlex]
  3703. * Status_calc_bl will no longer stop you from attacking/walking when the
  3704. mode is changed unless the new mode no longer includes
  3705. "can-attack"/"can-move" respectively. [Skotlex]
  3706. * Should have fixed clif_item_sub to properly store pet egg/armor data.
  3707. There should be no more "random refine levels" bugs related to these.
  3708. [Skotlex]
  3709. * itemdb_exists will now return NULL for item_id 0. [Skotlex]
  3710. * Added a check to free a character from memory when changing map servers.
  3711. [Skotlex]
  3712. * Okay, added a chrif_save_ack packet to the char-server so now the map
  3713. server will know once a character was "final saved", and only then the
  3714. character will be removed from memory. On char-server reconnection, all
  3715. chars that are in final-save state are resent to save (if they are still in
  3716. memory, it's because the ack hasn't gotten here from the char-server). This
  3717. should effectively block all dupe problems due to heavy inter-server lag,
  3718. however as it's untested, it currently prints some debug messages when
  3719. people are saved and then removed from memory. Need testers so this can be
  3720. debugged and merged to stable! [Skotlex]
  3721. * Now, when the login-char connection is cut, the char-server won't set
  3722. everyone offline on reconnect, instead it will send the list of online
  3723. accounts to the login server. [Skotlex]
  3724. * Modified the error on the char-sql server to set chars online when it
  3725. receives a save packet from a character tagged as offline (until it can be
  3726. figured out why this is happening) [Skotlex]
  3727. * Fixed signed/unsigned comparison issues in the char txt/sql server.
  3728. [Skotlex]
  3729. * Fixed the cooking success chances. Thanks to Ishizu Chan. [Skotlex]
  3730. * Added a temporary band-aid to prevent executing the script of non-arrows
  3731. when they are equipped on the arrow-slot (until the actual cause of why
  3732. pc_unequipitem is not working correctly is discovered/fixed) [Skotlex]
  3733. 2006/07/06
  3734. * Modified the party_data structure on the map server to remove some
  3735. redundant data. Added a party_data structure on the char-server to hold a
  3736. more complete set of information about parties. Added to the party_member
  3737. structure the class of each member so that the map server can do the
  3738. appropiate checks even if the character is on another mapserver/offline.
  3739. Due to the format changes in the party structure, txt servers will have to
  3740. wipe their party file... (sql save format has not been changed) [Skotlex]
  3741. * Added function char_family to check if there's a family state given the
  3742. three character ids, instead of doing individual checks all the time.
  3743. [Skotlex]
  3744. * Rewrote all the item restriction functions so that they will take into
  3745. account slotted card restrictions as well. [Skotlex]
  3746. * Added no_skill_delay setting, when set, affected object types will have
  3747. the minimum skill delay for all skills. Defaults to mobs, since they
  3748. don't have skill delays. [Skotlex]
  3749. * Cleaned up pc_equipitem. When dual wielding or equipping accessories, if
  3750. the client actually specifies one of the two positions, it will be taken
  3751. into account (now, does the client actually does this?) [Skotlex]
  3752. * Fixed GrandCross and similar skills. [Skotlex]
  3753. * FogWall will now also affect the caster. [Skotlex]
  3754. 2006/07/05
  3755. * Updated NJ_KAENSIN by Saycyber21 [Vicious]
  3756. * Updated @refine to take account of MAX_REFINE, thanks to Omega... GM
  3757. Designer. [Skotlex]
  3758. - Also optimized the @refine loop for better performance.
  3759. 2006/07/04
  3760. * Fixed compile issue for NJ_BAKUENRYU, by Saycyber21. [Vicious]
  3761. * Implemented Saycyber21's some NJ work. Untested. :D [Vicious]
  3762. * Implemented cooking chances. Chance of success is 70% - 7*(dish-lv)% +
  3763. 12*(cooking set-lv)%. Exception: When using the legendary cooking set,
  3764. success chance is 100% regardless of dish. [Skotlex]
  3765. * Added battle config setting emergency_recall, specifies behaviour of that
  3766. skill (skill.conf): 0 - Disabled. 1 - can't be used in nowarpto maps. 2 -
  3767. Can be used everywhere. [Skotlex]
  3768. * Removed the NPC/Dance/Song inf2 check of AbraCadabra. whether a skill can
  3769. come out or not is entirely decided by the abra db file now. [Skotlex]
  3770. * Added structure s_addeffect to handle status change additions. Cleaned up
  3771. relevant code. It is now possible to specify ANY status change, not just
  3772. the basic ones. NOTE that the code is proof-read, but untested! [Skotlex]
  3773. * Added support for bonus3 bAddEff/bAddEffWhenHit as follows: [Skotlex]
  3774. bonus3 bAddEff/bAddEffWhenHit, <SC value>, <rate>, <target flag>.
  3775. Target flag is 0: Self. 1: Enemy. 2: Both.
  3776. * Added these descriptions to doc/item_bonus.txt [Skotlex]
  3777. * Added a check when joining a chat to make sure the target object is of
  3778. type BL_CHAT. [Skotlex]
  3779. 2006/07/03
  3780. * Cleared up the bAutoSpellWhenHit description in doc/item_bonus.txt
  3781. [Skotelx]
  3782. * Fixed Phantasmic Arrow and Magical Bullet not being correctly tagged as a
  3783. ranged arrow-type attack. [Skotlex]
  3784. * Updated help.txt and help2.txt, thanks to Inuyasha for providing the
  3785. updated files. [Skotlex]
  3786. * Char-server SQL won't perform the reconnect cleanup routines when
  3787. kick_on_disconnect is disabled. [Skotlex]
  3788. * Renamed summons_inherit_effects to summons_trigger_autospells as the
  3789. setting now only makes the attacks of the slaves trigger the autospells of
  3790. the master (as it should be). [Skotlex]
  3791. * Corrected code capping no_spawn_on_player to 50 when the max should be
  3792. 100. [Skotlex]
  3793. * Warmth will dispel when warping now (or else the effect is left on the
  3794. ground) [Skotlex]
  3795. * Fixed reading of the refine_db not working right when MAX_REFINE is
  3796. increased from 10. [Skotlex]
  3797. * Some more cleaning to the implementation of Abracadabra [Skotlex]
  3798. * Fixed a compile warning in login sql/txt [Skotlex]
  3799. * Fixed pc_makesavestatus not setting your logout position. [Skotlex]
  3800. * Fixed two dances becoming BA_DISSONANCE instead of DC_UGLYDANCE.
  3801. [Skotlex]
  3802. * Added the missing +100% damage modifier of Enchant Deadly Poison.
  3803. [Skotlex]
  3804. * Fixed SkillStatusChangeTable not working correctly for Homun/Guild
  3805. skills. [Skotlex]
  3806. 2006/06/30
  3807. * Fixed a typo in msg_athena.conf, "This item cannot be drop" -> "This item cannot be dropped" [MasterOfMuppets]
  3808. * Added a check to prevent equipped items from being traded. [Skotlex]
  3809. * Added UF_SONG (0x400) to differentiate songs from dances. [Skotlex]
  3810. * Added preliminar support for making a Song+Dance turn into BA_DISSONANCE
  3811. cells. Beware of potential bugs as it's untested. [Skotlex]
  3812. * Added mapflag "nochat" to prevent chatting rooms from being created.
  3813. [Skotlex]
  3814. * Corrected some of the sleep checks when the char id does not matches with
  3815. the char-id expected by the script engine. [Skotlex]
  3816. * Cleanup in itemheal related code, fixed the item heal group bonus not
  3817. working on Groups beyond 7. [Skotlex]
  3818. * Fixed pet's loot not being moved to your inventory on logout. [Skotlex]
  3819. 2006/06/29
  3820. * Made the map server send list of characters online to the char-server on
  3821. reconnection regardless of "kick_on_disconnect" setting, as otherwise, a
  3822. temporary disconnection would make the char-server tag all characters
  3823. offline and refuse to save them afterwards. [Skotlex]
  3824. * Fixed guild storage being "eternally in use" if you quit/logout before
  3825. closing it. [Skotlex]
  3826. * Ending SC_CLOAK/SC_HIDE/SC_CHASEWALK will now trigger ontouch npcs.
  3827. [Skotlex]
  3828. * [Fixed]
  3829. - Scripting system screwing up script position after mixing timers with menus.
  3830. - NPC attached AI mobs display as alive when dead.
  3831. - View data not updating after buildin_unitdeadsit.
  3832. [Improved]
  3833. - NPCE_LOADMAP to execute after all (area) objects are sent to the player.
  3834. - Simplified scripting system. sd will now use pointer to the script state itself.
  3835. [Lance]
  3836. 2006/06/28
  3837. * changed:
  3838. dynamic_pass_failure_ban_how_many:from 3 to 7
  3839. dynamic_pass_failure_ban_how_long:from 60 to 5
  3840. as in official servers. [Musashiden]
  3841. * Added a check in script command "set_option" so that invoking
  3842. "set_option(0)" removes Cart/Peco/Falcon, as expected by scripts. [Skotlex]
  3843. * Added trade-range check on trade start. [Skotlex]
  3844. * Added inf2 4096 (INF2_ALLOW_ENEMY) which is to be used in conjunction
  3845. with INF2_PARTY_ONLY/INF2_GUILD_ONLY when said skill should ALSO be allowed
  3846. to be used on enemies. [Skotlex]
  3847. * Cleaned up a bit the code for @item [Skotlex]
  3848. * Fixed character/storage being sent to be saved TWICE when you logged out
  3849. while the storage is opened. [Skotlex]
  3850. * Added save_settings map config. Specifies after which events do
  3851. characters get saved (defaults to all): 1 - Trade successful, 2 - Vending
  3852. transaction, 4 - Closing storage/guild storage, 8 - hatching a pet.
  3853. [Skotlex]
  3854. * Changed the mob drop rate adjust function to receive a signed int
  3855. argument. Probably will fix those drops with 0% becoming 100% [Skotlex]
  3856. * Corrected Musical Strike having a different damage equation from Throw
  3857. Arrow. [Skotlex]
  3858. * Added state rewarp to players. It gets set when a pc_setpos call is
  3859. triggered while the player is changing maps so that when the player finish
  3860. loading the map, it is inmediately rewarped to where it has been
  3861. rewarped/recalled to. [Skotlex]
  3862. 2006/06/27
  3863. * Map server will now resent the whole list of online characters to
  3864. char-server on reconnect when the kick_on_disconnect setting is active.
  3865. [Skotlex]
  3866. * Cleaned up and optimized the IP sync code. New login_athena config
  3867. setting sync_ip_interval specifies how often to sync the ip. The default is
  3868. 0 (disabled). [Skotlex]
  3869. * Added mapflag "loadevent", now load-map script events will ONLY trigger
  3870. on maps with this mapflag on, rather than every map. [Skotlex]
  3871. * High Jump can now be used in all versus maps. [Skotlex]
  3872. * Added Kaite's opt3 value, taken from jA [Skotlex]
  3873. * Added state dirty == 2 to storages. Signals when a storage was sent for
  3874. final saving. Said storage is removed from memory after the ack from the
  3875. char-server, and they are sent to save if the map/char servers reconnect
  3876. before the ack arrives. In short: they are guaranteed to be saved after a
  3877. char logs out. [Skotlex]
  3878. * Put pay_arche.gat in the "no experience lost" mapflag file. [MasterOfMuppets]
  3879. 2006/06/26
  3880. * Corrected the element of hunter traps. [Skotlex]
  3881. * Deadly Poison now also reduces def2 by 25% [Skotlex]
  3882. * Cleaned up a bit skill_moonlit, Moonlit Petals should work correctly now.
  3883. [Skotlex]
  3884. * Fixed @mi displaying always 0 instead of the mob's class. [Skotlex]
  3885. * Rough implementation of Ground Drift according to description and jA
  3886. info. [Skotlex]
  3887. * Implemented Tatami Gaeshi using skill description and jA implementation
  3888. for reference. [Skotlex]
  3889. * Merged Mitternacht's max_heal/max_heal_lv config settings. [Skotlex]
  3890. * Removed support of packet 0xc3 on the new packet versions. Thanks to
  3891. Meruru for pointing out they aren't being used anymore. [Skotlex]
  3892. * Autospells will now again check for the skill's nk value, so that skills
  3893. tagged "nodamage" skills will not trigger autospells. [Skotlex]
  3894. * Corrected clif_item_sub so that pet eggs will correctly be sent as
  3895. equipment (fixes them showing up "broken" and with random refine levels)
  3896. [Skotlex]
  3897. * [Added]:
  3898. - buildin_unitkill just for kicks. [Lance]
  3899. 2006/06/23
  3900. * [Optimized]:
  3901. - Setting of variables with defined scope in some frequently executed script
  3902. events.
  3903. [Added]:
  3904. - Missing script_require_trigger flags for some power hungry events.
  3905. * Updated mob_db.sql and item_db.sql to latest. [Skotlex]
  3906. * Modified pc_setoption so that it will correctly update sprite AND clothes
  3907. color when mounting/unmounting changing into/from xmas/wedding sprites.
  3908. [Skotlex]
  3909. * Allowed itemdb_exists to return the dummy item. Enables "invalid" items
  3910. to be sold, traded, dropped, etc. [Skotlex]
  3911. * Corrected ASC_BREAKER. Int-based damage is applied after attribute fixes
  3912. and before card reductions. The skill now completely disregards left
  3913. hand weapon. [Skotlex]
  3914. * Standarized PF_MEMORIZE to be 50% cast time on all skills (instead of
  3915. -50% for targetted skills and -66% for ground skills >.>) [Skotlex]
  3916. * Cleared up the comment on what item_check does and how it works.
  3917. [Skotlex]
  3918. * Changed setting for skill_nocast flag 16. It is no longer a "pk-mode map"
  3919. setting, it's now a clone-forbidden skill. That is, skills with the flag 16
  3920. will never be copied by clones. If you use a PK-mode server, use flag 2 now
  3921. to forbid skills from common maps. [Skotlex]
  3922. * Default skills from not being cloned are Magnus Exorcism and Turn Undead.
  3923. * The map search free cell will now use the size of the map # of tries
  3924. before giving up when the spawn area is the whole map. Added a check to
  3925. inmediately give up when the number of spawn retries has reached the max
  3926. specified (no_spawn_onplayer = 100). [Skotlex]
  3927. * Cleaned up a bit the clone code to account for the unit flags
  3928. UF_NOPC/UF_NOMOB when the skill is not ground-based (accounts for self
  3929. skill that causes a ground-tile to be placed, like Dances). [Skotlex]
  3930. * Added pc_bonus_autospell_del, gives support for removing autospell
  3931. effects. When a negative rate is specified, it will decrease the chance of
  3932. casting (eg: You have two different cards with autospell Heal +20% each,
  3933. then do autospell -30. The second card will be cancelled, and the first one
  3934. will become Heal +10%) [Skotlex]
  3935. * npc_timers now will not restore the previous timer data when there's no
  3936. players attached (when it's strictly an npc timer). This should reenable
  3937. the old behaviour of getnpctimer returning the total ellapsed time since
  3938. "startnpctimer" even after the last label has been reached. However, this
  3939. behaviour won't apply to player-attached timers. [Skotlex]
  3940. * [Fixed]:
  3941. - MAPREGSQL overloading SQL table with temperory map registries.
  3942. - Incorrect perfomance calculation for MAPREGSQL loading and saving. [Lance]
  3943. 2006/06/22
  3944. * Guessed and added support for the packets 0x22a (idle) and 0x22b (spawn).
  3945. This should complete the required packets for PACKETVER 7. [Skotlex]
  3946. * Added support for the PACKETVER 7 packets in the "dummy" current
  3947. intravision implementation. [Skotlex]
  3948. * Fixed @autoloot being off by 0.01% when entering a manual value.
  3949. [Skotlex]
  3950. * Restored the "Secret" behaviour of Blast Mine and Claymore Trap where
  3951. each target is hit N times (where N is the number of mobs in the splash
  3952. area at the moment of triggering). [Skotlex]
  3953. * Updated the tools/stackdump script to also handle sig-plugin generated
  3954. backtraces. Now it will also auto-determine whether the exe needs a .exe at
  3955. the end or not. Help me test it as I want this script on stable NOW :X
  3956. [Skotlex]
  3957. * Usage is "stackdump <login/char/map> <txt/sql> [number]". When a number
  3958. is given, sig-plugin stackdumps are assumed, otherwise it parses the normal
  3959. stackdump as before. [Skotlex]
  3960. * Corrected autoloot so that you can specify rate with decimal precision
  3961. ("@autoloot 0.01" should work) [Skotlex]
  3962. 2006/06/21
  3963. * [Removed]:
  3964. - Redundant mob name copying. (it's already copied in mob_parse_dataset) [Lance]
  3965. * [Fixed]:
  3966. - Compilation warnings and errors.
  3967. [Improved]:
  3968. - Changed and moved IP sync status messages to elaborate more. [Lance]
  3969. * Tested and fixed resolve_hostbyname. Applied said function around most of
  3970. the code where needed. Removed includes for the OS/network system pretty
  3971. much from every file (our socket.c file should handle this) [Skotlex]
  3972. * Made the GM mute request bypass the manner_system setting. [Skotlex]
  3973. * Applied use of parse_hostbyname() in chrif.c to fix compilation errors.
  3974. [Skotlex]
  3975. * status_percent_change will now account for when the target's max hp/sp is
  3976. above INT_MAX. [Skotlex]
  3977. * [Added]:
  3978. - DNS (WAN) sync for those pesky disconnections (dynamic ip renewal). [Lance]
  3979. 2006/06/20
  3980. * Some cleaning up of OPTION related code. OPTION_XMAS and OPTION_FLYING
  3981. really ARE the same value clientside! (totally stupid), therefore I've
  3982. opted from removing the flying animation since it really just displays as
  3983. Xmas for others (and the correct fix involves adding a bunch of
  3984. class-change packets...) [Skotlex]
  3985. * Updated skill_require_db to place the Zeny requirements of ZenyNage and
  3986. Fling. [Skotlex]
  3987. * Fixed crash when non-players use ZenyNage. Added the correct Zeny check
  3988. in skill_check_condition, fixed the skill so that it's damage is based on
  3989. whatever zeny is specified in skill_require_db. [Skotlex]
  3990. * Can-act delay will not be reset when warping now. [Skotlex]
  3991. * Fixed Quagmire not altering walking-speed. [Skotlex]
  3992. * Silence now blocks skills both on begin/end casting. [Skotlex]
  3993. * Updated status_calc_bl so that when walking speed changes, the character
  3994. is made to rewalk so that the new speed takes effect inmediately. [Skotlex]
  3995. 2006/06/19
  3996. * Added Ayothaya to nopenalty and nopvp mapflags. [Evera]
  3997. * Combo-used Skills with State "move_enable" will now override the "can't
  3998. move delay". Fixes Break-Fall -> Jump-Kick. [Skotlex]
  3999. * Some more cleanups of battle_calc_damage to account for absorbed damage
  4000. reductions. [Skotlex]
  4001. * Moved back Soul Drain code from mob_dead to skill_counter_additional_effect.
  4002. Now we are back to where the skill animation does not shows, but you DO
  4003. get SP T.T' [Skotlex]
  4004. * Some cleanups and corrections in battle.c to account for negative
  4005. (absorbed) damage. [Skotlex]
  4006. * Fixed fame-list updating crashing char-sql server when the given char-id
  4007. just got into ranking. [Skotlex]
  4008. * Added missing Arunafeltz maps with information from NLZ [Evera]
  4009. 2006/06/18
  4010. * [Fixed]:
  4011. - Typo in status.c add_sc() using 'skill' instead of 'sk' as index, resulting in
  4012. filling the SkillStatusChangeTableArray with junk data.
  4013. - > NEEDS CONFIRMATION < Ends casting if player is knocked with freezing/stun/whatever
  4014. - Typo in parse_frommap. [Lance]
  4015. * [Fixed]:
  4016. - clif_initialstatus using SHRT_MAX instead of USHRT_MAX for status_point.
  4017. * [Temperory Fixed]:
  4018. - Crashing of SQL char-server in parse_frommap case 0x2b01. [Lance]
  4019. * [Removed]:
  4020. - Large part of scripted mob control commands are removed.
  4021. - Large part of scripted player control commands are removed.
  4022. - Scripted mob slaves changing master ID.
  4023. [Added]:
  4024. - Unit control commands.
  4025. - CALLBACK_NPCCLICK for scripted mobs, added this to db/const.txt too.
  4026. - Macro RECURSIVE_MASTER_CHECK in battle.c
  4027. [Modified]:
  4028. - buildin_skilluseid and buildin_skillusepos -> buildin_unitskilluseid
  4029. and buildin_unitskillusepos.
  4030. - md->callback_flag to short (double word). [Lance]
  4031. 2006/06/17
  4032. * Devotion absorbed damage will now appear to come from oneself (instead of
  4033. the original attacker changing directions towards the Crusader) [Skotlex]
  4034. * Updated clif_refres to send inventory, cart, and weight info. [Skotlex]
  4035. * Fixed intif_guild_memberinfoshort to not leave a dangling pointer when
  4036. someone logs out <.< [Skotlex]
  4037. * Changed some mapflags related to the eye of hellion quest. [MasterOfMuppets]
  4038. * [Added]:
  4039. - buildin_checkcell, buildin_mobwarp, buildin_pcattack.
  4040. [Improved]:
  4041. - buildin_skilluseid and buildin_skillusepos to accept a few more arguments.
  4042. - mob_script_callback to return sucess value [Lance]
  4043. * Fixed the party HP packets to send max HP 10000 and scale HP accordingly
  4044. when the player's HP doesn't fits in the packet's field. Fixes HP bars not
  4045. correctly displaying the % of life when max HP is above 32k. [Skotlex]
  4046. 2006/06/16
  4047. * Fixed option value being reset'ed on login (fixes cart/peco/falcon being
  4048. lost) [Skotlex]
  4049. * Corrected @speed to alter your base speed instead of battle one. Means
  4050. the change remains for much longer (until status_calc_pc is invoked, which
  4051. could be due to equipping/unequipping stuff) [Skotlex]
  4052. * Modified the bNoMagicDamage/bNoWeaponDamage bonuses to be a 0-100
  4053. setting. Meaning you can do bonus bNoMagicDamage,50; To make all magic
  4054. damage be reduced by half. This bonus stack, so two cards with
  4055. bNoMagicDamage,50 will give magic immunity. [Skotlex]
  4056. * Removed setting gtb_pvp_only and replaced it with gtb_sc_immunity which
  4057. specifies the threshold before the bNoMagicDamage starts blocking support
  4058. statuses as well. ie: gtb_sc_imunity: 75 will mean that "bonus
  4059. bNoMagicDamage,70;" reduces magic damage by 70%, but does not blocks heal
  4060. or support status, while "bonus bNoMagicDamage,80;" does. [Skotlex]
  4061. * Removed db_tables.sql as it's no longer used. [Skotlex]
  4062. * the mvp_sd is removed when the mob is the emperium and there's no
  4063. killer/exp-awarded (assumed killed by script), this prevents the on-kill
  4064. event from triggering and giving the castle to whoever damaged the most the
  4065. emperium without destroying it. [Skotlex]
  4066. * [Added]:
  4067. - Custom slave mobs to inherit the callback_flag.
  4068. - Added option #25 to buildin_setmobdata to set the callback_flag. [Lance]
  4069. * [Improved]:
  4070. - Cleaned up Custom Mob Script Callback codes. Looks much better now :B. [Lance]
  4071. 2006/06/15
  4072. * [Fixed]:
  4073. - intif_parse_RenamePetOk for not compatible with ANSI-C initialzation specification.
  4074. [Lance]
  4075. * Added indexes for loginlog and ipbanlist as they did not have any.
  4076. (note, someone already put the index on loginlog on trunk.) [Euph]
  4077. * Merged Adam's patch to let the char-server handle validation of
  4078. pet-name-change requests through the allowed char letters config. [Skotlex]
  4079. * Fixed "wedding_ignore_palette: yes" not working when relogging with the
  4080. gear already equipped. [Skotlex]
  4081. * Added blocking of the Kick skills when you are a Soul Linker. [Skotlex]
  4082. * Added enabling to turn off a kick-stance regardless of class. [Skotlex]
  4083. * Altered a bit how status_set_viewdata behaves in regards to Wedding/Xmas
  4084. options. [Skotlex]
  4085. * Added back OPTION_XMAS, but the actual value is missing! [Skotlex]
  4086. * Corrected chrif_save so that the player is not set offline on map-change.
  4087. [Skotlex]
  4088. * Added change-look support in pc_setoption when specifying OPTION_XMAS
  4089. [Skotlex]
  4090. * Fixed clif_parse_RemoveOption removing all options instead of just
  4091. Falcon/Cart/Peco [Skotlex]
  4092. * Fixed clif_send not sending packets to SELF when specifying AREA if the
  4093. source is not on the map yet. [Skotlex]
  4094. * Fixed and cleaned up script command 'equip' [Skotlex]
  4095. * Fixed 'autoequip' items. [Skotlex]
  4096. * Fixed Aspd not being updated in your status window after Agi/Dex
  4097. increasing statuses take effect. [Skotlex]
  4098. 2006/06/14
  4099. * Fixed map_nick2sd so that searching for "Adam" will not match a char
  4100. named "Adam Smith". Thanks to Adam for reporting it out. [Skotlex]
  4101. * Modified how luk reduces status changes by reducing the gap. Eg: resist =
  4102. vit; resist += (max - resist)*luk/300; [Skotlex]
  4103. * Added battle settings pc_max_sc_luk/mob_max_sc_luk to handle which is the
  4104. luk threshold at which you gain inmunity (defaults to 300). [Skotlex]
  4105. * Fixed buildin_getmobdata. It was trying to handle the first parameter as the
  4106. array to fill in. [blackhole89]
  4107. * Blocked again skill usage during marionette. [Skotlex]
  4108. * Fixed main.sql adding a key on char_id rather than account_id for the
  4109. char table. [Skotlex]
  4110. * Cleaned up character saving in char-sql, it no longer needs to query the
  4111. database to see if the player exists on each char-save, instead it checks
  4112. the received data against the online-players db. No such fix is required
  4113. for char-txt. [Skotlex]
  4114. * Added an error message on the char-server when the received player data
  4115. size does not matches with the expected size (should avoid the crash that
  4116. happens on such a memcpy). [Skotlex]
  4117. * [Improved]:
  4118. - script_save_mapreg for MapregSQL Saving to display perfomance only in slow
  4119. queries. [Lance]
  4120. 2006/06/13
  4121. * Updated mob_db.sql and item_db.sql to latest. [Skotlex]
  4122. * Added account_id index to char table. Thanks to Buuyo for reporting it.
  4123. Sql users apply upgrade_svn7146.sql NOW. [Skotlex]
  4124. * Marionette and Devotion will now check raw distance and ignore obstacles
  4125. and the like. [Skotlex]
  4126. * Added irc_channel_pass setting and prevent crashing when irc server
  4127. lookup by host fails. Thanks to Trancid for the details. [Skotlex]
  4128. * [Fixed]:
  4129. - clif_parse_GetCharNameRequest displaying false alarm for legitimate GM snooping.
  4130. [Lance]
  4131. * Added support for reading correctly status change data from Guild and
  4132. Homun skills. [Skotlex]
  4133. * Added support for reading Homun skill data (which means the HM skills are
  4134. now safe to add to skill_db, skill_require_db, etc) [Skotlex]
  4135. * Oppositions can't be made during WoE now. [Skotlex]
  4136. * Fixed a few compiler warnings from VC [Skotlex]
  4137. * Commented out the Homunculus Skills<->Status Change link which was
  4138. causing some memory corruptions. [Skotlex]
  4139. 2006/06/12
  4140. * [Fixed]:
  4141. - buildin_npcshopitem not allocating extra 1 block of terminator.
  4142. [Added]:
  4143. - Modified versions of Dj-Yhn's buildin_npcshopdelitem and buildin_npcshopadditem
  4144. [Lance]
  4145. * Updated clif_disp_onlyself to not use dynamic memory and write directly
  4146. to the player's buffer. [Skotlex]
  4147. * Updated @noask to also tell the user what he has just rejected (added
  4148. msg_athena entries for each of the different requests). Also updated it to
  4149. use clif_disp_onlyself. [Skotlex]
  4150. * Fixed a pair of missing initializers in the clif storage functions.
  4151. [Skotlex]
  4152. * @heal no longer displays a healing animation. Fixes the client believing
  4153. you couldn't be healed more than 32K. [Skotlex]
  4154. * Now you can use any skills (except encore/dancing ones) while under
  4155. Longing for Freeding. [Skotlex]
  4156. * Now you can use any skills while under Marionette Control. [Skotlex]
  4157. * Fixed npc_checknear's distance check returning the opposite of what it
  4158. should (false when the range is correct and viceversa) [Skotlex]
  4159. * Added a warning on item loading when an item is of equippable type but
  4160. has no equippable position. [Skotlex]
  4161. * Turning an alliance to an opposition won't work now during WoE [Skotlex]
  4162. * Slaves can summon other mobs now. The only ones who can't do this are
  4163. player summoned mobs. [Skotlex]
  4164. * Merged the following functions for faster processing of items: [Skotlex]
  4165. clif_storageitemlist + clif_storageequiplist = clif_storagelist
  4166. clif_guildstorageitemlist + clif_guildstorageequiplist = clif_guildstoragelist
  4167. clif_itemlist + clif_equiplist = clif_inventorylist
  4168. Note that the changes are a bit substantial and need proper testing!
  4169. * Increased max knockback value support to 25. [Skotlex]
  4170. * [Optimized]:
  4171. - buildin_npcshopitem memory allocation to calculate before reallocating.
  4172. [Lance]
  4173. * Made guild member exp an unsigned int. [Skotlex]
  4174. * Various cleanups to the npc clicking related functions. Should fix quite
  4175. some possible crashes from crafted packets. [Skotlex]
  4176. * Added overflow checks for bonus settings mdef_rate/def_rate. [Skotlex]
  4177. * Added missing update of INT after a buf. [Skotlex]
  4178. * Small cleanup of how SC_BLEEDING works. [Skotlex]
  4179. * Fixed party_foreach_samemap invoking the function on the CASTER instead
  4180. of on the party members. [Skotlex]
  4181. * Modified clif_parse_NpcClicked to handle the different situations with
  4182. different bl-objects (attack on players/mobs, click on npcs or mobs with
  4183. npc attached) [Skotlex]
  4184. 2006/06/09
  4185. * [Fixed]
  4186. - Compilation warnings on guild.c and int_guild.c [Lance]
  4187. * Added structure party_data and party_member_data to the map server to
  4188. hold party-specific required information about parties including
  4189. Monk/TK/SG/SN states and party member count. Family information is still
  4190. missing, and handling of the state should probably be done by the
  4191. char-server, too... [Skotlex]
  4192. * party Hp updates are no longer done each time the Hp is modified, but
  4193. together with the party xy timer. It means HP-bars will be a bit delayed
  4194. before being updated, but packet consumption should be much less during
  4195. heated battles. [Skotlex]
  4196. * Fixed MoM's typo [Vicious]
  4197. * Fixed map_readafm missing strcpy(afm_name, m->name). [Skotlex]
  4198. * [Improved]:
  4199. - npc_click interception on BL_MOB and BL_PC to let sd act accordingly.
  4200. [Lance]
  4201. * [Fixed]:
  4202. - Execution of sleep/sleep2 more than once will hang the script_state.
  4203. [Lance]
  4204. * Fixed @mapinfo displaying incorrectly maps with nosave which send you
  4205. back to your last savepoint. [Skotlex]
  4206. * Moved guild_exp_rate from a mapserver battle config setting to a char
  4207. server config. It no longer modifies the total taxed exp as seen on the
  4208. guild information window, but directly modifies the exp that the guild
  4209. earns. [Skotlex]
  4210. * Added an error report and correction when the map server receives a guild
  4211. from the char-server with more guild members than MAX_GUILD. [Skotlex]
  4212. * Changed the interval between waterballs back to 125 [MasterOfMuppets]
  4213. * Fixed a typo in char_sql/char.c, thanks to Euph [MasterOfMuppets]
  4214. 2006/06/08
  4215. * Modified guild exp to be an unsigned int rather than a signed one.
  4216. [Skotlex]
  4217. * Fixed @skilltree printing out Unknown job for most targets used.
  4218. [Skotlex]
  4219. * Cleaned clif_pvpset to not send the packet to nearby characters when the
  4220. source is GM-hidden. May help fix the crash on PvP with gm-hidden
  4221. characters. [Skotlex]
  4222. * Modified map_freeblock_unlock so that aFree errors will report the
  4223. file/line that INVOKED the function rather than the function itself.
  4224. [Skotlex]
  4225. NOTE: Do NOT disable the memory manager as that will break this change.
  4226. This change is to be temporarily set until the afree'd error can be
  4227. resolved.
  4228. * Updated mob_npc_warp to a three-state config switch. 0 disables. 1 enable
  4229. only on warps that don't lead to nobranch maps. 2 - enable on all warps.
  4230. [Skotlex]
  4231. * Adjusted Don't Forget Me, Defender, Longing to use all val entries, and
  4232. to hold the speed adjustment value rather than speed penalty (eg: 125
  4233. instead of 25). [Skotlex]
  4234. * Cleaned up status_calc_speed so that speed penalties are correctly
  4235. handled (eg: 25% penalty is speed*100/75, not +speed*25/100). Thanks to
  4236. Euph for pointing it out and Belle for the speed mechanics. [Skotlex]
  4237. 2006/06/07
  4238. * Fixed Sense using mdef instead of mdef2 [Skotlex]
  4239. * Fixed item-skills not showing up on login. [Skotlex]
  4240. * Cleaned up clif_parseLoadEndAck, by testing which packets are required
  4241. only on first-login and which ones are required on all map-changes.
  4242. Skill-tree, Exp, Skill Points and most of the basic status are no longer
  4243. sent on map-change (items, cart data and zeny still need to be sent one
  4244. very map-change). [Skotlex]
  4245. * Fixed the mob state not being set to Berserk/Angry correctly after the
  4246. mob reaches the target's location. [Skotlex]
  4247. * Added config setting mob_npc_warp, when set to yes, enables mobs to be
  4248. warped between maps when stepping on a npc-warp. [Skotlex]
  4249. * Added monster_ai setting &64, when enabled makes a mob run to any nearby
  4250. npc-warp when their current target has switched maps. [Skotlex]
  4251. * Added pc_calcexp to calculate individual exp bonuses acquired from exp's
  4252. source (race bonus cards, SG Exp skills, pk-mode higher level exp) [Skotlex]
  4253. * pc_gain_exp now also receives the source of the exp, when said source
  4254. exists, bonuses are applicated as needed. [Skotlex]
  4255. * Added status_kill when capturing a mob, should take care of the mob not
  4256. respawning after caputed. [Skotlex]
  4257. * Fixed item info not displaying the found item id [Skotlex]
  4258. * Fixed item info not displaying the weight value properly. [Skotlex]
  4259. * Adjusted status resistances and durations taking as base Viccious's info
  4260. from the kro guidebook. [Skotlex]
  4261. * Moved souldrain code from skill_counter_additional_effect to mob_dead. It
  4262. should display the skill animation correctly now. [Skotlex]
  4263. * Adjusted several sc rate/time reductions as pointed out by Playtester.
  4264. [Skotlex]
  4265. - Luk now plays a luk/10 reduction role rather than a luk/3 one.
  4266. * Removed char_nick2id from char-sql server as it's no longer needed.
  4267. [Skotlex]
  4268. * Fixed quitting the map server not properly saving the storage before
  4269. deleting it. Thanks to Adam for pointing it out. [Skotlex]
  4270. * Cleaned status_get_sc_tick/status_get_sc_def to use the status_data
  4271. function. [Skotlex]
  4272. * SC_STOP's chance and duration can't be reduced anymore. [Skotlex]
  4273. * Storm Gust no longer has a 100% chance to freeze by passing mdef, now it
  4274. has a 300% base chance reduced by mdef and the like as explained out by
  4275. Tharis. [Skotlex]
  4276. * Frost Diver/Frost Nova's base freezing chance is no longer affected by
  4277. target's int. [Skotlex]
  4278. * [Improved]:
  4279. - mob_dead not to remove script controlled monsters with player sprites.
  4280. [Added]:
  4281. - buildin_mobdeadsit :D [Lance]
  4282. * [Fixed]:
  4283. - temp++ gets issued before if(mvp_damage<(unsigned int)md->dmglog[i].dmg) in
  4284. mob_damage. Thanks to seahorsix. [Lance]
  4285. * [Fixed]:
  4286. - Corrected login-server SQL to use *((ulong *)p) instead of (ulong)p [Lance]
  4287. * [Optimized]:
  4288. - list and size not being initialized (size get intialized in default: switch case)
  4289. Eliminated default case and initialized list and size at the beginning. [Lance]
  4290. 2006/06/06
  4291. * Hopefully fixed for sure mobs getting extra stats when changing-class due
  4292. to the mobs level up setting. [Skotlex]
  4293. * Removed a piece of code that should no longer be needed due to the
  4294. combo-skill setting (inf = self, inf2 = no-target-self) which is blocking
  4295. self-skills from being used on others (pets/mobs should be allowed to do
  4296. that) [Skotlex]
  4297. * Added a status_check_skilluse call in Sightblaster to prevent it from
  4298. hitting hidden/cloaked/act-dead/etc players. [Skotlex]
  4299. * Fixed firewall counter going down by 2 each hit rather than 1. [Skotlex]
  4300. * Fixed Soul Burn not zapping away all SP. [Skotlex]
  4301. * The monsters can level up setting will not take effect when the mob's
  4302. level is LESS than their db counter-part (should prevent under-leveling
  4303. causing underflows and semi-immortal mobs) [Skotlex]
  4304. * Fixed mvp-exp calculations being messed up with more than one attacker.
  4305. [Skotlex]
  4306. * Changed the mob exp race bonus so that each player gets their own bonus,
  4307. rather than the killer's bonus applying to everyone. Still not the
  4308. "correct" way, but one step closer to it. [Skotlex]
  4309. * [Fixed]:
  4310. - Allocation of event_list in guild_npc_request_info to aCalloc so
  4311. memcpy(ev->name,event,strlen(event)) will have a null terminator. [Lance]
  4312. 2006/06/05
  4313. * Fixed a crash when using SL_SMA and the "combo" ain't ready. [Skotlex]
  4314. * Hopefully fixed changing a mob's class causing them to get all sort of
  4315. stat bonuses due to the mobs-level-up setting. [Skotlex]
  4316. * Changed hit, flee, cri, flee2, def2 and mdef2 to signed short, def, mdef
  4317. to signed char to correctly account for cards with penalties in said stats.
  4318. [Skotlex]
  4319. * Fog of Wall won't affect the caster now in any way. [Skotlex]
  4320. * Added clif_fixpos packets before attacking for the first time to clear
  4321. any position sync issues with the client. [Skotlex]
  4322. * Fixed skill_unitsetting using layout->count for the for instead of
  4323. group->count [Skotlex]
  4324. * Added SC_INCDEXRATE/SC_INCAGIRATE. NPC_POWERUP/NPC_AGIUP now correctly
  4325. increase dex/agi by 40% per level. [Skotlex]
  4326. * Fixed char-sql server not deleting character variables when deleting a
  4327. char. [Skotlex]
  4328. * Corrected cloaking not ending on attack if you are near a wall. [Skotlex]
  4329. * Updated pc_bonus to use cap_value on all status_data modifiers to prevent
  4330. overflows/underflows. [Skotlex]
  4331. 2006/06/03
  4332. * Fixed @mi/@mobinfo not showing the name collumns correcly [shadow]
  4333. * Solved the bug that made firewalls only castable a few times until [MasterOfMuppets]
  4334. you relogged. Thanks to Euph for the fix.
  4335. * Added variable other_mapserver_count to chrif.c which holds total count
  4336. of connected map-servers. By using this we prevent sending unnecessary
  4337. packets to the char-server when there's no more map-servers connected.
  4338. [Skotlex]
  4339. - Affected packets are whispers, announces, party messages, guild messages.
  4340. 2006/06/02
  4341. * Fixed Visual Studio 7.1 Solution File (Login TXT and Map TXT were removed)
  4342. * Fixed a bug in unit_can_reach_bl which breaks path seeking when the
  4343. target is near obstacles. [Skotlex]
  4344. * Updated offensive use of Sanctuary to function like on the official servers [MasterOfMuppets]
  4345. * Changed the interval between waterballs from 150 to 250 milliseconds [MasterOfMuppets]
  4346. * Corrected clif_parse_takeitem to ALWAYS return a NAK packet when it
  4347. fails. Fixes cases where the client gets "stuck" and refuses to let you
  4348. pick any items. [Skotlex]
  4349. * Removed the walk delay from firewall and changed its knockback [MasterOfMuppets]
  4350. to 1 tile to make it act more like in the official servers.
  4351. * Some cleaning of the mob slave ai. [Skotlex]
  4352. * Corrected Brandish Spear to work on levels above 10. [Skotlex]
  4353. * Updated Two-HandQuicken, One-HandQuicken to give 30 +2*lv% aspd-rate for
  4354. skill levels above 10 (meant for boss casted skills) [Skotlex]
  4355. * Fixed Spear-Quicken messing with the calc_flag [Skotlex]
  4356. * Fixed Freeze/Stone/Benedictio not changing your elemental LEVEL to 1.
  4357. [Skotlex]
  4358. * [Fixed]
  4359. - Yet another compilation warning. [Lance]
  4360. 2006/06/01
  4361. * Altered status_calc_pc so that equipment scripts are ran before
  4362. card-scripts. [Skotlex]
  4363. * Fixed pc_bonus to not underflow/overflow when adjusting def/mdef.
  4364. [Skotlex]
  4365. - These two together, should fix Tao Gunka Card.
  4366. * npc_debug_warps() will now be invoked if warp_point_debug is set.
  4367. [Skotlex]
  4368. * Updated item_db.sql/mob_db.sql to current. [Skotlex]
  4369. * Fixed NPC_SELFDESTRUCTION not showing nor dealing damage. [Skotlex]
  4370. * NPC_TRANSFORMATION/NPC_METAMORPHOSIS will now preserve the original mob
  4371. without removing it when the skill level is greater than one. [Skotlex]
  4372. * Added SC_DANCING declaration in the Status Change tables to signal it
  4373. modifies Walk speed. [Skotlex]
  4374. * Fixed pc_damage setting your canlog_tick even if the damage has no source
  4375. (eg: poison, berserk) [Skotlex]
  4376. * Berserk's aspd bonus now stacks with other aspd bonuses, but is still
  4377. affected by Quagmire/Forget-me-not. [Skotlex]
  4378. * Corrected setting slaves_inherit_mode to not apply to morphosis skills.
  4379. [Skotlex]
  4380. * Corrected pc_setoption to invoke status_calc_pc when getting/removing the
  4381. cart. [Skotlex]
  4382. * Fixed @mobinfo displaying the wrong element. [Skotlex]
  4383. * Fixed Autoblitz taking into account target's luck rather than attacker's
  4384. [Skotlex]
  4385. * Fixed slaves warping endlessly to their master when the master-slave
  4386. distance exceeds 30. [Skotlex]
  4387. * SC_ORCISH will now be dispelled on logout (if debufF_on_logout is set)
  4388. [Skotlex]
  4389. * Removed attackrange/attackrange_ from TBL_PC, corrected clif.c using the
  4390. incorrect range variable. [Skotlex]
  4391. * You can now equip/unequip stuff while the storage is open. [Skotlex]
  4392. 2006/05/31
  4393. * Fixed Soul Drain not really giving you SP [Skotlex]
  4394. * [Fixed]:
  4395. - Suppressed compilation warning in chrif.c [Lance]
  4396. * [Fixed]:
  4397. - Guys can't go across map-servers :( [Lance]
  4398. * [Fixed]:
  4399. - Restoration and saving of sd->npc_id must be done every time. [Lance]
  4400. * Added back the Freeze/Petrify adjustments of -50%def and +25%mdef (when
  4401. where these lost?). Thanks to Buuyo for pointing it out. [Skotlex]
  4402. * Corrected the mob_ai&2 setting triggering rude-attacked due to can't walk
  4403. delay. [Skotlex]
  4404. * Made the char_name_option char_athena.conf setting apply to parties and
  4405. guilds as well. It cannot be applied to pets yet without adding a
  4406. change-name-request interserver packet. [Skotlex]
  4407. * Moved the JOB_* defines from map.h to mmo.h, update char.c to use them.
  4408. [Skotlex]
  4409. * Added function char_read_fame_list for famelist reading. Invoked it on
  4410. init, and made it be sent automatically to connecting map servers.
  4411. [Skotlex]
  4412. * Some cleaning of the fame-list reading code. [Skotlex]
  4413. * Some cleaning of the fame-update code, fixed a logic bug which made the
  4414. ranking list fail to display the correct ranker names. [Skotlex]
  4415. * Removed typedef bool from socket.h and included cbasetypes.c instead.
  4416. [Skotlex]
  4417. * Cleaned up and corrected the calculation of hit/flee/cri/lucky dodge in
  4418. status_calc_bl. [Skotlex]
  4419. * [Fixed]:
  4420. - Incorrect SQL syntax in login.c (missing collumn) [Lance]
  4421. * [Improved]:
  4422. - SQL upgrade file for the new loginlog. Thanks to ultramage. [Lance]
  4423. * [Fixed]:
  4424. - nullpo in pet.c caused by equipping without checking if the pet is available.
  4425. [Lance]
  4426. * [Fixed]:
  4427. - Latest client support completed! [Lance]
  4428. * [Fixed]:
  4429. - Missing #include for cbasetypes.h in login server SQL.
  4430. - Logic errors in run_script [Lance]
  4431. * [Added]:
  4432. - Partial support for latest login packet. But it seems to have a new security
  4433. module. [Lance]
  4434. 2006/05/30
  4435. * [Improved]:
  4436. - Fake NPC interface to use real NPCs.
  4437. - Scripting interface to restore and save sd->npc_id. [Lance]
  4438. * Added function pc_check_skilltree for checking if you unlocked new
  4439. tree-skills when raising non-passive skills. [Skotlex]
  4440. * Fixed flee/hit calculation in status_calc_bl to account for bonuses from
  4441. the base status. [Skotlex]
  4442. * [Fixed]:
  4443. - Compatibility problems in login.c [Lance]
  4444. * Fixed pets ignoring can-act delays for skill usage. [Skotlex]
  4445. * [Added]:
  4446. - Mercenary.c in VS.NET 2005 project files
  4447. [Improved]:
  4448. - loginlog using unsigned long `ip` field.
  4449. (Please check for compatibility problems). [Lance]
  4450. * Fixed status_calc_pc not zero'ing ALL vars it should, allowing certain
  4451. bonuses (like effect-on-hit) to stack. [Skotlex]
  4452. * slaves inherit speed setting will now work regardless of whether the
  4453. slave or master has the MD_CANMOVE mode bit. [Skotlex]
  4454. * Call Slave now invokes slaves on a 5x5 area around master. [Skotlex]
  4455. * AL_TELEPORT will fail when used by slave mobs. [Skotlex]
  4456. * Added NPC_ENERGYDRAIN, NPC_MENTALBREAKER to the list of undodgeable
  4457. attacks. [Skotlex]
  4458. * Fixed status_damage not setting your HP to 0 when you died [Skotlex]
  4459. * Fixed the pcbonus2 warnings using the wrong value before printing the
  4460. invalid Element error. [Skotlex]
  4461. * Fixed underflow issues when calculating dmotion. [Skotlex]
  4462. * Fixed Absorb Spirit Spheres [Skotlex]
  4463. * Added battle_config min_chat_delay (default 0, battle/client.conf)
  4464. specifies in ms what is the min delay between player sent chats
  4465. (whisper/global/party/guild). Messages that exceed this threshold are
  4466. silently ignored for now (perhaps need to add a "DON'T SPAM" reply to the
  4467. player?) [Skotlex]
  4468. * [Fixed]:
  4469. - signed/usigned problem in sprintf and fscanf @ mercenary.c [Lance]
  4470. * Rewrote/cleaned up @petfriendly. [Skotlex]
  4471. * Cleaned up final part of status_calc_pc (flags 2/4 do not exist) [Skotlex]
  4472. * Updated attr_fix_table reading code to account for ELE_MAX (will
  4473. correctly read bigger elemental tables if ELE_MAX is changed) [Skotlex]
  4474. * Aggressive mobs will now use battle_check_range rather than mob_can_reach
  4475. to decide whether to lock-on or not to a target within sight-range. [Skotlex]
  4476. * Added warnings in mob_readdb when the mob's element is invalid. [Skotlex]
  4477. * Added error messages in pc_bonus* functions when an invalid element is
  4478. passed to the relevant bonuses. [Skotlex]
  4479. * [Optimized]:
  4480. - clif_specialeffect to use the enums.
  4481. [Improved]:
  4482. - buildin_specialeffect and buildin_specialeffect2 to accept effect area
  4483. definition. [Lance]
  4484. * [Added]:
  4485. - Visual Studio .NET 2003 includes for mercenary.c [Lance]
  4486. * Removed the on-die specific code from unit_remove_map and placed it on
  4487. the corresponding *_dead functions. unit_remove_map should never assume the
  4488. char died, it is just a "remove from map" function. [Skotlex]
  4489. * Updated status_damage to handle the general death code (clearing status
  4490. changes, clearing skill related data, sending death packet, etc). The
  4491. return value from the *_dead functions will tell it what to do or not with
  4492. the object (death aborted, clear it from map/memory, etc) [Skotlex]
  4493. * Cleaned up pc_dead to take advantage of the fact that status changes are
  4494. not ended until after the function. [Skotlex]
  4495. * Disabled ontouch npcs triggering on hidden/chase-walk characters.
  4496. [Skotlex]
  4497. * Updated/adapted current Homun code to use the status_data update.
  4498. [Skotlex]
  4499. * Updated map-server Makefile to compile mercenary.* files. [Skotlex]
  4500. * [Fixed]:
  4501. - Pets attacking even master is dead. [Lance]
  4502. * Fixed battle_calc_weapon_attack damage capping damage to a minimum of 0
  4503. (negative values should be allowed when attack is absorbed by target's
  4504. element) [Skotlex]
  4505. 2006/05/29
  4506. * [Fixed]:
  4507. - Missing ';' in item #4358 [Lance]
  4508. * [Fixed]:
  4509. - Missing maps in map index database. [Lance]
  4510. * [Fixed]:
  4511. - Battle mechanics in battle_check_target [Lance]
  4512. * [Fixed]:
  4513. - Typo in mob_dead causing crash. Thanks to reddozen and his gang for testing.
  4514. [Lance]
  4515. * Cleaned up friend list saving and fixed loading of friends.txt file
  4516. (char-txt) [Skotlex]
  4517. * Added the Arunafeltz maps, not tested yet [Playtester]
  4518. - someone with an up-to-date client should test them
  4519. * Fixed pc_gainexp resetting your exp to 0 rather than adding it in...
  4520. [Skotlex]
  4521. * Corrected aspd calculation code to avoid negative overflows. [Skotlex]
  4522. * Fixed battle_check_target check on BCT_ALL to check versus BL_CHAR
  4523. instead of BL_PC and BL_MOB [Skotlex]
  4524. * [Fixed]:
  4525. - Declaration of int map_getcellp(struct map_data*,int,int,cell_t); [Lance]
  4526. * Removed Undead being inmune to poison status. [Skotlex]
  4527. * Removed speed penalty from SC_SKA [Skotlex]
  4528. * Fixed SC_SPURT triggering on Soul Linkers. [Skotlex]
  4529. * SC_DODGE won't be dispelled on death now. [Skotlex]
  4530. * [Fixed]:
  4531. - pc_follow_timer possible triggering crash.
  4532. - pc_reg_received to use battle_status.hp instead of status.hp
  4533. [Added]:
  4534. - macro map_id2index for non-cyptic mapid to mapindex conversion. [Lance]
  4535. * Added a division by zero check in mob_dead to prevent the (impossible)
  4536. case where a mob dies with received damage of zero. [Skotlex]
  4537. * Modified skill_get_range2 to return range 9 for skills with range 0 for
  4538. Non-Players. This usually signals Self skills, and mobs/pets should be able
  4539. to use them in other characters. [Skotlex]
  4540. * Optimized a bit the SC_PROVOKE code (to use val3/val4) [Skotlex]
  4541. * Fixed draining when the amount drained is negative (invoke zap rather
  4542. than heal) [Skotlex]
  4543. * Implemented GS_FLING as per the current skill description. [Skotlex]
  4544. * Fixed pc_readparam/pc_setparam to use battle_status.hp/sp rather than
  4545. status.hp/sp, fixes scripts reading the wrong Hp/Sp values [Skotlex]
  4546. * Added some missing SC_* entries on the initial listing (potion related
  4547. and speed up ones) [Skotlex]
  4548. * Fixed function declaration of map_getcellp() [Skotlex]
  4549. * [Fixed]:
  4550. - status.c:920: warning: 'mbl' might be used uninitialized in this function
  4551. - skill.c:6648: warning: 'matk_min' might be used uninitialized in this function
  4552. - skill.c:6648: warning: 'matk_max' might be used uninitialized in this function
  4553. - skill.c:2826: warning: 'sid' might be used uninitialized in this function [Lance]
  4554. * [Optimized]:
  4555. - Removed unused variable (account_id) in storage_guild_storagesaved.
  4556. * [Optimized]:
  4557. - Removed unused checks for unsigned data type and possible logic error for
  4558. char type (gcc treats char as unsigned). [Lance]
  4559. * [Fixed]:
  4560. - Relogging in with 0 HP didn't trigger dead event. [Lance]
  4561. 2006/05/28
  4562. * Added functions status_revive, pc_revive and mob_revive to handle revival
  4563. (it doesn't handles player respawning, though). Fixed reviving @ commands.
  4564. [Skotlex]
  4565. * Added SC_BLADESTOP to the skill enum at the beginning of status.c (fixes
  4566. Bladestop causing an unknown status change message). [Skotlex]
  4567. * Fixed MSS_DEAD state skills not triggering. [Skotlex]
  4568. * Changed undeads to by default always sustain 100% of the damage from firewalls [MasterOfMuppets]
  4569. * [Fixed]:
  4570. - script functions that doesn't pass references, thanks to End_of_exam. [Lance]
  4571. * [Protected]:
  4572. - clif_parse_LGMmessage from possible hacks [Lance]
  4573. * Fixed unable to store n items into storage unless n was the total amount
  4574. of items you had. [Skotlex]
  4575. * Suppressed compilation warnings (unsigned and signed mismatches) [Lance]
  4576. 2006/05/27
  4577. * Added structure status_data which holds status-related information (str,
  4578. agi, etc, speed, amotion, adelay, dmotion, weapon-damage, race, size, etc)
  4579. and weapon_atk structure with the weapon specific info (atk, atk2, element)
  4580. to be used by all combat structures (TODO: Homun needs to be updated to use
  4581. it). This in change involves a LOT of changes throughout the code and many
  4582. optimizations were done as well. Partial list (see svn changelog for complete
  4583. changes): [Skotlex]
  4584. - NOTE: Changes are substantial! I tested a bunch of stuff and all the
  4585. skills I changed the most, but it is possible there are unnoticed bugs
  4586. remaining to fix!
  4587. - Cleaned up TBL_PC, TBL_MOB, TBL_PC and mob_db structures to use status_data.
  4588. - Split damage received functions into pc_damage/pc_dead and mob_damage/mob_dead
  4589. - Added status functions to deal with damage and healing (status_damage,
  4590. status_heal, status_percent_change) and a bunch of defines for easier
  4591. handling of them (status_percent_heal, status_percent_damage,
  4592. status_fix_damage, status_kill, etc). Objects must be hurt/healed through
  4593. THIS, pc_damage/mob_damage most no longer be directly invoked!
  4594. - Rewrote and cleaned up battle_calc_misc_attack
  4595. - Merged config options pc_attack_attr_none, mob_attack_attr_none,
  4596. pet_attack_attr_none into attack_attr_none (type 4)
  4597. - Removed config options player_defense_type, monster_defense_type,
  4598. pet_defense_type in favor of weapon_defense_type
  4599. - Modified skill_calc_heal to take into account the MEDITATION bonus.
  4600. - Modified Slim Pitcher so it will work when casted by non-players. Will
  4601. now also work with SP-healing items.
  4602. - Rewrote Freedom of Cast code to use function status_freecast_switch to
  4603. switch adelay/speed when cast begins/ends.
  4604. - Modified Magic Power to store amplified MATK/MATK2 in val3/val4 for
  4605. easier updating when used in conjunction with ground skills.
  4606. - Fixed Asura Strike being usable from within a combo regardless of combo skill.
  4607. - Added status_calc_bl which does status-change related calculations using
  4608. as base the base_status of the bl object and the SCB_* flag passed. This is
  4609. invoked on status changes, and status_calc_pc will no longer be invoked
  4610. (which results on much faster status-change calculations).
  4611. - pc_clean_skilltree will now also remove item-granted skills.
  4612. - Learning skills will now only invoke status_calc_pc when the skill is passive.
  4613. - Cleaned up pc_check_base/job_lvup to only invoke the lv-up related
  4614. packets and functions ONCE regardless of skill-levls earned.
  4615. - Cleaned up pc_ regen related functions.
  4616. - Made player-sprite mobs have item pickup animation and walkdelay when taking items.
  4617. - Clones will copy a player's base status rather than battle status (so
  4618. status-change alterations are not cloned)
  4619. 2006/05/26
  4620. * Part B of the homunculus code. [blackhole89]
  4621. While most of the homunculus handling functions are in now, it still lacks
  4622. code required for players to create it.
  4623. Given I haven't screwed up, you could master yourself one through the DB though.
  4624. * Fixed crashing in mob.c [Lance]
  4625. * Patches to allow everything to work right. + 1 more sample script. [Lance]
  4626. * Mob control engine tested 99% working so far. [Lance]
  4627. * Change scripting engine's NPC scope vars to dot (.) style.
  4628. * Improved and (should be fully) fixed the mob control engine. [Lance]
  4629. * Fixed typos in char.c [Lance]
  4630. * Rewrote fame rank lists system to reduce char-server load, as requested by
  4631. Skotlex: now it has a copy of those lists, and updates only the proper one
  4632. when needed instead of rebuilding all from saves everytime (which required
  4633. to always save the character before rebuilding the lists) [DracoRPG]
  4634. - Note it hasn't been compiled nor tested with SQL, please do it for me
  4635. 2006/05/25
  4636. * Simplified ASC_BREAKER by making it a BF_WEAPON attack with an additional
  4637. int-based damage component (which is added right before elemental
  4638. modifiers) as described by AuronX. Pending further refining. [Skotlex]
  4639. * Resolved differences between Stable/Trunk msg_athena.conf. [Lupus]
  4640. Fixed atcommand @request MSG numbers accordinly.
  4641. On adding new MSG strings, plzm reserve them in STABLE msg_athena.conf, too
  4642. * Added NoVending mapflag. You may disable vending in the streets [Lupus]
  4643. * Increased capacity for Account Variables to 64 [Skotlex]
  4644. * Reverted Intravision implementation to that of stable's. [Skotlex]
  4645. * Corrected Login Server taking it's first argument as both login config
  4646. and lan config. [Skotlex]
  4647. * Fixed mob control commands.
  4648. * Fixed memory leak in scripts (again). Still have a few lying. [Lance]
  4649. 2006/05/24
  4650. * Fix to the slave AI problem. [erKURITA], by [Skotlex], reported by Niktout.
  4651. * Item sharing now shares the same rules as exp sharing (no sharing when
  4652. dead, or idle, etc) [Skotlex]
  4653. * Fixed summoned slaves being able to cast onspawn summon-skills (slaves
  4654. aren't supposed to be able to call minions) [Skotlex]
  4655. * The clif_skill_poseffect packet will not be invoked in Snap unless the
  4656. skill was successful. May fix the client-position lag. [Skotlex]
  4657. * Merged item_db.sql from stable (the one from stable was more recent than
  4658. the one of trunk...) [Skotlex]
  4659. * Corrected SL KA* spells not working on other Soul Linkers. [Skotlex]
  4660. * Corrected a pair of incorrect sql query parsing logic in the login-sql
  4661. ban request packet. [Skotlex]
  4662. 2006/05/23
  4663. * Corrected mob angry mode, now it only "restores" itself after being hit
  4664. when the mob has no target within their range of sight rather than on
  4665. picking a new target. [Skotlex]
  4666. * Fixed wedding sprite where it would stay active after unequipping. [Zido]
  4667. * Some cleanup of run_script, should fix the memory leak there. [Skotlex]
  4668. * the charname request hack message has been downgraded to only include
  4669. GM-invisible characters. [Skotlex]
  4670. * corrected clif_charnameack to send negative ID when a disguised player
  4671. asks for it's own disguised name. [Skotlex]
  4672. * Cleaned up the disguised target-id checks taking into considering that
  4673. the only character that sees a negative ID is the same disguised character.
  4674. [Skotlex]
  4675. * Modified battle_calc_weapon_attack to use new flags pdef/pdef (pierce
  4676. defense), Investigate and Icepick will now use the final def/vit-def values
  4677. rather than the base ones. [Skotlex]
  4678. * The move-enable condition checks for skills are now checked for only when
  4679. on skill use, not at cast-end time. [Skotlex]
  4680. * Corrected clif parse name request failing on disguised characters [Skotlex]
  4681. * Corrected Soul Drain draining from all non-ground-based skills including
  4682. non-magic attacks. [Skotlex]
  4683. * Corrected pc_setoption to change the option and then change class.
  4684. changing option-wedding will automatically convert the view-class as well.
  4685. [Skotlex]
  4686. * Corrected the 15% drop rate increase when killing higher level mobs in
  4687. pk-mode triggering for all mobs with lower level than yourself. Thanks to
  4688. Vayu. [Skotlex]
  4689. * Fixed typo (this time it's not my fault) in script_reload() clearing the same
  4690. db each time o_o [Lance]
  4691. * Fixed sleep command. [Lance]
  4692. * Added 'setd' support for local NPC scope (') variables. [Lance]
  4693. * [Scripting Engine Update] New variables are ready to be used. [Lance]
  4694. 2006/05/22
  4695. * Updated skill_delayfix to return 0 for mobs since they have no skill
  4696. delay other than the one specified in mob_skill_db [Skotlex]
  4697. * Corrected the 20 lvl diff 15% exp bonus on pk_mode servers. Thanks to
  4698. Vayu for pointing it out. [Skotlex]
  4699. * status_get_sc_tick will now use directly Stun's formula rather than
  4700. invoking the status sc chance once. [Skotlex]
  4701. * Fixed a possible null pointer in script command misc_effect [Skotlex]
  4702. * Modified Investigate to take into consideration final def/vit-def rather
  4703. than base values for damage adjustment. [Skotlex]
  4704. * WARNING: New scripting system contains memory leak
  4705. TODO: Free all scripts using script_free_code() instead of old methods. [Lance]
  4706. * Excluded idle and auto-trade party members from TK_POWER list. [Lance]
  4707. * Fixed compilation errors.
  4708. Tidy up jobmaster for easy debugging. [Lance]
  4709. 2006/05/21
  4710. * Part A of the Homunculus code.
  4711. This only features the structures, status_* and clif_* (packets) and is
  4712. not functional yet in any conventional way, but doesn't interfere
  4713. with present functionality either.
  4714. Main purpose is helping me to keep my work organized. [blackhole89]
  4715. * Fixed the "fake" mute status bug. [Zido]
  4716. * Speed up array size calculation and deletion. [Lance]
  4717. * Player must learn the skill before doing auto-spell [Lance]
  4718. * Exploit prevention in clif_parse_NpcStringInput [Lance]
  4719. * SC_SPEARSQUICKEN -> SC_SPEARQUICKEN normalized enum name [Lupus]
  4720. * Thanks to damirych & Falcon for [2006/04/30] STEAL skill [Lupus]
  4721. 2006/05/20
  4722. * grfio_final moved back if any of GRF overriding is enabled so servers
  4723. with such configuration will not have different values after reloading. [Lance]
  4724. * jA1983 script.c buildin_menu fix. Thanks to End_of_exam. [Lance]
  4725. * Abit of alterations to login-server. [Lance]
  4726. 2006/05/19
  4727. * Minor unsigned/signed alteration in pc_additem to shut the compiler up. [Lance]
  4728. * Small change in pc_additem that could be fixing the current bug with new
  4729. items not getting added. [Skotlex]
  4730. * Fixed loginlog definition in main.sql, thanks to Tempesta [Skotlex]
  4731. * Likely fixed the mob-skill random picking behaviour causing infinite
  4732. loops sometimes. [Skotlex]
  4733. * Modified mobskill_use behaviour to pick a random starting point and check
  4734. skills from that, rather than always checking from first to last. Fixes
  4735. skills with high priority blocking skills lower down in the list from
  4736. triggering. [Skotlex]
  4737. * Updated mob ai behaviour so that mobs use IDLE state skills when their
  4738. current target cannot be reached for melee fighting. [Skotlex]
  4739. 2006/05/18
  4740. * Added 5 config settings to adjust damage in pk-mode servers (misc.conf)
  4741. [Skotlex]
  4742. * Fixed mob_max_skilllvl being capped to 11! [Skotlex]
  4743. * Rewrote/cleaned up several functions in storage.c [Skotlex]
  4744. * Optimized pc_additem comparisons to account for items with more than four
  4745. slots. [Skotlex]
  4746. * Updated clif.c to enable retrieval of items from cart/storage while
  4747. trading. Exception is retrieving items from the cart while vending.
  4748. [Skotlex]
  4749. - The reasoning is that an ongoing trade will not get "corrupted" if you
  4750. earn items before it is commited (only if you lose items from your
  4751. inventory), and it is an annoyance when you realize the stuff you want to
  4752. trade is on the cart/storage.
  4753. * skill reiteration code now does not checks for the trigger-area of the
  4754. skill in the case of non-players, which means mobs can now place traps in
  4755. cells adjacent to each other. [Skotlex]
  4756. * Applied an experimental weather code that should lower bandwidth usage to
  4757. near-none, which's only disadvantage should be the weather not clearing out
  4758. until moving to another map (even when the mapflag is removed from the
  4759. current map). Please test and report if there's any anomalies with it.
  4760. [Skotlex]
  4761. * NPC_AGIUP will now give movement boost of 50% [Skotlex]
  4762. * Fixed WZ_WATERBALL number of hits when used by non-players. [Skotlex]
  4763. * MO_BODYRELOCATION will send the slide packet with the actual src's
  4764. coordinates rather than selected tile. [Skotlex]
  4765. 2006/05/17
  4766. * Modified mob_can_changetarget to return true always when the new target
  4767. is the provoked-by character. Fixes provoke not making the mob change
  4768. target when it already is locked on another player. [Skotlex]
  4769. * Added check to clear previous skill when combo time ends. Should fix TK
  4770. Rankers being unable to initiate a combo with the same kick their previous
  4771. combo was finished with. [Skotlex]
  4772. * Power Up and Agi Up now increase Hit/Flee by 20%/lv [Skotlex]
  4773. 2006/05/16
  4774. * Modified "hide woe damage" to send the number of hits rather than 1 as
  4775. damage Because when the damage is less than the number of hits, the client
  4776. will display MISS. [Skotlex]
  4777. * Fire Pillar will now do 200%MATK damage per hit when level is >10.
  4778. [Skotlex]
  4779. * Blood Drain always hits now. [Skotlex]
  4780. * Fixed Mob Area Skills not updating their use-time (rendering their skill
  4781. delay useless) [Skotlex]
  4782. * Search free cell will now skip picking the center-tile as target
  4783. location. Will prevent slaves from walking on top of their master, or mobs
  4784. placing stuff right under themselves with the "around" target conditions
  4785. among other things. [Skotlex]
  4786. 2006/05/15
  4787. * Small changes to the skill.conf
  4788. - Monsters now can place ground skills on top of each other by default
  4789. - Land_Skill_Limit format changed and set to "Only Players" by default
  4790. * When reading mapflags, when a map is set to be pvp or gvg, the other will
  4791. be turned off (disables pvp mapflags in gvg maps for pk-servers) [Skotlex]
  4792. * Firepillar's damage per hit is now 100% MATK (rather than 20%) when the
  4793. skill level is above 10. [Skotlex]
  4794. * Sorted out the item_data structure, getiteminfo should work correctly
  4795. now. [Skotlex]
  4796. * KA* skills can now be casted on other Soul Linkers as well without the
  4797. Spirit requirement. [Skotlex]
  4798. * Soul Drain will now show the SP drained regardless of drain display
  4799. settings. [Skotlex]
  4800. * SC_COMBO state will now end in skill_attack rather than
  4801. skill_check_condition (as it is required there to apply damage bonuses
  4802. based on combo-casted skills) [Skotlex]
  4803. * Fixed Option_Wedding in const.txt (0x1000 won't work, it has to be 4096)
  4804. [Skotlex]
  4805. * Fixed the nocast flag 2 (not usable in pvp) returning true in pk-mode
  4806. servers. [Skotlex]
  4807. * When removing a castle's owning guild, the char servers will erase the
  4808. guardian data now. [Skotlex]
  4809. * Changed the behaviour of immobile mobs when they can't chase their
  4810. target. Rather than using a longrange skill and then unlocking, they will
  4811. use an attack/angry state skill and then unlock. [Skotlex]
  4812. * Some adjustments of how disguising + gm-hiding work together. [Skotlex]
  4813. * Fixed clif_GlobalMessage being the exact same function as clif_message
  4814. (the first should send to ALL_CLIENT and the later should send to
  4815. AREA_CHAT_WOS). Should fix globalmes script command. [Skotlex]
  4816. * Added SC_BLADESTOP to the switch listing in status_change_start [Skotlex]
  4817. * Characters in vending are now always considered "idle" if the
  4818. idle_no_share setting is active. [Skotlex]
  4819. * Players with OPTION_INVISIBLE should not be sent to clients. [Lance]
  4820. * Remaining fixes for item scripts. [Lance]
  4821. * Added NPC event deprecated warnings to ease debugging old scripts. [Lance]
  4822. 2006/05/12
  4823. * Supplied fake NPC ID in sd->npc_id for item scripts. [Lance]
  4824. * Bugfix on fake npc [Lance]
  4825. * Fixed mob_once_spawn not working for non-random coordinates. [blackhole89]
  4826. * Reverted again the change that stuns the caster on Ske, Ska, Swoo when
  4827. the target is a nonplayer (rather than always) [Skotlex]
  4828. * Modified mob_spawn_once so that coordinates -1,-1 are "random around the
  4829. player" while 0,0 are random around the whole map (regardless of whether
  4830. there's a player attached or not) [Skotlex]
  4831. * Knockback will no longer work on traps during woe. [Skotlex]
  4832. 2006/05/11
  4833. * Fixed the definition of the KEY in the loginlog, thanks to TheUltraMage
  4834. [Skotlex]
  4835. * NPC_POWERUP and NPC_AGIUP now cause a increase in hit/flee (respectively)
  4836. of 40% per level. [Skotlex]
  4837. * Changed a bit the MAX_ZENY checks in trade.c to prevent overflows.
  4838. [Skotlex]
  4839. * Rewrote npc_selllist for a more proper-clean implementation. [Skotlex]
  4840. * Increased NPC_POWERUP's dex bonus to +25*lv [Skotlex]
  4841. * Moved TK_DOWNKICK's stun time from time to time2 [Skotlex]
  4842. * Added TK_TURNKICK's stun to splash-pushed mobs. Duration is 2secs (time2)
  4843. [Skotlex]
  4844. * Merged the code for Ska, Ske, Swoo together. Swoo stun duration is now 10
  4845. secs (reducable) if you target a mob that already has Swoo active. [Skotlex]
  4846. * Added the missing semi-comma from the upgrade_svn6533.sql file. Thanks to
  4847. Tanaous [Skotlex]
  4848. * Added back the missing code that substracts arrows when normal-attacking.
  4849. [Skotlex]
  4850. 2006/05/10
  4851. * Changed the state of Asura back to explosionspirits, added a hardcoded
  4852. move_enable check when invoking Asura and NOT while in BladeStop or a
  4853. Combo. [Skotlex]
  4854. * Added back SC_XMAS to status.c, it got lost sometime during all the
  4855. previous reworkings. [Skotlex]
  4856. * Changed wedding costumes to use setoption rather than changebase.
  4857. [Skotlex]
  4858. * Modified setoption so that flag 1 or no flag adds an option, and flag 0
  4859. removes it. [Skotlex]
  4860. * Updated script_commands with the new behaviour. [Skotlex]
  4861. * Updated mob_db2.txt and mob_db2.sql to have only 10 drop slots rather
  4862. than 15. [Skotlex]
  4863. * Users are now able to use their own dnsbl servers (login_athena) [Zido]
  4864. 2006/05/09
  4865. * Rewrote/cleaned up trade.c for a more clean trading implementation.
  4866. [Skotlex]
  4867. * Added @request commands, sends a request to all connected GMs of
  4868. lowest_gm_level or above as a whisper message. Defaults to gm level 20
  4869. users (UNTESTED). [Skotlex]
  4870. * Modified @commands to use Meruru's code which is faster and does a fair
  4871. attempt at tabulating the commands presented. [Skotlex]
  4872. * Updated SKA to return a random value between 0 and 99 each time
  4873. status_get_def is invoked. [Skotlex]
  4874. * Updated Making Arrow to not include unidentified items in the list.
  4875. [Skotlex]
  4876. * Reduced drop slots from 15 to 10. [Skotlex]
  4877. * Updated mob_db.sql with the current data. [Skotlex]
  4878. * Updated setoption script command to receive a second (optional) argument
  4879. flag. If the flag is 1, the option is added to what the player currently
  4880. has; likewise using flag 2 removes only that option. No flag (or any other
  4881. value) is the older behaviour of removing all other options and setting
  4882. specificly what is passed. [Skotlex]
  4883. * Updated script_commands information for setoption due to this change.
  4884. [Skotlex]
  4885. * Small fix in npc-created chat rooms to properly include the terminating 0
  4886. on the chat's event. [Skotlex]
  4887. * Fixed Fog of Wall's symmetry in respect to Misc attacks, they no longer
  4888. get reduced by 50% regardless of who is standing on the fog. [Skotlex]
  4889. * monster_ai&2 will now trigger the rude-attacked skill when the mob can't
  4890. move and the attacker is out of it's attack range. [Skotlex]
  4891. * Added missing icon for Joint Beat [Skotlex]
  4892. * Mob-search functions will now skip enemies with no exp/job_exp. [Skotlex]
  4893. * Treasure chests will now be excluded from the mob-drop listings
  4894. (@whodrops) [Skotlex]
  4895. * Fix on pc_skill which fixes overlapping when one gets more than one bonus
  4896. for the same skill. [Skotlex]
  4897. * Updated main.sql's loginlog table structure. [Skotlex]
  4898. * Added svn_update6533.sql to update the loginlog structure as suggested by
  4899. theultramage. [Skotlex]
  4900. * Cleaned up somewhat the implementation of BladeStop. [Skotlex]
  4901. * Fixed the head_bottom (pet-armor) position in packet 0x22c (walk packet)
  4902. when crafted for non-players. [Skotlex]
  4903. * Script commands sc_start, sc_start2 and sc_start4 will now start
  4904. regardless of sc defense of the target player (that is, they cannot be
  4905. avoided/blocked) [Skotlex]
  4906. * Fixed a possible counter overflow in attacked_count, changed the var size
  4907. to unsigned char since the code can handle the overflow now. [Skotlex]
  4908. * Multiple targets again reduces armor defense, as reported by Tharis.
  4909. [Skotlex]
  4910. * Increased dex bonus of NPC_POWERUP to +20 per level. [Skotlex]
  4911. * Fog of Wall's -50 hit reduction is now only for ranged attacks. [Skotlex]
  4912. 2006/05/08
  4913. * Reverted the change that was making ES skills stun the caster always.
  4914. [Skotlex]
  4915. * Removed the fixpos packet which is sent whenever you are hit while moving
  4916. as Aegis doesn't sends this packet neither. [Skotlex]
  4917. * ES magic will now put the caster on stun for 0.5 secs regardless of
  4918. whether the skill-target is a mob or not. [Skotlex]
  4919. * Added function clif_party_join_info which sends packet 0x1e9 each time a
  4920. party-member joins. This packet (as redundant info as it has) should also
  4921. contain the field for "adoptability", but that needs to be coded in yet.
  4922. [Skotlex]
  4923. * Added clif_ParseAdoptRequest which does the basic adoption handling. More
  4924. checks and the reply packets still need to be coded in. [Skotlex]
  4925. * Happy State and TK stances won't dispel on death now. [Skotlex]
  4926. * Cleaned up combo-skill implementation, SC_COMBO is automatically ended in
  4927. skill_check_condition now. [Skotlex]
  4928. * Modified TK-ranker infinite combos to behave as described by AuronX.
  4929. Refer to his thread in the development section for details. [Skotlex]
  4930. * Made all Soul Link Spirit skills not be castable on self. [Skotlex]
  4931. * Changed rate of NPC status effect skills to 50+10*lv% base chance
  4932. (guessed, but better than 100% for all levels) [Skotlex]
  4933. * Changed max level of NPC status effect skills to 5 [Skotlex]
  4934. * Increased max number of tries to find a random spot in maps to 1000 since
  4935. some maps have so many non-walkable tiles it's hard to find one in just 100
  4936. tries. [Skotlex]
  4937. * status_set_viewdata will remove the Wedding Option status when you set a
  4938. class that is not wedding. [Skotlex]
  4939. * hide_gvg_damage will now send 1 instead of -1 as damage. [Skotlex]
  4940. * idletime will now be updated on attack-request, not on sit/standup
  4941. [Skotlex]
  4942. * Party members sitting will no longer be considered idle. [Skotlex]
  4943. * Removed SP_DISGUISE from the bonus list (onequip/onunequip should be used
  4944. with the disguise/undisguise script commands instead). [Skotlex]
  4945. * Moved Sharp Shooting display to the block with Auto-Counter (since that's
  4946. the other skill that can show critical as well) [Skotlex]
  4947. * Corrected some fields in the standing still packet (guild emblem being
  4948. stored as a Long when it should be Short) [Skotlex]
  4949. * Modified most fields of view_data to be unsigned shorts rather than
  4950. signed ones. [Skotlex]
  4951. * On-Touch NPCs will now make you stop walking when you trigger them.
  4952. [Skotlex]
  4953. * ShadowJump/JumpKick will make you land on the target's cell now.
  4954. [Skotlex]
  4955. * Fixed Kaahi triggering only once per skill duration. [Skotlex]
  4956. 2006/05/07
  4957. * Fixed readme/changelog.html [KillerBox]
  4958. * Removed old logs. [Lupus]
  4959. TODO: 1. Add produce logging into PICKLOG 2. Replace map names with map index
  4960. 2006/05/05
  4961. * Optimized clif.c clif_scriptmenu/input/inputstr to check for sd->state.using_fake_npc
  4962. before sending one (as it's not required to send twice).
  4963. * Reinitialize sd->state.using_fake_npc in clif_parse_LoadEndAck (for scripts that warps
  4964. players and still continues execution to work). [Lance]
  4965. * Updated item_db.sql to current. [Skotlex]
  4966. * Fixed a bug in @commands, most likely the reason some people were still
  4967. getting crashes. [Skotlex]
  4968. * Fixed @commands not showing the last available commands (unless the total
  4969. amount of commands is divisible by ten) [Skotlex]
  4970. * Added a npc-script-event cache to avoid looking up event-scripts every
  4971. time they need to be executed. Events cached are all those defined in
  4972. script_config (on login, logout, mapchange, death, kill, level up) [Skotlex]
  4973. - Since the cache holds direct pointers to the npcs/events, do NOT unload
  4974. the related NPCs or you'll get dangling pointer crashes. However,
  4975. @reloadscript will work fine.
  4976. - Set the etc_log to on to see a summary of npcs/events loaded for script
  4977. execution on startup.
  4978. * The Rest bonus activated by using /doridori while in rest should now
  4979. trigger with all the class tree (TK/SL/SG) [Skotlex]
  4980. * Fixed Kaupe always triggering when the one who was under Kaupe was a
  4981. player rather than the one attacking... [Skotlex]
  4982. * /doridori now won't double the HP/SP regen of TKs, it only activates
  4983. their "happy" state. [Skotlex]
  4984. * Added the -50 hit penalty when standing on Wall of Fog. [Skotlex]
  4985. * Uncommented the status_calc_mdef2 call in status_calc_pc. [Skotlex]
  4986. * Being in Enjoyable Rest state will now also trigger the HP/SP Time skills
  4987. (even if there's no other TK around). [Skotlex]
  4988. * Added battle config settings view_range_rate and chase_range_rate to
  4989. adjust the view-range and chase-range (range2/range3) of the mob_db without
  4990. having to manually change them (battle/monster.conf) [Skotlex]
  4991. * Kaupe now will only block all skills of players, for non-players, only
  4992. normal attacks can be missed. [Skotlex]
  4993. * Moved the Kaite spell-reflect code after the damage calculation function,
  4994. so the reflected damage is exactly the damage the original target would
  4995. have received. Will only trigger if the damage to be reflected is above 0.
  4996. [Skotlex]
  4997. * OnEquip scripts will now trigger on log-on. [Skotlex]
  4998. * Infinite Endure will no longer give mdef bonus. [Skotlex]
  4999. * Removed bInfiniteEndure bonus, Eddga card now uses onequip/onunequip to
  5000. start/end infinite endure. [Skotlex]
  5001. * Fixed Kaahi's SP cost per heal. [Skotlex]
  5002. * Now when walkdelay is set to 0, characters will stop walking when hit,
  5003. but will not have any walk delay. (previously setting walk delay to 0 would
  5004. not even stop characters from walking when hit) [Skotlex]
  5005. 2006/05/04
  5006. * Some people think its sexy to declare variables after blocks of code. Fixed. [Zido]
  5007. * Fixed a possible infinite loop in skill_clear_unit_group [Skotlex]
  5008. * Some clean-ups in the mob_ai [Skotlex]
  5009. * Improved atcommand autoloot, now displays droprate in percents and notices
  5010. player if autoloot is already on or off. Also simplified the code [Harbin, Kain],
  5011. commited by erKURITA
  5012. * Added one grace range in the mob_loot search function which should fix
  5013. mob_can_reach failing when invoked with the same distance that distance_bl
  5014. returned. [Skotlex]
  5015. * Stun time for using ES magic on non-mobs reduced to 0.5 secs. [Skotlex]
  5016. * Eska is now usable on bosses. [Skotlex]
  5017. * Swoo will stun you if attempted on an already 'swooned' enemy. [Skotlex]
  5018. * clif_skill_failed will print out a debug line with the skill_id (since
  5019. the current null_po does not helps at all to fix it) [Skotlex]
  5020. * Applied TheUltraMage's suggested fixes to the grfio module. [Skotlex]
  5021. * Rewrote Kaahi to behave as it should. It will heal whatever amount of
  5022. damage accumulates in the time2 interval (500ms by default) after being
  5023. hit. [Skotlex]
  5024. * Changed skill_unit_move_unit_group to enable moving of all types of
  5025. ground-skills except ensembles (fixes warmth not following you) [Skotlex]
  5026. 2006/05/03
  5027. * Kaahi now triggers every 500ms rather than on every hit (but it only
  5028. heals if in those 500ms an attack that would previously trigger Kaahi has
  5029. taken effect). In other words, it works just like before, except damage
  5030. gets "buffered" into 500ms slots. [Skotlex]
  5031. * Kaite, Kaute will now show a skill effect when they trigger. [Skotlex
  5032. * Knowledge will now only trigger if you logon to the memorized map, not
  5033. walk into it. [Skotlex]
  5034. * Corrected @whomap directly invoking msg_table[] rather than msg_txt()
  5035. [Skotlex]
  5036. * Guessed where the pet data goes in spawn packet 0x7c. This may be wrong
  5037. and not fix the pet issue, but I doubt it'll cause any problems that won't
  5038. be fixed by making the pet move. [Skotlex]
  5039. * Updated Charge Attack's state from none to move_enable. [Skotlex]
  5040. * Made tomahawk an NPC_SKILL so that it may not be plagiarized. [Skotlex]
  5041. 2006/05/02
  5042. * Fixed standing up not really standing you up. [Skotlex]
  5043. * Moved battle_consume_ammo to the end of skill_castend_damage_id,
  5044. skill_castend_nodamage_id and skill_castend_pos2 rather than
  5045. battle_calc_weapon_attack. They will trigger when the player's arrow_atk
  5046. state is active and a ground skill was not invoked. It should fix all
  5047. issues with splash/ground skills consuming ammo per target rather than once
  5048. per skill use. [Skotlex]
  5049. * Added structure state to the ground skills, their fields are magic_power,
  5050. into_abyss and ammo_consume to indicate the states that were previously
  5051. stored in val3. [Skotlex]
  5052. * Implemented desperado as explained by Rockman-EXE. The skill-effect is
  5053. not showing up though, I'll need some logged packets to see what's missing.
  5054. [Skotlex]
  5055. * Removed the unit_can_move checks in skill cast-end, they should be
  5056. performed in skill_check_require when the skill's state is move_enabled.
  5057. [Skotlex]
  5058. * Changed extremity fist's state to move_enabled, the explosion spirits
  5059. check is now hardcoded. [Skotlex]
  5060. * Absorb Spirit Sphere now gives +10SP per sphere as per discussions with
  5061. Haplo. [Skotlex]
  5062. * Changed a <= into a < in pc_steal_item. This means drops with 0.01% are
  5063. impossible to steal unless you have at least 100% steal-rate (where steal
  5064. rate is dex - opponent dex + skill_lv*3% + 10%) [Skotlex[
  5065. * Cleaned up clif_parse_action_request to enable sitting/standing while in
  5066. shops, interacting with npcs, etc. [Skotlex]
  5067. * Kaite now works against all types of spells. [Skotlex]
  5068. * Kaupe now works against all skills. [Skotlex]
  5069. * Sanctuary now won't damage non-enemies. [Skotlex]
  5070. * Blessing now will always give you bonus stats even if you are wearing
  5071. undead armor. [Skotlex]
  5072. * Modified how Rogue's treasure works so that you get +1% to your steal
  5073. rate rather than +0.01% to the final rate. [Skotlex]
  5074. * Rewrote Warmth to use ground-skill-units, it should behave now like in
  5075. officials (implementation is not quite the same, but it should yield the
  5076. same effects while consuming less bandwidth). "Stacking", as it's called,
  5077. is possible now, but limited to eA's minimum timer skill interval (100ms).
  5078. [Skotlex]
  5079. * Modified NPC_POWERUP so that it gives +10 dex * skill level rather than
  5080. +5+lv to all stats (as explained by Playtester and Tharis on how the skill
  5081. behaves). [Skotlex]
  5082. * Allowed SG_FEEL memorizing the same map for all three. [Skotlex]
  5083. * SC_FUSION won't end when you die now. [Skotlex]
  5084. 2006/05/01
  5085. * Added knockback when you run into a wall during running. However
  5086. position is not being refreshed on the client yet... [Skotlex]
  5087. * Fixed pc_disguise not allowing you to "redisguise". [Skotlex]
  5088. * Corrected a crash when sd is null in npc_event [Skotlex]
  5089. * After testing to make sure it works properly, I'm including
  5090. new battle conf options to limit MVP drops. [Reddozen]
  5091. * Removed OPTION_XMAS, it seems to not exist.... [Skotlex]
  5092. * Added SC_SMA to handle "ready to use SMA" status (rather than SC_COMBO)
  5093. since it has a visual effect to use. [Skotlex]
  5094. * Corrected the value of OPTION_FLYING [Skotlex]
  5095. * Using SG_FUSION ends Soul Linked effect. [Skotlex]
  5096. * status_setviewdata will set your option accordingly when the previous/new
  5097. view-class is wedding or xmas suit. [Skotlex]
  5098. * Added function map_foreachinshootrange, behaves the same way as
  5099. map_foreachinrange, but it also performs a "shoot-path" check before
  5100. invoking the function. Used in the skill subtimer function if
  5101. skill_wall_check is defined. [Skotlex]
  5102. * Fixed AL_WARP displaying "Unknown Area" selections when you don't have
  5103. all memo points used up. [Skotlex]
  5104. * Fixed alive_count not being reset on skill unitsetting, which leads to
  5105. some groups not being cleared once all their units expire. [Skotlex]
  5106. * Optimized Kaahi/Kahai, will now only show the amount of HP healed. Moved
  5107. to skill_counter additional effect so it may trigger even on miss. [Skotlex]
  5108. * SKA no longer blocks skills. [Skotlex]
  5109. * Optimized fake npc system. Added npc_checknear back to npc_buysellsel. [Lance]