Changelog-Trunk.txt 382 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893
  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/02/21
  5. * Added status_calc_life to properly calculate hp/max_hp as a ratio taking
  6. into accounts overflows (and for now also avoids divisions by 0). Applied
  7. this function around clif.c, mob.c and pet.c
  8. * Implemented the correct walk-speed bonus from the Bard/Dancer spirit.
  9. * Fixed logarithmic drops turning 0% drop rates into 100%.
  10. * Restructured the login mechanism of the map-server. The goal was to make
  11. sure players are not found in the different dbs of the map while the
  12. player has not yet been fully authed or while it is quitting, to avoid the
  13. rest of the code from accessing and modifying it. It is a rather extensive
  14. change, and I only had time to test the basic functionality, so if use with
  15. care and report any bugs found.
  16. * Replaced player states auth, waiting_disconnect, finalsave with active,
  17. and removed states party_sent/guild_sent.
  18. * Removed several of the old login methods/constants/player states which
  19. are no longer needed due to this cleanup. [Skotlex]
  20. 2007/02/19
  21. * Rev. 12219 Fixed a typo in /map/clif.c (acount_id -> account_id) [L0ne_W0lf]
  22. * Forgotten update to the definition of script command 'input'.
  23. * Enabled DEBUG_MEMMGR only in DEBUG mode.
  24. * Made autotrading characters be kicked instead of reporting double login.
  25. * Made create_session initialize session_data to NULL.
  26. * Fixed db_obj_get not handling deleted nodes correctly. (bugreport:999) [FlavioJS]
  27. 2008/02/17
  28. * corrected login_fd/char_fd being uninitialized in the char servers.
  29. * Added a check to prevent using consume-delay items when you cannot use
  30. skills, since that opens an exploit if the item also has non-skill-casting
  31. components to its script. [Skotlex]
  32. 2008/02/14
  33. * Removed/replaced all calls to map_getallusers (followup to r12195)
  34. * Trashed @whozeny (from r269) [ultramage]
  35. * Added some changes to @noks. Now it uses a SC and not vars in mob_data [Zephyrus]
  36. - Added support to Self|Party|Guild to @noks (default is Party)
  37. 2008/02/13
  38. * Changes to memory manager: [FlavioJS]
  39. - fixed blocks that are fully used not being detected (and not freed) in
  40. memmgr_final (unfill_prev is NULL for unused blocks and full blocks)
  41. - fixed memmgr_final giving the wrong address to _mfree (for small blocks)
  42. - added the pointer address to most error messages (and log)
  43. - made it append to the log file instead of rewriting it
  44. - implemented a function to verify if a memory location is active
  45. - other minor changes
  46. * Merged memory manager updates from old jA revisions (bugreport:663) [ultramage]
  47. - less overhead and better overflow detection (caution, experimental!)
  48. * Added some security checks in mail system [Zephyrus]
  49. - This supose to fix a bug reported in 622 to limit to MAX_ZENY.
  50. - Also add more checks to free space in your inventory to receive items.
  51. * Added some new config settings: [Zephyrus]
  52. - homunculus_autoloot, idle_no_autoloot, max_guild_alliance.
  53. - Added a code to activate a Kill Steal protection and the required mapflags.
  54. 2008/02/11
  55. * 'Forget me Not' no longer blocks ASPD bonuses from working or prevents
  56. their re-casting, they are simply dispelled when the effect takes place.
  57. * Fixed a possible crash when a player logs out before their create-party
  58. request is accepted. [Skotlex]
  59. * Expanded the script command 'input': (bugreport:811) [FlavioJS]
  60. - two new optional arguments 'min' and 'max'
  61. - return value indicating if it's in the correct range
  62. - config variables for the default value of the arguments:
  63. 'input_min_value' and 'input_max_value' in script_athena.conf
  64. 2008/02/10
  65. * Added two missing opt2 values, for Angelus and Bleeding status
  66. * Fixed Warp Portal code sometimes producing errors/crashes in the case
  67. where a priest enters his/her own warp (bugreport:270)
  68. 2008/02/08
  69. * Fixed wrong message in item group loading code (bugreport:936)
  70. * Fixed 'charisalpha' not working for the first char (bugreport:940)
  71. * Disabled signed/unsigned warnings for visual studio 2005 [ultramage]
  72. 2008/02/07
  73. * Fixed the disguise commands using the wrong variable when attempting to
  74. disguise as an npc.
  75. * Corrected and optimized npc_remove_map's npc array cleanup (Fixes
  76. @reloadscripts reporting 'too many npcs per map' and related dangling
  77. pointer crashes).
  78. * HP loss item scripts can no longer kill you.
  79. * Corrected the item-drop-rate check to avoid duplicate entries in
  80. @whodrops after a @reloadmobdb. [Skotlex]
  81. 2008/02/04
  82. * Some code cleanups. [Zephyrus]
  83. - Added new Cell types (NoChat and NoDamage)
  84. - Added JobChangeLevel and FreeSKPoints to #stats
  85. - Added a Crash protection in clif_send with invalid fd values.
  86. - Merged a missing update in TK Mission.
  87. - Added script command 'getmapflag'
  88. 2008/02/03
  89. * Fixes to Devotion (see topic:153345) [ultramage]
  90. - removed totally fake Devotion packet from Marionette Control code
  91. - fixed one devoted chars array management code bug which caused chars
  92. to be included in the array multiple times, producing various problems
  93. - the link will now re-display when coming into view range
  94. - the link will no longer break if the devotee walks away, but instead,
  95. if he receives damage while being out of range of Devotion
  96. * Added an iterator to map.h/c. [FlavioJS]
  97. Will be used instead of map_getallusers, which has problems with
  98. dangling pointers (returned array isn't updated).
  99. 2008/02/01
  100. * Fixed sql charserver crashing sometimes (bugreport:870) [ultramage]
  101. 2008/01/29
  102. * Plagiarize can no longer copy skill levels beyond their max skill_db
  103. value.
  104. * Modified pc_dead so that the src is passed on to the master when it is a
  105. pet or homunculus. [Skotlex]
  106. 2008/01/26
  107. * Small update to the dgbhelpplug plugin: [FlavioJS]
  108. - fixed only half of wide character strings being printed
  109. - fixed the memory validity check in Dhp__PrintDataValue being optimized
  110. out in release mode
  111. 2008/01/25
  112. * Updated conversion tools for mob_db & item_db
  113. * Updated SQL Files (item & mobs) [Toms]
  114. 2008/01/21
  115. * Fixed battle config loading not applying the side-effects of
  116. battle_adjust_conf() side-effect if an import: operation fails.
  117. This is what caused the odd slowdown reported in bugreport:260.
  118. 2008/01/20
  119. * Fixed item searches not working on exact "jname" matches.
  120. * Fixed hom_setting&0x2 conflicting with the 'view-range' limit check.
  121. * Merged the SA_MONOCELL and SA_CLASSCHANGE code. After changing class all
  122. the status changes that cannot be triggered on bosses are dispelled.
  123. * SA_CLASSCHANGE now uses the bloody branch list to pick a target MVP
  124. class. [Skotlex]
  125. 2008/01/19
  126. * Added plugin dbghelpplug to generate more extensive crash reports in windows. [FlavioJS]
  127. - see header of src/plugins/dbghelpplug.c to know it's capabilities
  128. - VS8 project file supplied at vcproj-8/dbghelpplug.vcproj
  129. - a dll compiled in release mode is supplied at plugins/dbghelpplug.dll
  130. 2008/01/17
  131. * Made battle_check_range fail whenever the distance between src/target is
  132. greater than the viewing range. [Skotlex]
  133. * Icewalls can no longer be knocked back (see bugreport:38)
  134. 2008/01/15
  135. * Manner system fixing [ultramage]
  136. - better-than-aegis 'red bubble' packet updates; now it shows correctly
  137. - added support for /rc, which is basically mute for 60 minutes
  138. - fixed typo in r12076 making gm-mute start on the gm instead of target
  139. - fixed @mute not ending the status properly when using negative values
  140. - adde missing clif_manner_message(), sends info about manner updates
  141. 2008/01/14
  142. * Fixed missing mob_spawn call, which was making CR_CULTIVATION not
  143. actually spawn the plant. [Skotlex]
  144. * Client packet corrections
  145. - 0x01df is not 'gmreqnochatcount', but for requesting a player's
  146. account name via right-click menu (which currently can't be done)
  147. - added /remove and /recall, aliases to /shift and /summon
  148. - added /changemaptype, which alters a single cell's gat type
  149. - gm kick will no longer exit the client (now it goes to the login screen)
  150. - removed the quicksort invocation in /ignore code
  151. * Fixed card removal script functions' 'extra card' bug (bugreport:786)
  152. * Removed the hardcoded limit for numeric npc input boxes (bugreport:811)
  153. * Applied a temp patch to make some npc-executed atcommands work again
  154. * Added support for right-click-gm-menu kicking NPC objects [ultramage]
  155. * Fixed dangling pointer crashes when bleeding or Deadly poison kills a
  156. spawn-once monster.
  157. * Fixed a possible ERS entry corruption when Deadly Poison kills a target
  158. that has kaizel active.
  159. 2008/01/13
  160. * Fixed a possible ers_entry corruption if you die from bleeding while
  161. under the effects of kaizel.
  162. * Updated Safety wall so it does not blocks melee magic. [Skotlex]
  163. 2008/01/12
  164. * Another possible fix to ers/status_change crashing.
  165. - same logic as r12058 but in status_change_timer.
  166. - look out for this error: "[Error]: status_change_timer: Unexpected NULL status change id: ### data: ###"
  167. getting it means that a crash was avoided and the culprit found.
  168. * Modified npc_parsesrcfile to read the file as binary and let sv_parse handle LF/CRLF line endings.
  169. * Possible fix to ers/status_change crashing. [FlavioJS]
  170. - this patch is untested. Didn't find anyone willing to test it and I can't
  171. reproduce the crash so can't test the patch.
  172. symptom:
  173. status_change_entry.timer is being modified after the entry is freed.
  174. ers uses that memory location as a pointer when the entry is freed,
  175. it crashes when accessing the contents when it points to an invalid location.
  176. assumption:
  177. status_change_start starts an already existing status.
  178. as a consequence of something called inside status_change_start the status is ended.
  179. when the sce is finally being modified, it's modifying a freed entry.
  180. 2008/01/11
  181. * Implemented the extra damage bonus to TK_JUMPKICK when it is used while
  182. running (however what the bonus's equation is has been lost to time, so
  183. someone else correct it).
  184. * Corrected CR_CULTIVATION to cause summoned plants to expire after 5
  185. minutes.
  186. 2008/01/10
  187. * Fixed getmonsterinfo to return "null" when returning the name of a
  188. non-existing mob instead of -1.
  189. * Corrected CR_CULTIVATION to fail when the target cell has some BL_CHAR on
  190. it already.
  191. * Script command percentheal will no longer kill the player if the
  192. specified amount is negative (and not -100).
  193. * Fixed Abracadabra unable to cast non-targeted skills (bugreport:186)
  194. * Another round of login server cleaning [ultramage]
  195. - fixed passwordencrypt on SQL not behaving correctly (since r10753)
  196. - corrected some column lengths in the login db (username, password,...)
  197. - fixed some places which used wfifo without first reallocating it
  198. - removed interserver packet 0x7532 (Request to end connection), as
  199. there was no code that actually sent this packet
  200. - moved RFIFOSKIP actions to execute as soon as possible
  201. * Corrected @slaveclone/@clone behaving as @evilclone when you change the @
  202. symbol.
  203. * Modified SC_ARMOR_ELEMENT so it grants elemental resist as if it they
  204. were card granted bonuses.
  205. * fixed a SA_DISPELL crash when casted on an object with no status changes.
  206. 2008/01/09
  207. * Script command warpportal now places a warp in its initial state (as if a
  208. real warp portal was casted).
  209. * Updated dispell to also not remove the following effects: Hindsight, Inc
  210. Hit/Atk Rate (NPC_POWERUP), Nen, TK stances and tumble, warm and speedup1
  211. (the other speed potion).
  212. * Chase-walking characters can now loot.
  213. * Hiding characters can't drop items now. [Skotlex]
  214. 2008/01/08
  215. * Added missing session auth checks to charserver. [ultramage]
  216. Packets from non-authed clients will now be discarded.
  217. * Fixed Wand of Hermod not starting the SC_HERMOD status change (which
  218. blocks spells)
  219. * Fixed additional def/mdef from vit/int bonuses being lost when a status
  220. change that affects def/mdef triggers (for homunculus) [Skotlex]
  221. * Added missing code to log main chat messages sent by whispering
  222. to main_chat_nick (bugreport:424) [ultramage]
  223. 2008/01/07
  224. * Small change to potion pitcher to allow potion healing rate item effects
  225. to be included in potion pitcher's heal rate. [Reddozen]
  226. * Changed the code in status_change_timer so that a null pointer no longer
  227. causes a crash but prints an error instead.
  228. * Corrected clones not copying over a player's skills properly. [Skotlex]
  229. 2008/01/06
  230. * Extended the id range for npcs, now [400,700) will also be treated
  231. as NPC objects (see topic:170845 and bugreport:727) [ultramage]
  232. * Fixed a visual itemdupple bug on mail system. [Zephyrus]
  233. - Fixed Overthrush status cannot being recalled at same skill lvl.
  234. 2008/01/04
  235. * Fixed a mistake in r11991 that let knockback work through walls
  236. * Modified the map_setcell() code to to use a boolean flag instead of
  237. needing SET_ / CLR_ pairs of defines (topic:174323) [ultramage].
  238. Also removed script object 'setcell', added script function 'setcell'
  239. - Now you can manipulate cell information without needing @loadnpc
  240. - You can also manipulate the terrain ('gat') type itself, using the
  241. new cell_walkable, cell_shootable and cell_water constants
  242. (currently the implementation uses bit flags too, so to get the type
  243. you want, you need to adjust the flags one by one)
  244. - This breaks current scripts, so please adjust places that use setcell
  245. (also be sure to _only_ use predefined constants, not direct numbers)
  246. - Details can be found in the script reference.
  247. * Fixed Music Lesson's effect on Assassin Cross of Sunset.
  248. * Fixed a possible crash in status_change_timer when debug mode is
  249. disabled. [Skotlex]
  250. 2008/01/03
  251. * Changes to reduce the number of map cell types
  252. - Pneuma now again works via status change (see r3969)
  253. - removed unused CELL_SAFETYWALL
  254. - removed custom CELL_REGEN, it just increased regen rate (r1192, r1518)
  255. * Fixed npc unloading not clearing NPC touch cells (bugreport:595)
  256. * Map cell mechanism rewrite (bugreport:426)
  257. - defined a data structure for map cells (replaces 3 various cell arrays)
  258. - both terrain (gat) and dynamic (cell) information is now stored as
  259. C-style bit flags instead of #defines and bitmasks
  260. - added map_gat2cell() and map_cell2gat() for terrain type conversions
  261. - changing terrain information via 'setcell' is temporarily disabled
  262. - mapserver startup now takes longer, as it needs to adapt mapcache data
  263. to internal representation, cell by cell (new mapcache format anyone?)
  264. * Moved extra junk from map_addblock/map_delblock to where it logically
  265. belongs (loadendack/unit_remove_map), removed flags and _sub macros
  266. * Removed map_data's block_count, as (quote Yor/ja2160),
  267. "Perhaps useful for debug, but uses memory AND CPU for nothing."
  268. (block lists are linked lists, they don't need count tracking) [ultramage]
  269. 2007/12/31
  270. * Fixed a crash in txt char-servers that the memory manager was hiding.
  271. online_char_db being used after being destroyed (since r4026)
  272. * Added code to reject double logins in clif_parse_WantToConnection and
  273. added debug messages to detect possible double logins that escaped.
  274. * Isolated accounts that are waiting for the quit ack. The rest of the
  275. game logic no longer has access to them though the id2sd/charid2sd dbs.
  276. 2007/12/30
  277. * Fixed get_val2 not using the stack, which automatically frees the data,
  278. causing memory leaks for string variables since r11976.
  279. (bugreport:723 , part of bugreport:714 and part of bugreport:708)
  280. * Trully fixed the previous commits. (missing cast and incomplete size)
  281. * Made the memory manager set allocated memory to 0xCD and freed memory
  282. to 0xDD. The memory manager no longer 'hides' uses of freed memory.
  283. 2007/12/29
  284. * Fixed two missing @LDFLAGS@ in src/plugins/Makefile.in. [FlavioJS]
  285. * Implemented THE official Steal skill equation and game mechanics
  286. (basically version from /stable plus a few tweaks) (see topic:116540)
  287. * Added missing bAddStealRate reference to doc/item_bonus.txt
  288. * Removed skill_steal_rate, as it was never used in the code (see r231)
  289. * Removed skill_steal_type, it's just a one-liner source mod (see r231)
  290. * Knockback now works through cells where there is a diagonal path, but
  291. no horizontal+vertical (two 90` icewalls with a gap where they 'join')
  292. * Some dead code removal in path.c [ultramage]
  293. 2007/12/28
  294. * Fixed a memory leak in memitemdata_to_sql.
  295. * Reverted a bad modification in clif_produceeffect from r11290. [FlavioJS]
  296. 2007/12/27
  297. * Removed an incorrect range check and fixed a copypaste typo which
  298. caused script engine errors / crashes (see r11984)
  299. * Re-added a missing mob last_thinktime timer initialization when a mob
  300. spawns, causing mob AI to freeze (mistake in r11964) [ultramage]
  301. * Changed the configure script:
  302. - refined the mysql test (wasn't detecting 64 libraries compiled without -m64)
  303. - added a test for clock_gettime in -lrt (required for Debian)
  304. * Corrected description of scope and npc variables in script_commands.txt.
  305. * Made temporary character string variables not have a limited length.
  306. (now all temporary string variables don't have limited length)
  307. * Made temporary character variables reuse free positions.
  308. * Tweeked the declaration and initialization defines for vectors.
  309. * Made do_sockets leave the for loop as soon as the readable number of
  310. sockets returned by select is found.
  311. * Made all posix compliant systems that support it and FreeBSD >= 5.1
  312. (implements it but doesn't have the posix defines) use the precise and
  313. consistent tick() implementation.
  314. * Minor tweek to HEAP_SEARCH (same variable can be used in from and to).
  315. * Fixed the map server not exiting when make_listen_bind fails and
  316. returns -1. [FlavioJS]
  317. 2007/12/26
  318. * Fixed the incorrect interpretation of the map-cell height information
  319. stored in .gat files; this was causing an overall of 20000 cells to
  320. be treated as water when officially they aren't [ultramage]
  321. * Fixed string variables dereferencing directly to the value instead of
  322. dereferencing to a copy of the value. (fixes bugreport:684 bugreport:641) [FlavioJS]
  323. 2007/12/23
  324. * Added a generic vector implementation (dynamic array) based on defines. [FlavioJS]
  325. * Fixed horrible handling of skill_abra_db which leads to memory corruption
  326. (depending on the contents of yor abra_db.txt file) [Skotlex]
  327. 2007/12/22
  328. * Fixed droprate overflows when going over rate 2000x [ultramage]
  329. * Corrected mob spawn utilization of the delay1/delay2 values (one is
  330. respawn delay base, the second is random variance added on top of it).
  331. Cleaned up related code. [Skotlex]
  332. 2007/12/19
  333. * Fixed yet another buffer overflow, in @adopt [ultramage]
  334. * Changes to the configure script. [FlavioJS]
  335. - fixed the 'pointers can be stored in ints' test not working
  336. - fixed the linker trying to build 64 bit executables with 32 bit code on
  337. x86_64 (missing -m32 flag in LDFLAGS)
  338. - made MYSQL_CFLAGS be built from the --include option to be more portable
  339. - made --with-mysql check if the optional argument is an executable file
  340. - make --with-pcre check if the optional argument is a directory
  341. - other minor changes
  342. * Corrected SC_MIRACLE to trigger Bless of the Stars on all defeated mobs.
  343. [Skotlex]
  344. 2007/12/18
  345. * Fixed a possible buffer overflow in @partyoption [ultramage]
  346. * Updated respawn time interpretation according to latest kRO update [Playtester]
  347. - this first time is the "min respawn time"
  348. - the second time is the "variance" which is added to the "min respawn time"
  349. * Corrected skill_db reading to properly trim the skill name/descs.
  350. * Added a mobid_db in map.c to handle mob lookups faster. [Skotlex]
  351. 2007/12/17
  352. * Added flag.server to indicate interserver sockets
  353. - replaces the previous way (setting 'client_addr' to 0)
  354. 2007/12/14
  355. * Guardian hp handling code removal (see bugreport:342)
  356. - removed guardian hp from the castle data structure, database,
  357. savefiles and various script functions (use upgrade_svn11915.sql)
  358. - removed guardian hp calculation and manipulation from the castle
  359. manager npc, now the hp values are updated by the server itself
  360. (glitch: when castle defense changes, all guardians are healed to full)
  361. - tweaked script function 'guardianinfo' to provide some data needed
  362. by the manager npc (currently available are hp, maxhp and visibility);
  363. also, it doesn't need a player attached to execute
  364. * Added a precise and consistent tick() function for freebsd [ultramage]
  365. * Wand of Hermode now dispells buffs only of allies.
  366. * Fixed some null pointer checks in status_change_end.
  367. * Corrected a crashy Warning message. [Skotlex]
  368. 2007/12/13
  369. * Fixed possible segmentation faults in the script engine.
  370. - some strings that can be freed outside the script engine were being
  371. pushed into the stack as constant strings
  372. * Disabled ers until recent crashes are fixed.
  373. - ers entries are being corrupted, probably by modifying them after they
  374. are released or by releasing something else
  375. * Abstracted the windows socket code so that all fd's are in the range
  376. [1,FD_SETSIZE[. (bugreport:604)
  377. - The socket of a fd is forgotten when executing sClose, so things that
  378. depend on the socket (like sFD_CLR) must be executed before closing.
  379. * Replaced the fd_set of the short list with a custom implementation
  380. (works like the linux fd_set). [FlavioJS]
  381. 2007/12/12
  382. * Some preparations for the guild script update [ultramage]
  383. - cleaned up npc event execution code
  384. - cleaned up guild data loading/saving code; to be improved later
  385. - removed dummy 'account name' expulsion list management code
  386. - removed columns 'rsv1' and 'rsv2' from guild member data
  387. - removed columns 'rsv1' 'rsv2' 'rsv3' and 'acc' from guild expulsion data
  388. 2007/12/11
  389. * Added query_logsql script command to perform sql commands using the log
  390. db connection.
  391. * Added some new cashitems and headgears.
  392. 2007/12/10
  393. * Cleaned up clif_setdisguise and fixed it for PACKETVER>=9.
  394. * Added missing range/skill-mask info to reflected damage (fixes autospells
  395. not triggering on it) [Skotlex]
  396. 2007/12/09
  397. * Modified npc_parsesrcfile to parse the line as a 'tab-separated values'
  398. string and added data truncation warnings.
  399. - enforces a stricter adherence to the format (no multiple tabs)
  400. - avoids sscanf matching spaces, new lines and carriage returns when '\t'
  401. is used in the format string
  402. * Added a generic 'delimiter-separated values' string parser to strlib.c/h. [FlavioJS]
  403. 2007/12/07
  404. * Fixed ensembles skills.
  405. * removed the timer heap correction code when the timers overflow since
  406. Flavio points out that it is not needed.
  407. * Modified a bit the changesex code so you get saved and quit before
  408. changing your sex rather than afterwards.
  409. * Cleaned up #changesex
  410. * Signum Crucis now works on bosses. [Skotlex]
  411. 2007/12/06
  412. * Removed the attempts to recover from invalid syntax in npc_parsesrcfile
  413. since they can produce incorrect results (spaces in sscanf can match
  414. \n's and company).
  415. * Made script_rid2sd report the script source directly and changed related
  416. return 1's to return 0's to avoid double script source reports.
  417. * Added missing return 0's after script_rid2sd is used and an extra error
  418. message in buildin_set/buildin_setd. [FlavioJS]
  419. * The default event script behaviour is to trigger on labels rather than
  420. NPCs now.
  421. * Removed several script config options which break NPC compatibility when
  422. you mess with them (event_script_type, event_requires_trigger,
  423. die_event_name, kill_pc_event_name, kill_mob_event_name, logout_event_name,
  424. login_event_name, loadmap_event_name, baselvup_event_name,
  425. joblvup_event_name)
  426. * LoadMap events no longer set the variable "@maploaded$" to the name of
  427. the new map. [Skotlex]
  428. 2007/12/03
  429. * Fixed a bug on Mail System. Removed the possibility to lost the attachment on
  430. a Map - Char server disconnection. [Zephyrus]
  431. 2007/11/29
  432. * pc_setoption no longer does view_data changes while disguised (as this
  433. breaks things) [Skotlex]
  434. * Random cleanup/documentation.
  435. * Made common/Makefile get the svn version from the src directory, not src/common.
  436. * Added a warning message to the install and uninstall targets.
  437. * Renamed all obj directories to obj_all, obj_txt or obj_sql in the
  438. makefiles (if an obj/ directory exists, BSD make enters it before
  439. reading the makefile) [FlavioJS]
  440. * Allowed disguising while riding a peco-peco (this does not seem to cause
  441. problems anymore).
  442. * The pvp rank packet is no longer sent to other players when disguised, as
  443. this leads to crashes when you die.
  444. * Probably fixed splash damage.
  445. * Reflected spells no longer cause knockback.
  446. * SG Blessing skills now grant the extra experience to everyone when the SG
  447. killed the mob.
  448. 2007/11/28
  449. * Applied the required changes to handle def as a signed char (allows for
  450. negative def)
  451. * Corrected skill_check_condition to not delete items right away for
  452. certain skills that do the deletion themselves. Fixes several skills
  453. consuming items twice.
  454. * Dispel's success rate is no longer affected by MDEF
  455. * You are no longer blocked from being warped when standing in a warp while
  456. in a duel.
  457. * Duels are now automatically ended when you warp out of the map you are
  458. in. [Skotlex]
  459. * Fixed reflected spells bypassing WoE no-knockback restriction, because
  460. the code allowed that when cast on self; not anymore (bugreport:231)
  461. * Reverted the position of the max_hp/max_sp basic setting, modified the
  462. max_hp/max_sp bonuses to use casting in order to work correctly with
  463. negative bonuses. [Skotlex]
  464. * Reconstructed a list of all PACKETVER types, by reverse-engineering
  465. it from places in the code where the define is used [ultramage]
  466. - recovered PACKETVER 6 which was added in r51, but overwritten by r141,
  467. one of the dumbest commits that I have seen so far
  468. - since 6 was the 'new trade window' update, it and its corresponding
  469. reply packet will now be used from now on instead the old version
  470. 2007/11/27
  471. * Added safesnprintf to strlib.c/h (bugreport:372) [FlavioJS]
  472. * removed login/char server_fd[] arrays, added server[].fd instead
  473. * TXT/SQL login server code synchronization [ultramage]
  474. - exported several core structures to login.h
  475. - split off ladmin communication code from the TXT login server
  476. - removed all occurences of login_log(); a unified function should be
  477. added when SQL's loginlog_db logging code gets synced with TXT
  478. - removed conf setting login_log_filename
  479. - fixed ladmin getting timeouts since the ping system was changed
  480. * Moved basic max HP/SP calculation to before parsing equipment, fixes
  481. negative absolute HP/SP bonuses not working.
  482. * Corrected the online_data_cleanup routine setting offline characters that
  483. are still connected to the char-server.
  484. * Added a check in script command sc_end to properly end infinte endure
  485. * ASC_BREAKER no longer triggers status effect cards. [Skotlex]
  486. * Fixed fake_nd not being exported correctly and being unloaded when
  487. reloading scripts. (probably fixes bugreport:444) [FlavioJS]
  488. 2007/11/26
  489. * Normalized makefiles:
  490. - 3 sections: variables, public targets, private/support targets
  491. - object files always in a *_OBJ variable
  492. - header files always in a *_H variable
  493. - object files always generated to an obj* subfolder
  494. - all Makefiles can be executed individually, calling other makefiles if necessary
  495. - generic object targets when possible
  496. * Fixed buildin_query_sql using Sql_Query instead of Sql_QueryStr,
  497. wrongly processing all %f,%d,... (fixes bureport:218) [FlavioJS]
  498. * Fixed guild expulsion not working correctly [ultramage]
  499. * Fixed a memory leak in mail_savemessage (src\char_sql\int_mail.c). [FlavioJS]
  500. 2007/11/25
  501. * Rev. 11804 Giant Fly Wings are now blocked on noteleport maps and duels. [L0ne_W0lf]
  502. 2007/11/24
  503. * Fixed a crash when Slim Pitcher is cast
  504. * Fixed a crash when a taekwon hits a wall while Sprinting (bugreport:483)
  505. * Added support for latest official client/server packet changes [ultramage]
  506. - enable by setting PACKETVER to 9; note that this breaks older clients
  507. 2007/11/23
  508. * Changed the status_change structure to use dynamic rather than static
  509. memory to hold the individual status changes, this should have a noticeable
  510. impact on the server's memory consumption. However, since this is a pretty
  511. large update (and I am unable to fully test all possible situations
  512. relating to status changes), watch out for any bugs. [Skotlex]
  513. 2007/11/22
  514. * Moved the reset of references to after the empty script checks in
  515. parse_script. (fixes bugreport:222 and bugreport:449)
  516. * Renamed fakenpcname to setnpcdisplay, fixed and extended it. [FlavioJS]
  517. - See doc/script_commands.txt for information on how to use it
  518. * Modified mapserver login procedure to make clients from may 2007
  519. and newer not crash when entering mapserver (bugreport:468) [ultramage]
  520. - this changes PACKETVER to 8, causing incompatibility with old clients
  521. - this makes the "Login" hex obsolete; please stop using it as it
  522. causes a conflict with this update and may have negative sideeffects
  523. 2007/11/21
  524. * Fixed Sql_SetEncoding not setting the encoding of the connection
  525. properly. (fixes bugreport:30)
  526. * Added backward compatible target 'conf' to the Makefile. [FlavioJS]
  527. * Changed Lif's Emergency Avoid to just get a normal skill delay
  528. (blocks all skills, cancelled by mapchange / re-summon) instead of
  529. getting a persistent block on only this one skill (bugreport:13)
  530. * Homunculi now reset their can-act delay on call/resurrect/mapchange
  531. (allows bypassing delays by doing rest/call instead of relog) [ultramage]
  532. 2007/11/20
  533. * Implemented SL_SUPERNOVICE erasing the death record 1% of the casts.
  534. * Implemented current exp being capped to the exp required to level up from
  535. the previous level when we are at max level (required for some S. Novice
  536. buffs) [Skotlex]
  537. 2007/11/19
  538. * Nullpo's disabled on release builds.
  539. * Added timestamps to the log of memory leaks.
  540. * Moved definition of __func__ to cbasetypes.h.
  541. * Configure script updated:
  542. - added option to select the memory manager
  543. - added option to enable MAPREGSQL
  544. - added option to enable DEBUG
  545. * common's Makefile deleting svnversion.h on 'clean' target. [FlavioJS]
  546. 2007/11/18
  547. * Implemented a small change that was long overdue: Displaying the
  548. char-select screen now uses a single SQL query instead of up to 9.
  549. [Skotlex]
  550. * Replaced jA's way of allocating npc shop data with a simple dynamic
  551. array that gets allocated during loading and freed on unload
  552. - automatically fixes bugreport:404, which would otherwise require
  553. manipulating the npcname_db (the original author didn't, hence the bug)
  554. - now a supporting variable 'count' is used for tracking the length
  555. instead of an extra dummy entry at the end of the shop list
  556. - partially removed the MAX_SHOPITEM restriction (if this was written
  557. properly, the system could support an unlimited amount of entries)
  558. 2007/11/17
  559. * Removed battle_config.error_log as console_silent already handles this
  560. * Made OnTouch zone dimensions be stored as radius instead of diameter
  561. - cleaned up some overly complicated area calculations [ultramage]
  562. 2007/11/16
  563. * Added 2 new status changes for Life and Regeneration Potions [Zephyrus]
  564. - Fixed some items boxes giving wrong tamings.
  565. - Fixed another item giving 48 gladius[3]
  566. * Added error messages when trying to place objects on invalid map coords
  567. * Fixed Divine Protection working against players (bugreport:410)
  568. 2007/11/15
  569. * Fixed some homunculus skill offset calculation mistakes (bugreport:363)
  570. 2007/11/14
  571. * Fixed skill_castnodex_db.txt not being parsed correctly
  572. * Fixed a search&replace typo in skill_db.txt
  573. * Added error reporting for invalid rows in skill db files
  574. * Added error reporting to buildin_warp when it fails [ultramage]
  575. 2007/11/13
  576. * Fixed homunculus skills having unlimited range instead of being
  577. capped to view_distance+1 (for details see bugreport:376) [ultramage]
  578. * Fixed @addwarp crashing the map server (bugreport:390). [FlavioJS]
  579. * The Forget-me-not status now behaves like Decrease AGI [ultramage]
  580. - doesn't cancel Impressive Riff, Wind Walker, True Sight (bugreport:187)
  581. - additionally, it doesn't cancel Cart Boost
  582. * Fixed some bugs on mail system. [Zephyrus]
  583. - Added the pc_candrop check (bugreport:305)
  584. - Added picklog to mail.
  585. - Added INCMDEFRATE status for Mdef potion.
  586. 2007/11/12
  587. * Now when job changing to another class tree, status changes from skills
  588. that belong to your previous class are cleared. [Skotlex]
  589. * Applied Rayce's improvements to the npc script parser [ultramage]
  590. * Made on-touch areas work with walking npcs (is somewhat process
  591. intensive, but people do not really care about that, do they?) [Skotlex]
  592. * Fixed a bug in r11384 letting you bypass requirements for some skills
  593. 2007/11/09
  594. * Expanded weapon_type enum with dual-wield constants (bugreport:384)
  595. * Replaced several 'int' variables with enums that they represent
  596. * Re-worked the login-char-map packet spam mechanism
  597. - mapserver no longer sends entire user list to charserver every
  598. 10 seconds; similar change done to the char-login connection
  599. - user count updates are only sent when the value actually changes
  600. instead of servers polling each other every few seconds
  601. - the servers now prevent interserver connection timeout explicitly by
  602. sending ping/ack packet pairs instead of relying on the usercount
  603. polling to do so; keepalive is sent every 'stall_time'-2 seconds
  604. * Fixed socket.c checking time() incorrectly (bugreport:394) [ultramage]
  605. * Added a database iterator to db.c/db.h. [FlavioJS]
  606. 2007/11/08
  607. * Changed EXIT_SUCCESS back to 0 in console.c to avoid an unnecessary include.
  608. * Fixed gm_account_db not being deallocated in login-converter.c.
  609. * Refactoring names and documentation in db.h/db.c: [FlavioJS]
  610. - changed 'struct dbt' to 'struct DBMap' and 'DB' to 'DBMap*'
  611. - changed 'struct db' to 'struct DBMap_impl' and 'DB_impl' to 'DBMap_impl*'
  612. - changed COUNT to DB_COUNTSTAT and made it's existence not depend on DB_ENABLE_STATS
  613. - removed some @see links and corrected small typos in the documentation
  614. * Fixed a glitch where all packets immediately after the map->char
  615. login packet would get discarded and the mapserver disconnected
  616. * Synced charserver char creation creation code [ultramage]
  617. - removed most of the creation failure messages printed to console
  618. - fixed sql charserver letting you use control chars in char names
  619. - new chars will not start with the 'Knife' and 'Cotton Shirt' equipped
  620. anymore (charserver blindly placed magic values into the equip field)
  621. * Updated configure script: [FlavioJS]
  622. - small correction to the help text of --with-mysql and --with-pcre
  623. - added the -Wno-switch compiler option to suppress the
  624. "enumeration value '%s' not handled in switch" warnings
  625. * Added a new setting 'guild_skill_relog_delay' to activate the guild skills delay
  626. on Guild Master relog. [Zephyrus]
  627. 2007/11/07
  628. * Some updates on the mail system packets [Zephyrus]
  629. - Corrected the mail database structure on main.sql
  630. - Added separated packets for get and set attachment on mail system.
  631. 2007/11/06
  632. * Fixed a crash caused by a mistake in the previous change
  633. 2007/11/05
  634. * Changed skill db loading code to work similarly to how itemdb/mobdb
  635. is loaded (generic file loader + specialized function to process rows)
  636. - all skill db files are now checked for inconsistencies the same way
  637. * Corrected the max. allowed skill name length, and optimized code that
  638. works with skill names according to latest changes [ultramage]
  639. * Reverted official drop rate estimation [Playtester]
  640. - although it really exists we don't have enough information about it
  641. - if server owners really want it they can implement it themselves
  642. (it's just a one-line fix anyways)
  643. * Cleaned up skill db lookup code
  644. - added some well-behaved functions to replace macros (skill_get_index)
  645. - used skill_get_index() to replace often occuring blocks of code
  646. that did the skill_id -> skilldb_index calculation in-line
  647. * Corrected skill db loading code which was using a totally wrong
  648. column count in sevreal cases (or didn't do any checks at all)
  649. * Changed the skill_db.txt skill names in comments into actual columns,
  650. now the server reads these instead of a hardcoded array [ultramage]
  651. 2007/11/04
  652. * Implemented official drop rate estimation [Playtester]
  653. - estimation is rounded on 2 positions after decimal point
  654. - this will effectively raise drop rates below 10% by 0.01%
  655. 2007/11/03
  656. * Added jA script function 'strnpcinfo', for increased npc awareness
  657. 2007/11/02
  658. * Fixed one wrong return value in buildin_getcharid (bugreport:33)
  659. * Removed the big list of BUILDIN_FUNC() declarations in script.c,
  660. as they are not needed anymore and no code utilizes them
  661. * Moved the BUILDIN_DEF() block to the end of script.c [ultramage]
  662. * Modified trap related code so it behaves as explained by Playtester:
  663. Traps trigger on everyone in their 'effect range' (skill_db's splash) for
  664. every target that lies within its trigger range at trigger time (range and
  665. interval in the skill_unit_db). [Skotlex]
  666. 2007/11/01
  667. * Removed code that queues OnAgitEliminate after the Emperium is broken,
  668. this is now done properly by the gvg script instead [ultramage]
  669. - if you have any extra castles, update your scripts accordingly
  670. 2007/10/31
  671. * Added names to the SC_ and SI_ enums, now they can be used to properly
  672. indicate where such values are to be used (replaces usage of 'int')
  673. * removed MIN_/MAX_PORTAL_MEMO, set MAX_MEMOPOINTS from 10 to 3
  674. * removed support for @go-ing to your memo points
  675. * simplified the overly verbose @memo command; now re-uses pc_memo()
  676. * cleaned up pc_memo(), now uses semi-correct packet replies
  677. * Minor code cleaning/formatting [ultramage]
  678. * Updated several mapflags - 'nomemo' 'noteleport' 'nosave' 'nowarpto'
  679. 'restricted' - due to Izlude Battle Arena release. [SinSloth]
  680. - Updated 'item_noequip' and 'skill_nocast_db' to match with 'restricted' mapflags.
  681. 2007/10/29
  682. * Updated the mail db structure on main.sql [Zephyrus]
  683. * Makefile creating the conf/import forder. [FlavioJS]
  684. * command code cleaning (refer to topic:169759) [ultramage]
  685. - separated the execution part of command code into interface part
  686. and internal part to better see which checks are done and when
  687. (fixes problem where 'nocommand' mapflag blocked server npcs)
  688. - moved the internal commands list (array) to the end of the file,
  689. this let me discard that long block of ACMD_FUNC() declarations
  690. - removed enum AtCommandType from command headers and commands array;
  691. its purpose was perhaps to identify aliased commands, but apparently
  692. it was never finished because the rest of the code doesn't use it
  693. (also doing aliases like this is not a very good idea)
  694. - internally, commands are now referenced to using their function name
  695. - removed the @/# symbols from the command lists; all lookup functions
  696. will now properly deal with strings with- and without a command symbol
  697. (commands interface still requires the symbol tho', so TODO for later)
  698. - removed several unneeded commands (*id2 code, dmalloc debug commands)
  699. - reverted atcommand config from alphabetically-sorted to how it was
  700. before (with additional fixes; see /conf changelog)
  701. - added missing code for #dropall / #storeall
  702. - added a warning when trying to set gm level of an undefined command
  703. * The structure of the commands table has changed, please adjust
  704. docs/guides to match the new format (sorry for the inconvenience)
  705. 2007/10/28
  706. * Minor adjustment to take into account the end of line.
  707. * Fixed the line count in the new error message of npc_parse_function.
  708. * Restricted more the parsing of npc code. (fixes bugreport:317) [FlavioJS]
  709. * Fixed a bug sending on the attachment message [Zephyrus]
  710. 2007/10/27
  711. * Fixed a typo in r11505 messing up the 'npcmove' command
  712. * Removed 'petid', a command from r284 to look up pet ids by name
  713. * Fixed TXT charserver doing periodic random-sized alloc (bugreport:312)
  714. * Set 'Create Converter's produce success rate to 100% (bugreport:302)
  715. * Added check that verifies weapon/ammo/state requirements also when
  716. casting finishes (might have unwanted side-effects!) (bugreport:228)
  717. * Fixed Firewall knocking back undead/fire element mobs (bug in r11578)
  718. * Added dummy 'openmail' to txt server to fix a script error message
  719. * Improvements/fixes to the mail system improvements :) [ultramage]
  720. * Improvements to the mail system. Need Testing, [Zephyrus]
  721. 2007/10/26
  722. * Moved the new novending cell check from the internal code to the
  723. client-server interface (allows server to force-open shop if needed)
  724. * Removed confusing map_nick2sd_nocase(), let the charserver handle it
  725. * Added correct packet for attachment retrieval failure when overweight
  726. * Fixed one more mistake in r11571 (Sql->SqlStmt) [ultramage]
  727. * Removed the config setting firewall_hits_on_undead setting, Firewall and
  728. kaensin now automatically calculate the number of hits they should do per
  729. iteration based on the skill trigger frequency (you may want to raise that
  730. delay of 1ms in the db, though). [Skotlex]
  731. 2007/10/24
  732. * Corrected a fex misshaps from r11571:
  733. - disabling the memory manager
  734. - using the wrong length for the title and body in mail_savemessage
  735. * Removed the quick-fix in the npc duplicate check and the impossible condition
  736. that is generating the warning. [FlavioJS]
  737. * @/#jobchange no longer strips your equipment since pc_jobchange removes
  738. any unequippables already.
  739. * Removed the wasteful define MAX_PC_CLASS and replaced it by the
  740. CLASS_COUNT define + pc_class2idx function. This should save a bunch of
  741. memory from the map server.
  742. * Merged the CELL_NOVENDING code (see topic #129209) [Skotlex]
  743. * Increased the max. send buffer size to 5M since 1M is not enough
  744. * Updated vs7 and vs6 project files
  745. * Added upgrade_svn11548.sql to convert the mail table to new format
  746. * Cleaned up the mail code, no more pointless dynamic allocation
  747. * Cleaned up some messy guild code (more to come) [ultramage]
  748. 2007/10/23
  749. * Fixed a compilation bug on linux (FALSE -> false) [Zephyrus]
  750. 2007/10/22
  751. * Heat isn't supposed to consume SP when used against players [Playtester]
  752. - please report if it still consumes SP in pvp
  753. * Added the new mail system implementation (Requires more test and
  754. optimizations) [Zephyrus]
  755. - Updated the mail DB structure.
  756. * Removed some mail config settings and atcommands not required anymore.
  757. - Added documentation for script commands: openmail and homshuffle.
  758. 2007/10/21
  759. * Fixed a small mistake in r11503 causing a fatal error&exit on unix
  760. when you try to do a graceful exit (by ctrl+c for example) [ultramage]
  761. * Removed SC_INCAGIRATE/SC_INCDEXRATE as they are not used anymore.
  762. * Added SC_INCASPDRATE, SC_INCFLEE2, SC_INCCRI, SC_INCDEF, SC_INCBASEATK
  763. and SC_FASTCAST as these are required by the newer items. [Skotlex]
  764. 2007/10/20
  765. * Fixed 'unequip' removing items in the wrong position (bugreport:252)
  766. * Fixed #refine unequpping the caller's item by mistake (bugreport:265)
  767. * Fixed a nasty bug from r11410 which let people create chars with
  768. already taken char names, and (in TXT's case) even cause a crash.
  769. - Bug was a variable name collision between the total number of chars
  770. and a char's slot number (both were called 'char_num'). [ultramage]
  771. * Some more updates to the skill unit code [Playtester]
  772. - renamed SKILLUNITTIMER_INVERVAL to SKILLUNITTIMER_INTERVAL
  773. - Heat now depends on the interval settings rather than firewall_hits_on_undead
  774. - Icewall doesn't break anymore when the SKILLUNITTIMER_INTERVAL gets changed
  775. 2007/10/19
  776. * Added bonusautoscript and bonusautoscript2. These are used to attach a
  777. script to a player which gets executed on attack (or when attacked). This
  778. is very similar to the autospell bonuses, except that a script is executed
  779. instead of a spell. See doc/script_commands for indepth description and
  780. usage. NOTE that I am unable to test ingame, and even though I proofread
  781. the code it could have bugs. Feel free to test and report. [Skotlex]
  782. * Applied some cleanups that should correct "Infinite Endure" ending
  783. sometimes. [Skotlex]
  784. 2007/10/18
  785. * Rev. 11516 Uncommented the showwarning and showdebug from 11508. [L0ne_W0lf]
  786. * Fixed the incorrect map names on the debug messages (mapid->mapindex
  787. mishap from r11508).
  788. * Fixed the incorrect reporting of npc names being too long when the the
  789. length is 24 (from r11508). [FlavioJS]
  790. * Rev. 11511 Commented out ShowWarning and ShowDebug messages added [L0ne_W0lf]
  791. in revision 11508. Aside from the ShowDebug being faulty, they
  792. are both fare too annoying for public use for the time being.
  793. If/when I get the NPC names fixed, we can add it back.
  794. * Further optimization of the skill unit code [Playtester]
  795. - removed code for Crimson Fire Formation it now uses the same code as Fire Wall
  796. - added same knockback behavior as Fire Wall for Fire Formation
  797. - Heat now does 50 hits a second in pvp too
  798. - please let me know of any bugs that might appear
  799. * Optimized the skill unit code [Playtester]
  800. - reverted the unit timer interval to 100ms to save CPU usage
  801. - rewrote the unit code of Fire Wall, Fire Formation and Heat so that they hit
  802. every 20ms if the target wasn't knocked back despite of the unit timer interval
  803. - Heat now does 15 SP damage to players instead of 60 per hit
  804. - optimized memory usage
  805. - TODO: Renaming or removing firewall_hits_on_undead config
  806. * Clarified how npc names work in script_commands.txt.
  807. * Fixed a forgotten "return 0;" that stopped the parsing of the file
  808. after the first "script" of the file is parsed sucessfully (caused by r11502).
  809. * Applied the same parsing and restrictions of npc names to warps, duplicates
  810. and shops (other code expects unique names for them too). [FlavioJS]
  811. * Applied the new checking function to clif code, this fixes various
  812. length mismatches caused by incomplete code in r11386
  813. * Added clif_process_message(), an unified way to validate all four
  814. types of player message packets and retrieve their components
  815. * Removed the requirement to provide a character name in the message
  816. string when calling is_atcommand() (needed for the previous fix)
  817. - currently both ways work, but old will be removed in the upcoming
  818. command cleanup so please adjust your custom code if you use this!
  819. * Merged improved/cleaned up (WiP) code for clif_parse_WisMessage
  820. * Removed commented-out code for check_fake_id() [ultramage]
  821. 2007/10/17
  822. * Removed outdated copyright and version number from startup logo
  823. * Removed socket code that attempts to cope with code bugs at runtime
  824. * client_addr will now be properly set to 0 for server connections
  825. * Fixed subnet check message displaying incorrect ip addresses
  826. * Merged do_sendrecv() and do_parse() into do_sockets() [ultramage]
  827. * Reworked the parsing at npc.c.
  828. - Fixes npc.c discarding the '}' at the end of file, when there is no
  829. newline. (uncovered as a side-effect of r11487)
  830. * Empty script functions always have code now (won't report as missing
  831. when you try to call them).
  832. * Changed userfunc_db to not limit the name to 50 characters. [FlavioJS]
  833. * Ground skill now can trigger every 20ms [Playtester]
  834. - Firewall, Fire Formation and Heat now can do 50 hits a second
  835. - this was proven to be official behavior, but it will raise CPU usage
  836. * small timer.c cleaning
  837. - removed "with less than 4 values, it's speedier to use a simple loop"
  838. as this case will never occur (premature optimization from r1284)
  839. 2007/10/16
  840. * Venom Splasher fixes according to bugreport:230
  841. - added passive skillv*30% bonus from Poison React
  842. - added official splash damage calculation - damage gets split by the
  843. number of targets at range 1, then applied to all targets in range 2
  844. - reverted some very old code - clif_calc_delay() - that was preventing
  845. skills from displaying properly, by erroneously assuming that
  846. if the target has ddelay 0, it has endure effect activated
  847. * Fixed displaying of several splash skills (see bugreport:238)
  848. - added flag SD_PREAMBLE for skills that need the 'magic' packet
  849. (fixes Grimtooth / Cart Revolution displaying out of sync)
  850. - hacked together Venom Splasher's "no animation for central mob"
  851. - hacked in a custom packet to make Dragonfear display semi-correctly
  852. * Made Venom Splasher a splash attack that distributes damage
  853. * Commented out clif_skill_damage2() as it is not used anymore
  854. * Fixed a copy-paste mistake in disguise code (from r5833) [ultramage]
  855. * Tweaked the loop in parse_script to better handle when the outer
  856. brackets aren't checked.
  857. * Fixed a typo in skip_space that stopped skipping characters when it
  858. encountered a '*' or '/' in a block comment. [FlavioJS]
  859. 2007/10/15
  860. * Fixed NPC_CRITICALWOUND to reduce heal by 20% per level [Playtester]
  861. * Fixing TK Mission asigning non spawning mobs. [Zephyrus]
  862. * Updated the item price/sell reading code to enable 'null' values. The
  863. difference between a blank value and 0 is that when the value is blank, it
  864. should automatically take half/double the other value. The previous
  865. behaviour did this automatically and didn't let you specify, for example,
  866. if you wanted a given item to sell for 0.
  867. * Also added a warning when an item in the db has an exploitable price
  868. (through overcharge/discount). [Skotlex]
  869. 2007/10/14
  870. * Rev. 11476 Implemented new skill "Enlarge Weight Limit R", [L0ne_W0lf]
  871. and increased MAX_SKILL_TREE by 1.
  872. * Fixed charsrever crashes, caused by r11410 [ultramage]
  873. 2007/10/13
  874. * Fixed up NPC_POWERUP and NPC_AGIUP [Playtester]
  875. - NPC_POWERUP: 3x ATK and 2x HIT for 10+5*level seconds
  876. - NPC_AGIUP: 2x MOVE and 2x FLEE for 10+5*level seconds
  877. * Some further changes to the delayfix function [Playtester]
  878. - aftercast delay is at least amotion no matter what skill
  879. (this includes skills with cast time AND skills with skill delay!)
  880. - aftercast delay reductions can NEVER reduce the aftercast delay below amotion
  881. (this includes Bragi and Soul Links)
  882. * Again modified the delayfix function to reflect the current skill delay
  883. knowledge. Skills with 0 delay use amotion always (regardless of cast
  884. times) [Skotlex]
  885. 2007/10/12
  886. * Further updates to skill_delayfix function [Playtester]
  887. - aftercast delay can never be lower than amotion
  888. - please report if this broke any skills
  889. * Fixed wrong index calculation in TXT char creation code (ref: r11410)
  890. * Fixed SQL itemdb loading crash on NULL column (ref: 11398) [ultramage]
  891. * Updated the skill_delayfix function to behave as recently discovered by
  892. Tharis: Skills with no delay set will use amotion ONLY if the skill was
  893. instant-casted. [Skotlex]
  894. * Fixed Bragi's aftercast delay reduction [Playtester]
  895. 2007/10/10
  896. * Fixed itemdb_read_sqldb blowing up the server with segmentation faults.
  897. * Added an option for parse_script to ignore the checks for the set of
  898. brackets around the script. [FlavioJS]
  899. * Implemented more official Warp Portal behavior
  900. - the transition from active to waiting mode is now done as a simple
  901. appearance change instead of deleting one and creating the other
  902. - due to the above, an opening warp is now properly accompanied by
  903. the log-in like sound effect
  904. - Removed the check that prevented Warp Portal from opening after you
  905. picked the destination, if there was someone blocking the cell
  906. * Re-enabled packet 0x1ac to be sent when something gets ankle-snared
  907. * Partially removed the usage of 'flags' to direct the execution path
  908. in skill unit code (some people seem to really like flags >_>)
  909. - wiped out r8478 and its multiple levels of useless flag propagation
  910. - skill_unit_onlimit (expiration) no longer executes in skill_delunit
  911. - added skill_unit_ondelete for proper handling of this event
  912. * Removed 'into_abyss' effect on traps; tests show that it works ONLY
  913. for Gemstones (tho' iRO website claims otherwise) - bugreport:171
  914. - corrected code that was exploiting the flag as an 'expired' trap flag
  915. (replaced it with a more jAthena-ish approach)
  916. * Fixed a messup in r11347 causing skill units to expire, trigger
  917. or not trigger, completely randomly
  918. 2007/10/09
  919. * Added upgrade_svn11388.sql to correct some log column widths
  920. * Corrected string lengths according to bugreport:198 [ultramage]
  921. - CHATBOX_SIZE: 70 -> 70+1
  922. - removed some too aggressive checks in clif_parse_globalmessage()
  923. - removed CHAT_SIZE define as it actually doesn't apply anywhere
  924. - added CHAT_SIZE_MAX to serve as a custom limit to input string lengths
  925. 2007/10/08
  926. * Delayed the check for required items when a skill is cast to when they
  927. are consumed. Now skills only fail due to lack of items after being cast.
  928. - Please make a bug report if you know of any skill that doesn't work
  929. like this in official.
  930. * Fixed hp of other party members not being sent when you join a party.
  931. * Removed unused global array names_id and renamed some structures that
  932. are used with variables of the same name. [FlavioJS]
  933. 2007/10/07
  934. * Fixed a bug on sql char server not checking the namelength of a new
  935. character. Bug ID #184: Char Creation With An Empty Name [Zephyrus]
  936. 2007/10/06
  937. * the mapserver won't exit when no mapcache is found, with use_grf: yes
  938. * Fixed some \r uses, now looks better; /thx to Ai4rei (topic:165952)
  939. * Removed that ridiculous spinner that displays during map/npc loading
  940. - and added a more informative progress indicator (idea from jA/eapp)
  941. * Removed loads of code that supported these functions
  942. - -230b per npc => -3MB of wasted memory
  943. * Fixed related npcs that erroneously used 'stoptimer'
  944. * Checked/fixed/removed some old script and npc commands
  945. + cmdothernpc
  946. - a specialized 'donpcevent' with the event specified as two arguments
  947. + enablearena/disablearena
  948. - completely equivalent to enablewaitingroomevent & co.
  949. - do we need these 'synonyms' ?
  950. + inittimer/stoptimer
  951. - removed since its logic was incompatible with the code it depended on
  952. 2007/10/05
  953. * REALLY fixed emblem not displaying when a char logs in
  954. (compromise between r10624 and r11033 that hopefully works)
  955. * Fixed 'Wink of Charm' - shouldn't work on boss mobs (topic:166115)
  956. * Removed a broken remnant of code from old gospel code (r4349) that's
  957. _supposed_ to clear the gospel status (no item use?) when you step
  958. out of its zone; 1) the constant UNT_GOSPEL was used in a switch()
  959. instead of PA_GOSPEL (thus actually ending 'NPC_STUNATTACK' status),
  960. and 2) this code path is never taken, because Gospel is not recorded
  961. in skill_unit_temp[] (it has a periodic timer and is not DUALMODE)
  962. * Now the first empty spot in the 'skill_unit_temp' array will be used
  963. when tracking movement between land skills; reduced its length to 20
  964. * Fixed the skill unit mechanism that is supposed to track whether
  965. you're still standing in a certain land skill's AoE or not, which
  966. was not working correctly since the time it was added (r3133)
  967. - solves the nasty problem of Loki, Quagmire, ... status not ending
  968. even after stepping out of it in some cases, if there was another
  969. song overlapping the skill's area (fixes bugreport:34) [ultramage]
  970. 2007/10/04
  971. * Completed the SC_LIFEINSURANCE status and it's status icon. [Zephyrus]
  972. - Updated Item_db.txt.
  973. * Added SC_EXPBOOST (Field Manual), SC_ITEMBOOST (Bubble Gum) to const.txt.
  974. Allready working [Zephyrus]
  975. - Added SC_LIFEINSURANCE and SC_BOSSMAPINFO (not implemented)
  976. - Updated Field Manual and Bubble Gum in the itemdb.txt file.
  977. - As L0ne Wolf reported to me and based on Doddler information, the Bubble Gum
  978. only do a second try of the item drop, and it don't increase the drop rates.
  979. * Fixed a mistake in r10919 messing up logged values (bugreport:167)
  980. * Added code that compacts the vending list after a purchase; fixes
  981. the problem with empty positions appearing in the list (bugreport:168)
  982. * Corrected Icewall skill to be closer to official behavior
  983. - now works on occupied squares (previously it disappeared)
  984. - now you can walk out of an icewall square (removed code that blocked
  985. pathfinding if the origin cell was of a nonwalkable type)
  986. - added back the hack where mapcell changes are broadcast to whole map
  987. (prevents client from leaving the cells non-walkable if you warp away)
  988. * Removed integer mob skill state/target definition support (unused)
  989. * Added script source error reporting to countitem() (topic:167165)
  990. * Fixed a compile problem when hotkey saving is disabled (topic:167265)
  991. * Added MAX_HOTKEYS to supplement the HOTKEY_SAVING define [ultramage]
  992. 2007/10/03
  993. * Added the code for Bubble Gum (SC_BONUSDROP) and Field Manual
  994. (SC_BONUSEXP). items updated as it supose to work. [zephyrus]
  995. * Cleaned up parts of skill.c related to skill units [ultramage]
  996. - removed some nonsense code in skill_dance_switch() (from r8876)
  997. - removed 'security system to prevent forgetting timer removal' (r1213)
  998. - renamed some skill-related data structs (had same name as variables)
  999. - commented out custom Venom Splasher countdown messaging code
  1000. * Bosses now can use teleport on Land Protector [Playtester]
  1001. - Moved the homunculus shuffle code to mercenary.c, fixing the bug in the
  1002. atcommand not using the bonus evolution stats for homunculus.
  1003. - Adding a new script command "homshuffle" to fix homunculus using NPCs.
  1004. 2007/10/01
  1005. * Fixed various trading/vending glitches [ultramage]
  1006. - fixed vending_tax not working at all (integer division in r10182)
  1007. - undid change from r8273 where pc_getzeny() treated zeny overflow as
  1008. an error condition; officially, the value is just bounded to MAX_ZENY
  1009. (this fixes stuff like shops that you can't buy items from).
  1010. - fixed stupid code that, instead of properly checking and filtering
  1011. invalid items during shop setup, opted to 'hide' these items from
  1012. the vending list instead...
  1013. - removed some custom error message packets related to vending
  1014. - fixed a glitch where the server would open a shop with no items
  1015. when all entered items were tagged as invalid
  1016. - split zeny handling from trade_tradeadditem() into a separate func
  1017. - removed loads of redundant code from vending.c
  1018. 2007/09/30
  1019. * Removed redundant 'subnet' s_subnet structure variable. [ultramage]
  1020. 2007/09/28
  1021. * Changed back the query to get the friends of a character to a LEFT JOIN.
  1022. * Setting the item script variables to NULL when they are freed. (bugreport:142 ?)
  1023. (a double @reloaditemdb might result in a double free) [FlavioJS]
  1024. * Rev. 11325 Corrected Summer Outfit not included as a PC class. (Zephyrus_CR) [L0ne_W0lf]
  1025. * Rev. 11321 Implemented Summer Outfit care of Zephyrus_CR. [L0ne_W0lf]
  1026. - Increased MAX_GUILDCASTLE in mmo.h to 29 for future implementation
  1027. of the 12.1 Guild Castles.
  1028. * Fixed sql target not including the save target in the Makefile, needed
  1029. by the map server for save/mapreg.txt. (bugreport:131) [FlavioJS]
  1030. 2007/09/27
  1031. * Loot code using charid's instead of id's in pick priority.
  1032. * configure script using svn:eol-style LF and require mysql/pcre when
  1033. --with-mysql/pcre is used.
  1034. * Reimplemented mmo_char_fromsql using sql statements. (fixes bugreport:93)
  1035. * Fixed buildin_gethominfo not being included in the script engine. (bugreport:124)
  1036. * homunculus_evolution -> homevolution in script_commands.txt.
  1037. * Deleted item DEFAULT from item_db.txt and regenerated item_db.sql. (bugreport:103)
  1038. * Skip empty lines and give more feedback (for invalid lines) when reading
  1039. item_db.txt/item_db2.txt. [FlavioJS]
  1040. 2007/09/26
  1041. * Rev. 11307 Implemented Token of Siegfried effect care of Zephyrus_CR. [L0ne_W0lf]
  1042. 2007/09/25
  1043. * Modified a bit the hard/lazy ai triggers to match aegis (you can alter
  1044. these changing the defines near the beginning of mob.c):
  1045. - Mobs go into active AI when they are 2 cells from entering a player's
  1046. view (ACTIVE_AI_RANGE)
  1047. - Mobs in passive AI no longer use skills.
  1048. - Mobs in passive AI do not random walk UNLESS they have entered active AI
  1049. before (random walk frequency is not lost during passive AI).
  1050. * Added an additional check to prevent support skills from being blocked if
  1051. the target has an armor element that blocks it. [Skotlex]
  1052. * Fixed the double free's caused by r11290 (wrong option in the database
  1053. constructors). [FlavioJS]
  1054. * Corrected being able to cast multiple Gravitation Fields before the
  1055. previous one is cancelled. [Skotlex]
  1056. * Disabled tick cache (to enable it: define TICK_CACHE to the number of
  1057. calls that should be cached).
  1058. * Added a charid2sd database for fast charid searches.
  1059. * Reworked the nick cache to only contain offline characters. [FlavioJS]
  1060. 2007/09/24
  1061. * Ignore %MDef bonuses now only reduce target's base MDEF, not MDEF2.
  1062. * Updated the 'skills that cause no damage are blocked now if the skill
  1063. element is blocked by the target' to only apply if the skill has a status
  1064. change associated (fixes Resurrection/Heal being blocked).
  1065. * Added a warning to prevent loading mobs with IDs that belong to the clone
  1066. range. [Skotlex]
  1067. * Limited manual detection of data truncation to string/enum/blob columns.
  1068. * Renamed conf-tmpl to conf. [FlavioJS]
  1069. 2007/09/23
  1070. * Added flag svn:executable to the configure script.
  1071. * Added code for MySQL versions (below 5.0) that don't have
  1072. MYSQL_DATA_TRUNCATED.
  1073. * map_addflooritem and struct item_drop_list using id's instead of
  1074. struct map_session_data's (fixes bugreport:36).
  1075. * Fixed buildin_escape_sql not properly escaping in sql servers. [FlavioJS]
  1076. 2007/09/22
  1077. * Fixed a severe bug in inventory saving code (caused by r11192)
  1078. * Applied changes to clif_parse_globalmessage() from my WiP code
  1079. - clearer processing of the individual packet components
  1080. - proper code ordering, some more integrity checks
  1081. - fixes to some poorly chosen ShowWarning() format strings
  1082. - global chat logging no longer logs the entire string (w/ player name)
  1083. * Fixed global chat logging always crashing on a null pointer
  1084. * Added 'safestrnlen' to prevent null pointer crashes [ultramage]
  1085. * Updated sql files [Playtester]
  1086. * Added a sanity check for MAX_ZENY (doesn't compile if too big).
  1087. * Redid the buildin_query_sql function. (fixes bugreport:81). [FlavioJS]
  1088. 2007/09/21
  1089. * itemdb.c/h using a static array of 32k struct item_data* entries (faster
  1090. itemdb loockup and a first step to remove map_session_data->inventory_data).
  1091. * Fixed a typo in the configure script that replaced CFLAGS with CPPFLAGS
  1092. when -Wno-pointer-sign is supported by the compiler. [FlavioJS]
  1093. * Fixed a typo in the status-change saving code (wrong variable used)
  1094. * Fixed a case of bad sql code conversion breaking homun skill loading
  1095. * Corrected skill Charge Attack as described in bugreport:67 [ultramage]
  1096. - cast time is between 100% and 300% (+ infinite waiting fixed)
  1097. - damage is also between 100% and 300% (doesn't increase past range 9)
  1098. - added knockback that's equal to the distance to target
  1099. - no longer causes teleportation on WoE grounds
  1100. - if target runs behind an obstacle, the skill will still teleport you,
  1101. but will not perform the attack or do knockback
  1102. - this should be official behavior, so enjoy the weirdness!
  1103. * Makefile deleting .svn in save folder.
  1104. * Limited the number of packets parsed per cycle to 3.
  1105. * Fixed sql login throwing an out-of-place debug message and escaping too
  1106. much of the name string when creating a new login with _M/F.
  1107. * Configure script detects 64bit distributions of MySQL.
  1108. * Generated the configure script with cygwin's autoconf. [FlavioJS]
  1109. 2007/09/20
  1110. * Merged the tmpsql branch: [FlavioJS]
  1111. - Abstraction for the sql code (sql.c/h).
  1112. - New configure script and makefiles.
  1113. - Restored txt zeny logging code. (r10814)
  1114. - Rewrote mapserver's sql code - itemdb, mobdb, mapreg, logs. (r10814)
  1115. - Fixed a precedence issue (&& and ) in char_sql/char.c. (r10833)
  1116. - Improved db reading code a bit for consistency. (r11077)
  1117. - Added separate atcommand for mail deletion. (r11077)
  1118. - Corrected a few messages that said "new" instead of "unread". (r11077)
  1119. - Broadcast (*) messages now use "*" as the target's name (not ""). (r11077)
  1120. - Moved StringBuf code from utils.c/h to strlib.c/h. (r11084 r11117)
  1121. - Some misc login server cleanups (reformatting etc). (r11136)
  1122. - Corrected/modified some header entries. (r11141 r11147 11148)
  1123. - Adjusted VS project files. (r11147)
  1124. - Adjusted the way the sql charserver does item saving. (r11192)
  1125. - Corrected usage of reserved keyword 'friend' in mmo.h. (r11192)
  1126. 2007/09/17
  1127. * Several skills with a splash area (except ground based ones) will now hit
  1128. Ice-walls when casted by mobs.
  1129. * Cleaned up and fixed monster_ai&0x40 (chase through warps). It works
  1130. correctly now regardless of the number of players on the source/destination
  1131. maps.
  1132. * Updated sql files [Playtester]
  1133. * Applied various crash-protections to script commands that deal with the
  1134. equip-position array.
  1135. * Corrected and simplified the skill_magic_reflect function. Fixed damage
  1136. reflection being based on the caster rather than the target.
  1137. * Potions are now usable inside Gospel by the casting Paladin (as per Aegis
  1138. tests done by AuronX)
  1139. 2007/09/14
  1140. * Some changes brought up by AuronX (see topics 160295 and 149176):
  1141. * Gravitional Field is now a MISC type of attack.
  1142. * Magic reflection now effectively switches the caster/target (after damage
  1143. has been calculated). Moved magic return and Magic Mirror code together
  1144. with Kaite.
  1145. * Now when GTB completely blocks a spell, the spell animation will still
  1146. come off, but with a single bolt and MISS damage.
  1147. * Removed hom_setting&0x2 since Homunculus can be hit by land spells.
  1148. * Monster Property now gives a Skill Failed message when attempted on
  1149. players.
  1150. 2007/09/13
  1151. * Corrected SG Miracle to trigger per attack, not per walked tile. Trigger
  1152. rate is now 0.02%
  1153. * Corrected the warmth skills not clearing up correctly the previous field
  1154. when you place another one down.
  1155. * Corrected vit not affecting the HP bonus that Super Novices, Ninjas and
  1156. Gunslingers get. [Skotlex]
  1157. 2007/09/12
  1158. * Fixed a typo in r11179 causing party invitation to fail
  1159. * Added SI_STEELBODY properly (value from packet capture) [ultramage]
  1160. 2007/09/10
  1161. * Corrected /invite letting you invite people even if you are not the party
  1162. leader.
  1163. * Added some reply messages when you try /invite and a. the character is
  1164. not found or b. you are not the party leader.
  1165. * Added a check so that the 'save on crash' routine won't get stuck if it
  1166. happens to crash while attempting to save characters.
  1167. * People in chat-rooms no longer receive @main messages. [Skotlex]
  1168. 2007/09/10
  1169. * Added a safeguard to skill_get_unit_layout() against incorrectly
  1170. defined layout ids (will give weird results but won't crash at least)
  1171. * Fixed Firewall/Icewall being oriented backwards (no real difference..)
  1172. * Removed some junk Landprotector/Graffiti code
  1173. - Graffiti doesn't get placed randomly anymore
  1174. * Icewall can now be cast on yourself
  1175. - TODO: for some reason, the cell on yourself immediately expires...
  1176. * Merged together functions clif_set0192() and clif_changemapcell()
  1177. - also removed its "send to whole map" mode which is just plain wrong
  1178. (although aegis actually does use it to 'inform' caster about changes)
  1179. * Added config option to adjust exp gained by 'getexp' [ultramage]
  1180. 2007/09/09
  1181. * Removed bonus bAddEffWhenHitShort as it is unneeded and unused.
  1182. * Corrected getpetinfo so it actually returns "null" when there's no pet
  1183. and you request the name (the docs state it so).
  1184. * Added gethominfo (which behaves in the same way as getpetinfo).
  1185. * Corrected bonus3 bAutoSpell(WhenHit) to select target enemy (rather than
  1186. self) for skills with inf self and inf2 'don't target self' (aka:
  1187. auto-select target skills).
  1188. * Corrected map_foreachinpath to do a wall check for targets beyond the
  1189. initially selected tile.
  1190. 2007/09/09
  1191. * Modified bonus3 bAddEff/bAddEffWhenHit so that the last parameter is now
  1192. passed directly as "trigger" flag. The possible trigger values are
  1193. ATF_LONG, ATF_SHORT, ATF_TARGET, ATF_SELF. Explanation added to
  1194. doc/item_bonus.txt [Skotlex]
  1195. * Updated sql files [Playtester]
  1196. 2007/09/08
  1197. * Adjusted a spot that still blocked GL's skills on login [ultramage]
  1198. 2007/09/07
  1199. * Added support for the new party invite/reply packets from the latest
  1200. client version.
  1201. * Added auto-rejecting party/guild invites when the target is disconnected
  1202. from the server.
  1203. * Changed the default @Main format to prevent crashes in the newer
  1204. clients.
  1205. 2007/09/04
  1206. * bonus3 autospell (and autospell when hit) will now select for spell
  1207. target self when the skill is tagged a support skill.
  1208. * Increased the amount of autospells that can be held at a time from 10 to
  1209. 15
  1210. * Changed the "autocasted strip skills don't have a duration" to apply only
  1211. to Full Strip.
  1212. * Magic Mirror's duration now is reduced /15 when used on players.
  1213. * Removed bonus bAddDamageByClass since it is not needed, and implemented
  1214. bAddDefClass which can be used for the same purpose (but previously was
  1215. doing nothing).
  1216. 2007/09/03
  1217. * Added bonuses bSPRegenRate, bHPRegenRate. They behave like the opposite
  1218. of bHPLossRate/bSPLossRate, making you gain x Hp/Sp every y ms.
  1219. * Added bonus bIgnoreMdefRate, used to ignore a % of the target's mdef when
  1220. using magic attacks (bonus2 will ignore part of the mdef of all targets,
  1221. bonus3 receives a race argument)
  1222. * You can now use bonus2 bCastRate to adjust the cast rate of a single
  1223. skill.
  1224. * Cleaned the code for bleeding (hp-loss) and extended it to handle regen
  1225. as well.
  1226. * Some small cleanups in the pc_bonus functions.
  1227. * Removed bonus3 bHpLossRate since it was doing nothing and is not used.
  1228. * Corrected bGetZeny bonus to be like in Aegis. The amount received is from
  1229. 1 to the given amount, you can use negative zeny values to use an amount
  1230. dependant on mob's level (amount*lv).
  1231. * Updated doc/item_bonus.txt with all these changes.
  1232. * Anti-Magic/Stone-Skin now increase/decrease def/mdef only and in an
  1233. absolute mode (+20*lv rather than +20%*lv). Also the duration is greatly
  1234. decreased (x/15) when used on players.
  1235. * Now when a player uses a strip skill without having it in the skill tree
  1236. (auto-casted) the duration will be 0, the equipment will be stripped
  1237. without causing the status change that blocks reequipping.
  1238. 2007/09/02
  1239. * Added @whereis command (displays normal spawn maps for given mobs).
  1240. Defaults to a lv10 command. [Skotlex]
  1241. * Updated Refined Sakkat Box to give only 1 Sakkat instead of 10. [Paradox924X]
  1242. 2007/08/31
  1243. * Added some comments to clif_changechatowner()
  1244. - totally broken, see the code + topic:163829
  1245. * Implemented the chatroom display packet properly
  1246. - now has 4 types: public, private, npc and non-clickable npc chatroom
  1247. * Implemented the chatroom leave packet properly
  1248. - now utilizes the 'kicked' flag when the user was forced to leave
  1249. - TODO: banlist support to prevent re-entry, see jAthena code
  1250. * Documented/cleaned up chatroom code and packetry [ultramage]
  1251. 2007/08/30
  1252. * Updated sql files [Playtester]
  1253. 2007/08/29
  1254. * Added bonus bSkillHeal to distinguish offensive skill damage increases
  1255. from healing power boosts.
  1256. * Moved battle_skillatk_bonus to pc.c, cleaned up the related skillatk
  1257. bonus code to consider the skillheal bonus option. [Skotlex]
  1258. 2007/08/23
  1259. * Updated athena-start & start to Shazeya's hack. Please test them! [DracoRPG]
  1260. - Simplest way is to run ./start that is equivalent to Windows runserver_sql.bat
  1261. - To run TXT instead, edit the beginning of athena-start with proper filenames
  1262. 2007/08/22
  1263. * Fixed Dragon Fear's status change selection and duration.
  1264. * Fixed Metamorphosis not displaying a speed-change update on the client.
  1265. * Status changes that were blocked by element are no longer blocked,
  1266. instead, now no-damage skills are blocked if they have an element which is
  1267. absorbed by the target (This is the behaviour that Tharis believes is
  1268. correct). [Skotlex]
  1269. 2007/08/19
  1270. * Set proper limits to drop rates, prevents int overflow during calc
  1271. * Cleaned/clarified some #include relationships between headers
  1272. - TODO: pc_read_gm_account() still accessses the RFIFO directly!
  1273. * Again removed the IG_ list from itemdb.h (see r10100 and r10113)
  1274. 2007/08/18
  1275. * Fixed a deallocation mistake and some buffer overflows in npc_chat.c
  1276. after doing rtfm@pcre.txt (all caused by incorrect usage of pcre api)
  1277. * Removed underscores in npc_chat.c's variable names (easier to read)
  1278. * Moved npc pcre-data deallocation from npc_remove_map to npc_unload
  1279. 2007/08/17
  1280. * Implemented the official dual-wield aspd equation [ultramage]
  1281. - using 0.7 instead of 0.66 as modifier (so aspd will be lower now)
  1282. - see topic:151132 for details
  1283. 2007/08/16
  1284. * Fixed eAthena's wrong interpretation of the respawn times [Playtester]
  1285. * Added icons for NPC_CRITICALWOUND and NPC_SLOWCAST [Playtester]
  1286. * Fixed npc chatrooms not being deleted on npc unload/reload (crash)
  1287. * Modified chat code a bit for more clarity [ultramage]
  1288. - replaced double-indirection on 'owner' with a normal pointer
  1289. - separated some common functionality to 'chat_createchat()'
  1290. 2007/08/15
  1291. * Merged and completed Latio's work on server-side hot-key saving
  1292. (http://www.eathena.ws/board/index.php?s=&showtopic=159388&view=findpost&p=884453):
  1293. Now hotkeys are stored server-side (table hotkey in SQL servers, file
  1294. save/hotkeys.txt for TXT servers). You can disable this behaviour by
  1295. commenting out the 'HOTKEY_SAVING' define in mmo.h
  1296. * Apply upgrade_svn11018.sql to create the hotkey table. [Skotlex]
  1297. * Some serious code cleanups
  1298. - adjusted @reloadbattleconf to not depend on variable ordering
  1299. - changed all battle vars to 'int' (removes pointless duplicit coding)
  1300. - added min, max and default columns to battle config data structure
  1301. - added properly bounded values for these columns (or at least tried to)
  1302. - battle-conf loading will now complain if it finds unknown settings,
  1303. and will reject values that are outside of the allowed range
  1304. - added CHATROOM_TITLE_SIZE and CHATROOM_PASS_SIZE
  1305. - partially cleaned up chatroom manipulation code
  1306. 2007/08/13
  1307. * Modified map_foreachinrange so that you can also specify the max length
  1308. of the path to use. The max_count field in the skill_db is used to specify
  1309. this range for path-type skills (Sharpshooting, Kamaitachi and the NPC
  1310. Breath skills.
  1311. * Implemented the 'new' NPC skills described here:
  1312. http://ro.doddlercon.com/wiki/index.php?title=Monster_Skills . It is mostly
  1313. complete, but the new status changes (slow cast, critical wounds, etc)
  1314. don't have any visual effects yet (icon or opt changes? I don't know if
  1315. they should have). Also I could not find the unit_id for Evil Land, so it
  1316. looks just like Sanctuary for now. Apart from those, the only skills which
  1317. I couldn't get to display properly are the Breath skills (with the
  1318. exception of Fire Breath).
  1319. * Corrected gtb_sc_immunity setting not taking effect if your block value was
  1320. the same (that is, if the config said 30%, then you would only get status
  1321. change immunity at 31%, nor 30%) [Skotlex]
  1322. * Fixed a small error in the script_commands documentation about getpartyleader. [Paradox924X]
  1323. * Corrected skill-based hp/sp regen, expect slight increase [ultramage]
  1324. 2007/08/10
  1325. * Updated item_db.sql [Playtester]
  1326. 2007/08/09
  1327. * The new functions now clear junk from the output buffer [ultramage]
  1328. 2007/08/08
  1329. * Moved damage logging to mob_log_damage, now non-damage targetted (or
  1330. splash) skills also get logged into the monster's 'damage history' which
  1331. affects the exp-bonus per attacker setting.
  1332. * Implemented the evolution stat growth bonuses for homunculus.
  1333. * Updated the @homstats command to show evolution bonuses
  1334. * Corrected initial intimacy of a newly created homunculus (should be
  1335. 21/1000) [Skotlex]
  1336. * Cleaned up junk left in the code by the mapcache/mapindex update
  1337. - Added mapindex_getmapname(_ext) to help with ".gat" adding/removing
  1338. - Moved related processing to the interface (prevents duplicity)
  1339. 2007/08/07
  1340. * Expanded isloggedin script command to support an optional argument (char id)
  1341. * Expanded warpparty command to accept target "Leader", this will warp the
  1342. party to the leader.
  1343. * Added a summon structure to handle non-dead-branch mob-groups since the
  1344. current implementation totally fails for mob groups that don't have MANY
  1345. integrants.
  1346. * Fixed mobs not attempting an IDLE skill right before unlocking a target.
  1347. [Skotlex]
  1348. 2007/08/06
  1349. * Slightly deobfuscated the max-hp calculation functionality
  1350. - fixed hp/sp calc code adding extra few points from item bonuses
  1351. * Added a null-pointer check to skill_initunit() to prevent a crash
  1352. * Added a while() loop to the client packet processor (for performance)
  1353. * Added support for kRO 2007-05-14aSakexe langtype 0 login packet 0x2b0
  1354. 2007/08/04
  1355. * Removed weird mvp reward item drop behavior (see topic:160077)
  1356. * Fixed Cart Revolution not transferring status effects on attack,
  1357. and Cart Termination doing it when it shouldn't (see topic:156745)
  1358. * Fixed #refine not accepting names with spaces in them
  1359. * Fixed disguises not doing sit-down properly (missing self packet)
  1360. broken since r6299 stable / r5833 trunk [ultramage]
  1361. 2007/07/30
  1362. * Updated sql files [Playtester]
  1363. * Corrected pet taming code; items are consumed immediately and only 1x
  1364. - TODO: add proper code for people who want delayed consumption
  1365. 2007/07/28
  1366. * Removed ridiculous refine_posword config switch
  1367. - TODO: remove getequipname() func, it can be fully replaced by editing
  1368. a few scripts, plus it doesn't do what the docs say it should do
  1369. * Fixed a silly mistake in the main script engine loop ('pos' variable)
  1370. * Fixed monter -> monster typos
  1371. * Compacted some script function code (fewer LoC -> faster trac ^^)
  1372. 2007/07/27
  1373. * Simplified exp gain equations (now more FPU-friendly and precise)
  1374. - also fixes the uninitialized variable problem... sorry 'bout that >.>
  1375. * Changed the way hit bonus is applied.
  1376. http://www.eathena.ws/board/index.php?showtopic=157438 [Vicious]
  1377. * Cleaned up mob drop code, crashfix is still needed though...
  1378. * Reduced ignore-list length to 20, added proper reply packet
  1379. * Cleaned up some very poorly written pm-ignore code (see r141)
  1380. * Fixed a typo in Warp Portal code displaying an incorrect map name
  1381. 2007/07/25
  1382. * Fixed a missing homunculus info packet when doing @refresh
  1383. * Added support for character rename packet (only dummy code for now)
  1384. * Added support for langtype-12 char deletion packet (tested, works)
  1385. * Synchronized txt/sql charserver code a bit
  1386. * Adjusted motd.txt to not crash new clients
  1387. * Removed some dead code from the charserver (see r352)
  1388. 2007/07/24
  1389. * Fixes on Venom Splasher and the like (see topic:152975) [DracoRPG]
  1390. - VS / Envenom / Throw Venom Knife poison chance raised to 10+4*lv %
  1391. - Removed chance to be poisoned when hit if you're a VS time-bomb
  1392. - Adjusted bomb timer to correct values (5.5+0.5*lv sec)
  1393. - Removed damage boost from Poison React
  1394. - Now ignores EDP damage boost
  1395. - Prevented use on bosses
  1396. - Fixes still needed for recast restriction and splash damage
  1397. * Removed Emperium-damaging ability from Gloria Domini [DracoRPG]
  1398. 2007/07/23
  1399. * Changed the restricting mapflag for @jump from nowarp/nowarpto
  1400. to noteleport. Adjust your scripts if you were using it this way.
  1401. 2007/07/20
  1402. * Corrected packet_db.txt. See topic:158382 for details.
  1403. As a side-effect, the latest packet version is now 22 instead of 21.
  1404. * Added a charserver config option for the character renaming flag,
  1405. along with a detailed comment on what it's supposed to be. This
  1406. eliminates all that "change PACKETVER to 8 and recompile" mess.
  1407. * Moved PACKETVER back to clif.h, cleaned the related code a bit.
  1408. 2007/07/18
  1409. * Added delay_dependon_agi since people actually use and need it...
  1410. * Small update to the effects list (new exe's effects by Au{R}oN)
  1411. * No sending of the pet_equip packet when pet has no equip (thx2Skotlex)
  1412. * Added back exp gain limiting for old formula to stop exploits (see r8177)
  1413. * Now a message is printed when the packet_ver filter rejects someone
  1414. * Renamed two structs using same name as variables (MSVC debugger issue)
  1415. 2007/07/13
  1416. * Fixed yet another script engine typo, this time in 'copyarray' [ultramage]
  1417. 2007/07/09
  1418. * Rev. 10872 Removed a comment I had placed on line 6879 in Skill.c. [L0ne_W0lf]
  1419. * Rev. 10870 Alchemist skill "AM_CANNIBALIZE" ("Summon_Flora") now [L0ne_W0lf]
  1420. summons the proper monsters.
  1421. 2007/07/07
  1422. * Fixed typo in 'deletearray' messing up the script engine
  1423. * Added a check to pc_skill() to prevent crashes on unknown skill ids
  1424. 2007/07/06
  1425. * Cleaned up some nasty code related to skill_blown
  1426. - split 'direction' value from flags
  1427. - moved (almost) entire direction calculating code to the outside
  1428. - bowling bash now has the 'suck-in' effect (knockback is now done
  1429. in the direction you were last facing, not in your-target direction)
  1430. 2007/07/05
  1431. * Fixed pet equip and pet hairstyle packet sends [ultramage]
  1432. * Fixed NPC_STOP's visual effect not clearing when the status ends
  1433. * Corrected @homshuffle making the skill tree be lost.
  1434. * Corrected homunculus skills being unusable if the master was sitting or
  1435. inflicted by a disabling status (eg: petrify, stun)
  1436. * Some fixes to the cell no stacking mod (mainly mobs would just get stuck
  1437. behind each other and not properly surround you). [Skotlex]
  1438. 2007/07/04
  1439. * Fixed a copy-paste typo messing up script variables pretty bad D:
  1440. 2007/07/03
  1441. * Fixed a typo in script engine erroring when working with char params
  1442. * Made Homun Resurrection only fail on cast-end (see topic:155223)
  1443. * Re-coded 'soundeffectall'; removed the third parameter ('coverage')
  1444. - adjust your scripts if you use this command [ultramage]
  1445. * Defined out a problematic piece code in conv_num.
  1446. * Added reporting of constant and param script data.
  1447. * Fixed an incorrect check in menu script command. [FlavioJS]
  1448. 2007/07/02
  1449. * Undid the change from r10298, frozen status again modifies def/mdef
  1450. 2007/07/01
  1451. * TXT->SQL converter fixup [ultramage]
  1452. - Added missing char_id insert which totally messed up the conversion
  1453. - Fixed login converter ignoring many columns (although it had the data)
  1454. - Pointed out that Login-stored account variable conversion is MISSING!
  1455. - Pointed out that Status, Homunculus and Mapreg conversion is MISSING!
  1456. - Blocked the config functions from exiting server when file not found
  1457. - Finally added VS8 project files for this thing
  1458. 2007/06/28
  1459. * Added a missing line to enable @displayskill atcommand [DracoRPG]
  1460. 2007/06/26
  1461. * Changed the string hash of the script engine to SDBM.
  1462. * Reporting information about script data when an error occurs.
  1463. * More work on ticket #41 (array functions). [FlavioJS]
  1464. 2007/06/22
  1465. * Changed behavior of some guild-related code (according to X.4 tests):
  1466. - removed code that prevented Homunculus Resurrection during WoE
  1467. - logging in doesn't activate the 5 minute guild skill block anymore
  1468. - non-Urgent guild skills can now only be cast on WoE grounds during WoE
  1469. - all guild skills now have no cast delay (previously was 1 second)
  1470. - casting guild skills will now block FreeCast sages from walking
  1471. - Battle Orders and Regeneration are now instacast
  1472. - Restoration now has a 10 second cast time, reducible only by dex
  1473. - Urgent Call's cast cannot be reduced anymore (not even by items)
  1474. 2007/06/15
  1475. * Fixed script command sc_end not supporting the extra argument as stated
  1476. in script_commands.txt.
  1477. * Script command getarg supports an extra argument with a default value
  1478. that is returned if the requested argument doesn't exist. [FlavioJS]
  1479. 2007/06/11
  1480. * Fixed NPC_PROVOCATION (now the casting mob doesn't keep attacking)
  1481. * accumulated clif.c fixes [ultramage]
  1482. - Fixed pet equip not displaying correctly at all
  1483. - Removed old fixpos packet (the 'new' one is way smaller)
  1484. - Fixed some major logical typos in the code, cleaned up many places
  1485. 2007/06/10
  1486. * Rev. 10745 Updated itemdb.h with the two new item group values.
  1487. (38 and 39) Why are they static anyway? [L0ne_W0lf]
  1488. 2007/06/09
  1489. * Added 'nosave' mapflag to que_bingo for Bingo system purposes. [SinSloth]
  1490. 2007/06/04
  1491. * Fixed the compilation problem from r10668
  1492. 2007/06/03
  1493. * Fixed a bad copy-paste from r10028 letting players escape jail
  1494. (char was dead on login, so statuses (SC_JAILED) couln't be applied)
  1495. * Fixed missing client update when 'return to savepoint' fails [ultramage]
  1496. 2007/06/02
  1497. * Displaying op names instead of numbers in script engine errors.
  1498. * Fixed a bug introduced in the last rework of the fame ranking.
  1499. * Created safestrncpy that ensures the string is nul-terminated. [FlavioJS]
  1500. 2007/06/01
  1501. * Updated sql files [Playtester]
  1502. * Fixed ircbot not processing new users
  1503. 2007/05/29
  1504. * Hopefully fixed the vsnprintf incompatibility
  1505. 2007/05/28
  1506. * Fixed an infinite char-server loop on the map connection [ultramage]
  1507. * RFIFOREST returns 0 when the session is eof (input data is implicitly
  1508. discarted).
  1509. * Reworked the player fame update: [FlavioJS]
  1510. - would crash if an invalid pos was received
  1511. - the wrong player could be updated on certain conditions
  1512. 2007/05/26
  1513. * Identified several more glitches, too tired to fix these...
  1514. * Fixed server not removing member minimap dot when you leave a guild
  1515. * Fixed server not sending party/guild info when you enter a map
  1516. * Fixed guild emblem not showing when you log in (caused by r5359)
  1517. 2007/05/25
  1518. * Fixed @statall giving you +99 stats instead of setting them to 99
  1519. * Fixed npctalk and @npctalk displaying the # part of the name
  1520. (client filters these when you request the name of the npc, btw...)
  1521. 2007/05/23
  1522. * Added new flag to skill_castnodex.txt, to allow per-skill tweaking
  1523. of cast time and delay reducibility by item scripts (cards and such)
  1524. * Fixed Martyr's Reckoning never triggering for gms with all skills
  1525. * Added MO_TRIPLEATTACK and RG_SNATCHER to @skillall's skill filter
  1526. * Made gm_skill_unconditional bypass skill blocking (guild timer, etc)
  1527. * Reverted the weird delay_dependon_agi thing (r8923, r9055, r9059)
  1528. * Changed a few memsets to strncpy (reading past buffer is a bad idea)
  1529. * Sped up some memset operations (multiples of 4 are faster)
  1530. * Fixed a typo in Chase Walk code, /thx to zephyrus_cr [ultramage]
  1531. 2007/05/22
  1532. * Updated sql files [Playtester]
  1533. 2007/05/21
  1534. * Since the fifohead mess is gone, fixed leftover bad code structuring
  1535. * Removed the TURBO socket mechanism - it was in fact just using a
  1536. variable to cache a few arithmetic operations (premature optimization)
  1537. 2007/05/20
  1538. * Fixed Chase Walk having a deactivation cast time (should be instant)
  1539. * Changed status calc to allow value 0 stats; aegis allows
  1540. negative values, but eA is unsigned in this regard, so ...
  1541. * Added positional music effect to Battle Chant / Gospel
  1542. - see r10588 on how to disable it if it annoys you ^^;
  1543. 2007/05/19
  1544. * Added Global chat and Main chat logging
  1545. - lowered the priority of the 'logging off during gw' filter
  1546. * Fixed server crashes when you use long hostnames (/thx to Ancyker)
  1547. * Removed the wtf-y mmo_char_fromsql_short() from r2527 [ultramage]
  1548. * Fixed drops of Thanatos Dolor & Thanatos Odium regarding the quest. [SinSloth]
  1549. * SQL files fixup
  1550. - extended convert_engine_myisam and added innodb version
  1551. - changed the max. email length to 39 (to match value in source code)
  1552. - added comment for storage/guild storage picklog entries
  1553. - changed SETs to ENUMs, which is the proper data type in logs
  1554. - fixed incorrect defaults, shortened mapname lengths to 11
  1555. - use upgrade_svn10575_*.sql to apply changes
  1556. * Removed the vsnprintf->_vsnprintf define for VS9 [ultramage]
  1557. * Corrected the problem with countitem2 [ultramage]
  1558. 2007/05/14
  1559. * Updated sql files [Toms]
  1560. 2007/05/11
  1561. * Updated the effect list a bit, changes by Au{R}oN
  1562. * Re-phrased the attacker flee/def penalty config descs [ultramage]
  1563. Ref: http://www.eathena.ws/board/index.php?showtopic=150918
  1564. * Attempt to fix unwanted teleporting of immobile mobs [Playtester]
  1565. 2007/05/10
  1566. * Adapted the shortlist to use a static array instead of a linked list and
  1567. enabled it.
  1568. * Added Buuyo-Tama's shortlist for send/eof sockets (defined out for now).
  1569. * Replaced toupper/tolower in ladmin by TOUPPER/TOLOWER defines. [FlavioJS]
  1570. 2007/05/07
  1571. * Fixed warpwaitingpc not working (bug introduced in r10471). [FlavioJS]
  1572. * Added a check to login_sql against too long db-stored emails [ultramage]
  1573. * Removed an unused variable in script.c [Toms]
  1574. * Fixed Converters not overwriting each other [Playtester]
  1575. - thanks to scerez for the fix
  1576. 2007/05/06
  1577. * Removed the dependency on winsock.h for definitions, it's all winsock2.h now.
  1578. * Minor documentation/re-coding in chat.c.
  1579. * More work on ticket #41. [FLavioJS]
  1580. * Fixed Red Pouch overriding nobranch mapflag [Playtester]
  1581. * Attempt to fix Kyrie Eleison not castable on enemy players [Playtester]
  1582. - please test, I can't double client to test it in pvp
  1583. - don't forget to recompile before testing
  1584. 2007/05/04
  1585. * Added an optional read-from-GRF/GAT map loading system back in.
  1586. - It can be turned on with the use_grf flag in map_athena.conf.
  1587. - The conf/grf-files.txt becomes relevant again. [blackhole89]
  1588. * Removed the cyclic map.h<->status.h dependency, which allowed me to
  1589. also remove the annoying/memory-wasting MAX_STATUSCHANGE define
  1590. 2007/04/30
  1591. * Ladmin fixes
  1592. - Added vs8 project file for ladmin
  1593. - Replaced all occurences of printf in ladmin.c with ShowMessage
  1594. - Fixed ladmin working with ips using the wrong byte orer
  1595. * Fixed @jumpto displaying the incorrect player name
  1596. * Added more safeguards to socket.c against socket ids out of range
  1597. TODO: session[] array isn't explicitly zeroed; is that a good thing?
  1598. 2007/04/29
  1599. * Fixed login_sql ipbans not working
  1600. * login server will now bind only after finishing the init phase
  1601. * Tried and fixed md5 password encryption [ultramage]
  1602. - login_sql was doing stupid things like re-using one pre-generated
  1603. key for all connections, and escaping binary md5 data (destroying it)
  1604. - added missing code to login_txt when creating new accounts, showing
  1605. that storing passwords as md5 hashes never really worked for txt
  1606. - removed PASSWORDENC's conditional compilation effect, now just a flag
  1607. - greatly simplified md5 password checking code, credits to eapp
  1608. * Internal changes to the script engine: [FlavioJS]
  1609. - modulus division detects division by 0.
  1610. dividing by zero stops the script and gives an error
  1611. - underflow/overflow messages differentiated (warnings)
  1612. - when a script function doesn't return a value, a C_NOP value is pushed
  1613. instead (avoids stack corruption)
  1614. - op_add merged with op_2+op_2num/op2_str
  1615. - better type checking in the operators, int/string is never assumed.
  1616. The script ends when an invalid type is found.
  1617. - other minor code cleanups
  1618. 2007/04/26
  1619. * Corrected High Jump so it works on Guild Castles when WoE is off.
  1620. * Moonlit petals now always knocks to the back of the character rather than
  1621. pushing the character away from it's center.
  1622. 2007/04/25
  1623. * Modified the mob ai think time update after using skills from
  1624. adelay/amotion to 100ms since the previous method adds a large delay before
  1625. the AI activates again (which screws up with the timing of idle/walk
  1626. skills)
  1627. * NPC_MAGICALATTACK now starts a state similar to Sacrificial Ritual, in
  1628. the sense that every normal attack afterwards becomes a Magical Attack. The
  1629. skill duration is 15 secs. [Skotlex]
  1630. * Added missing Rachel quest map [Playtester]
  1631. * Ganbantein now deletes individual skill cells instead of the whole skill
  1632. in the area it is casted.
  1633. * Modified the mob total damage code to prevent overflows when mobs receive
  1634. over 2kM damage. [Skotlex]
  1635. * Spider Web / Fiber Lock status cannot be dispelled now [ultramage]
  1636. 2007/04/24
  1637. * All mob casted skills have a fixed range of 9 now.
  1638. * Pressure no longer vaporizes plants.
  1639. 2007/04/23
  1640. * Fixed bug which totally broke item group bonuses.
  1641. * Added warnings when setting a pvp/gvg flag removes the other flags on the
  1642. same map (gvg and pvp can't coexist on the same map)
  1643. * Removed the check that prevented you from casting soul-collect when you
  1644. already have 5 spirits.
  1645. * Corrected Magic Rod so it doesn't displays any skill-use animation until
  1646. it triggers.
  1647. * Corrected Steel Body's icon (it actually belongs to AutoBerserk)
  1648. * Debuff on logout&2 is again set to default, instead of removing food
  1649. bonuses now it removes Maximize Power, Maximum Overthrust and Steel Body.
  1650. [Skotlex]
  1651. * Extended the functionality of StringBuf - length and appending a string.
  1652. * menu/select/prompt script functions support grouped and empty options.
  1653. The selected option number is consistent with them.
  1654. * More work on ticket #41. [FlavioJS]
  1655. 2007/04/22
  1656. * Corrected crash if itemskill is used without an attached player.
  1657. * Removed range checks for autospells as per UltraMage Aegis tests.
  1658. * Added chatID skill fail check to skill_check_condition
  1659. * Corrected @refresh not re-displaying your spirit spheres nor re-setting
  1660. your cloth dye.
  1661. * Now the "number of attackers" in mob_dead is counted only from online
  1662. characters on the same map.
  1663. * Updated the autospell bonus scripts so you don't have to specify all the
  1664. attack type criteria. If neither of BF_LONG/BF_SHORT is specified, the
  1665. spell will trigger on both. If neither of BF_WEAPON/BF_MAGIC/BF_MISC is
  1666. specified, the spell will trigger on BF_WEAPON, if neither of
  1667. BF_NORMAL/BF_SKILL is specified, BF_SKILL is used if the trigger is
  1668. BF_MAGIC/BF_MISC and BF_NORMAL is used if the attack is BF_WEAPON. This way
  1669. the default when nothing is specified is
  1670. BF_NORMAL|BF_WEAPON|BF_SHORT|BF_LONG. [Skotlex]
  1671. 2007/04/21
  1672. * Removed the +25% mdef, -50% def effect from Freeze status
  1673. * Changed autocast skills, they now only work with normal attacks!
  1674. Ref: http://www.eathena.ws/board/index.php?showtopic=138159
  1675. * Fixed a few spots where attack_type was getting truncated
  1676. * Hopefully fixed the cygwin + size_t problem (using stddef.h as source)
  1677. * Added ntows() to properly handle that client port number deficiency
  1678. * Adjusted the packet_db array for a more consistent look [ultramage]
  1679. 2007/04/20
  1680. * Cleaned up the doc folder. Removed outdated, untranslated, useless files
  1681. and began normalizing a bit other ones~ [DracoRPG]
  1682. 2007/04/18
  1683. * Added MEXP overflow checks. [LuzZza]
  1684. * Added bonus5 bAutoSpell/bAutoSpellWhenHit. The new parameter is used to
  1685. specify when the spell should trigger (melee/range + weapon/magic/misc
  1686. attack), see doc/item_bonus.txt for details. [Skotlex]
  1687. * Changed some %lu to %u in login_sql/login.c because uint32 is now
  1688. an unsigned int [Toms]
  1689. * Discarded extra deflate function needed for afm reading [ultramage]
  1690. - as a result, discarded the whole chain of support functions, .c files
  1691. and includes needed to make that one function run
  1692. - also removed zlib compile/link dependencies where they are not needed
  1693. - reduced the whole zlib package into two core include files
  1694. - adjusted makefiles / project files to reflect this change
  1695. 2007/04/17
  1696. * Massive at+charcommand cleanup, big thanks to HiddenDragon [DracoRPG]
  1697. * Partially deobfuscated the grfio module
  1698. * Finally fixed mingw problems, managed to build both TXT and SQL
  1699. * Fixed the uint32 platform problem (Microsoft failed so I removed it :)
  1700. * Removed the cbasetypes.h dependency from the mapcache generator
  1701. * Removed some random compilation warnings [ultramage]
  1702. * Small bugfixes and enhancements to the map cache generator [DracoRPG]
  1703. 2007/04/15
  1704. * Fixed 'randomtarget' picking dead characters.
  1705. * Adjusted Spiral Pierce, Shield Boomerang and Shield Chain to use atk2
  1706. instead of weight when used by non-players.
  1707. * Adjusted skills blindAttack, SilenceAttack, StunAttack, PetrifyAttack,
  1708. CurseAttack, SleepAttack, Lex Divina and Dispell to be area effect skills,
  1709. if the used skill level has a splash-range different from 0.
  1710. * Mob used Meteor Assault is able to hit icewalls now. [Skotlex]
  1711. 2007/04/15
  1712. * Fixed TXT char creation blocking characters with nonstandard names
  1713. 2007/04/13
  1714. * Committing some accumulated stuff [ultramage]
  1715. - makefile typo, maps_athena typo, svn:eol-style native for some files
  1716. * Changed the meaning of inf2=0x1000. Now it is used to "disable usage on
  1717. enemies", which only works for non-aggressive (inf!=1) skills.
  1718. * If a skill is party/guild only (inf2 0x400/0x800) it will also be
  1719. castable on enemies if the skill's inf is 1 (offensive target)
  1720. * Corrected the mob behaviour when it locks into an enemy it can't chase.
  1721. Previously it would get stuck on a lock->unlock->lock loop, with each
  1722. unlock resetting the "random walk" timer, causing the mob to just idle in
  1723. place. Now they will attempt idle skills and no longer reset the "random
  1724. walk" timer, so they behave as if they were in Idle state properly.
  1725. * Now the bonus bAtkEle will be transferred directly to the weapon when the
  1726. script is in the ammunition, and you are wielding a weapon that consumes
  1727. ammo per atttack.
  1728. 2007/04/12
  1729. * Trade-requests now fail if the target is in a NPC.
  1730. * Some cleaning of the castend_map code to prevent the menuskill variable
  1731. from not being cleared if you made a choice but the skill was not triggered
  1732. (due to silence, stun or whatever)
  1733. * Cleaned up a bit the Charge Attack casttime equation, should prevent
  1734. infinite casttime when the distance is 0.
  1735. 2007/04/11
  1736. * Now when an object changes speed, the old move-packet will be used on the
  1737. next movement, which should update the object's speed from that point and
  1738. on-wards. This is done since there appears to be no way to tell the client
  1739. a given object's speed has changed.
  1740. * Modified spirit of Wizard so that the consumption of 'Fragments' when
  1741. blocking bounced spells will only consume 1 Fragment per skill casted,
  1742. regardless of how many hits were reflected.
  1743. * Modified status_get_sc_def to handle both rate and tick reductions. This
  1744. way it can take care of the fact that curse rate/duration reductions are
  1745. not reduced by the same stats. Curse duration is now reduced by vit.
  1746. [Skotlex]
  1747. * Removed an ugly cast in socket.c
  1748. * Fixed Makefile (-Wno-unused-parameter was added twice with gcc4) [Toms]
  1749. 2007/04/10
  1750. * Recoded and renamed the trim function in strlib to normalize_name.
  1751. * Added a proper trim function to strlib.
  1752. * Cleanups at npc source file adding/removing.
  1753. * Changed db key from 'unsigned char*' to 'const char*'.
  1754. * Defined out the dump function in util.h/c. [FlavioJS]
  1755. * As an experiment Corrected many /W4 warnings on the txt login server
  1756. * Played around with MinGW a bit today... [ultramage]
  1757. - adjusted code so that it handles mingw-specific compatibility problems
  1758. - adjusted the makefile, mingw is not a subset of cygwin
  1759. 2007/04/09
  1760. * Now when saving a character, only the cart/peco/falcon 'option' states
  1761. are saved, the rest should be handled by the status change load/save
  1762. functions. This saves 'permanent' cloaking/hiding and other such oddities
  1763. if the server is unable to save your status changes on logout.
  1764. * Updated some Guild WoE rules to behave as explained here:
  1765. http://www.eathena.ws/board/index.php?showtopic=146581 [Skotlex]
  1766. 2007/04/08
  1767. * Fixed the platform-specific stricmp compilation problem
  1768. * Fixed inverted vending tax equation (!) and made it more precise
  1769. * Moved e_mail_check() and config_switch() to strlib.h
  1770. * Synchronized the login servers a bit
  1771. 2007/04/07
  1772. * Disabled the exception handler on windows debug builds
  1773. * Fixed Devotion using WE_BABY's status icon (now uses no icon);
  1774. if you have a way to determine the correct number, give feedback
  1775. * Updated the server's PCRE components to 7.0
  1776. - dll, library, header
  1777. - cleaned the only existing example and moved it to /samples
  1778. - changed the interface, now $@ is used instead of $ to store the result
  1779. - /!\ adjust your scripts if you are using npc regexp parsing /!\
  1780. * Fixed the start_point setting smashing t3h stack in some situations
  1781. * Fixed some over/under-dimensioned arrays (defines already cover the '\0')
  1782. * Fixed an unupdated define making Warp Portal fail with an error [ultramage]
  1783. * Final touches to the whole map crap [DracoRPG]
  1784. - changed MAP_NAME_LENGTH to 12, now there's MAP_NAME_LENGTH_EXT at 16 for
  1785. uses where there is / may be the .gat extension, code adjusted accordingly
  1786. - moved map_normalize_name to mapindex_normalize_name so that everything
  1787. handling map names uses the same extension-removing function
  1788. - greatly enhanced the map cache generator, complete documentation on the
  1789. tool and the map cache format can be found in doc/
  1790. - the map cache format changed a bit as a consequence, but of course a new
  1791. valid one is included (contains latest Nameless Island maps)
  1792. - and I'm sorry for the number of times I've moved around and renamed files,
  1793. now the final structure should have been reached
  1794. * Capped clif_heal's heal field (the argument received is int, but the
  1795. packet field is short, meaning that if the heal is high enough, the client
  1796. would receive a negative heal amount). [Skotlex]
  1797. 2007/04/06
  1798. * Made a crazy attempt to at least partially synchronize login&char code
  1799. * Major edit to the way the servers handle ip addresses, making them obey
  1800. the "host byte order inside, network byte order outside" rule [ultramage]
  1801. - hopefully covered all entry- and exit-points for IP address data
  1802. - discovered several places where Gravity's client breaks the convention,
  1803. will need to come up with a suitable countermeasure for that
  1804. - other than that, the code should be portable, except for printing and
  1805. ipban mask testing (those still assume a specific byte order)
  1806. - tested both txt and sql in all usual situations; tested single- and
  1807. multi-server setups, all seems to work (but watch out for hidden bugs!)
  1808. 2007/04/05
  1809. * Cleaned @whogm. It will display the name of all gms online. If their GM
  1810. level is above your own, it will only display their name, otherwise level,
  1811. position, and party/guild info is displayed. GM's using gm-hide will not
  1812. appear on this list.
  1813. * Corrected song/dances/encores reducing SP at the incorrect intervals
  1814. (either never, or every second).
  1815. 2007/04/04
  1816. * Corrected Longing for Freedom, it should triple SP cost rather than
  1817. modifying SP cost to 1/sec
  1818. * SC_ENCHANTARMS will no longer fail to start if it's already running with
  1819. a "higher elemental level".
  1820. * When trying to trade an untradeable item, the add-item-fail packet will
  1821. be sent so the client does not gets stuck. [Skotlex]
  1822. 2007/04/03
  1823. * Some spring-cleaning in sql-files, only left SVN 8k+ files [DracoRPG]
  1824. * Updated sql files [Playtester]
  1825. * Fixed char-server crash on @changegm use.
  1826. * Cleaned up mmo_auth, this function wasn't only poorly coded, it also had
  1827. a SQL-related memory leak in it!
  1828. * Corrected the attack_attr_none check being backwards (ie: this config was
  1829. working backwards!)
  1830. * All pets can now move regardless of their Mob counter part setting.
  1831. [Skotlex]
  1832. * Some source code cleaning
  1833. - Fixed the badly worded messages during mapserver startup
  1834. - Cleaned up socket config reading
  1835. - Split resolve_hostbyname() into 2 separate functions for clarity
  1836. - Moved the probably obsolete LOWER/UPPER macros to db.c (TODO: remove)
  1837. - Moved the badly placed compare_item() function to storage.c (see r779)
  1838. * Fully removed the msvcr80.dll dependency from the vs8 project files
  1839. 2007/04/02
  1840. * Removed some overly verbose item group messages & code
  1841. * re-added the item_group_list for consistency's sake, moved to itemdb.h
  1842. (after some hacking to remove the ugly map.h dependency)
  1843. * Fixed the server crashing on a timer-queued disguise / undisguise
  1844. * Fixed the server crashing on startup due to bad define [ultramage]
  1845. * Removed bonus 'bAspdAddRate'. bAspdRate now behaves on a stackable
  1846. matter, so it's no longer needed.
  1847. * Reimplemented the bonus 'bAspd' (raw Aspd increase) [Skotlex]
  1848. 2007/03/31
  1849. * Added all the missing defines for ctype.h functions and converted all
  1850. the direct uses to the defines. [FlavioJS]
  1851. 2007/03/30
  1852. * Added "do_abort" function to the core. It is invoked when the server has
  1853. received a Segmentation Fault or Floating Point Exception signal. Currently
  1854. the only one that uses it is the map-server, which then attempts to save
  1855. all online characters before aborting. Note that due to the current
  1856. coding of the sig plugin, do_abort will not be invoked if you use it!
  1857. This plugin needs to be updated... [Skotlex]
  1858. * Continued script.c cleanup [Toms]
  1859. 2007/03/29
  1860. * Corrected OPTION_XMAS since 2007 clients have split it up from
  1861. OPTION_FLYING (on previous clients both were the same option value).
  1862. * Corrected statp array not being long enough to actually hold the status
  1863. points of ALL levels up to and including MAX_LEVEL. Fixes reaching final
  1864. level and resetting giving you an unpredictable amount of status points.
  1865. 2007/03/28
  1866. * Negative aspd rate bonuses will be handled as aspd add rate since the
  1867. default non-stackable bonus is useless on penalty bonuses.
  1868. * Added check to prevent the client from using passive skills. [Skotlex]
  1869. * Updated sql-files [Playtester]
  1870. * Removed a missing file reference in the athena-start script
  1871. * Fixed a #error "<malloc.h> has been replaced by <stdlib.h>" problem
  1872. * Fixed the msg_silent setting not being announced every time [ultramage]
  1873. 2007/03/27
  1874. * Cleaned up some the mob skill use code. The skill re-use delay is set at
  1875. the time the skill is used rather than when it finishes casting. The
  1876. invalid target check was also moved to the mob skill db reading function.
  1877. * Skills can be used now when the autoskill menu is open (since there's no
  1878. packet sent by the client when you hit on cancel). [Skotlex]
  1879. * Added some svn:ignore properties [Toms]
  1880. * Solved console plugins compilation error [Toms]
  1881. * Changed MAX_LEVEL to the standard value 99. Memory consumption-= 55MB.
  1882. - !!!WARNING!!! If your server uses higher levels, be sure to adjust
  1883. this appropriately! (the define can be found in /src/map/map.h)
  1884. * Corrected SC_COMA's success chance (X.4 says it's unconditional 100%)
  1885. * Changed the vs8 used crt library to static linking [ultramage]
  1886. 2007/03/26
  1887. * Coma now reduces SP to 0 (with the exception of Dark Blessing) [Skotlex]
  1888. * Corrected "format '%lu' expects type 'long unsigned int', but argument 4
  1889. has type 'unsigned int'" warning on login.sql [Toms]
  1890. 2007/03/24
  1891. * Corrected change r10051 which prevented Ice Pick from working [ultramage]
  1892. - the 'ignore_' variables are bitflags and therefore need enough bits
  1893. to store all info; 8 bits wasn't enough in this case
  1894. 2007/03/23
  1895. * Major reconfiguration of the vs7 project files (+vs8 while I was at it)
  1896. - added definitions _DEBUG and NDEBUG to tune system-specific stuff
  1897. - reduced the build requirements (Pentium 4 was a bit too much)
  1898. - changed build settings and project structure to match the vs8 projects
  1899. - corrected some vs8 inconsistencies
  1900. * Some generic typo fixes [ultramage]
  1901. * Corrected Ankle Snare/Spider Web having a 1% chance to trap rather than
  1902. 100%
  1903. * Food boosts are now dispelled on death only.
  1904. 2007/03/22
  1905. * Corrected setitemscript not correctly updating the item's script.
  1906. * Added define MAX_CHARS so you can easily mod the server to support a
  1907. different amount of characters per account (however, there is still the
  1908. issue of hexing the client to support this change)
  1909. * Updated msg_athena.conf so it no longer uses broken english on several
  1910. entries. Thanks to Scerez for the updated file.
  1911. 2007/03/21
  1912. * getpetinfo 5 will now return the pet's rename flag.
  1913. * Autoloot will now only work on items dropped a certain distance from the
  1914. player. The distance is defined by AUTOLOOT_DISTANCE in atcommand.h and
  1915. defaults to AREA_SIZE.
  1916. * Removed Magic Rod's cast bar.
  1917. * Gravitation no longer causes damage flinch. [Skotlex]
  1918. 2007/03/20
  1919. * Increased MAX_STATUSCHANGE to 300 to make room for new statuses [DracoRPG]
  1920. * Reverted mapindex reading from map_list.txt for the map-server [DracoRPG]
  1921. * Patched the MAX_STATUSCHANGE startup error [ultramage
  1922. * Removed the last argument from script command skillitem.
  1923. * Added skill ITEM_ENCHANTARMS, this is what weapon enchanting items should
  1924. use.
  1925. * Added support for specifying different elements per skill level in the
  1926. skill_db
  1927. * Added bonus bNoKnockback.
  1928. * Corrected login sql server not reseting your account state to 0 when the
  1929. banuntil duration expires.
  1930. * Made the skillatk bonus it's own function, it can now be used to boost
  1931. Heal/Sanctuary/Potion Pitcher and Slim Pitcher as well.
  1932. * Corrected Teleport's save map entry being sent without the .gat
  1933. extension.
  1934. * Corrected Warp Portal not sending the map names with the .gat extension.
  1935. * Probably corrected Disarm's strip animation.
  1936. 2007/03/19
  1937. * Rewrote the jail logic to always use a status change. This means that the
  1938. character's save point is not changed when jailed, and the char is always
  1939. warped back to the point where it was before being jailed on unjail.
  1940. * Modified @adjcmdlvl so you can't set a command to require higher level
  1941. than yourself, and so you can't edit the level of a command which is higher
  1942. than your own.
  1943. * Corrected attack_attr_none setting disabling elemental resist cards.
  1944. * Corrected Dispell removing Jailed status.
  1945. * Corrected being able to revive with 0 hp.
  1946. * Modified the "Restart" code so that it makes you stand on spot when
  1947. pc_setpos fails to move you back to your originating location. [Skotlex]
  1948. * Fixed some wrong sql login logic
  1949. * Fixed some compiler warnings, cleaned up mapserver sql-related vars
  1950. * Removed the old 'mapserver charsave' mechanism [ultramage]
  1951. * Globalised use of script_pushint and script_getdata in script.c
  1952. If someone need them, the regexp used was :
  1953. sed -i "s/& *(st->stack->stack_data\[st->start *+ *\([^]]*\)\])/script_getdata(st,\1)/g" script.c
  1954. sed -i "s/push_val(st->stack, *C_INT *, *\([^)]*\))/script_pushint(st,\1)/g" script.c
  1955. * Little clean of unused variables in script.c [Toms]
  1956. * Script engine:
  1957. - calling functions without using the return value doesn't generate warnings
  1958. - more work on Ticket #41
  1959. * Took care of two warnings and a minor change to the makefile. [FlavioJS]
  1960. 2007/03/18
  1961. * Added missing VC++ 7.1 project files for mapcache. [Lance]
  1962. * A followup to the login_sql server changes:
  1963. Due to a missing 'else' in the case_sensitive config setting loading
  1964. code (see r483 and r3316), the option was always being set to 'off'.
  1965. Now that I have corrected it, make sure to set it exactly how you
  1966. want it to behave (usually case-insensitive)!
  1967. Failure to do so can result in half the server spamming you with
  1968. messages about how they are getting 'unregistered id' errors.
  1969. 2007/03/17
  1970. * committing my work on the login server (mostly SQL) [ultramage]
  1971. - removed the check_ip_flag from login&char (there since r1)
  1972. - removed the CMP_AUTHFIFO_IP and CMP_AUTHFIFO_LOGIN2 defines (also r1)
  1973. - removed dynamic_account_ban, gm_db settings, weren't doing anything at all
  1974. - modified the date_format setting to take the format string directly
  1975. - removed overly verbose config loading messages
  1976. - removed/simplified many more useless actions
  1977. - renamed the dynamic_pass_failure_ban_ settings to make more sense
  1978. - collected relevant config settings into a login_config structure
  1979. and documented their purpose
  1980. - allowed usage of yes/no instead of the user-unfriendly 1/0 method
  1981. in config settings (and added 1/0 as a possible option)
  1982. - fixed dnsbl which was always taking only the first entry into account
  1983. 2007/03/16
  1984. * Corrected the structure and added info on the skill fail packet (0x110).
  1985. * Added packet 0x223 as clif_upgrademessage (not used yet).
  1986. * More work on Ticket #41. [FlavioJS]
  1987. 2007/03/15
  1988. * Added SC_CHANGEUNDEAD to differentiate it from the other elemental change
  1989. skills. It now fails on Undead/Dark elemental targets.
  1990. * Corrected party item share settings not being properly updated on logon.
  1991. * Corrected battle_attr_none setting applying to elemental attacks instead
  1992. of neutral ones. [Skotlex]
  1993. 2007/03/14
  1994. * Finished polishing the new mapcache system [DracoRPG]
  1995. - common/grfio.* now empty except zipping functions (to read mapcache)
  1996. - servers do not use .gat internally anymore
  1997. => YOU CAN (and should) STOP USING .gat IN YOUR SCRIPTS
  1998. - moved files for the mapcache builder to db/ for now
  1999. - the char-server now uses the same index list as the mapcache builder
  2000. => poring_c01, poring_c02 and ng_quest mapindex have changed, beware
  2001. * Updated sql files [Playtester]
  2002. * Adjusted @pvpoff, @gvgoff, @killer, @killable to make characters stop
  2003. attacking when used.
  2004. * Dispell no longer removes food boosts.
  2005. * Players will stop attacking when they change their look.
  2006. * Applied Alydis's fix to the mvp item logs logging mvp items even if the
  2007. player couldn't get the item.
  2008. 2007/03/13
  2009. * Corrected the new packet version entries for skilluseposinfo
  2010. * Corrected item reloading not unsetting the "delay consume" flag if the
  2011. item had changed it's type.
  2012. * the Attack_Type variable in skill_attack now inherits the damage.flag
  2013. properties, this fixes ranged status effects not triggering.
  2014. 2007/03/12
  2015. * Added player not attached crash prevention to countitem/countitem2.
  2016. * Probably corrected delitem not deleting pet eggs at all.
  2017. * Hopefully fixed hidenpc/disablenpc not working on Guild flag sprites.
  2018. * Mob skill state "anytarget" no longer triggers when the mob has an
  2019. item-target (looting).
  2020. * @storage/@gstorage will no longer work if you have a trade or a storage
  2021. opened already.
  2022. * Corrected script command movenpc so it properly moves the ontouch npc
  2023. cells as well.
  2024. * Changed the unit-walk packet to be 0x86 as pointed out by FlavioJS. This
  2025. new packet is much smaller, and should greatly decrease bandwidth usage.
  2026. The only drawback is that the character will not display at all if the
  2027. client didn't know of it's existance previously, but eA should always be
  2028. sending a spawn packet when an object gets into/out of sight anyway, so
  2029. it should work correctly.
  2030. * Modified the guild master change ack packet to return the aid/cid of the
  2031. new guild master instead of the index where it was, the previous method
  2032. could cause problems in situations where the order of guild members would
  2033. not match exactly between char/map servers.
  2034. * Updated the Soul Linker's Rogue Spirit Stealth's speed bonus to +60%,
  2035. according to forum infor from ragnagate. [Skotlex]
  2036. 2007/03/09
  2037. * Mapcache can run on system with any endianness.
  2038. The generated file contains data in little endian.
  2039. * Added info on packet 0x86 (simple move packet). Not usable until a clear
  2040. separation between entering sight/leaving sight/walking in sight is done.
  2041. * Propagating const char* from the script engine.
  2042. * ".gat" is appended to the map name before sending the changemapserver
  2043. packet to the client. [FlavioJS]
  2044. * Normalized the mapname in guild get/set castle data, should fix guild
  2045. flags.
  2046. * Added log options 0x800/0x1000 to log storage moves ('R') and guild
  2047. storage moves ('G')
  2048. * Added upgrade_svn9976.sql to include 'R'/'G' on the picklog type column
  2049. set.
  2050. * Updated the logs_athena description to include the letter of each type
  2051. (512 - M, 32 - N, etc)
  2052. 2007/03/08
  2053. * Corrected the pet/homunc data not being free'd if the player logs out
  2054. before being authed.
  2055. * Initialized player's speed on pc_setnewpc to prevent homunculus copying a
  2056. speed of 0.
  2057. * Corrected ranged add-status only triggering if the attack is arrow
  2058. based.
  2059. * Updated counter add-status so they trigger on ranged attacks instead of
  2060. using "arrow_atk" state. [Skotlex]
  2061. * Here comes the new mapcache system! [DracoRPG]
  2062. - The last and only big "feature" (kind of cleanup in fact) you'll see
  2063. - Totally removes GRF/GAT handling from map-server that only reads from cache
  2064. - The cache now also contains map indexes, and is mostly zipped (1.5MB atm)
  2065. - It is shipped with eA => 100% client-independant, no more missing maps
  2066. - If you want to add custom maps, the mapcache builder is available, doc
  2067. and Unix Makefile coming as soon as possible (VC8 project only ATM :/)
  2068. - Removed now useless AFM/AF2 support, as well as the startup screen notice
  2069. 2007/03/07
  2070. * Corrected the define for NK no cardfix (def).
  2071. * Fixed the char sql server not escaping the server name before inserting
  2072. it on the ragsrvinfo table.
  2073. * Corrected @lvup not doing the party even share check.
  2074. * Corrected breaker's misc part not ignoring element.
  2075. 2007/03/06
  2076. * Added NK value 0x80: ignore target's cards (0x8 will now only ignore
  2077. attacker's cards).
  2078. * Corrected Soul Breaker ignoring target's cards instead of the caster's.
  2079. [Skotlex]
  2080. * Fixed an infinite loop if script name contains a single ':' [Toms]
  2081. * Simplified the Utsusemi/Bunsinjyutsu check to only block weapon skills
  2082. that do not ignore offensive cards. [Skotlex]
  2083. * Added support for the 2 new packet versions. [Zephiris]
  2084. * Fixed the loginlog's `user` column length (use upgrade_svn9957.sql)
  2085. 2007/03/05
  2086. * More tweaks to socket.c to simplify the code [ultramage]
  2087. - many generic cleanups - reformatting, useless code removal, etc
  2088. - made the mode_neg setting a compile-time decision, not a run-time one
  2089. - removed the silly frame_size setting (there since r1)
  2090. - added some TODOs to http://www.eathena.ws/board/index.php?showtopic=127988
  2091. * Added the +20hit that were missing the NPC elemental attack skills.
  2092. * Added support for autospells using "a random skill level". The last value
  2093. of bonus4 bAutoSpell is used for determining this as well as the target. &1
  2094. is to cast on target (otherwise cast on self), and &2 is to use a random
  2095. level UP to the level specified in the script (otherwise always cast the
  2096. specified level)
  2097. * Updated item_bonus.txt with the documentation for the
  2098. bAutoSpell/bAutoSpellWhenHit changes.
  2099. * Corrected @refresh not reupdating the basic stat bonuses.
  2100. 2007/03/03
  2101. * Modified a bit the storm gust counter code to see if it fixes storm gusts
  2102. sometimes freezing on first hit.
  2103. 2007/03/02
  2104. * Tatami Gaeshi state (proyectile blocking) now ends when you move.
  2105. * SG Union will consume now SP if you use it while not soul linked.
  2106. * Added variable "skip" to the mob spawn data, to know how many mobs to
  2107. skip when spawning because they were not removed due to the
  2108. "mob_remove_damaged" setting.
  2109. * Corrected the Hp/Sp regen formulas from Hp/Sp/Spirit Recovery and
  2110. Happy/Peaceful break according to recent forums discussions (formula is
  2111. changed from x*lv +max*lv/500 to lv*(x+max/500). [Skotlex]
  2112. * Added new script function: setiteminfo. Now you can make custom items [Lupus]
  2113. - Updated script function setitemscript(itemID,script,WhichScript)
  2114. now u can set one of 3 item scripts: use/update, equip, unequip
  2115. But it works only if the original item had 3 non empty scriptsin ITEM_DB
  2116. can't fix this issue yet
  2117. 1201,Knife,Knife,4,50,,400,17,,1,3,0xFE9F7EEF,7,2,2,1,1,1,1,{dispbottom "1";},{dispbottom "2";},{dispbottom "3";}
  2118. and... if u've used this function, later @reloaditemdb may crush the map server ^_-
  2119. - Check npc/sample/npc_test_setitemx.txt as example of setiteminfo & setitemscript
  2120. 2007/03/01
  2121. * Corrected raid not doing the "can hit?" check on splash area targets.
  2122. * Fixed the definition of warpwaitingpc so that it allows an optional
  2123. argument (number of people to warp).
  2124. * Modified the Palm Strike packet so the initial hit animation does not
  2125. displays "Miss".
  2126. * Added a check to prevent trades from being commited if either character
  2127. is in final-save state.
  2128. * Checked and cleaned up the online_check code in the char-server. Further
  2129. connections to the char-server are rejected when the account already has a
  2130. connection (previously this would happen only if there was already another
  2131. character IN game, not just waiting on the char-select screen). [Skotlex]
  2132. 2007/02/28
  2133. * Added the source and VC8 project for my experimental mapcache generator;
  2134. it is NOT compatible with eA's current mapcache but uses a brand new format
  2135. that I still have to embed into the map-server [DracoRPG]
  2136. 2007/02/27
  2137. * NPC_AGIUP now boosts flee by 100% and duration is 5+5*lv secs, as stated
  2138. on the Ragnarok Bible.
  2139. * Fixed Soul Breaker's misc part not ignoring flee.
  2140. * Fixed misc attack's flee check being backwards (the less hit%, the more
  2141. chance you had to connect)
  2142. * Corrected the range check in vending.c [Skotlex]
  2143. * Added map & distance check to vending to prevent WPE hacks. [Lupus]
  2144. E.g. buying items from WoE castle
  2145. * Fixed a compiler warning in char_sql\login.c
  2146. * Minor source documentation/cleanup. [FlavioJS]
  2147. 2007/02/26
  2148. * You are allowed to expel guild mates that are not online now.
  2149. * Corrected damage of BloodDrain
  2150. * Moved the "already connected" checks to pc_authok, since a dual login
  2151. doesn't needs to be checked until the new connection is accepted.
  2152. * You are allowed to attack/use skills now when your cloaking level is
  2153. below 3.
  2154. * Small change to Stone Curse that may fix the permanent "semi-stone"
  2155. status.
  2156. * Corrected "taming monster" having your skill-use be stuck if you cancel
  2157. the target selection process.
  2158. * config setting party_show_share_picker now displays the jname of the item
  2159. picked as well.
  2160. * Corrected some typos and small details
  2161. (forgotten bInfiniteEndure [r6487], mysterious '1' in help file, etc)
  2162. 2007/02/25
  2163. * Added Krade's makefile fix for 64bit compilers [ultramage]
  2164. - ref: http://www.eathena.ws/board/index.php?showtopic=136622
  2165. * Minor cleanup/documentation on the script engine. [FlavioJS]
  2166. 2007/02/24
  2167. * Fixed the mob_override_name setting not working on summoned mobs.
  2168. * The server now prints an error message when it the produce_db reaches the
  2169. max number of allowed produce recipes.
  2170. * The NK value of the skill_db has been made a hexadecimal value, and
  2171. expanded to include more information about a skill's damage properties: 0x8
  2172. ignore caster's cards, 0x10 ignore element adjustments, 0x20 ignore
  2173. target's defense, 0x40 ignore target's flee. Note that magic attacks
  2174. always ignore flee, and misc attacks always ignore defense.
  2175. * Autoguard will no longer work on skills that don't take in card
  2176. adjustments
  2177. * utsusemi & bunsinjyutsu no longer work on skills that don't take in card
  2178. adjustments.
  2179. * Corrected damage of the NPC elemental attack skills, Blood Drain and
  2180. Energy Drain
  2181. * Adjusted menu-based skills so you can't reuse the same skill until you've
  2182. dealt with the menu.
  2183. * Adjust autospells so that removing an autospell works when the script of
  2184. the card that removes the autospell is triggered before the script that
  2185. adds the spell.
  2186. * The "requested name of gm-hidden char" warning will not be displayed when
  2187. the object in question is an NPC (since you can use Intravision to do
  2188. this).
  2189. * Venom Knife no longer takes into accounts cards or EDP.
  2190. 2007/02/23
  2191. * Guild expulsion now will fail when the character to be kicked is in a
  2192. guild castle (rather than checking for the character doing the expulsion)
  2193. * pk damage reduction settings now will take effect only on Player VS
  2194. player damage.
  2195. * Fixed produce_db2.txt entries overwriting produce_db.txt ones.
  2196. * Fixed item-granted/plagiarized skills unlocking skill trees when only
  2197. your real learned level should. [Skotlex]
  2198. 2007/02/21
  2199. * Applied a consistent look to all header files (copyright, ifdefs)
  2200. * Minor stuff (typos, socket.c, junk in login reply packet) [ultramage]
  2201. 2007/02/19
  2202. * Fixed @cartlist info message typo [Lupus]
  2203. 2007/02/17
  2204. * Fixed a typo from r9778, allowing non-gm chars to use /kill [ultramage]
  2205. 2007/02/16
  2206. * Fixed the structure of packet 0x6d (new char info). It's the same as the
  2207. one used for packet 0x6b (chars info). [FlavioJS]
  2208. * Updated script commands startnpctimer, stopnpctimer, initnpctimer so you
  2209. can attach a player to them, this is done because the attach/detach
  2210. functions can't be used to attach to a different script than the one
  2211. currently running.
  2212. * Updated the script_command reference with the new flag values of
  2213. [start/stop/init]npctimer.
  2214. * Modified the "guardian" spawn script command, it no longer receives a
  2215. "amount" argument (since that only leads to trouble), if the class is
  2216. negative, it'll pick a random class the same way the monster spawn script
  2217. command does, and if you pass a spawn position with coordinates equal or
  2218. less to 0, a random spot in the map will be taken. However you can't use
  2219. "this" as a map name anymore since these script commands do not need an
  2220. attached player.
  2221. * Guardian spawning will now fail if you attempt to spawn a guardian that
  2222. already exists on the same position.
  2223. * Miracle of the Sun, Moon and Stars can now retrigger to lenghten it's
  2224. effect, and it is cancelled on warp/map-change. [Skotlex]
  2225. 2007/02/15
  2226. * Reverted some of my mobdb code
  2227. * Cleaned up clif_party_info a bit
  2228. * Cleaned up set_reg (the same procedure as get_val) [ultramage]
  2229. * The default packet version is now 8. Clients from November2006 and before
  2230. can no longer get past the char-server unless you change it back to 7.
  2231. * Fixed Storm Gust counter freezing on fourth hit instead of third.
  2232. * Fixed @homstats not taking into consideration that the stat growth
  2233. decimals get discarded on level up (so the real minimum/maximum displayed
  2234. was off).
  2235. 2007/02/13
  2236. * Applied Rayce's dangling pointer fix when returning a temporary npc
  2237. string variable (those starting with .@)
  2238. * Required Weapon, ammo, and skill state are now only checked on begin
  2239. casting, instead of both on begin and end casting.
  2240. 2007/02/12
  2241. * Fixed Resurrect Homunculus and Wedding skills failing. [Skotlex]
  2242. * A bit more work on Ticket #41.
  2243. * Added 'r' (variable reference) to the script argument definitions.
  2244. * Added a simple define for suspitious actions. (empty at the moment)
  2245. * Added clif_clearcart and moved sending cart packets to pc_setoption.
  2246. * clif_parse_ChangeCart checking the player level. [FlavioJS]
  2247. * Fixed clif_parse_GMmessage cutting off messages randomly [ultramage]
  2248. (due to a typo in revision r9778)
  2249. * Fixed Wand of Hermod
  2250. * Corrected Spider Web casting around caster instead of target's position.
  2251. * Corrected a possible crash during login due to checking for the incorrect
  2252. variable (lets pc_calc_status be invoked when it shouldn't)
  2253. * Added bounds checking to map_foreachincell.
  2254. * Opt2 values (poison, blind, and so on) are now resent on warp/map-change.
  2255. * Corrected description of isloggedin script command. [Skotlex]
  2256. 2007/02/11
  2257. * Fixed the inverted behavior of display_skill_fail, caused by r9823
  2258. * Fixed @loadnpc not updating the script_event[] array
  2259. 2007/02/10
  2260. * Fixed clif_party_message using an incorrect buffer length [ultramage]
  2261. * Cosmetic changes to the buildin section of script.c (use defines for
  2262. function names/definitions). [FlavioJS]
  2263. 2007/02/09
  2264. * Updated the 'unit walk' to functions so they stop your attack if it's
  2265. possible to walk.
  2266. * Fixed char server SQL not sending the guild info update to other map
  2267. servers when a new member is added.
  2268. 2007/02/08
  2269. * Modified Spider Web so it can instantly retrap a target, rather than
  2270. idling on the ground waiting for a new target.
  2271. * Cleaned up some the rude-attacked code, being attacked while under spider
  2272. web now triggers rude-attacked. [Skotlex]
  2273. * Added code for SQL that will automatically detect the ping interval
  2274. at startup, and copy-pasted it around the code; removed the conf setting
  2275. * Added a missing null pointer check in clif_parse_globalmessage
  2276. * Fixed the new socket code, which was triggering the inactivity timeout
  2277. on the servers' listening sockets
  2278. * Fixed the TURBO code not working since r4468 (parse func never called)
  2279. 2007/02/07
  2280. * More aggressive cleaning up of the socket code [ultramage]
  2281. - removed unused session_data2 entry in sd
  2282. - added a new create_session() function, helps keep things cleaner
  2283. (although it's ad-hoc and not perfect, since this is C)
  2284. - undid r4978 since it was getting in the way (re-add it if you need it)
  2285. - added defines for the recv, send and parse func pointers
  2286. - added null functions for the three actions, and made create_session()
  2287. calls use those instead of NULL pointers; insignificant penalty and now:
  2288. - since all three funcs are always initialized, removed all those NULL checks
  2289. - removed the efd set, since as the people from the developernet forums
  2290. pointed out, it's only for out-of-band data and NOT for error checking
  2291. (in fact, select() bails out without giving any info if it errors out)
  2292. - reorganized the randomly placed socket.c contents somewhat
  2293. - it'll be a miracle if this works like it should ^^;
  2294. * Modified spider web so that the skill_unit_db flag restrictions may take
  2295. place. [Skotlex]
  2296. * Cleaning up of the socket code [ultramage]
  2297. - Shuffled includes around for files that were leeching off of socket.h
  2298. - Added code that enforces standard shutdown behavior for sockets
  2299. - Wiped out the poorly written parse code from r2211
  2300. * Removed old script bonuses bMatk, bMatk1, bMatk2.
  2301. * Fixed char-server not sending online notification when a party member
  2302. logs in.
  2303. * When skill range by distance is set, the distance checked for is now 5
  2304. cells rather than 3.
  2305. * Fixed bMatkRate bonuses not applying to status earned modifications to
  2306. int/matk. [Skotlex]
  2307. * Removed deprecated console code.
  2308. * Moved CHAT_SIZE back to map.h because log_atcommand uses it on sql
  2309. builds. (moved to clif.c in r9811) [FlavioJS]
  2310. 2007/02/06
  2311. * Cleaned up the script engine's get_val() function [ultramage]
  2312. - changed the long if-spaghetti into a compact switch statement
  2313. - changed its behavior so that it exits if !sd and it requires one
  2314. - upon exiting, it will now ensure that meaningful values get returned
  2315. (the old code had no qualms about returning random junk from memory
  2316. for integer queries, and crashing for string queries)
  2317. - removed many !sd checks since they are done at the beginning now
  2318. * Fixed #lvup having the gm level check backwards.
  2319. * Fixed the stormgust freeze counter going up even if the attack is
  2320. blocked/cancelled.
  2321. * Cleaned up homunc attack request parsing. Homunculus no longer goes into
  2322. auto-attack (ctrl+click) mode since the client does every attack request
  2323. individually.
  2324. * Fixed char-server not sending party status update when a member logs
  2325. on/off.
  2326. * Fixed crash when parsing guild member information change from the
  2327. char-server if the specified character is not found in the guild.
  2328. * Fixed MvP mobs giving exp when killed even if they shouldn't.
  2329. 2007/02/05
  2330. * Fixed @lvup, #lvup not doing a stat reset and lowering your status points
  2331. if you had 0 status points at that time.
  2332. * Fixed MvP exp and item rewards being given even when the mob_dead flag
  2333. specifies you should not receive exp or items.
  2334. * Updated the code so that now a range of a skill is determined by the
  2335. skill's range in the db. Now only skills with less than 5 cells of range
  2336. are melee.
  2337. * The inf2 parameter of the skill_db is now red as an hexadecimal.
  2338. * The super novice self-revive angel will now trigger only once per
  2339. session, if you relog you can have it trigger again. [Skotlex]
  2340. * Fixed the skill tree not always updating when using @allskill
  2341. * Probably fixed the target-change on melee attack setting not working.
  2342. * Moved the deletion of the invincible timer when using skills so that it
  2343. is not deleted for skills such as Ashura (when just selecting a target)
  2344. [Skotlex]
  2345. 2007/02/03
  2346. * Continuing the checking of script buildin functions and stop the script
  2347. execution when an attached player is required but not found.
  2348. This task will be referenced as Ticket #41 from now on. [FlavioJS]
  2349. * Updated the TXT login server's account id checker
  2350. (it was still saying the minimum is 700000 instead of 2000000)
  2351. * Changed the 'getpartyleader' script command so that it returns a map
  2352. name instead of the useless mapindex number. Also fixed it so that it
  2353. doesn't throw a 'args of aFree is not valid pointer' error.
  2354. (although I'm not at all sure that the fix is correct)
  2355. Ref: http://www.eathena.ws/board/index.php?showtopic=137274
  2356. * Removed the silly and misleading 'firewall detected' message
  2357. * Added missing vc6 project file
  2358. * Corrected a lie in the script documentation [ultramage]
  2359. 2007/02/02
  2360. * Fixed the flag parameter not working on npcshopattach.
  2361. * Updated the walk delay code so that it parses homunculus as well as
  2362. players. What this means is that a homunculus walk request won't go ignored
  2363. if it's issued during the 'can't walk delay' after being hit.
  2364. * Added a possible crash protection in clif_skillfail when the player is
  2365. without a connection. [Skotlex]
  2366. * Fine-tuned the global message processing function [ultramage]
  2367. - now detects access-out-of-rfifo attempts (idea from eA++)
  2368. - uses the new CHAT_SIZE define to restrict message lengths
  2369. - detects Frost Joke/Dazzler and gives them more freedom (from Freya)
  2370. - more strict non-conformant message detection
  2371. - logging every problem to the mapserver console
  2372. * Resetting skills will now automatically remove peco, falcon, cart and
  2373. homunculus (vaporize).
  2374. * Fixed random mob picking choosing clones.
  2375. * Fixed critical spots that could be exploited [Skotlex]
  2376. - The define MESSAGE_SIZE was wrong! It is only used for input boxes.
  2377. Therefore now it is only used for Vending, Talkie box and Graffiti
  2378. - Added new define CHAT_SIZE which holds the max length that a client
  2379. can send from the chat buffer
  2380. - Added define msg_len_check which crops incoming client text if it's
  2381. longer than CHAT_SIZE. Added cropping to all incoming messages except
  2382. normal chatting which is already accounted for.
  2383. - Removed variable talkie_mes, this is now handled by sd->message
  2384. - Cleaned up parser functions for /b /lb, gm kick, /shift, /recall
  2385. - Added crash protection to the logging functions when they receive
  2386. a too long string.
  2387. 2007/02/01
  2388. * Restricted global messages to 255 characters (client shows only ~80 anyway,
  2389. wanted to use 127 but frost joke's lines are longer than that ...)
  2390. - prevented using a ~22+kB long message to crash everyone on screen
  2391. - prevented faking the message length to cause an out-of-bounds access crash
  2392. - removed the unneccessary 'buf'ffer (inspiration from jAthena)
  2393. - Ref: http://www.eathena.ws/board/index.php?showtopic=137770
  2394. * Corrected the chat system to allow 8-letter passwords
  2395. * Minor details (pdb file location, improved debug, npc typo) [ultramage]
  2396. * Cleaned up the npcshop(add/del)item script commands, fixed a possible
  2397. dangling pointer crash caused by their improper use of realloc. They no
  2398. longer automatically attach the script to the shop, and they will return
  2399. true/false based on whether the shop was found or not.
  2400. * Added script command npcshopattach to enable attaching/detaching your
  2401. script from any npc shop.
  2402. * Updated doc/script_commands.txt with entries for npcshopitem,
  2403. npcshopadditem, npcshopdelitem and npcshopattach [Skotlex]
  2404. * A followup to r9761, a header include that somehow didn't commit [ultramage]
  2405. * Item search is now a bit smarter. When no item is found with the same
  2406. 'aegis name', then the 'normal' name is used instead.
  2407. * Updated the @/# commands that take an item name so that you can use
  2408. quotes when specifying item names with spaces in them. For example, @item
  2409. "poring card" 1 will work now. Note that only the commands that work on ONE
  2410. item have been updated, those that do an item list need to be updated as
  2411. well. [Skotlex]
  2412. * Updated the old vs6 files to latest, thanks to k3dt for contributing them
  2413. * Reorganized the vs6 project files (update will follow)
  2414. * Fixed an accidental change in r9758 (edit&continue) [ultramage]
  2415. * Added support for mob skill target 'randomtarget', when specified, it
  2416. will pick a random enemy from within the skill's cast range. [Skotlex]
  2417. * Added string function strnlen [ultramage]
  2418. - This thing is useful for removing potential out-of-bounds crashes.
  2419. Had to #ifdef it because some systems implement it, some don't provide
  2420. the header, and some don't have it at all. Adjust/improve as neccessary.
  2421. * Corrected homunculus's aspd being halved after using some aspd adjusting
  2422. skill.
  2423. * Removed the log info message 'created homunc...', and the 'loaded homunc'
  2424. message will only show if the save_log is enabled.
  2425. * When when a party-member levels up, the level change is sent to the
  2426. char-server to update the even-share range values.
  2427. * When joining a gvg_dungeon, the pvp packet will be sent to signal
  2428. versus. With this gvg dungeons should be working correctly now. [Skotlex]
  2429. 2007/01/31
  2430. * Changes in the VS8 project files: [FlavioJS]
  2431. - synchronized the settings between the projects
  2432. - joined all .h and .cpp files and grouped them based on the src subfolder
  2433. - added Debug/Release build targets that build txt/sql only
  2434. - other minor changes
  2435. * Removed graph, httpd and webserver
  2436. * Wiped out the old night code (use svn if you want it) [ultramage]
  2437. 2007/01/30
  2438. * 'Long Range Attacked' mob skill conditions will no longer trigger on
  2439. magic attacks.
  2440. * Corrected char deletion not working (column is called homun_id, not
  2441. hom_id...)
  2442. * Collapsed config settings produce_item_name_input,
  2443. produce_potion_name_input, making_arrow_name_input, holywater_name_input,
  2444. cdp_name_input into a single config produce_item_name_input which uses
  2445. bitmasks to determine what it affects.
  2446. * Updated arrow_decrement to have 3 possible values: Disabled, Enabled, and
  2447. Enabled + Autoguess (gives arrow consumption as appropiate to
  2448. plagiarized/acquired skills).
  2449. 2007/01/29
  2450. * Corrected the homunculus deletion functions so that the homunculus is
  2451. deleted together with the character.
  2452. * Added npc_check_areanpc so that Wand of Hermod will correctly check for
  2453. nearby warps.
  2454. * Emergency avoid now stacks with other speed boost statuses
  2455. * Item skills and skills that bring up a menu now are cleared on death.
  2456. [Skotlex]
  2457. * Added a nasty hack to prevent multilanguage clients from breaking guild notices
  2458. 2007/01/27
  2459. * Made @reloadscript wipe ALL previous mobs that the script engine spawned
  2460. - this way it is manageable via global vars; the other way doesn't allow that
  2461. * Some misc cleanups (typos, formatting, forgotten changelog entry etc)
  2462. * Reformatted and translated atcommand.c
  2463. - in the process improved @marry, allowing spaces after the first comma
  2464. * Simple cleanup
  2465. - removed atcommands @w, @server_date/time, @red, @happyhappyjoyjoy, @shuffle
  2466. - synced gm level of @jailfor, @charjailtime, @npcmove, @chardropall,
  2467. @charstoreall, @send, @mute, @changelook, @exp and @nuke
  2468. - added conf entries for @whozeny, @kamic, @tonpc, @petid, @identify, @adopt,
  2469. @trade, @changelook, @send
  2470. - reorganized the atcommand_athena.conf file a bit
  2471. * Corrected indentation of the atcommand table (editor compatibility)
  2472. * BEGIN atcommand cleanup process
  2473. (according to http://www.eathena.ws/board/index.php?showtopic=111996)
  2474. * Fixed a C language restriction preventing compilation [ultramage]
  2475. 2007/01/26
  2476. * Removed all those useless read-from-GRF features noone would ever use,
  2477. also removed cutincard script command as a consequence [DracoRPG]
  2478. - this is only the beginning of full grfio disparition from map-server
  2479. * Now assassins can equip arrows, and status arrows trigger on any ranged
  2480. physical attack: mimics Grimtooth + status arrow "Aegis bug" [DracoRPG]
  2481. * Added some random Storage Password packets thingies [DracoRPG]
  2482. * Kaite and Assumptio no longer stack. One will remove the other in the
  2483. same way Assumptio and Kyrie do.
  2484. * Made homunculus renaming go through the char-server so it can be
  2485. validated against the allowed characters setting.
  2486. * Added battle config hom_rename so you can enable renaming multiple times
  2487. your homunc.
  2488. * Fixed the normalizing function not sending first classes back to novice
  2489. if they do not have basic skill maxed.
  2490. * Added a wrapper to delete_timer so it prints out from where the
  2491. invocation was done.
  2492. * Fixed Splash attacks consuming 2 ammo on each attack. [Skotlex]
  2493. * Added some more freedom for the txt log paths since 32 wasn't enough
  2494. * Removed log_uptime that was accidentally introduced in r1208 [ultramage]
  2495. 2007/01/24
  2496. * Cleaned up some more the Joint Beat implementation, so the status don't
  2497. take effect until the attack connects. [Skotlex]
  2498. 2007/01/23
  2499. * Fixed int/dex foods using an incorrect icon for their status [ultramage]
  2500. * Changed the night status from 149 to 160, which seems to work so much
  2501. better, and also enabled simplifying the night code.
  2502. * A skill's walk delay will also delay your can-attack time when the skill
  2503. connects, since this is the behaviour of Sonic Blows as described by
  2504. Tharis.
  2505. * Added view_data support to mercenary.*, so that the Homunculus entries
  2506. are no longer required on the mob_db.
  2507. * Added the status icon to NPC_CHANGEUNDEAD and the Flee/Hit foods.
  2508. * Corrected the check that lets you walk when vending/chatting/etc.
  2509. 2007/01/22
  2510. * Reverted the battle_calc_return_damage code as the previous one was
  2511. correct, ninja self-targetted skills CAN be reflected. [Skotlex]
  2512. 2007/01/21
  2513. * Fixed while statements not "reserving" the curly before parsing the test
  2514. expression. [FlavioJS]
  2515. 2007/01/20
  2516. * Fixed some joker's code trying to dereference a null pointer
  2517. * Fixed the server not reacting properly to atcommands/charcommands when using
  2518. langtype 10/11 (the |XY codepage indicator wasn't being trimmed) [ultramage]
  2519. * Updated @homshuffle so that the skill tree and current skill points are
  2520. not messed up.
  2521. 2007/01/19
  2522. * Fixed the label dup code, it now works correctly with const.txt switch
  2523. labels.
  2524. * Reverted the dup-label check code since it has a bug that needs to be
  2525. fixed first (it fails to recognize const.txt values) [Skotlex]
  2526. * Fixed a client crash during SQL char selection if you for some reason had
  2527. more than 9 characters in your account (thanks to Daegaladh) [ultramage]
  2528. - note that the TXT version already guards against this since long ago
  2529. * Merged Rayce's cleanups of the script engine that account for duplicate
  2530. labels, non-numeric labels and makes the engine case-insensitive towards
  2531. keywords like if/case/switch/etc/
  2532. * Added the icons for the Food boosts (need packet version 8 to get them,
  2533. as these icons will just display Gloria, or crash you, when used on older
  2534. clients).
  2535. 2007/01/18
  2536. * Modified the Storm Gust freeze counter code. It now takes into
  2537. consideration the ID of the skill before increasing the counter, which
  2538. should effectively yield the closest aproximation to official (even though
  2539. the counter will reset if you step out of a SG and into another one, we do
  2540. not know yet what should happen in such a case).
  2541. * Added @homshuffle. It recalculates the homunculus stats, as if the homunc
  2542. was sent back to level 1, and then releveled. This command is mean to help
  2543. fix those previously created Homunculus that are much stronger than they
  2544. should be.
  2545. * Fixed overflow on the mob delay adjustment setting.
  2546. * Fixed characters being unable to trade again if you attempt a trade on
  2547. someone who is on storage/npc when you accept the trade. [Skotlex]
  2548. * Fixed a crash when a castle from [0..MAX-1] wasn't in the db [ultramage]
  2549. 2007/01/17
  2550. * Corrected atcommand @homstats so it shows the correct minimum/maximum
  2551. possible values.
  2552. * Simplified the hom level up function, now decimal stats are no longer
  2553. stored. This should correct eA's homunculus on average being much stronger
  2554. than Aegis's.
  2555. * Cleaned up pc_allskillup, @allskills should work correctly now.
  2556. 2007/01/16
  2557. * Added atcommand @homstats so you can check your homunculus stats and
  2558. compare them to the minimum/maximum values that you could have at your
  2559. current level. This command is meant to help figure out if homuncs are
  2560. indeed getting a faster stat growth than they should have.
  2561. * Fixed the next invoked skill after AbraCadabra not having requirements
  2562. even when it is a different skill than the one chosen by AbraCadabra.
  2563. * Implemented Intravision as it should be. Thanks to HelloKitty2 for the
  2564. captured packets.
  2565. * Some cleaning on the mob_ai to enable mobs to run away from their current
  2566. target when they are rude-attacked by them.
  2567. 2007/01/15
  2568. * The NPC elemental attacks will display a skill animation again.
  2569. * Mob instant cast skills will use their adelay now.
  2570. * Spirit of Wizard won't work on Ganbantein
  2571. * The pc normalize job function will consider you as novice if you don't
  2572. have maxed out basic skill.
  2573. * Cleaned up pc_calc_skilltree and related functions so that the id is left
  2574. as 0 when you can't raise the skill even if you meet the prerequisites.
  2575. This is to prevent raising quest/soul/marriage skills through packets.
  2576. * Slaves should lock unto their master's target even if they are not
  2577. attacking yet (eg: in chase mode)
  2578. * Updated the Summon Slave skill to use the slave distance define as valid
  2579. distance to spawn from master.
  2580. * Fixed Joint Beat's speed penalty.
  2581. * Added a pc_authok check to prevent the case in which somehow another
  2582. character of the same account manages to log in as well.
  2583. * The pc normalize job function will now recognize you as a novice if you
  2584. don't have NV_BASIC maxed.
  2585. * Accessories will now by default go into the rigth-side rather than the
  2586. left-side of the equip window.
  2587. * Added a check in the mob_ai_subhard function to make mobs unlock targets
  2588. which have their invincible timer set.
  2589. * Probably fixed the registration flood protection code being broken.
  2590. * Joint Break should only re-start the bleeding timer when it currently IS
  2591. the one that causes bleeding. [Skotlex]
  2592. 2007/01/12
  2593. * Cleaned up the ip rules/DDoS section of the code. (the allow,deny and
  2594. deny,allow cases were switched)
  2595. * Fixed autotrading characters not being able to reconnect. Seams like I
  2596. misunderstood how id_db and pc_db are used. [FlavioJS]
  2597. 2007/01/11
  2598. * Fixed the script engine not parsing strings in multibyte charsets
  2599. correctly (should have been done in r9532).
  2600. * Console plugin working when built as Windows native. [FlavioJS]
  2601. 2007/01/10
  2602. * Combined most of the txt/sql mobdb reading code [ultramage]
  2603. - mob.c is now some 10kB less redundant (now using a common function)
  2604. - automatically filled in some missing parts of the txt part
  2605. (view_range_rate, chase_range_rate, line counting, etc)
  2606. - also cleaned it up significantly
  2607. 2007/01/09
  2608. * Changes to script buildin functions: [FlavioJS]
  2609. - functions checking if a player is attached as soon as possible.
  2610. - functions that required a player attached and would crash if none was
  2611. there terminate the script now. (others keep the current behaviour to
  2612. maintain full backward compatibility)
  2613. - removed the unused flag argument in guildskill.
  2614. - bonus,bonus2,bonus3,bonus4 use the same function now (remains the same
  2615. script-wise)
  2616. - added an optional parameter to setcart,setfalcon,setriding so it's
  2617. possible to remove the cart/falcon/mount or select a specific cart
  2618. - other cleanups
  2619. 2007/01/08
  2620. * Hotfix: Freeing of freed pointer when replacing script functions. [Lance]
  2621. * Unimportant cleanups
  2622. * Moved the plugin.def file to the plugins dir and added console.def
  2623. * Found the reason why the console didn't want to run on windows
  2624. (Microsoft uses !0 and unix uses 0 in pipe_create)
  2625. * Commented out a login_log call (sql doesn't implement that function!)
  2626. * Fixed an old debug message displaying %d instead of a number
  2627. * Silenced the plugin export messages during startup [ultramage]
  2628. * Added a precompiler error when the shutdown defines are not found.
  2629. * Added parse_console to the plugin API.
  2630. * Added plugin for parsing the console. (working with cygwin)
  2631. * Copied the parse_console code form login txt to login sql and char.
  2632. * Added propper plugin version compatibility tests.
  2633. * Better output when a plugin fails to load. [FlavioJS]
  2634. 2007/01/07
  2635. * Fixed the sleep timers not being removed when the an npc was being
  2636. unloaded and when reloading scripts. [FlavioJS]
  2637. * Updated the documentation to match the agitcheck() behavior
  2638. * Undid the memset->malloc_set replacement
  2639. (let's be compatible and leave such optimizations to system devs, ok?)
  2640. * Small reformatting of conf-tmpl
  2641. * Renamed atcommand_sub to is_atcommand_sub (charcommand too)
  2642. * Re-added the duplicit nj/gs name messages in msg_athena [ultramage]
  2643. (the code was using those and they look better in that position)
  2644. 2007/01/06
  2645. * Now winsock 2 is required.
  2646. * Cleaned up do_close and socket_init a bit.
  2647. * Fixed the weight icon dissapearing and reappearing when attacking.
  2648. (introduced by me at r9600, fix based on ultramage's code) [FlavioJS]
  2649. 2007/01/05
  2650. * Also discarded some veeery old utils code that has got equivalents
  2651. in the std libs (and therefore is silently causing a nasty collision).
  2652. * Major reconfiguration of the VS8 project files. [ultramage]
  2653. - Removed the migration binding to a VS71 template.
  2654. - Disabled the setting that defines char -> unsigned char (non-conformant).
  2655. - Switched all projects to use the common C runtime library DLL
  2656. instead of linking the static version to each exe.
  2657. - Enabled edit&continue on the TXT version (SQL already had it).
  2658. - Reconfigured the linker to use only the really required dependencies.
  2659. - Enabled full optimization and whole program optimization,
  2660. with additional speed-improving settings for the release build.
  2661. - Set the compiler/linker to produce detailed debug information even for release builds
  2662. (no performance penalty because the debug info is stored in a separate .pdb file!).
  2663. - I tested all 4 build combinations and it works for me, and it should work for you.
  2664. - There is still one very useful thing missing - setting the working dir to '..'.
  2665. I don't know how to do that, tho' since VS stores it in a separate user file.
  2666. 2007/01/04
  2667. * Fixed old @go bug (it ignored einbech) [Lupus]
  2668. * Added Au{R}oN's updated version of the effect list.
  2669. * Completed adding of the new cities to @go.
  2670. > that function is ugly and needs a complete rewrite, asap.
  2671. * Updated thor volcano warps.
  2672. * Updated /doc from jAthena. [ultramage]
  2673. 2007/01/03
  2674. * Added Rachel and Veins to the list of @go destinations.
  2675. * Added a first approximation of warps for the new maps (by $ephiroth).
  2676. * Now the server will by default perform symmetric adding of friends. [ultramage]
  2677. > TODO - symmetric deletion (http://www.eathena.ws/board/index.php?showtopic=130749)
  2678. * Fixed TURBO FIFO defines.
  2679. * Moved refusal of a known packet versions to clif_parse_WantToConnection
  2680. and made it check for non-player object with that id.
  2681. * JK_JOINTBEAT as described in:
  2682. http://www.ragnainfo.net/wiki/index.php/Vital_Strike
  2683. Although not clear, it's being assumed that the 2x damage is only for the
  2684. break neck ailment. [FlavioJS]
  2685. * Modified the useless error message in atcommand_effect.
  2686. * Silenced the debug message in socket.c that's been freaking people out.
  2687. * Added support for text/comments at the end of monster spawn lines (<tab> required)
  2688. * Added the official behavior of monsters regaining full hp when they morph.
  2689. > info at http://www.eathena.ws/board/index.php?showtopic=130103
  2690. * Fixed pc_calc_skilltree ignoring prerequisites / joblvl requirements for soullinked skills.
  2691. > TODOs at http://www.eathena.ws/board/index.php?showtopic=130788
  2692. * Re-applied change r9593 that got accidentally reverted by r9595. [ultramage]
  2693. 2007/01/02
  2694. * Fixed SC_JOINTBEAT not doing crit damage for the Neck Break ailment.
  2695. * Gospel sends the buff message to the affected player. [FlavioJS]
  2696. 2006/12/31
  2697. * Made HSCR bypass both Guard and Shield Reflect using the dirty way [DracoRPG]
  2698. > cleaner way would need to rethink the whole skill's implementation
  2699. * Added more info when npc_scriptcont tries to continue a different script.
  2700. * Refer to http://www.eathena.ws/board/index.php?showtopic=130285
  2701. - Renamed pc_checkweighticon to pc_updateweightstatus and cleaned it.
  2702. - Updated pc_is50overweight to use battle_config.natural_heal_weight_rate.
  2703. - Added 90% weight check when attacking.
  2704. * Updated getitem and guardian entries in script_commands.txt.
  2705. * Fixed getitem trying to get <character ID> from the wrong argument.
  2706. * Now getitem can be run on scripts without a player attached if
  2707. <character ID> is specified.
  2708. * Now the two last arguments of guardian are optional and independant of
  2709. each other ("<event label>" and <guardian index>). This way the previous
  2710. implementation and script_commands definition are still valid code.
  2711. * Now buildin function names and argument definitions are checked for
  2712. validity before adding the function to the script engine.
  2713. Argument definitions follow the pattern: (v|s|i|l)*\?*\*? [FlavioJS]
  2714. 2006/12/30
  2715. * Reverted the packet structure changes to mmo_char_send006b in r9588 (was
  2716. using the wrong exe for the final tests) except for the bug that I was
  2717. originally fixing. [FlavioJS]
  2718. 2006/12/29
  2719. * Skill use is now cancelled when you use it while cloaking, and the
  2720. uncloaking process warps you. [Skotlex]
  2721. 2006/12/28
  2722. * Reapplied Skotlex's socket.c changes from r9587 and r9582. :S
  2723. * Part 3 of TheUltraMage's socket cleanup.
  2724. * Fixed the packet structure in mmo_char_send006b for PACKETVER 8.
  2725. * Removed search_str from add_str (add_str already searches for the
  2726. string).
  2727. * Native script words like do,while,for,... are case insensitive now.
  2728. * Changed SCRIPT_HASH_SIZE to 1021 (prime hash sizes give better
  2729. distributions).
  2730. * Added alternative hash implementations to the script engine (to try out
  2731. later). [FlavioJS]
  2732. * Added a func_parse invocation when an invalid socket is found, so that
  2733. the underlying code (char/map/login) can handle it and free any related
  2734. resources.
  2735. * Added some skill effect packets so it displays a generic effect for
  2736. unknown targetted skills.
  2737. * Some cleaning in do_sendrecv, added error messages when handling an
  2738. incorrect socket. [Skotlex]
  2739. 2006/12/27
  2740. * Fixed Super Novice 99%+ invincibility triggering when
  2741. the character dies in a GvG area. [blackhole89]
  2742. * Updated SQL Files [Toms]
  2743. * Fixed a bug which makes the group heal bonus be applied as many times as
  2744. the item is in that group.
  2745. * Applied Rayce's suggestion to improve the script hash size usage. eA now
  2746. uses a hash of 1024.
  2747. * Full Buster's auto-blind chance is now reducable by stats/items.
  2748. 2006/12/26
  2749. * Updated Charge Attack's damage equation as per the only source I've seen
  2750. of it so far.
  2751. * Now Guardians/Emperium can't hit /be hit if their current map isn't a
  2752. gvg_castle or woe is off. This enables "localized" WoE by removing/setting
  2753. the mapflag gvg_castle on the castles where you want WoE to take effect
  2754. (note that even though normal players can't be hit on non gvg_castle maps,
  2755. normal mobs can still be killed in such maps, you'd still need to modify
  2756. the WoE scripts to use this kind of feature)
  2757. * TK_MISSION will now pick any mob from the DB as long as it is not a boss
  2758. type and it gives base exp.
  2759. * Fixed the double-stone issue when hitting a petrified character.
  2760. [Skotlex]
  2761. 2006/12/25
  2762. * Fixed buildin_getscrate, thanks Trancid.
  2763. * Applied part 1 of TheUltraMage's socket cleanup.
  2764. "Basically what I did was perform simple one-liner substitutions for
  2765. ugly repetitive blocks of code. The most apparent are the send/recv
  2766. code and the other basic socket calls."
  2767. * flush_fifo is non-blocking now. I guess best effort is good enough...
  2768. * Copied header files from vcproj-7.1 files to vcproj-8 files.
  2769. * Applied the rest of Rayce's suggestions and fixes
  2770. (http://www.eathena.ws/board/index.php?showtopic=129185)
  2771. * warn_cmd_no_comma, warn_func_no_comma, warn_cmd_mismatch_paramnum are
  2772. now warn_func_mismatch_paramnum and it only prevents showing the error,
  2773. as it was probably intended in the first place. (correct me if i'm wrong)
  2774. * Merged the parsing of function calls in the script engine, removing the
  2775. parse_cmd hackery, and made "heal (.@val+rand(0xff))&0xff,0;" valid
  2776. again. [FlavioJS]
  2777. 2006/12/24
  2778. * Small fix for changeset 9539 (support for PACKETVER above 7) [KarLaeda]
  2779. 2006/12/23
  2780. * Fallback for parenthesis argument lists in the script engine.
  2781. "func (exp) , ..." is valid again.
  2782. * Moved "#include <limits.h>" to cbasetypes.h to ensure it's included
  2783. before checking if UINT_MAX has been defined.
  2784. * Minor changes in pc_readdb related to max_level being unsigned.
  2785. [FlavioJS]
  2786. 2006/12/22
  2787. * Simplified function agitcheck so it isn't crash prone. Now it takes no
  2788. arguments, and will return whether WoE is on or not.
  2789. * Now when you specify a max level beyond what the exp table has, the last
  2790. entry of the exp table will be duplicated to fill in the remaining levels.
  2791. [Skotlex]
  2792. * Change strncpy to memcpy when parsing switches in the script engine
  2793. since it's guaranteed to be a word of that size (skip_word).
  2794. * Made scriptlabel_db duplicate the key. When str_buf is reallocated, the
  2795. keys in scriptlabel_db could become invalid, causing a crash in
  2796. npc_convertlabel_db.
  2797. * Now npc_convertlabel_db clears scriptlabel_db after using it.
  2798. * parse_script has an extra parameter options. At the moment it only
  2799. indicates if scriptlabel_db should be used or not.
  2800. * Fixed "UINT_MAX undeclared" on systems that don't declare it in limits.h
  2801. [FlavioJS]
  2802. 2006/12/21
  2803. * Applied Rayce's suggestions and fixes to the script engine
  2804. (http://www.eathena.ws/board/index.php?showtopic=129185)
  2805. * Some cleaning to the character deletion code.
  2806. * Changed a certain snprintf to strncpy, which should fix the problems with
  2807. parsing switches in the script engine.
  2808. * Added back cropping the attack delay to attack motion for those weird mobs
  2809. that have a aDelay less than their aMotion time. [Skotlex]
  2810. * Added a 1-node cache to db. Removed party_cache and guild_cache since
  2811. now the database has a cache.
  2812. * Fixed "warning: comparison is always false due to limited range of data type"
  2813. by restricting script words to ASCII characters only.
  2814. * Moved md5calc to common. [FlavioJS]
  2815. 2006/12/20
  2816. * Fixed ISSPACE and ISALPHA casting their returned value to a char, which
  2817. can really mess up the scripting engine when the returned value is true,
  2818. yet casted to false.
  2819. * Moved the strip unequip code to before deleting the timer, this fixes
  2820. trying to "re-strip" someone causing the skill to fail and on top of that
  2821. terminate their current strip effect.
  2822. * Reading of TK Mission variables will now happen if you are a TK-class
  2823. character regardless of whether you know TK_MISSION or not. Should fix
  2824. being able to reset skills to reset your Mission data.
  2825. * Added an ugly work around to the issue of skills with additional effect
  2826. causing opt1 status when they have just terminated them (in short, you
  2827. shouldn't be able to hit someone with, say, sleep, and then have the same
  2828. skill cause them stun, since both are opt1 values). [Skotlex]
  2829. * Now root script functions calls can have parenthesis (will take any
  2830. parenthesis after the function as the start of the argument list).
  2831. - This means "func (exp),exp;" isn't valid anymore.
  2832. * Replaced our fix for "mes ();" crashing by jA's version.
  2833. * Merged the fix for & having the same precedence as << and >> from jA.
  2834. * Merged the C_OP3 operator from jA: test ? if_true : if_false
  2835. * Changed the script source from unsigned char* to const char*.
  2836. * Updated plugins Makefile. [FlavioJS]
  2837. 2006/12/19
  2838. * Reverted the mob ThinkTime update, that field is again aDelay as it
  2839. apparently should be. [Skotlex]
  2840. * Cleanups or minor changes.
  2841. * Now addtick_timer invokes settick_timer, so keep an eye for whatever
  2842. timer issues it's supposed to have.
  2843. * Removed the flush_fifo from clif_parse_TickSend until the socket
  2844. problems are fixed. [FlavioJS]
  2845. 2006/12/18
  2846. * Updated POS2 macros. The 6th byte is subx0 and suby0. [FlavioJS]
  2847. * Added hom_setting to specify which homunculus 'quirks' are in effect. The
  2848. default activates all of them, if you set them to 0 then homuncs will not
  2849. be treated in any special matter, pretty much like standard mobs. if I
  2850. missed any 'quirky' homunc behaviour from it, report it so it can be added
  2851. to the list.
  2852. * Made flooritem_lifetime a int so you can specify much longer life times
  2853. (the default of 60k was already very close to the max of 65k)
  2854. * Removed monster_ai 0x80 since it's now handled by hom_setting.
  2855. * When walking into a Guild Dungeon your pvp_points will be set to 5 so you
  2856. have to die twice before being warped out.
  2857. * If jobchanging while disguised, the disguise will be removed, since it
  2858. can't be kept and still calculate correctly the new job class to use.
  2859. * Fuuma shurikens are now unbreakable code-wise (like all maces, books,
  2860. etc)
  2861. * Applied Meruru's patch to increase speed of easy path seeks. [Skotlex]
  2862. * Cosmetic changes to db.
  2863. * Fixed the unused MAPINDEX_AUTOADD section in mapindex.c (mapindex.h
  2864. wasn't being included) [FlavioJS]
  2865. 2006/12/16
  2866. * Moved packet_len_table values to packet_db[SERVER].
  2867. * When an invalid packet_ver is found, all it's entries are discarted
  2868. intead of just stopping the parsing.
  2869. * Increased MAX_PACKET_DB to 0x300 and added a warning for when packet ids
  2870. greater than MAX_PACKET_DB are found. [FlavioJS]
  2871. 2006/12/15
  2872. * There will be now warnings printed when a shop sells an item which's buy
  2873. price is 20z, since those usually are "rare" items with no buyying price
  2874. set. Note that this reports one fake, and that is the selling of a certain
  2875. shuriken that indeed costs 20z.
  2876. * Most likely fixed client crash when xmas/wedding status runs out.
  2877. 2006/12/14
  2878. * Removed "mobs being enemies of each other all the time" because, even
  2879. though mobs can hit each other as they should, they will refuse to use
  2880. support skills on enemies, which breaks several of their skills. Mobs can't
  2881. both help and attack someone tagged as enemy!
  2882. (I guess eA is just too smart to emulate Aegis's sloppy coding)
  2883. * Cleaned up the strip code (GS_DISARM, rogue skills).
  2884. * Cleaned some the MD_DETECTOR code.
  2885. 2006/12/13
  2886. * Additional damage bonuses (True Sight, EDP, Assassin Link, Crusader Link,
  2887. Card skill damage bonuses) are now applied independently of each other,
  2888. which lets them stack. [Skotlex]
  2889. * Modified flush_fifo so the code do what is written in the comment [Toms]
  2890. * Modified flush_fifo so you can decide whether to block the current thread
  2891. or not until the data is sent. The server-tick reply no longer blocks the
  2892. current thread.
  2893. * Fixed mobs being unable to attack anything...
  2894. 2006/12/12
  2895. * Reverted the knockback update since it isn't working right with all
  2896. skills.
  2897. * Mobs now by default are "everyone's" enemy, so mobs are able to hit each another.
  2898. * Moved "unsetting" the angry mode from the mob_ai to the mob_damage
  2899. function, where it'll work regardless of who hits the mob.
  2900. * Modifed a bit the clif_change_look function, it should fix crashes with
  2901. the Xmas sprite when changing maps.
  2902. * Fixed skills displaying a 32k damage when used while disguised. [Skotlex]
  2903. * Minor changes to ers.
  2904. * Removed unused/hardly used cbasetypes typedefs.
  2905. * Updated txt-converter's makefile to include utils.o [FlavioJS]
  2906. * Updated npc_event_dequeue to free up your current npc information, and
  2907. not just the npc_id.
  2908. * Modified the skill damage packet and the knockback packets to mimic aegis
  2909. sent packets for such skills.
  2910. * Removed CART_MASK as OPTION_CART can take care of that.
  2911. * Moved the OPTION_MASK define to status.h
  2912. * Reverted the knockback implementation to use clif_slide instead of
  2913. clif_fixpos [Skotlex]
  2914. 2006/12/11
  2915. * Added various missing checks when parsing several guild actions.
  2916. * made @hominfo display the six basic stats.
  2917. * Simplified the MD_DETECTOR checks, since now all insects/demons have it
  2918. set, and it's no longer needed to check for the race. [Skotlex]
  2919. * Updated sql files [Playtester]
  2920. * Spirit of Sin and Enchant Deadly Poison now stack.
  2921. * Fixed skill damage card bonuses not working on magic skills.
  2922. * Moved the setting of sd->npc_id = 0 in npc_dequeue to the beginning,
  2923. since this function is called when a script is cancelled
  2924. * Made homunc's speed be recalculated when you respawn it from rest state.
  2925. [Skotlex]
  2926. * Fixed @revive not reviving the good char [Toms]
  2927. 2006/12/10
  2928. * Added more helpful messages when packet_ver=-1.
  2929. * Joined normal and MINICORE's main function.
  2930. * Put malloc_init() first and malloc_final() last as it's needed for Show*
  2931. in display_title(). [FlavioJS]
  2932. 2006/12/09
  2933. * Reversed revision #9415 (messages with server_tick field being sent as
  2934. soon as possible) since it didn't fix the client synchronization issue.
  2935. * clif_parse_TickSend is sent immediately so the client gets accurate
  2936. "pings". [FlavioJS]
  2937. 2006/12/08
  2938. * Now you can request a trade regardless of the state of the target trader.
  2939. [Skotlex]
  2940. * The trade will now fail when you accept it and either character is
  2941. speaking with an npc, vending or has the storage open. [Skotlex]
  2942. * Fixed crash when looters became full. [Skotlex]
  2943. * Autospell delay time is now the skill's full delay. [Skotlex]
  2944. 2006/12/07
  2945. * Fixed ladmin's linux compilation and moved some platform specific
  2946. defines to cbasetypes.h [FlavioJS]
  2947. * Cleaned up implementation of NPC_EMOTION/NPC_EMOTION_ON. Now val0 is the
  2948. emotion, val1 sets the mode, val2 adds to the mode, val3 removes from the
  2949. mode. val4 asks to remove the previous mode change, otherwise it will stack
  2950. with the changes from the previous skill call. [Skotlex]
  2951. * Updated the mob skill reading code so it accepts hexadecimals in the
  2952. 'val' fields. Also, it will optimize the NPC values so that when you set a
  2953. mob's mode to their db mode, it will just remove the previous mode.
  2954. [Skotlex]
  2955. * NPC_EMOTION_ON will now automatically move it's new mode to val2 since it
  2956. should add a mode, and if this mode doesn't has the aggressive bit, it will
  2957. remove it. See this "ancient" hypothesis on how NPC_EMOTION_ON should work
  2958. for the details: [Skotlex]
  2959. http://www.eathena.ws/board/index.php?showtopic=63606
  2960. * Fixed npc commands atcommand & charcommand not working with a custom
  2961. command_symbol [Toms]
  2962. 2006/12/06
  2963. * Changed the order of view-change packets for SC xmas/wedding, should fix
  2964. crashing if you change into xmas suit while in fighting stance. [Skotlex]
  2965. * Renamed the mob mode Cast-Sensor Melee to Cast-Sensor idle since these
  2966. mobs really should only be cast-sensing when they are not after another
  2967. target. [Skotlex]
  2968. * Added a Aegis Mob Type -> eA Mode table conversion to the mob modes doc.
  2969. [Skotlex]
  2970. * Updated sql-files [Playtester]
  2971. * Gave a minimum think time to the dummy mob and to clones. [Skotlex]
  2972. * Moved setting a mob's chase/attack states from the mob_ai to unit_attack
  2973. and unit_walktobl for better state-handling precision. [Skotlex]
  2974. * Cleaned the change-target/cast-sensor code to account for the new mob
  2975. modes. [Skotlex]
  2976. * Updated the doc explaining mob modes. [Skotlex]
  2977. * When GM skill unconditional is set, the arrow state of the skill will be
  2978. calculated, this fixes all skills getting stuck on arrow-type after you
  2979. attack normally. [Skotlex]
  2980. * Alchemist famous potions get their 50% bonus on top of the natural
  2981. bonuses as a 1.5x type of bonus. In other words, now alchemist potions
  2982. will really heal 50% more than when you use the non-famous potion
  2983. version.
  2984. [Skotlex]
  2985. * Messages with server_tick field are sent as soon as possible now.
  2986. This might fix client synchronization issues.
  2987. * Added StringBuf_Vprintf to utils.c and changed the showmsg.c buffer.
  2988. Now it uses a static buffer and a StringBuf when needed (a debug message
  2989. indicating the static buffer needs to be increased is shown). [FlavioJS]
  2990. 2006/12/05
  2991. * The can log value now is "reset" when you die allowing you to
  2992. respawn/quit instantly after death. [Skotlex]
  2993. * Fixed sc data load failing when using charsave_method: 1 [Skotlex]
  2994. * Fixed the interserver link reserve size being 8 times instead of 1/8th
  2995. the default size. Changed it to be 1/4th as well. [Skotlex]
  2996. * Found the position of emblem_id in packet 1b6.
  2997. * Moved START_ACCOUNT_NUM and END_ACCOUNT_NUM from login.h to mmo.h and
  2998. changed clif_guess_PacketVer to use that.
  2999. * Made the script engine big-endian compatible.
  3000. * Commented out the remnants of ladmin packet parsing in map-server.
  3001. * Added a warning when a player has an invalid packet version (shouldn't
  3002. happen). [FlavioJS]
  3003. 2006/12/04
  3004. * Fixed HVAN_INSTRUCT int bonuses. [Skotlex]
  3005. * Renamed mob_db's "adelay" column to ThinkTime and made the mob.c code use
  3006. it instead of MIN_MOBTHINKTIME. The adelay of mobs will also be equal to
  3007. their thinktime unless their thinktime is less than their attack motion.
  3008. [Skotlex]
  3009. * Added a static +100 Hp to ninjas and gunslingers since it's required for
  3010. the best approximated hp growth algorythm. [Skotlex]
  3011. * Knockback will again use the fixpos packet instead of the slide packet
  3012. (slide was introduced with high jump) since Aegis captures say that packet
  3013. is still used for knockbacks. [Skotlex]
  3014. * Repairing items via scripts no longer displays "item has been repaired"
  3015. [Skotlex]
  3016. * Status Recovery again makes mobs unlock their current target. [Skotlex]
  3017. * Moved requesting party/guilds from the char-server from pc_authok to
  3018. pc_reg_received, since map_nick2sd and map_getallsd won't work until the
  3019. characters are authentified. Also removed the guild master setting from
  3020. clif_parse_LoadEndAck to pc_reg_received since guild master setting will
  3021. work there. [Skotlex]
  3022. * Fixed homun hunger timer being started on login even when hom is
  3023. vaporized/dead. [Skotlex]
  3024. * Fixed mvp exp attacker bonus applying incorrectly. [Skotlex]
  3025. * Removed duplicate msg_athena.conf entries 619 and 620 for
  3026. Ninja/Gunslinger.[Skotlex]
  3027. * Fixed the txt->sql converter not escaping character names before saving
  3028. them. [Skotlex]
  3029. * Fixed a pet's level not resetting to their db level when you enable pet
  3030. leveling and later on decide to turn it off. [Skotlex]
  3031. * Fixed restricted equipment not updating your view info after they are
  3032. unequipped. [Skotlex]
  3033. * Removed a bunch of extra text/checks when ignoring characters (/ex) when
  3034. Aegis does none of these checks. /inall now wipes your ignore list (it does
  3035. this on Aegis, too). [Skotlex]
  3036. 2006/12/03
  3037. * If somehow a player logs out and it's saved with 0 hp, on login his state
  3038. will be set to dead as well so he can respawn (otherwise that leads to a
  3039. stuck char) [Skotlex]
  3040. * Fixed even share exp flutuating as described in:
  3041. http://www.eathena.ws/board/index.php?showtopic=126139
  3042. thanks to TheUltraMague for the fix.
  3043. * Made ers double frees report as missing entries on destruction.
  3044. * Only one swap function (in cbasetypes.h) is used. [FlavioJS]
  3045. 2006/12/02
  3046. * Added buildin_checkvending and buildin_checkchatting. [Lance]
  3047. * Enabled atcommand parsing for clients with Korean langtype and version. [Lance]
  3048. * Added missing min/max definitions to cbasetypes.h, needed for the @send change.
  3049. * Replaced @send with the version I use for testing packets.
  3050. Can display the packet length. Supports dynamic packets, quoted strings
  3051. with escaped characters and fixed/variable length, and normal/hex
  3052. byte/word/long data types. The number of fields is not limited, but it
  3053. automatically stops parsing when the packet is full. [FlavioJS]
  3054. 2006/12/01
  3055. * Fixed passive mobs becoming increasingly unlikely to retaliate to attacks
  3056. after they got inflicted by a disabling status change. [Skotlex]
  3057. * Changed the "is_boss" define to check for mode MD_BOSS instead of giving
  3058. mvp exp. [Skotlex]
  3059. * Updated sql files [Playtester]
  3060. * Fixed txt-converter compilation. [Skotlex]
  3061. * STRECOVERYno longer makes a mob unlock it's target like Cure does.
  3062. [Skotlex]
  3063. * Fixed GS_GROUNDDRIFT consuming ammo when it's time expires (so it was
  3064. consuming 2 grenades instead of one). Also added a "explosion effect" when
  3065. their time runs out. [Skotlex]
  3066. * gvg_dungeon mapflag won't set pvp related mapflags anymore, pc_dead will
  3067. force pvp ranking gain/loss on gvg_dungeon maps now. [Skotlex]
  3068. * Now when coming out of hiding land-effects will trigger on the character.
  3069. [Skotlex]
  3070. * Fixed land effects not taking effect inmediately on map-load when the
  3071. invincible timer is disabled. [Skotlex]
  3072. 2006/11/29
  3073. * Probably fixed the Segmentation Faults we've been having.
  3074. Description: A player quits and it's session is freed and set to NULL,
  3075. but the char server already sent a packet with player information
  3076. (registers, storage, ...). If a message is sent in consequence of
  3077. updating that info, a segmentation fault happens because
  3078. session[sd->fd] is already NULL.
  3079. Fix: make shure the session of the target player is valid before
  3080. processing the rest of the char server's message.
  3081. * Some minor cleanups. [FlavioJS]
  3082. * Fixed the new npc parsing code not accounting for windows-style line
  3083. terminators, which as a side effect messed up mapflag parsing if the file
  3084. had windows-style terminators, which coincidentally was the case for the
  3085. nopvp file, which unfortunately meant that all towns became pvp! [Skotlex]
  3086. * HT_PHANTASMIC no longer knocks back even when it misses. [Skotlex]
  3087. * Earned exp by dead homuns will now be lost (same treatment as earned exp
  3088. from players that died) [Skotlex]
  3089. * Now gvg_dungeon mapflag will activate the other mapflags which are
  3090. required: pvp, pvp_nocalcrank and pvp_noparty/pvp_noguild (they are forced
  3091. to off if gvg_dungeon is on and viceversa) [Skotlex]
  3092. * Cleaned the pvp ranking code so that it takes effect even if
  3093. pvp_nocalcrank is active WHEN the map is a gvg_dungeon one. [Skotlex]
  3094. * Now homuncs and their masters are the only ones who can use support
  3095. skills on them. [Skotlex]
  3096. * Some cleaning on the homunc speed calculating code, so that it correctly
  3097. uses the default walk speed if the player has no speed yet. [Skotlex]
  3098. 2006/11/28
  3099. * Fixed a typo which made the wedding_ignore_palette setting not work when
  3100. you log on with them equipped [Skotlex]
  3101. * Applied The Ultra Mage's patch to use strict npc header formatting
  3102. parsing. Updated the relevant stock scripts/mapflags that didn't conform to
  3103. the standard. [Skotlex]
  3104. * Moved the blocking of casting supportive skills on homunculus from
  3105. battle_check_target to status_check_skilluse as bct is not invoked unless
  3106. the skill is offensive (or party/guild only) [Skotlex]
  3107. * Cleaned up status_calc_bl_sub_hom, fixed recasting dex/str/vit/int
  3108. bonuses skills making their atk/def/mdef stack with itself over and over.
  3109. [Skotlex]
  3110. * Updated sql files [Playtester]
  3111. * Changing setting the Guild Master from pc_authok to clif_parse_LoadEndAck
  3112. so that it will not fail to set the gmaster flag when the first person of a
  3113. guild to log on is the guild master. [Skotlex]
  3114. * Modified the way Storm Gust freeze's counter works. Now it checks for the
  3115. caster of the Storm Gust, if it's the same as the previous hit, the counter
  3116. is increased, otherwise, the ID is updated and the counter is changed to 1.
  3117. [Skotlex]
  3118. * Fixed always receiving at least 1 bexp/jexp even when the mob gives no
  3119. exp at all. [Skotlex]
  3120. * Changed write to send as suggested by TheUltraMage in:
  3121. http://www.eathena.ws/board/index.php?showtopic=105417
  3122. Hopefully that will take care of the SIGPIPE problem in Debian and cygwin.
  3123. * Server name in core.c skipping '\\' characters.
  3124. * Memory allocation functions using file,line,func from the invoking functions.
  3125. * Other minor malloc changes. [FlavioJS]
  3126. 2006/11/27
  3127. * Now when a player's "attack once" request fails due to range, the client
  3128. is told to move to the target to attack it. This sort of fixes the problem
  3129. of the client SPAMMING the server with attack requests from afar without
  3130. even approaching the icewall. [Skotlex]
  3131. * Updated the status change field "option" to an int rather than short.
  3132. This fixes the option values for xmas/sightblaster not getting set, which
  3133. could explain why some people crash when equipping weapons while in xmas
  3134. suit. [Skotlex]
  3135. * Fixed the Homunculus hungry timer not starting on login. [Skotlex]
  3136. * Added logging for standard GM commands (/mm /b /kick etc) [KarLaeda]
  3137. * Some cleanups on the trade_additem function. When specifying a qty of 0,
  3138. an ack will be returned to the client so it doesn't gets stuck. [Skotlex]
  3139. * Update sql files [Toms]
  3140. * Corrected the skill animation for Absorb Spirits [Skotlex]
  3141. * Cleaned up a bit the implementation of how Gravity Field blocks the
  3142. caster from moving. [Skotlex]
  3143. * Mob class-changing will fail if the new class is the same as the previous
  3144. one. [Skotlex]
  3145. 2006/11/24
  3146. * Homunc's min matk is now always equal to max matk [Skotlex]
  3147. * Fixed EDP's damage being 100% more than it should (should be 4x, not 5x
  3148. on normal attacks) [Skotlex]
  3149. * Self Destruction will only hit everyone and not just enemies when used by
  3150. mobs (non marine spheres) unless the map is a versus map. [Skotlex]
  3151. * Spider Web's duration is now halved on players (before it was halved in
  3152. pvp maps only) [Skotlex]
  3153. * Likely fixed Homunculus not disappearing the second their intimacy hit 0.
  3154. [Skotlex]
  3155. * Fixed uninitialized variable fd being used in WFIFOHEAD in a few clif
  3156. functions. [Skotlex]
  3157. * Fixed the fact that the TURBO code breaks when you attempt to handle more
  3158. than one connection at a time within the same function. However this broke
  3159. map-server compilation, therefore, don't use TURBO yet! [Skotlex]
  3160. * While at it, cleaned a few packet implementations in the char/login
  3161. servers which were not only ugly, but had some really stupid flaws within.
  3162. [Skotlex]
  3163. 2006/11/23
  3164. * Completed Reddozen's hanging mapwarp code to support party and old syntax. [Lance]
  3165. * Updated sql files [Playtester]
  3166. * Made WFIFOHEAD() check for available buffer size remaining on the
  3167. connection, and when there's not enough space, it will increase it.
  3168. [Skotlex]
  3169. * Added define TURBO to the Makefile. It enables MouseJstr's socket access
  3170. optimization which should speed up the code when accessing the write/read
  3171. buffers repeatedly within a function. [Skotlex]
  3172. * Fixed the functions where the RFIFOHEAD/WFIFOHEAD functions were used
  3173. incorrectly (prevents TURBO enabled compilations from finishing) [Skotlex]
  3174. 2006/11/22
  3175. * Modified slaves_inherit_speed and slaves_inherit_mode so you get better
  3176. control of when to copy/remove modes/speed. See the conf changelog for
  3177. details. [Skotlex]
  3178. * Reenabled usage of mode MD_CHANGETARGET, so mobs with mode 0x200 will be
  3179. able to switch targets while attacking. [Skotlex]
  3180. * Some cleanups around usage of session[] in the map server, hoping that it
  3181. may fix some not very likely crashes. [Skotlex]
  3182. * Rewrote a few messy @ commands. [Skotlex]
  3183. * Fixed the homunc hungry timer being started when the homun data is
  3184. received from the char-server and the homunc is NOT 'active'. [Skotlex]
  3185. 2006/11/21
  3186. * Fixed the Auto-Berserk giving you back defense when it triggers during
  3187. berserk's HP penalty. [Skotlex]
  3188. * Some small changes in the pet ai to make it more responsive. [Skotlex]
  3189. * Rewrote the pet looting behaviour (taken from the mob's), pets are much
  3190. more smarter now when looting from multiple possible items. [Skotlex]
  3191. * Fixed pets/homunc trying to be deleted twice when they had 0 intimacy and
  3192. their master logs out. [Skotlex]
  3193. * Added support for specifying ammo type = 99 in the skill_require_db file,
  3194. it can be used to specify that any kind of ammo can be used with the skill,
  3195. but you NEED to have ammo equipped. [Skotlex]
  3196. * Corrected GS_DISARM, it is now a normal attack, which, when it connects,
  3197. has a chance to do strip weapon at a 3*lv% rate (modified by dex) [Skotlex]
  3198. * Fixed GS_PIERCINGSHOT, it should ignore defense [Skotlex]
  3199. * Corrected Gatling Fever costing SP when trying to turn it off. Also,
  3200. speed increases bonuses won't take effect while it's active. [Skotlex]
  3201. * Updated the main makefile with a new OPT line. It is commented by default
  3202. since it only works with GCC 4.X, when unset, it will hide away a huge
  3203. amount of warnings that have to do with stuff that is not gonna be
  3204. corrected in eA anyway. [Skotlex]
  3205. * Corrected TripleAction's damage. It should do 150%*3 instead of 100*3%
  3206. damage. [Skotlex]
  3207. * Updated GS_CRACKER's stun chance using Doddler's info as reference.
  3208. [Skotlex]
  3209. * GS_FLING won't reduce armor defense when used on players. [Skotlex]
  3210. * Moved ignoreAll to state.ignoreAll so it saves some space. [Skotlex]
  3211. * Cleaned up clif_parse_Wis to prevent crashes from forged packets
  3212. [Skotlex]
  3213. * Cleaned up the implementation of the ignore list so it's more efficient.
  3214. [Skotlex]
  3215. 2006/11/20
  3216. * Implemented NPC_DEFENDER. Reduces ranged Physical+Misc damage by 80%
  3217. [Skotlex]
  3218. * Improved the battle config reader so it accepts hexadecimal values.
  3219. Updated the monster_ai description to make use of this [Skotlex]
  3220. * Added monster_ai&0x200. When set, mob skill delays are shared. That is,
  3221. if the mob has several lines with the same skill, when the skill is used,
  3222. the delay will be set to all of them, not just the one entry used.
  3223. [Skotlex]
  3224. * Corrected NPC_BARRIER so it grants 100 def/mdef (and not just mdef)
  3225. [Skotlex]
  3226. * Weapon ATK bonuses will now only apply to watk and NOT watk2 on players
  3227. (on players watk2 is refine bonus) [Skotlex]
  3228. * Corrected NPC_KEEPING. it should give 90 def, not 100 [Skotlex]
  3229. * You now can't use other skills while a skill-induced "window" is up
  3230. (teleport, refining, etc). However, be warned that we aren't quite sure how
  3231. the server will clear this out if you decide to hit cancel on the window,
  3232. so skill-blockage is likely to happen (temporary solution: whenever you
  3233. change maps or warp the state is reset server-side). [Skotlex]
  3234. * Fixed itemskill variable being cleared before parsing the skill, this
  3235. causes auto-casted teleport to fail to skip the skill menu. It is now
  3236. cleared on castend_pos/id directly. [Skotlex]
  3237. * Skills with state 'move_enable' will now do a "walk path" check between
  3238. target cell/object and caster instead of a "shoot path" check, this would
  3239. fix skills like snap or charge from letting you "teleport" across pits.
  3240. [Skotlex]
  3241. * Raised the amount of skills that can stack on a single cell before the
  3242. "in-area/out-area" detection code breaks to 24 (from 8) [Skotlex]
  3243. * Fixed a crash in clif_SkillInfoBlock if the passed player already
  3244. disconnected. [Skotlex]
  3245. * Added limiting drop rate to 100% from item-bonuses that depend on the
  3246. mob's level so that "@autoloot 100" will catch them. [Skotlex]
  3247. 2006/11/19
  3248. * Removed security check since source level patch is applied.
  3249. * Reverted select(), created prompt().
  3250. * Hack protection from packet monkeys in clif_parse_NpcSelectMenu. [Lance]
  3251. * Added 'cancel' button parsing in buildin_select menu system. Now scripts will continue
  3252. to load if 'cancel' is pressed and 255 will be returned. [Lance]
  3253. 2006/11/17
  3254. * Corrected use of the party invitation reply packet, thanks to FlavioJS.
  3255. [Skotlex]
  3256. * Fixed potential hack by modifying packet of whispers. [Lance]
  3257. * Fixed potential crash in IRC processing message with '%' using *printf. [Lance]
  3258. * Fixed memory leaking caused by homun_data not freed when removed. [Lance]
  3259. * Fixed client not validating the chat-kick-request packet, which can cause
  3260. crashes. [Skotlex]
  3261. * Updated map_quit to handle removing of players who are not even
  3262. authenticated yet. [Skotlex]
  3263. * New connection requests are now also blocked when there's a player
  3264. already online but hasn't finished loading yet. [Skotlex]
  3265. * Because of these changes, the friendlist notification when people join
  3266. has been moved to LoadEndAck from pc_authok [Skotlex]
  3267. 2006/11/16
  3268. * Updated sql files [Toms]
  3269. * For the sake of avoiding confusion, all script events are named with prefix 'On'
  3270. from now on. [Lance]
  3271. * Edited atcommand and charcommand syntax. Now it doesn't need the useless
  3272. character name and ":". [Lance]
  3273. * Shadow Jump and Kirikage won't "move" you if you use them in GvG grounds.
  3274. Fixed Kirikage so it first warps you, and then you unhide. [Skotlex]
  3275. * Corrected Zeny Nage so the Zeny spent on the attack is always the exact
  3276. same value as the damage you are dealing. Also corrected it so it does half
  3277. damage when used on players. [Skotlex]
  3278. * Overlapping song/dances will now cause dissonance/ugly-dance level 1
  3279. instead of retaining the level of their song/dance. [Skotlex]
  3280. * Fixed wrong check in @petrename, thanks to The Ultra Mage.[Skotlex]
  3281. 2006/11/14
  3282. * Early Christmas present. 3 new "features" which were very easy to code,
  3283. and should help scripters tremendously. Eapp is quite a way from being
  3284. ready, so these can't hurt:
  3285. * Implemented Karma: It turns out that when someone has karma, the client
  3286. believes this character is "evil", and will give you a cursor sword on top
  3287. of them automatically. So now the code will let characters with karma to
  3288. fight each other. This enables duels and other types of restricted pvp
  3289. where only the characters with karma can hit each others, and the rest of
  3290. players with neutral karma cannot be affected. Note that Karma cannot be
  3291. negative, and it can have any value between 0 and 256 (any non-zero value
  3292. makes them appear evil on the client). For now, characters with karma can
  3293. hit each other regardless of karma value, but perhaps it may be better to
  3294. let them to hit each other ONLY if they have the same karma (the whole
  3295. duel implementation COULD be cleaned up using Karma instead!)
  3296. * Added mapflags partylock and guildlock, which lock the state of the
  3297. parties/guilds on said maps:
  3298. partylock: blocks user party requests to create/invite/leave/kick
  3299. guildlock: blocks user guild requests to create/invite/leave/expel/
  3300. make alliance/make opposition/delete alliance/delete opposition/
  3301. break guild
  3302. 2006/11/13
  3303. * Fixed a bug where the char-txt server was incorrectly saving memos,
  3304. causing character data to be lost on restart. [Skotlex]
  3305. * HP Conversion will fail when used at max SP. It should not display any
  3306. errors to the client. [Skotlex]
  3307. * Modified yet again the login procedure to enable character variables to
  3308. work on item scripts. It SHOULD work crashless now. Please report any
  3309. problems it may cause.
  3310. * Volcano/Deluge/Violent Gale are now interchangeable, in the sense that
  3311. as long as one of these is out, casting any of the three will not consume
  3312. gems, and will use the remaining time of the previous one. In turn, Land
  3313. Protector will now always consume gems on every cast. [Skotlex]
  3314. * Small cleanup in the Land protector code which may fix it not blocking
  3315. AoE skills. [Skotlex]
  3316. * Fixed the interpretation of "head_dir". Removed setting head_dir to match
  3317. character direction in the whole code. Now it is only reset to 0 (look
  3318. forward) when unit_setpos is invoked, or when a character begins walking.
  3319. Thanks to FlavioJS for figuring out how the client parses the head
  3320. direction. [Skotlex]
  3321. * Moved status_calc_pc back to pc_authok. [Lance]
  3322. 2006/11/11
  3323. * Fixed debug message in login_sql [KarLaeda]
  3324. 2006/11/10
  3325. * Deluge/Violent Gale/Volcano tiles will now fail to be placed on cells
  3326. that are already ocuppied by anything else. [Skotlex]
  3327. * status_is_immune will now return 0 or the amount of immunity of the
  3328. target. In which cases it returns 100 for WoH and the GTB bonus when they
  3329. have passed the gtb_sc_immunity setting. This enables targetted spells to
  3330. not "fail silently" unless GTB's magic reduction is 100. [Skotlex]
  3331. * Fixed Homunculus being spawned as soon as they arrive from the
  3332. char-server even if the Master has not spawned on the map yet. [Skotlex]
  3333. * AL_TELEPORT now fails when used on top of Land Protector. [Skotlex]
  3334. * Some minor cleanings in pc_setpos, it may (or not) help fix that
  3335. homunc-caused "map_addblock" error message. [Skotlex]
  3336. * Corrected fog of wall, so that the deleted/doubled-duration effects are
  3337. calculated on a cell-by-cell basis. [Skotlex]
  3338. * Updated Land Protector: It will now delete/block effects of ALL ground
  3339. skills EXCEPT: Song/Dances/Traps (encores are still blocked). Land skills
  3340. blocked/deleted by LP also can't be casted on top of an existing LP. The
  3341. code uses the inf2 value of the skill to determine if it is a
  3342. song/dance/trap. [Skotlex]
  3343. * Ganbantein, mimicking LP, will now also remove ensembles. [Skotlex]
  3344. * Fog of Wall will fail when casted on top of a Volcano/Violent Gale
  3345. [Skotlex]
  3346. * Applied FlavioJS's fix to the npc whisper system. [Skotlex]
  3347. 2006/11/09
  3348. * Fixed status-change loading not working. [Skotlex]
  3349. * Fixed permanent mob-spawn script-events not working. [Skotlex]
  3350. * AL_CURE won't confuse undead players. [Skotlex]
  3351. * Corrected the Fog of Wall check so that it lasts 2x when it is placed on
  3352. TOP of a suiton/deluge, not when the caster is on top of them. [Skotlex]
  3353. * Updated status_check_skilluse so that when the caster has a disabling
  3354. status change (stun/petrify/etc) it will block the skill in all cases
  3355. EXCEPT on cast-end when the skill is ground-targetted. [Skotlex]
  3356. * Fixed Health Conversion skill formula bug. [Lupus]
  3357. 2006/11/08
  3358. * Fixed Desperado's hit-rate, now it behaves as it should. [Skotlex]
  3359. * The GVG map-packet will now also be sent for guild dungeon maps.
  3360. [Skotlex]
  3361. * Added clif_gospel_info which displays info about the buffs you are
  3362. receiving. Thanks to Rayce for the packet information. [Skotlex]
  3363. * Fixed Spider Web not ending when hit by a fireelemental attack. [Skotlex]
  3364. * Cast-time reductions from status changes will not be executed until right
  3365. before casting, to prevent status changes from ending when attempting to
  3366. cast and the attempt fails (invalid cells, not enough sp, wrong target,
  3367. etc, etc) [Skotlex]
  3368. * Added check to prevent Wand of Hermod from seeking for a partner to
  3369. encore, since the partner is supposed to be the warp. [Skotlex]
  3370. * Corrected the mob spawn reading code so that the event-name can be up to
  3371. 50 characters long (which is the actual event length) and so that it can
  3372. read spaces within them, it will also strip the leading/trailing quotes if
  3373. you use them so that the event is actually found on mob-death (so you can
  3374. do stuff like "My NPC::OnDead" as a valid event). [Skotlex]
  3375. * Moved the homunc inherit speed from the master from status_calc_pc to
  3376. LoadEndAck, since the hom's speed matches that of the master each time the
  3377. master changes maps. [Skotlex]
  3378. 2006/11/07
  3379. * Applied FlavioJs's patch which enables colored console output for Windows
  3380. systems. It also includes a config setting called
  3381. "stdout_with_ansisequence" with which you can turn off the color codes (in
  3382. case you are logging all output) [Skotlex]
  3383. * Added error reporting when the max number of ground unit cells has been
  3384. reached (this may be the reason why sometimes it fails to recognize when
  3385. you step out of a song/dance/encore) [Skotlex]
  3386. * Added passing the Endure effect to other devoted people. Note that the
  3387. "hit count" is individual for each character, and only when it ends on the
  3388. Crusader himself will that force it to end on everyone else. It also will
  3389. not transfer on gvg grounds, but it does transfer in pvp. [Skotlex]
  3390. * Fixed Reflect-Shield triggering Auto-Guard instead on devoted chars.
  3391. [Skotlex]
  3392. * Added a check to prevent casting ground skills on a target and vice-versa
  3393. when said skill use packets are received. It really shouldn't be
  3394. exploitable, but doing that certainly makes the server print a lot of
  3395. "unknown skill used!" messages. [Skotlex]
  3396. * Fixed map_foreachiddb and map_foreachpc so they don't encapsulate the
  3397. variable arguments into a double va_arg list. Thanks to the Ultra Mage for
  3398. the tip. [Skotlex]
  3399. * Cleaned up the clif_hate/mob_info functions with the correct fields/usage
  3400. as explained by Rayce. [Skotlex]
  3401. * Implemented clif_feel_hate_reset packet to properly display the Angel of
  3402. the Sun/Moon/Stars, thanks again to Rayce for the relevant information.
  3403. [Skotlex]
  3404. * LP will again block all land-stuff from being placed down on top of it
  3405. for the exception of Song/Dance/Encores. [Skotlex]
  3406. 2006/11/06
  3407. * Reapplied 'fix equipment scripts which are based on character variables not
  3408. working.' [Lance]
  3409. * Multiple Gunslinger skill corrections, refer to
  3410. http://ro.doddlercon.com/guides/gunslinger.html for information source:
  3411. [Skotlex]
  3412. - Corrected Ground Drift. Splash range of 3x3, stackable and placeable
  3413. underneath others, cast time is 2 secs. It's considered ranged, and it's
  3414. bonus damage increase is defense ignoring, always neutral.
  3415. - Corrected Bull's Eye implementation, it should deal normal damage against
  3416. non brute/demi-human targets.
  3417. - GS_DUST is now considered a short-range attack.
  3418. - Implemented Desperado's hit rate based on distance to caster as it's
  3419. believed to behave.
  3420. - GS_TRACKING's range is no longer affected by Snake Eye.
  3421. - GS_FLING's defense reduction is now 5*lv%
  3422. * Suiton's Speed/Agi penalty will affect everyone when used in versus maps.
  3423. * Corrected Kaupe so it doesn't ends on the first part of Soul Destroyer.
  3424. [Skotlex]
  3425. * Applied some cleaning to the way Tatami Gaeshi knocks back. [Skotlex]
  3426. * Cleaned up the way mobskill_use checks for the correct event. It should
  3427. fix unlimited mob-skill-casting issues. [Skotlex]
  3428. * Removed the return code entry when logging GM reload-GM requests
  3429. (login-sql),it'll just be stored as zero. [Skotlex]
  3430. * Added a fix on socket.c to not pick INADDR_ANY when choosing our own IP.
  3431. [Skotlex]
  3432. * Applied the correction on maprespawnguildid so that it parses ALL players
  3433. and not just those on a map. [Skotlex]
  3434. * TK_JUMPKICK now dispels normal aspd/speed potions (not berserk pitched
  3435. ones) and Preserve will be unable to block this. [Skotlex]
  3436. * Soul Linkers are now immune to SA_DISPEL [Skotlex]
  3437. * You can now place everything (except magic skills) on top of LPs.
  3438. [Skotlex]
  3439. * Corrected Ganbantein to not touch song/dance/ensembles. [Skotlex]
  3440. * Status_calc_pc will refuse to execute if the player is still tagged as a
  3441. "new connection" and the invocation is not meant to be the first one.
  3442. [Skotlex]
  3443. * Swapped the order of checks in status_isimmune so that Wand of Hermod
  3444. skill blocking takes precedence over GTB's [Skotlex]
  3445. * Client packets will all be ignored while a player is not on a map until
  3446. the LoadEndAck packet is received. [Skotlex]
  3447. * Reverted changes, moved status_calc_pc(sd,1) back to pc_authok
  3448. since it causes problems. [Lance]
  3449. * Temperory fixed stability issue caused by initial status_calc_pc
  3450. being placed AFTER another status_calc_pc. [Lance]
  3451. 2006/11/05
  3452. * Updated sql files [Toms]
  3453. * Updated perl files acording to rev 9135 [Toms]
  3454. 2006/11/04
  3455. * Readded duel code in map_quit. Why it has been removed!? [LuzZza]
  3456. * Converted itemdb tables to use smallint. Credits to ALZ. [Lance]
  3457. 2006/11/01
  3458. * Reverted LK_Berserk HP requirement, as everything, including kRO X.2 and
  3459. pRO X.3, points that way. [Vicious]
  3460. 2006/10/31
  3461. * Fixed song/dance/encore cells not being placed down when casted on top of
  3462. a land Protector. [Skotlex]
  3463. * Update homunc's speed when master's speed changes, should avoid homunc's
  3464. speed = 0 on login (homunc's stats are calculated before master's stats) [Toms]
  3465. * When Kaizel (or super novice rebirth skill) triggers, you get debuffed
  3466. now. [Skotlex]
  3467. * Modified the player_cloak_check_type and monster_cloak_check_type
  3468. settings. 1 makes it check for walls, 2 makes cloaking NOT end on normal
  3469. attacks, and 4 makes cloaking NOT end when using skills. The default
  3470. setting for players is still 1, but for mobs the default has been changed
  3471. to 4. [Skotlex]
  3472. * Non-players can now use all skills while hidden. [Skotlex]
  3473. * Added a check to prevent adding negative damage to the total accumulated
  3474. damage in mob_damage. It could fix some exploits, even though mob_damage
  3475. should never be invoked with negative damage anyway. [Skotlex]
  3476. * Implemented the property where the first attacker get's double exp-share
  3477. than the others. Due to the way exp calculation is done, this bonus will
  3478. not apply when you use exp_calc_type 1 (damage/max_hp) instead of the
  3479. default (damage/total-damage). For now this bonus is done after calculating
  3480. who is the MVP character instead of before. [Skotlex]
  3481. 2006/10/30
  3482. * Fixed a little bug in event enqueue code [Toms]
  3483. * Updated the code so mobs can use ChainAction as a targetted skill.
  3484. [Skotlex]
  3485. * Added GroundDrift effects for Wind (Stun) and Fire (knockback). The
  3486. knockback value is unknown, so 3 is used for now. [Skotlex]
  3487. * Cleaned up some more the steal code, now you can't steal the last slot
  3488. regardless of skill level used. [Skotlex]
  3489. * Added consideration of Chain Action when cloning GunSlingers. [Skotlex]
  3490. * Modified battle_calc_return_damage to take the skill id as well, now
  3491. magic damage return will not work on skills tagged as ground or self
  3492. targetted. [Skotlex]
  3493. * Fixed Gank not working at all with the default max steal tries setting.
  3494. [Skotlex]
  3495. * Soul Drain won't work with skills tagged as self-targetted. [Skotlex]
  3496. * Improved the Suiton code so that the walk/agi penalty only applies to
  3497. enemies of whoever casted the skill. [Skotlex]
  3498. * Moved the initial status_calc_pc call to when you finish loading the map,
  3499. should fix equipment scripts which are based on character variables not
  3500. working. [Skotlex]
  3501. * Fixed getcharid according to samples and docs. [Lupus]
  3502. Thanks to joshuaali for pointing it out. eAPP has no such bug
  3503. 2006/10/27
  3504. * Fixed mob-skill event "skillused" not triggering at all. [Skotlex]
  3505. * Summoned mobs will only be removed from a map if their master is also
  3506. removed (dynamic mobs) [Skotlex]
  3507. 2006/10/26
  3508. * Updated sql files [Playtester]
  3509. * Experimental tweak to npc_parse_function - Overwrite existing functions. [Lance]
  3510. 2006/10/25
  3511. * Cleaned up some more the event dequeue code, it will no longer clear out
  3512. the npc_id if there's no events waiting to be executed (why does it clears
  3513. the npc_id anyway?) [Skotlex]
  3514. * Because of possible conflicts with this change and the on-login script,
  3515. now the on-login script is executed when the player has finished loading
  3516. into their start-up map rather than as soon as receiving the registry
  3517. variables from the char-server. [Skotlex]
  3518. * Some cleaning of the pc_eventtimer and pc enqueue code, it should fix
  3519. some memory leaks when the event counter does not matches with the actual
  3520. number of queued timers during logout. [Skotlex]
  3521. * Fixed "skill_sp_override_grffile: yes" causing crashes when parsing
  3522. Homuncuus/Guild skills. [Skotlex]
  3523. * Made the exp bonus settings be adjustable: [Skotlex]
  3524. - exp_bonus_attacker: Indicates how much additional exp a mob gives per
  3525. additional attacker (eg: 10 -> +10%*attacker)
  3526. - exp_bonus_max_attacker: Indicates at which number of attackers the bonus
  3527. is capped (eg: 5 -> 5 attackers, so a mob yield the same exp whether 5 or
  3528. 10 people attack it)
  3529. - Changed the way the party_even_share_bonus setting works. It now uses a
  3530. simple linear bonus increase (eg: 10 -> +10%*party member)
  3531. - The defaults are as explained by Tharis: +25%/attacker, capped at 12
  3532. attackers, no party bonus. The first two can be found in exp.conf, the last
  3533. one was left in party.conf
  3534. * MG_STONECURSE and NPC_PETRIFYATTACK now use time1 to specify the
  3535. "petrifying time". This value has been set to 5 seconds. [Skotlex]
  3536. * Now when SC_STONE is triggered from status-change cards, it's petrifying
  3537. duration will be passed as 0, causing the minimum (1 sec) to be used.
  3538. [Skotlex]
  3539. * Got rid of clones in src: old Novice Grounds map -> new_zone0? [Lupus]
  3540. 2006/10/24
  3541. * Removed again your mdef reducing "petrifying" time as apparently it can't
  3542. be reduced by mdef. [Skotlex]
  3543. * Cleaned up the "show_steal_in_party" setting so it only takes effect when
  3544. the item was successfully stolen (there was no point in telling you the
  3545. item couldn't be stolen due to being overweight) [Skotlex]
  3546. * Cleaned up the pc_steal_item implementation (again). It now uses a more
  3547. random, simple approach in each steal attempt. [Skotlex]
  3548. * Changed the way the skill_steal_max_tries work. Now it actually MEANS the
  3549. max number of steal tries, use 0 to disable (unlimited tries). [Skotlex]
  3550. 2006/10/23
  3551. * Added a bunch of important indexes when dealing with the log tables.
  3552. Added upgrade_svn9050.sql which adds these indexes as well. [Skotlex]
  3553. * Expanded the family check to work as it should, exp-share-range is
  3554. respected, and the child is not considered for it (thanks to TheUltraMage
  3555. for the investigation) [Skotlex]
  3556. * Double Casting will no longer fail when used. [Skotlex]
  3557. * Modified SC_STONE so that the duration of the "petrifying" time is 5 secs
  3558. reduced by your natural resistance to petrify (which is mdef%) [Skotlex]
  3559. * Modified the meaning of the third column in the skill_require_db. Instead
  3560. of MaxHP, this is now called MaxHPTrigger. This column (which was
  3561. previously unused by all skills) signals the limit HP% that you can have to
  3562. be able to use the skill. For example, setting it to 20 means the skill is
  3563. unusable if you have more than 20% life (note that this is merely a
  3564. threshold setting, it won't actually substract HP when used!) [Skotlex]
  3565. * Adjusted LK_BERSERK so you can only use it when you have 20% or less
  3566. life. [Skotlex]
  3567. * Removed NJ_TOBIDOUGU adding damage to W_HUUMA weapons which somehow got
  3568. readded. [Skotlex]
  3569. * When nonplayers use Cloaking, it will be forced to level 10 since mobs
  3570. shouldn't have movement/attack restrictions while walking cloaked.
  3571. [Skotlex]
  3572. 2006/10/20
  3573. * Made HAMI_CASTLE use clif_slide rather than clif_fixpos. This should
  3574. fix clientside problems when castling between two positions the (client)
  3575. path finding can't find a walkable bath between anymore. [blackhole89]
  3576. * Fixed the Homunc not spawning next to you after receiving it's data from
  3577. the char-server. [Skotlex]
  3578. * Fixed Charge Atk being able to go through chasm/pits. [Skotlex]
  3579. * Moved the homunculus DB information from the player structure to the
  3580. homun structure. Modified the homunculus creation packets to hold this
  3581. information during creation, also, all initial values are handled by the
  3582. map-server, the char server only assigns it a homun ID. [Skotlex]
  3583. WARNING: This is yet untested! It's very possible something could had
  3584. broken after changing the format/size of the homunc creation packets.
  3585. * Added config setting "summon_flora_setting", which it you can decide now
  3586. two things: a. Whether or not players can harm your floras outside versus
  3587. grounds, and b. Whether or not you can summon out and mix different types
  3588. of plants at the same time. [Skotlex]
  3589. * Likely fixed pc_steal_item always failing to steal (it was attempting to
  3590. steal random item IDs...) [Skotlex]
  3591. * Cleaned up a bit the mob on-death event so that when the killer is a
  3592. homunculus, it's master will be taken. Also, the variable killerrid will be
  3593. set before running the script to specify who delivered the final blow. If
  3594. the killerrid matches with the script attached player, you can be sure your
  3595. player did the final blow to the mob, otherwise, the attached player is who
  3596. did the most damage to the mob. [Skotlex]
  3597. 2006/10/19
  3598. * Cleaned up the log.c file. [Skotlex]
  3599. * Fixed log_chat not recording anything if the server is compiled in SQL
  3600. mode and sql_logs is turned off (it should then record to a plain txt file)
  3601. [Skotlex]
  3602. * Fixed SG_FRIEND, it should be triggering when Monks do Combo Finish (not
  3603. triple blows), and the trigger rate increase should be based on your known
  3604. level of SG_FRIEND, not TK_COUNTER. [Skotlex]
  3605. * Phantasmic arrow now knockbacks even if it misses. [Skotlex]
  3606. * Adjusted the way Monk combo times work. The combo time is now always
  3607. 300ms (adjusted by combo_delay_rate) which takes effect inmediately AFTER
  3608. your current skill's canact-delay (which is why the particular skill delays
  3609. were moved to skillcast_db) [Skotlex]
  3610. * Modified skill_delayfix so it performs the can-act reduction from agi/dex
  3611. for combos there. [Skotlex]
  3612. * Modified pc_steal_item so that it behaves more closely to the way it does
  3613. on Aegis. [Skotlex]
  3614. 2006/10/18
  3615. * Added a overflow check when calculating party exp share. [Skotlex]
  3616. 2006/10/16
  3617. * Adjusted UTSUSEMI/BUNSINJYUTSU so that they block range/melee weapon
  3618. attacks and only melee misc attacks. This isn't 100% correct, but it's a
  3619. better approximation to the way these skills behave. [Skotlex]
  3620. * Emergency call &16 (disable skill from nowarpto maps) will now NOT block
  3621. Emergency Call if that map is also a gvg-castle map. Makes it safe to turn
  3622. on this option to prevent usage from special maps (like Lhz3) without
  3623. crippling the skill during WoE. [Skotlex]
  3624. * Applied most of Mpeg's work on Ninja Skills. For information see:
  3625. http://gpegon.free.fr/ea/ninja_10-15-06_mpeg.txt [Skotlex]
  3626. * When reinvoking a combo-time, the previous combo time will be terminated.
  3627. This could fix the ongoing difficulties pulling off Monk combos. [Skotlex]
  3628. * Fixed Esma-state not ending after casting it. [Skotlex]
  3629. * Fixed @hominfo displaying intimacy on a 1/10k scale. [Skotlex]
  3630. 2006/10/14
  3631. * Homun info window to show crit value. As default, homun does NOT crit,
  3632. as monsters do not crit. This is purely for display purpose for players
  3633. to identify their homon's luk value. [Vicious]
  3634. 2006/10/13
  3635. * Base attack for non players is now calculated as str + [str/10]^2 (it
  3636. does not has +dex/5+luk/5 which players do have) [Skotlex]
  3637. * Fixed the char-sql server trying to read the gms off a "gm_db" config
  3638. setting stead of "login_db" [Skotlex]
  3639. * Corrected Throw Arrow/Musical Strike's damage formula [Skotlex]
  3640. * Altered Trick Dead. It doesn't prevents skills from being casted on you
  3641. now, but damage-based skills will do no damage. [Skotlex]
  3642. * Made the battle_config.attack_attr_none apply to pets when using the
  3643. "fixed damage" pet skill scripts. [Skotlex]
  3644. 2006/10/12
  3645. * made @killmonster make the mobs drop items again. [Skotlex]
  3646. * Added a temporary message when Angel of the Sun, Moon and Stars trigger
  3647. so you know it triggered. [Skotlex]
  3648. * When slaves_inherit_speed is set (which is also the default), homun will
  3649. have the same speed of their master when spawned. [Skotlex]
  3650. * When using Hatred and you already have a hate target, your current hate
  3651. target is displayed now. [Skotlex]
  3652. 2006/10/11
  3653. * Cleaned up the char-server code when the last point of a player is not
  3654. found. First it'll check if there's any mapserver online, and then, if
  3655. there is, it'll look for the major cities. If this fails, then the player
  3656. will be told server is closed instead of trying to send him to a "random
  3657. map". Will fix the char-server printing the misleading message "map
  3658. server not found, sending to major city" when in reality there just
  3659. aren't any map servers connected. [Skotlex]
  3660. * Corrected the mob damagelog structure so that you can't exploit it by
  3661. switching characters. [Skotlex]
  3662. 2006/10/09
  3663. * Fixed crash when char-server sends to a "random" map-server online on
  3664. connect. Thanks to TheUltraMage for pointing it out. [Skotlex]
  3665. * Should have fixed being petrified not reducing your defense and
  3666. increaseing your mdef. [Skotlex]
  3667. * Fixed SC_NOCHAT printing the "skills are now available" message twice on
  3668. natural expiration. [Skotlex]
  3669. 2006/10/08
  3670. * Updated sql files [Playtester]
  3671. 2006/10/06
  3672. * Updated Land Protector to block absolutely every land-based skills with
  3673. the exception of Encores/Dances. [Skotlex]
  3674. * Disabling status abnormalities will now reset a mob's target. [Skotlex]
  3675. * Mob morphing also resets their target now. [Skotlex]
  3676. * Monk combos no longer can ignore skill delay (delay skill for all their
  3677. combo-related skills is ASPD) [Skotlex]
  3678. * Now you can trade while in a chatroom. [Skotlex]
  3679. * Fixed homun-txt reading when the file has DOS line-type delimiters (\r\n)
  3680. [Skotlex]
  3681. 2006/10/05
  3682. * skill_blown will now trigger on-touch npcs on the landing tile. [Skotlex]
  3683. * Max trade distance has been reduced from 5 to 2. [Skotlex]
  3684. * Undisguising will now resend the cart-contents. [Skotlex]
  3685. * Added function npc_unload_duplicates(), it unloads all npcs that are a
  3686. duplicate of the passed one. For use with @unloadnpc to prevent crashes
  3687. when you unload the npc that has duplicates. [Skotlex]
  3688. 2006/10/04
  3689. * Bowling bash now always hits twice regardless of situation. [Skotlex]
  3690. * Added an underflow check to prevent sending to the client negative mdef2
  3691. value (for Frenzy'ed characters) [Skotlex]
  3692. * Modified pc_jobchange so that it automatically removes
  3693. peco/falcon/cart/homun if the new job you are changing to does not possess
  3694. the required skill for them. [Skotlex]
  3695. 2006/10/03
  3696. * Fixed a possible crash with @reloadmobdb due to pet loot timers.
  3697. [Skotlex]
  3698. * Fixed a possible crash and a memory leak on the login-SQL server when
  3699. parsing unban requests. [Skotlex]
  3700. * Renamed setting delay_dependon_dex to delay_dependon_agi, the delay of
  3701. skills is reduced now (when enabled) by AGI instead of DEX, which makes a
  3702. lot more sense than DEX. [Skotlex]
  3703. 2006/10/02
  3704. * Modified item-granded status resistance reduction to behave as explained
  3705. by Vicious (Ragnarok Monthly magazine) [Skotlex]
  3706. * Added the opt3 values to Eske [Skotlex]
  3707. * Fixed the txt->sql converter only saving the very first character
  3708. permanent variable. [Skotlex]
  3709. * Fixed the txt->sql converter saving account-wide variables as
  3710. character-wide ones. [Skotlex]
  3711. * Renamed nopenalty mapflag to noexppenalty. Using nopenalty will turn
  3712. on/off both noexppenalty and nozenypenalty now. [Skotlex]
  3713. 2006/10/01
  3714. * Removed the speed adjustment per level of Increase/Decrease Agility
  3715. [Skotlex]
  3716. * Fixed humunculi skill exploit, thanks to mr.rkit [Lupus]
  3717. 2006/09/30
  3718. * Rewrote the txt->sql converter. It now links directly to the char server
  3719. files so that it should get auto-updated with any code changes in the
  3720. later. [Skotlex]
  3721. * The converter will now also convert: account-wide variables, parties,
  3722. guilds, guild storage and guild castles. At this point the only two things
  3723. not converted are login-server-wide account variables (##, they belong to
  3724. the login converter) and homunculus (the SQL save function is messy and
  3725. doesn't lends itself to be integrated with the converter the way all the
  3726. other functions are). [Skotlex]
  3727. * misceffect2 will no longer cause the effect on top of the source object
  3728. when it is the fake npc. [Skotlex]
  3729. * Added check so that Frost Nova doesn't hides hitting animation on
  3730. targets. [Skotlex]
  3731. * Added the missing brackets around the trade logs condition check, thanks
  3732. to Coltaro. [Skotlex]
  3733. 2006/09/29
  3734. * Spurt state will now trigger on Soul Linkers as well. [Skotlex]
  3735. * Added a check un unit_run when unit_walktoxy fails. Should fix running
  3736. getting you stuck sometimes when running on diagonals near obstacles.
  3737. [Skotlex]
  3738. 2006/09/28
  3739. * Merged the necessary changes to make the script engine support negative
  3740. constants (db/const.txt). Thanks to Rayce (from jA) for the code. [Skotlex]
  3741. * Cleaned up the skill.c code to take into account when skill_unitsetting
  3742. returns null (skill failed), fixes a possible crash with Wand of Hermode
  3743. [Skotlex]
  3744. 2006/09/27
  3745. * Cleaned up status_get_party/guild_id, it should also fix a possible crash
  3746. when invoking such a functio on a masterless pet. [Skotlex]
  3747. * Sharp-Shooting will now display a skill animation. [Skotlex]
  3748. * The no_spawn_on_player setting will now also work for static mobs, but
  3749. only if the setting is set to 100 or higher. [Skotlex]
  3750. 2006/09/26
  3751. * Yet again messed with the packet sent during a splash attack, but this
  3752. time taking into account the packets that eA was using some many revisions
  3753. ago. Tests are needed to see if Magnum Break/Grimtooth don't spam the skill
  3754. animation anymore, and to see if GrandCross didn't break it's animation as
  3755. well. [Skotlex]
  3756. * Added function skill_dance_switch which handles converting overlapping
  3757. song/dances to dissonance/ugly dance. It should make the overlapping area
  3758. now behave completely like the mentioned song/dances (taking into account
  3759. interval and target type changes). [Skotlex]
  3760. * Updated battle_check_target so that non-offensive skills cannot be used
  3761. on a homun except for the homun and it's master. [Skotlex]
  3762. * Steal zeny won't work on treasure chests now. [Skotlex]
  3763. 2006/09/25
  3764. * Added an ugly check so that Heal will display 0 when healing a berserked
  3765. character (and it will again display full heal amount when healing a player
  3766. who's at full life) [Skotlex]
  3767. * Disabled again client-self-muting since it's causing too much trouble.
  3768. [Skotlex]
  3769. * Merged FlavioJS's script patch which should fix stuff like "mes ();"
  3770. causing crashes. [Skotlex]
  3771. * Item group reading will now complain when a line doesn't has enough
  3772. fields. [Skotlex]
  3773. * Fixed #baselevelup adding instead of substracting status points when used
  3774. with negative levels. Also made it reset your stats if there wasn't enough
  3775. to substract from. [Skotlex]
  3776. * Applied FlavioJS's suggestion of expanding WFIFOPOS to also take the
  3777. direction. This had the side effect of fixing the direction missing from
  3778. the mob spawn packet, which explains why all npcs face north when you are
  3779. within sight while doing a @reloadscript. [Skotlex]
  3780. * Changed the order of packets in TK_HIGHJUMP, may fix the reports of
  3781. getting stuck when jumping into a warp. [Skotlex]
  3782. * Changed a bit the code of marionette control, where a redefined local
  3783. variable may be the cause of mob-targetted Marionette Control stacking
  3784. stats up. [Skotlex]
  3785. 2006/09/24
  3786. * When the code auto-guesses that a skill should require ammo, it will
  3787. accept any type of ammo for using it instead of only arrows. Fixes Magnum
  3788. Break usage on Gunslingers. [Skotlex]
  3789. 2006/09/22
  3790. * Probably fixed a signed/unsigned mismatch warning on the new socket code.
  3791. [Skotlex]
  3792. * Fixed the "map server claims to have char online, but this other map
  3793. server also has it tagged as online" message triggering in some cases where
  3794. it shouldn't. [Skotlex]
  3795. * Fixed some maps in db/mapindex.txt being under the wrong id and added comments
  3796. so this will not happen again. [Zephiris]
  3797. --- ATTENTION! ---
  3798. People running TXT servers will have to tell their players to redo their /memo
  3799. points since the map ids of the old file were wrong.
  3800. 2006/09/21
  3801. * Fixed a bug on "select" when skipping empty entries when the selected
  3802. entry is the last. [Skotlex]
  3803. * Improved a bit RFIFOFLUSH as suggested by Harbin. [Skotlex]
  3804. 2006/09/20
  3805. * A mob's HP is set temporarily to 0 before invoking it's on-death script,
  3806. prevents said scripts being able to "rekill" the mob indefinitely (if stuff
  3807. like killmonster is used within) [Skotlex]
  3808. * Some small cleanups in chat.c [Skotlex]
  3809. * Fixed party_sub_count (TK_POWER) failing when the idle_no_share setting
  3810. was disabled. [Skotlex]
  3811. * Enabled Star Gladiators and Soul Linkers to do /doridori [Skotlex]
  3812. 2006/09/19
  3813. * Fixed nocommand mapflag causing the "you can't use commands on this map"
  3814. message to trigger one very single chat, instead of only for actual @/#
  3815. command invocation. [Skotlex]
  3816. * Added support for skipping empty string menu entries for the select()
  3817. command (just as `menu` has it already) [Skotlex]
  3818. * Fixed pc_set_hate_mob letting you place mobs on any of the three
  3819. positions regardless of size [Skotlex]
  3820. * The double continuation error will now display both scripts that
  3821. triggered it. [Skotlex]
  3822. * Loading the storage from the char-server will fail if player is already
  3823. tagged in final save state. [Skotlex]
  3824. * Removed setting ban_spoof_namer, sending invalid global-talk packets will
  3825. now just kick the player out of the server. [Skotlex]
  3826. * Added echoing messages back to self when using @/# commands on whispers
  3827. and party/guild messages, to prevent the client from muting yourself.
  3828. [Skotlex]
  3829. * Fixed some gcc4 warnings [Toms]
  3830. 2006/09/18
  3831. * Fixed Spider Web fire damage bonus. [Skotlex]
  3832. * Made Global chat always reply back to you even on @/# commands, this
  3833. prevents the client from muting yourself due to "hack". However, this same
  3834. fix isn't easily applicable to @ commands invoked from whispers or
  3835. party/guild messages, those are still pending. [Skotlex]
  3836. * Merged Meruru's update to socket.c, which includes a rewritten parse
  3837. function, which should hopefully be more efficient than the previous code.
  3838. [Skotlex]
  3839. * The new code includes support for two config settings
  3840. (packet_athena.txt): frame_size, which can be used to alter the logic
  3841. packet-size allowed by the code, and mode_neg, which when set to yes, sets
  3842. TCP_NODELAY on all connections (defaults to yes). [Skotlex]
  3843. * High-Jump is usable everywhere now, except that on maps where it
  3844. previously failed, now will just make you jump in place. [Skotlex]
  3845. * Fixed TK_RUN as per packets provided by AuronX. [Skotlex]
  3846. * Moved the equipment/card resistances to status ailments outside of
  3847. status_get_sc_def, so that they are applied only to rate, not duration.
  3848. [Skotlex]
  3849. * Modified the Asura code (again), hopefully movement sprite issues are
  3850. fixed now [Skotlex]
  3851. * @reloadscript scripts will no longer eliminate mobs with no respawn data.
  3852. But watch out for possible bugs (I think someone mentioned 1 extra
  3853. treasure box will spawn when you use it? This needs testing!) [Skotlex]
  3854. * Made speed_add_rate a linearly stacking increase. [Skotlex]
  3855. * Corrected a possible overflow when using show_mob_info to display the
  3856. mob's up as a percent. [Skotlex]
  3857. * Corrected the documentation for checkoption/checkoption1/checkoption2
  3858. [Skotlex]
  3859. * Reenabled client requesting to self mute, as the whole knockback packet
  3860. issues of the past which were causing players to mute themselves when being
  3861. knockback is no longer there. [Skotlex]
  3862. 2006/09/17
  3863. * Fixed NPC_INVISIBLE's cloak ending after attacking once. [Skotlex]
  3864. * Fixed SG_FUSION being castable without Soul Link state. [Skotlex]
  3865. * Moved the item-use restriction SC checks from clif.c to pc_use_item,
  3866. fixed Gravitation blocking potion usage on it's area of effect. [Skotlex]
  3867. * Sphere Marines and Summoned Flora are now immune to class-changing.
  3868. [Skotlex]
  3869. 2006/09/16
  3870. * Added monster_ai&256. When set, a monster will pick a random starting
  3871. position to begin checking versus it's skills, otherwise, it will always
  3872. begin checking from the beginning. [Skotlex]
  3873. * Fixed the status change duration reduction equation was was totally
  3874. wrong, thanks to k3dt [Skotlex]
  3875. 2006/09/15
  3876. * Now mobs won't do a distance check to lose their target on every ai
  3877. iteration, but only when they finish walking (unless you set monster_ai&1)
  3878. [Skotlex]
  3879. * The chase distance before a mob gives up following a player has been
  3880. increased from view-size (range2) to min-chase (range3). [Skotlex]
  3881. * Reverted the Summon Flora change where all plants were being summoned in
  3882. one go. [Skotlex]
  3883. * Moved the weapon repair effect to where it belongs (after successfully
  3884. repairing an item) [Skotlex]
  3885. * Added config setting "friend_auto_add" (battle/player.conf), if set, when
  3886. you accept someone as your friend, both characters will show up on each
  3887. other's friend list. [Skotlex]
  3888. 2006/09/14
  3889. * Changed Extremity Fist's code to make you actually walk past your target,
  3890. which displays a much more correct "animation" for the skill. Thanks to
  3891. HiddenDragon for the information and code. [Skotlex]
  3892. * Updated the item_db search functions so that when returning the
  3893. dummy-item, it first updates the nameid to match the requested one, this
  3894. prevents pc_additem later on giving you an item with ID 500 instead of the
  3895. ID requested. [Skotlex]
  3896. * Added a clif_skill_nodamage packet when using Repair Weapon, just to see
  3897. what happens. [Skotlex]
  3898. * Likely fixed "half" of the alliance being saved, which ends up in guilds
  3899. that can attack another, but not viceversa. [Skotlex]
  3900. * Added deleting of saved Status changes on character delete for the
  3901. Char-TXT server. [Skotlex]
  3902. * Fixed the can-act delay never being checked when requesting to use
  3903. Homunculus Skills. [Skotlex]
  3904. * Fixed warmth skills draining SP of the target, not the caster. [Skotlex]
  3905. * When TK_DODGE triggers, it will no longer delay your attack or movement.
  3906. [Skotlex]
  3907. * Estimation /Sense/ whatever will no longer hide the vit bonus to mdef2,
  3908. as reported by Playtester. [Skotlex]
  3909. * Updated Summon Flora to summon the max number of possible plants on one
  3910. cast. It will consume as many bottles as monsters summoned. Also cleaned up
  3911. the function to be usable by non players. [Skotlex]
  3912. * Shadow Jump no longer goes over walls. [Skotlex]
  3913. * battle_calc_gvg_damage will be invoked in gvg maps regardless of woe
  3914. time. [Skotlex]
  3915. * NPC_MENTALBREAKER now zaps matk*lv SP based on observations by Tharis.
  3916. [Skotlex]
  3917. * md->class_ will be changed on mob-class-change to fix all class-change
  3918. related bugs. On respawn, the spawn data will be used to revert to the
  3919. original class. [Skotlex]
  3920. * Improved the pet skillbonus timer for "eternal bonuses" cases where the
  3921. bonus delay is 0. [Skotlex]
  3922. 2006/09/13
  3923. * SC_CHANGE cannot override itself anymore. This fixes being able to
  3924. "recast" the skill while it's still active to lengthen the duration AND
  3925. reheal the target. [Skotlex]
  3926. * Changed a bit the dnsbl lookup in the login servers to make it faster.
  3927. [Skotlex]
  3928. * Moved the pc rate modifiers from items
  3929. (hp/sp/matk/hit/flee/cri/flee2/def2/mdef2/def/def2/speed) from
  3930. status_calc_bl_sub_pc to status_calc_pc, as it simplifies code vastly, and
  3931. also fixes Osiris card not applying to said bonuses. [Skotlex]
  3932. * Fixed pc_damage_delay_rate not working, thanks to Orn. [Skotlex]
  3933. * Modified the nocommand mapflag so you can specify the GM range that is
  3934. blocked from using commands (eg: "prontera.gat mapflag nocommand 40"
  3935. disables commands to characters in the GM range 0~39) [Skotlex]
  3936. * Modified the char-server TXT whisper system to use the online_db to know
  3937. to which map server forward whispers, instead of just sending the whisper
  3938. to every map server. [Skotlex]
  3939. * Readded the setting TCP_NODELAY on socket.c to see if it fixes the
  3940. walk-lag issue. [Skotlex]
  3941. 2006/09/12
  3942. * Modified the login SQL server so that case insensitive lookups use "where
  3943. name = BINARY 'name'" instead of "where BINARY name = 'name'", since this
  3944. way the name index should be used, and performance will no longer be
  3945. heavily affected. [Skotlex]
  3946. * Modified main.sql to add 4 missing indexes (thanks to ErkDog): char_id on
  3947. the tables memo/friends, and online/name on the char table. Added
  3948. upgrade_svn8728.sql to add these indexes to already existing tables.
  3949. [Skotlex]
  3950. * Updated convert_engine.sql to use TYPE instead of ENGINE to be compatible
  3951. with Mysql 4 installations. [Skotlex]
  3952. * Moved the morph restrictions from skill_additional_effect to
  3953. mob_class_change, so that SA_MONOCELL will not convert clones, emperium, or
  3954. treasure boxes. [Skotlex]
  3955. * Fixed 'range' might be used uninitialized warning [Toms]
  3956. * Added Jaguar's sql script to convert all tables to MyISAM. It's located
  3957. in sql-files/convert_engine.sql WARNING: Using MyISAM is much faster than
  3958. InnoDB, but you are strongly recommended to backup your database before
  3959. switching engines since we don't know if eA is fully coded to work
  3960. correctly with MyISAM yet. [Skotlex]
  3961. * Added manual deletion of sc_data entries when deleting a character
  3962. (char-SQL) [Skotlex]
  3963. * Updated main.sql to use pure MyISAM tables, removed all foreign keys.
  3964. [Skotlex]
  3965. * Updated battle_switch to use strncmpi instead of strcmpi, it makes it so
  3966. using "yessir" will match "yes", this is actually needed because if you set
  3967. a config setting to "yes " (notice the trailing space), then the map config
  3968. engine fails to read it right, and will set the config setting to 0 (no).
  3969. [Skotlex]
  3970. * Some corrections to hate_mob cleanup when triggering the Angel stuff. [Skotlex]
  3971. * Updated the show_mob_info setting to add another space to the separating
  3972. pipes, so that each field is separated by " | " instead of " |". [Skotlex]
  3973. * Homunculus intimacy will go back to 500 on evolution. [Skotlex]
  3974. * Baphomet splash damage will now hit nearby enemies regardless of flee
  3975. (but the initial attack still has to connect for the splash to trigger)
  3976. [Skotlex]
  3977. 2006/09/11
  3978. * Modified set_nonblocking and setsocketoptions in socket.c, using eApp's
  3979. code as reference. Hopefully should improve performance somewhat. [Skotlex]
  3980. * Added a comment explaining what a comment is to login/char/map config
  3981. files, as well as the main script config file. [Skotlex]
  3982. * Modified SG_FEEL so that it works the same way that in Aegis
  3983. (packet-wise) [Skotlex]
  3984. * Added a comment to explain how to "remove" a string variable from the
  3985. msg_athena entries. [Skotlex]
  3986. * Summoned and slave mobs won't show up on @showmobs anymore. [Skotlex]
  3987. * Moved Spider Web damage bonus from battle_calc_damage to battle_attr_fix,
  3988. so that damage will be doubled based on the actual attack element.
  3989. [Skotlex]
  3990. * Adjusted autospell cards to trigger only on physical weapon attacks.
  3991. [Skotlex]
  3992. * Adjusted a bit the heal code, it should now show either the full heal
  3993. amount, or 0, depending on whether the target was healed at all or not
  3994. (this also means it shows 0 if you try to heal a full-life character.. but
  3995. it's the closest I've gotten to make it display 0 on Berserked chars)
  3996. [Skotlex]
  3997. * Memorize will be consumed even on instant cast spells now. [Skotlex]
  3998. * Berserk will end now if hit and remaining hp is less or equal to 100.
  3999. [Skotlex]
  4000. * Guild Aura will be removed on sc-load to prevent Guild Masters from
  4001. getting that bonus from the old implementation. [Skotlex]
  4002. * Added D-Kalck's fix of the TXT -> SQL converter [Playtester]
  4003. 2006/09/10
  4004. * Thanks to KarLaeda, added missing function in @showmobs [Lupus]
  4005. - Script function 'query_sql': In the TXT version it doesn't fill the array
  4006. and always return -1. Added for scripts compatibility. Your scripts
  4007. won't crash in TXT version. They can work it around.
  4008. I suggest we need a function getversion()
  4009. * Updated item_db.sql and mob_db.sql [Playtester]
  4010. 2006/09/09
  4011. * Added a crash protection in case mapfreeblock unlock tries to free a null
  4012. pointer. [Skotlex]
  4013. * Moved perfect_hiding from state to special_state, so that it clears out
  4014. when you remove your pet. [Skotlex]
  4015. * Probably fixed the Taekwon Rest skills. [Skotlex]
  4016. * Fixed a npc-timer memory leak on npc_unload ("[Warning]: ers_obj_destroy:
  4017. X entries missing, continuing destruction. Manager for entries of size
  4018. 16.") [Skotlex]
  4019. 2006/09/08
  4020. * Unified the rest and ganster paradise code into a single function.
  4021. [Skotlex]
  4022. * Moved the Happy State trigger to the regen function, it now triggers at
  4023. the same time SPTIME does. [Skotlex]
  4024. * Cleaned up SG_HATE, hope it works now. [Skotlex]
  4025. * Removed sg_miracle_skill_duration, replaced it with
  4026. sg_miracle_skill_min_duration and sg_miracle_skill_max_duration, to specify
  4027. a range for the duration of the skill. [Skotlex]
  4028. * Added upgrade_svn8675.sql in case, for some reason, your guild table
  4029. still has the emblem_data field as a 'blob' with "NOT NULL" specified.
  4030. [Skotlex]
  4031. * Fixed alliance/opposition making not cancelling out map-server-side when
  4032. the guild already had max number of alliances/oppositions (thanks to k3dt)
  4033. [Skotlex]
  4034. 2006/09/07
  4035. * Fixed SC_BERSERK setting Hp to 100 when dispelled by unnatural means (eg:
  4036. wand of hermod) [Skotlex]
  4037. * Cleaned up the doridori parse clif function. [Skotlex]
  4038. * Merged some of mpeg's work on NJ skills [Skotlex]
  4039. * Removed the Warmth "stacking" code. [Skotlex]
  4040. * Added back the effect of /doridori to skill-SP regen [Skotlex]
  4041. * Implemented a rough version of Angel of the Sun/Moon/Stars, it has a low
  4042. chance of triggering on doridori-boosted SP-regen events. However, it has
  4043. no client-side messages yet (need to add these in) [Skotlex]
  4044. * Added sg_angel_skill_ratio to specify rate at which the Angel skill
  4045. triggers. [Skotlex]
  4046. * Added unit_cancel_combo which takes care of ending a combo time and
  4047. resuming normal attack 'inmediately' [Skotlex]
  4048. * Cleaned up some the SG_HATE code, you can't change hate targets anymore.
  4049. [Skotlex]
  4050. 2006/09/06
  4051. * Fixed the memset in status_calc_pc, corrects some mysterious bugs such as
  4052. item-drop bonuses suddenly not working anymore. [Skotlex]
  4053. * Corrected SC_INCREASEAGI and SC_DECREASEAGI speed-change formula.
  4054. [Skotlex]
  4055. * Fixed Aex Aeterna ending on Soul Breaker's first half. [Skotlex]
  4056. * Applied Orn's modification on speed increases/reductions with increase/
  4057. decrease agi [Toms]
  4058. 2006/09/05
  4059. * Removed setting mob_show_hp, it's been replaced now by mob_show_info,
  4060. which can be used to specify what kind of info should be displayed from a
  4061. mob. Current options are two different formats for Hp display, and current
  4062. level (monster.conf). [Skotlex]
  4063. * Fixed Signum Crucis Def reduction being 10+2*lv% instead of 10+4*lv%
  4064. [Skotlex]
  4065. * Applied the Ultra Mage's suggestion to have the map server strip trailing
  4066. spaces/comments from the config files. It will also now print out when an
  4067. unknown config setting is found. [Skotlex]
  4068. * Fixed status change resistance not being invoked at all for pretty much
  4069. all cases. [Skotlex]
  4070. * Corrected SC_INTRAVISION not starting. [Skotlex]
  4071. * Fixed crash when attempting to read a Label as a string on a script
  4072. (thanks to End of Exam) [Skotlex]
  4073. * Fixed possible crash when changing a chat-room's owner (thanks to End of
  4074. Exam) [Skotlex]
  4075. * Fixed dispell removing SC_NOCHAT [Skotlex]
  4076. * Small fix which should correct skill_attack damaging hidden characters
  4077. when it shouldn't. [Skotlex]
  4078. * Fixed connect_until field being a smallint rather than int in the login
  4079. table (upgrade with upgrade_svn8630.sql) [Skotlex]
  4080. 2006/09/04
  4081. * Fixed crash when using Adaptation during an Encore. [Skotlex]
  4082. * Should have fixed manner being reset to 0 on logout while muted.
  4083. [Skotlex]
  4084. * Removed status_get_sc_tick, duration and chance are now both handled by
  4085. status_get_sc_def (this means status change duration and success rate
  4086. both will always follow the very same formula) [Skotlex]
  4087. * Fixed mob-kill experience getting screwed up when characters who did
  4088. damage die/logout at the moment the mob dies. [Skotlex]
  4089. * Should have fixed "sleep", thanks to Lance for figuring out the error.
  4090. [Skotlex]
  4091. * SC_REFLECTSHIELD will now be passed to devoted characters at cast-time.
  4092. [Skotlex]
  4093. * Added a check to make a mob's level 1 if the read level from the db is
  4094. less than it. [Skotlex]
  4095. * status_calc_misc will now be invoked in status_calc_bl even on the first
  4096. call, since status could have gone up due to skill bonuses. [Skotlex]
  4097. * Moved max HP/SP calculations to before invoking status_calc_misc
  4098. [Skotlex]
  4099. * Simplified distance and check_distance to use "aegis" methods (greater of
  4100. dx/dy = distance), there's a new define in map.h called CIRCULAR_AREA, when
  4101. set, the previous method is used, and "for each in range" calls will also
  4102. check for distances, making most ground skills and battle system use real
  4103. circles instead of squares. [Skotlex]
  4104. 2006/09/03
  4105. * Fixed SC_BERSERK's no regen penalty lasting pretty much forever.
  4106. [Skotlex]
  4107. 2006/09/02
  4108. * SC_REGENERATION's val4 now holds the RGN flag of what is blocked rather
  4109. than blocking all types of regen. [Skotlex]
  4110. * LK_BERSERK will now only block natural regen on state-end. [Skotlex]
  4111. * SC_EXTREMITYFIST/SC_DANCING/SC_EXPLOSIONSPIRITS will only block natural
  4112. sp regen and not skill regen [Skotlex]
  4113. * SC_REGENERATION blocking will be cancelled on logout now. [Skotlex]
  4114. * Corrected SCB_LUK not updating SCB_BATK as well. [Skotlex]
  4115. 2006/09/01
  4116. * Corrected script_commands description of getequipid, it returns -1, not 0
  4117. on fail. [Skotlex]
  4118. * Fixed the mob-id check during pet_db loading, it will also now print when
  4119. a pet is not loaded due to having an invalid mob class specified. [Skotlex]
  4120. * The "delete_timer error/no such timer" report will now print the related function [Toms]
  4121. * The Clearing unused stack report will now print the related NPC [Toms]
  4122. * The duplicate npc report will now print the related file name [Toms]
  4123. * Added config setting "partial_name_scan", which specifies whether @ given
  4124. names should use a partial string lookup or absolute name lookup. Defaults
  4125. to no (gm.conf) [Skotlex]
  4126. * Expanded status_calc_misc so it may also calculate the batk of characters
  4127. as well as their regen data (if they have it) [Skotlex]
  4128. * Fixed a memory leak when using charsave_method:1 [Skotlex]
  4129. * Soul Breaker will now be affected by Lex Aeterna on both parts of the
  4130. attack. [Skotlex]
  4131. * Status changes with no skill and no SCB* data will now go through if they
  4132. have an SI* icon. This should fix SC_MIRACLE [Skotlex]
  4133. * Reverted switching a mob's adelay/amotion when the later is longer than
  4134. the former, now both get updated to amotion. [Skotlex]
  4135. 2006/08/31
  4136. * Moved the intimacy penalty of HFLI_SBR44 and HVAN_EXPLOSION to
  4137. skill_counter_additional_effect [Skotlex]
  4138. * Simplified skillnotok_hom by using an invocation to skillnotok [Skotlex]
  4139. * Hopefully fixed BD_ADAPTATION [Skotlex]
  4140. * Homun won't lose any intimacy on death now. [Skotlex]
  4141. * Homun will be saved together with the master now (as long as the homun is
  4142. active) [Skotlex]
  4143. * Modified the error reporting in map_freeblock_unlock so that when there's
  4144. an error, the reported line number is the file's linenumber plus the
  4145. object's type *10000. This is for debug information to help track down the
  4146. already-freed error. [Skotlex]
  4147. * pc_adopt will now preserve the kid's job/job-level/experience. This means
  4148. that if you adopt a Swordman level 45, it will become a baby-swordman level
  4149. 45, with the exact same exp as before. [Skotlex]
  4150. * Fixed new mob's name not sent to the client when the mob is morphed [Toms]
  4151. * Added setting attack_walk_delay which specifies whether a character
  4152. should (or not) be able to move inmediately after starting a normal attack
  4153. (battle.conf). Defaults to 0 since that's what Aegis uses. [Skotlex]
  4154. * Fixed @summon's delete timer being screwed up. [Skotlex]
  4155. * Cleaned up a bit the summon script command. [Skotlex]
  4156. * Fixed the clone script command's delete-timer being screwed up. [Skotlex]
  4157. 2006/08/30
  4158. * Skill required-state will now only be checked on cast-begin, not
  4159. cast-end. [Skotlex]
  4160. * Added a check in status_calc_pc to prevent player rate adjustments from
  4161. from going below 0. [Skotlex]
  4162. * Removed sending normal-damage packets instead of skill packets for
  4163. splash-damaged skills, since... well, that's how Aegis does it. [Skotlex]
  4164. * Updated HLIF_CHANGE to work as explained by Tharis -> It now adds 30*lv
  4165. vit and 20*lv int, is dispelled on warp, and can-act delay is 5+5*lv
  4166. minutes. Hp/Sp is no longer set to 10 after a forced expiration. [Skotlex]
  4167. * Fixed up char-sql compilation. [Skotlex]
  4168. * Added a message to @clearweather stating when climate changes will
  4169. dispel. [Skotlex]
  4170. * Corrected @hidenpc saying that it's command name was "@npcoff" [Skotlex]
  4171. * Updated itemdb reading on the char-sql server so that it reads both
  4172. item_db and item_db2 files (totally untested yet) [Skotlex]
  4173. 2006/08/29
  4174. * Added printing out whenever the irc-module attempts to connect, to debug
  4175. whether the map-server lag is due to this or not. [Skotlex]
  4176. * Mobs will now always chase players using hard-path seeks. [Skotlex]
  4177. * monster_ai&1 now only signals whether mobs should update their target
  4178. cell while chasing more frequently (rather than being state-driven like
  4179. Aegis) [Skotlex]
  4180. * Changed the defaults of view_range_rate and chase_range_rate to 120 to
  4181. aproximate better Aegis's view ranges (which are square areas and not
  4182. circles) [Skotlex]
  4183. * Applied Mpeg's work on GS [Toms]
  4184. ( http://gpegon.free.fr/ea/gunslinger_08-29-06_mpeg.txt )
  4185. * Fixed a syntax error in @showmobs [Toms]
  4186. * Added @showmobs. It shows selected mobs on your mini-map (excluding
  4187. mini-bosses & MVP) thanks to KarLaeda for the command [Lupus]
  4188. 2006/08/28
  4189. * Modified the dancing code and Moonlit Petals in particular, so that it is
  4190. treated as an ensemble like any other, it will just knockback people when
  4191. they step into it. [Skotlex]
  4192. * The memory leak reports will now print out in the logs also the revision
  4193. they belong to. [Skotlex]
  4194. * Cleaned up the scriptable npc-shop code, it should be crash-proof now.
  4195. [Skotlex]
  4196. * Added TK level-up buffs to SG too, and extended them to 10 min [DracoRPG]
  4197. * Added "Barefeet Mastery" effect to TK_RUN (thanks Tharis for both) [DracoRPG]
  4198. * Changed the produce_db format, now there's a skill-lv column right after
  4199. the skill-id column to specify required skill-level to craft this item.
  4200. [Skotlex]
  4201. * Modified the skill produce_db code to take into account the new skill-lv
  4202. requirement. [Skotlex]
  4203. * Fixed exp bonuses applying twice for the job-exp [Skotlex]
  4204. * @reloadbattleconf will now also update the ragsrvinfo table on the
  4205. char-server. [Skotlex]
  4206. * Fixed homun hp/sp growth rates stacking with HP/SP passive increasing
  4207. skills. [Skotlex]
  4208. 2006/08/27
  4209. * Fixed undefined reference to 'malloc_set' in log.c [Toms]
  4210. * Updated svn-revision reading, now it can read the new svn file system [Toms]
  4211. * Fixed a bug with homunc which could spawn on a non-walkable cell [Toms]
  4212. 2006/08/26
  4213. * Optional macro MEMSET_TURBO for faster low-level memory initializations. [Lance]
  4214. * Small bug fix in read_homunculus_expdb (a warning was always displayed) [Toms]
  4215. * Small adjustment on the mob_ai code which could fix mobs not chasing you
  4216. if you hit them from the maximum possible diagonal distance. [Skotlex]
  4217. 2006/08/25
  4218. * Cleaned some the skill unit removal added flag so that it signals whether
  4219. the skill is being force-removed, or it has "naturally expired". [Skotlex]
  4220. * The following skills will display a normal attack animation now:
  4221. NPC_WATERATTACK, NPC_GROUNDATTACK, NPC_FIREATTACK, NPC_WINDATTACK,
  4222. NPC_POISONATTACK, NPC_HOLYATTACK, NPC_DARKNESSATTACK,
  4223. NPC_TELEKINESISATTACK, NPC_SPLASHATTACK
  4224. * Skills that require a weapon and consume spirit spheres will no longer be
  4225. auto-tagged to require ammo. [Skotlex]
  4226. * Now MISC skills with delay 0 will also use the attack delay (if the skill
  4227. is tagged to do damage) [Skotlex]
  4228. * Added script commands roclass/eaclass to enable scripts to access eA's
  4229. job format. Read script_commands.txt and ea_job_system.txt for a more
  4230. complete explanation of how this job system works. [Skotlex]
  4231. * Added a flag to skill_delunitgroup, skill_delunit & skill_unit_onlimit.
  4232. If 1 is passed, it will avoid UNT_WARP_ACTIVE to be transformed in
  4233. UNT_WARP_WAITING and will destroy it. [Toms]
  4234. ( To avoid such crash : http://www.eathena.ws/board/index.php?showtopic=114102
  4235. when the code need an empty slot and the oldest one is UNT_WARP_ACTIVE )
  4236. 2006/08/24
  4237. * Little cleanup on homunc's code [Toms]
  4238. * Modified @reloadmobdb & @reloadskilldb to reload homunc's db too [Toms]
  4239. * Now when a mob's adelay is set to be less than the amotion, both values
  4240. will be swapped (this is an attempt to understand how those mobs actually
  4241. work on aegis) [Skotlex]
  4242. * script command "isrefine" will no longer return always false for equip
  4243. positions above 6 (this has not been needed since the addition of the
  4244. refine column to tbe item_db many months ago) [Skotlex]
  4245. * Added NPC_CRITICALSLASH to the list of skills that display as a normal
  4246. attack. [Skotlex]
  4247. * Reverted the previous change, changed the pet capture code to try to
  4248. capture a mob based on their view class rather than actual class.
  4249. [Skotlex]
  4250. * Fixed the md->class_ variable not being updated when a mob's class is
  4251. changed. [Skotlex]
  4252. * Added setting clear_skills_on_warp to specify when a character's
  4253. land-based skills are deleted when the caster changes maps. Defaults to all
  4254. types. [Skotlex]
  4255. * Should have fixed Brandish Spear not passing the flag to skill_attack,
  4256. causing it to do miserable damage. [Skotlex]
  4257. * Warp Portal will no longer be removed when caster steps through it (this
  4258. is left to the new clear_skills_on_warp setting) [Skotlex]
  4259. * Cleaned up status_percent_change to switch equations when the target has
  4260. high hp to prevent overflows, also it will directly take hp/maxhp when a
  4261. rate of 100 or higher is passed to prevent calculations. [Skotlex]
  4262. * Traps and Land Elemental fields are no longer automatically removed on
  4263. map change (handled now by clear_skills_on_warp) [Skotlex]
  4264. * traps_setting &2 no longer does anything (handled now by blah blah)
  4265. [Skotlex]
  4266. * Applied some change from mpeg on Ninja Skills [Toms]
  4267. * Put HVAN_Explosion based on max_hp instead of current hp [Toms]
  4268. 2006/08/23
  4269. * Fixed mob_clone_spawn completely ignoring the mode variable. [Skotlex]
  4270. * Fixed Energy Coat reducing and consuming more than it should when you
  4271. have 100% SP [Skotlex]
  4272. * Cleaned up getmapxy script function, also added support for type 4 so
  4273. that it returns a player's homunculus position if such exists. [Skotlex]
  4274. * SC_ARMOR_ELEMENT looks like gone away from status_change_start since ... rev 6791.
  4275. Try to reimplement it. [Toms]
  4276. * Fixed HVAN_EXPLOSION [Skotlex]
  4277. * Frost Nova won't display a nodamage skill packet (still need to sort out
  4278. a way to fix the splash damaged packets) [Skotlex]
  4279. * Fixed a possible SIGSEGV on buildin_maprespawnguildid if the map is unknown [Toms]
  4280. * Added debug on "Inifity loop" to know which script is making this loop [Toms]
  4281. 2006/08/22
  4282. * More fixes to the splash code. Kamaitachi and Sharpshooting should
  4283. display correctly now. [Skotlex]
  4284. * Fixed a crash on the mobspawn script command. [Skotlex]
  4285. * Made SC_FLEET increase batk as well as watk. [Skotlex]
  4286. * Fixed gcc warning [Toms]
  4287. * Fixed AM_REST not closing the homunc status window [Toms]
  4288. * Fixed SC_NEN according to Mpeg [Toms]
  4289. * Added a ShowStatus("Terminating...\n") on login-server_sql [Toms]
  4290. * Some corrections to make Tatami Gaeshi work correctly. [Skotlex]
  4291. * Fixed SBR44 doing 100% more damage than it should. [Skotlex]
  4292. * Some more work on the splash skill code. Now splash-damaged enemies
  4293. should show no animation at all, just the damage-number, while only the
  4294. targetted character should still display the full skill animation.
  4295. [Skotlex]
  4296. * Modified the homun-txt file-save format to separate the name from the
  4297. rest of fields with tabs (like character saving does), this may fix homun
  4298. save/loading when using non-latin characters on the name, but be warned
  4299. that it also means the previous homun-data files are lost! (unless you
  4300. replace the comma before the start of a name with a tab) [Skotlex]
  4301. * getnameditem will now also work on stackable items [Skotlex]
  4302. * Corrected battle_calc_weapon_attack so that all skills ignore your
  4303. left-hand weapon, and that the Katar's double-attack damage bonus for the
  4304. offhand damage applies ONLY on normal attacks. [Skotlex]
  4305. * Fixed Resurrect Homunculus's % to 20*lv% [Skotlex]
  4306. * Added SQL update which should remove \' from guild names [Toms]
  4307. * Added option to disable character deletion of certain levels [Lupus]
  4308. check char_athena.conf for this option format
  4309. 2006/08/21
  4310. * Some more cleaning up of the splash skill code. Now the passed hit value
  4311. for the splash targetted mobs is 9 instead of 5, this allows multi-hitting
  4312. splash skills to display the number of hits correctly. [Skotlex]
  4313. * Fixed call homunc bug when the homunc was vapo and the master has change
  4314. of map [Toms]
  4315. * Fixed SQL-Guild Creation, guild name was escaped 2 times [Toms]
  4316. * Some cleaning of the splash skills. Updated skill-attack to enable again
  4317. passing of flag 0xF000 which signals that the skill level sent to the
  4318. client should be -1 (no skill name shouted). Should (hopefully) clear/clean
  4319. up a bunch of splash damage skill animation-related packets. [Skotlex]
  4320. * Homun saving won't cap hp/sp to max hp/sp since a homun can have higher
  4321. hp/sp than the one stated in the db (due to skill bonuses or status
  4322. changes) [Skotlex]
  4323. * Cleaned up some more the regen_data structure, so that
  4324. skill/sitting-skill related data is optional (since only players have it).
  4325. [Skotlex]
  4326. * Fixed AM_RESURRECTION, thanks to RockmanEXE for %HP values [Toms]
  4327. * Fixed HAMI_CASTLE, HAMI_DEFENCE & HLIF_AVOID [Toms]
  4328. * Adjusted Glittering's success rate to 20+10*lv% [Skotlex]
  4329. * Corrected isequipped() so that cards will not be tagged as "used up"
  4330. unless all the specified items were found. [Skotlex]
  4331. * Fixed a confusion in skill_attack using the src instead of dsrc for some
  4332. calls, which was causing some problems with the KAITE check from AoE
  4333. spells. [Skotlex]
  4334. * Fixed ASC_BREAKER's misc damage part not having the ignore-element flag
  4335. set. [Skotlex]
  4336. * Moved homunc battle conf from misc.conf to homunc.conf [Toms]
  4337. * Some cleaning in skill.c in regard to homun skills. [Skotlex]
  4338. * Madness Canceller now stacks with other aspd bonuses, just like Berserk
  4339. does. [Skotlex]
  4340. * Removed config setting "muting_players", and expanded the manner_system
  4341. config to specify how having negative manner (mute) affects a player (see
  4342. battle/misc.conf). [Skotlex]
  4343. * Expanded the pk_mode setting from no/yes to 0/1/2. 1 is normal pk_mode,
  4344. if 2 is used, it makes killing players give you a loss of 5 manner points.
  4345. [Skotlex]
  4346. * Fixed WS_WEAPONREFINE always failing when at less than job 50. [Skotlex]
  4347. * Fixed the Autosave routine not working when there's only one player
  4348. online. [Skotlex]
  4349. * Disabled command @rain since the client no longer supports it anyway.
  4350. [Skotlex]
  4351. * Fixed delitem not checking for the first slot's card, also optimized it
  4352. so that it doesn't checks on the other slots. [Skotlex]
  4353. 2006/08/20
  4354. * Added a check during mob_db loading so that the six basic stats, max hp
  4355. and max sp are never below 1, as this could cause crashes when using
  4356. certain skills. [Skotlex]
  4357. * Gravitation now only blocks the caster from using potions. [Skotlex]
  4358. * Corrected Madness Canceller letting you walk while the effect lasts.
  4359. [Skotlex]
  4360. * Splitted yet again ASC_BREAKER into a two-part attack. This time the
  4361. int-based damage is a MISC type attack, and gets reduced by skills as such.
  4362. [Skotlex]
  4363. * Fixed "int format, long unsigned int arg" warning [Toms]
  4364. * Fixed a warning when using cap_value(x, 0, x) on an unsigned value [Toms]
  4365. * Added clif_skill_fail for homunc to skill_castend_id & skill_castend_pos [Toms]
  4366. * Fixed homunc skill 8016 not considered as homunc skill [Toms]
  4367. * @useskill will now cause your homun to use the skill instead of you if
  4368. the skill is a Homun skill and you have an active homunculus. [Skotlex]
  4369. * Reduced the Success Chance of GS_FLING to 10+10*lv% (Playtester told me
  4370. that Vicious told him the chance was much lower like that) [Skotlex]
  4371. * Fixed some Homunc issues with HR servers (capping some values) [Toms]
  4372. * Added @hominfo command to obtain real values (not capped ones) [Toms]
  4373. 2006/08/19
  4374. * Fixed @homlvup bug [Toms]
  4375. * Fixed AM_REST & AM_RESU consumming SP if they fail [Toms]
  4376. * Fixed homunc spawning bug (they was spawned after an AM_REST + master warp for example)[Toms]
  4377. * Fixed GS_GROUNDDRIFT [Skotlex]
  4378. * Increased chance of GS_DESPERADO connecting to 20% [Skotlex]
  4379. * Fixed battle_calc_base_damage being called for the left hand even for
  4380. non-dual-wielding attacks. left-hand damage was being set to 0 later
  4381. anyway, so no exploit existed. [Skotlex]
  4382. * Moved the weapon_atk_rate bonus to battle_calc_base_damage so that it'll
  4383. apply correctly when dual-wielding different types of weapons. [Skotlex]
  4384. * Fixed job-mask 0x100000 in the item_db enabling Dancers/Bards to use the
  4385. items (0x80000 should be for them and 0x100000 should be currently unused)
  4386. [Skotlex]
  4387. * Fixed a possible sigsegv when deleting lif under Mental Change [Toms]
  4388. * Fixed HAMI_CASTLE [Toms]
  4389. * Fixed HLIF_CHANGE [Toms]
  4390. * Updated HLIF_BRAIN skill [Toms]
  4391. * Fixed homunculus intimacy on feeding [Toms]
  4392. * Added homunculus_friendly_rate battle config [Toms]
  4393. * Some compilation warnings fixed [Toms]
  4394. * Added skill's required item check on homunc skills [Toms]
  4395. * Add Condensed Red Potion as a required item for HLIF_HEAL [Toms]
  4396. 2006/08/18
  4397. * Little code cleanup on last fix [Toms]
  4398. * Fixed HLIF_HEAL healing the homunc instead of the master [Toms]
  4399. * Fixed HLIF_AVOID not increasing walk speed of master [Toms]
  4400. * Fixed the atk_rate (Turtle General Card) bonus not working on
  4401. dual-wielders. [Skotlex]
  4402. * Made HLIF_HEAL a self skill that auto-selects target to caster's master.
  4403. [Skotlex]
  4404. * Implemented SC_BLOODLUST and SC_CHANGE, cleaned up HLIF_CHANGE [Skotlex]
  4405. * Applied a correction to HVAN_EXPLOSION [Skotlex]
  4406. * Fixed Homun ASPD calculation being able to underflow and give you min
  4407. speed. [Skotlex]
  4408. * Added monster_ai&128 to make aggressive mobs ignore that behaviour of
  4409. always picking Homun targets above player targets regardless of who is
  4410. closer. [Skotlex]
  4411. * Fixed homun info packet being unable to display HP/SP correctly once the
  4412. values are above 32k. [Skotlex]
  4413. * Applied Mpeg's work on ninja [Toms]
  4414. * Fixed @homlvup [Toms]
  4415. * Added guild_aura (skill.conf) setting so you can specify when it works
  4416. and if it works on the guild-master itself. Defaults to working all the
  4417. time on everyone except GM. [Skotlex]
  4418. * Little code cleanup [Toms]
  4419. * Cleaned merc_hom_evolution to avoid free'ing/realloc'ing [Toms]
  4420. * Fixed "args of aFree is freed pointer" on Homunc deletion [Toms]
  4421. * Changed unit_free so that it receives which cleartype should be used when
  4422. the character is still on a map. Used this on status_damage so that mobs
  4423. that do not respawn when killed will properly display the death animation.
  4424. [Skotlex]
  4425. * Fixed Energy Coat consuming 10x less SP per hit than it should.
  4426. * Fixed signed/unsigned comparison issues with natural heal system [Toms]
  4427. 2006/08/17
  4428. * Vaporize will no fail when the homun is dead. [Skotlex]
  4429. * Corrected thhe double free issue that occurs when a homun dies and has no
  4430. intimacy left. [Skotlex]
  4431. * Fixed the charsave_method:1 saving/loading exp as signed ints rather than
  4432. unsigned. [Skotlex]
  4433. * Applied use of structure regen_data for a unified regen module. Natural
  4434. and skill-heal is handled by this structure, while sitting-skill-heal is
  4435. still player dependant (mostly because the other object types can't sit)
  4436. [Skotlex]
  4437. * Cleaned up the status calc code for homun by moving it from
  4438. status_calc_bl_sub_homun to status_calc_homun (where it should had always
  4439. been) [Skotlex]
  4440. * Updated SQL files [Playtester]
  4441. * Corrected map_random_dir algorithm [Toms]
  4442. * Fixed homunc natural heal and little code cleanup [Toms]
  4443. * Changed AM_CALLHOMUN Skill to spawn the homunc at 1 cell from his master [Toms]
  4444. 2006/08/16
  4445. * Fixed being unable to recast Adrenaline Rush to reset the duration
  4446. timers. [Skotlex]
  4447. * Cleaned up skill_get_range2 so that using range 0 for non-self skills
  4448. uses the caster's attack range. [Skotlex]
  4449. * Fixed AM_CALLHOMUN checking for an embryo when you have a vaporized
  4450. homun. [Skotlex]
  4451. * Spirit of Wizard will now consume an item 7321 each time it blocks
  4452. reflected magic. [Skotlex]
  4453. * Added script command jobname, retrieves a given's class name as per the
  4454. appropiate msg_athena.txt entry (this command should had been added years
  4455. ago) [Skotlex]
  4456. * Fixed null-pointer crash on Evolving a homunculus. [Skotlex]
  4457. * @produce now can make any kind of equipment [Skotlex]
  4458. * Made HLIF_AVOID and HAMI_DEFENCE cause the status change on both caster
  4459. and target. [Skotlex]
  4460. * AM_REST shouldn't be checking for a range now (since it's a self skill)
  4461. [Skotlex]
  4462. * Updated mob_ai so that mobs will use their rude-attacked skill when they
  4463. can't reach their current target. [Skotlex]
  4464. * Fixed the default txt config making pets be saved to the homun file
  4465. instead of to the pet file. [Skotlex]
  4466. * Now arrow-consuming skills where your main weapon is a whip or musical
  4467. instrument WILL count as arrow-type attacks, using the atk of the arrow and
  4468. all related bonuses. [Skotlex]
  4469. * Fixed some homun timer initialization code. [Skotlex]
  4470. 2006/08/15
  4471. * Applied multiple fixes which should take care of making homun save/load
  4472. work on TXT now. [Skotlex]
  4473. * Added Gatling Fever's batk bonus. [Skotlex]
  4474. * Some cleaning in status_damage which should prevent trying to free
  4475. already free'd pointers when unit_remove_map invokes unit_free (when
  4476. status_damage was going to invoke unit_free anyway) [Skotlex]
  4477. * Delete homunc's skills from sql when the homunc is destroyed [Toms]
  4478. * Homunc Timers should be disabled when the homunc is vaporized or dead an re-enabled on call/resu [Toms]
  4479. * Updated vc-project files to compile with the new int_homun files.
  4480. [Skotlex]
  4481. * Hopefully fixed the crash when using charsave_method = 1 [Skotlex]
  4482. * Moved s_pet structure from map_session_data to pet_data, this enabled the
  4483. removal of a few redundant values in the pet_data structure (name, class,
  4484. equip) [Skotlex]
  4485. * Cleaned up some of the pet related @/# commands, same for some script
  4486. commands. [Skotlex]
  4487. * Pet offensive skills who's inf value is self will be casted on the pet
  4488. now (for stuff like Grand Cross) [Skotlex]
  4489. * Added homun saving/loading support to char-TXT. Note that this is
  4490. completely untested, so it may be as good as broken. [Skotlex]
  4491. * Added a crash-fix on status_calc_bl_sub_homun to abort in case the homun
  4492. has no master (need to clean up this function later) [Skotlex]
  4493. * Tested char-txt load/save, it seems to be working fine, but you should
  4494. STILL backup, as I only launched the server (read old character format),
  4495. closed it down (saved into the new format) and relaunch it (read the new
  4496. format) and it didn't give problems (but there's still the possibility of
  4497. some field being read in the incorrect offset or such). [Skotlex]
  4498. * Updated the char save structure for char-TXT servers so that the homun id
  4499. will be saved, now also the map info (last point, save point, memo maps)
  4500. are now saved using the mapindex rather than the string. BACKUP BEFORE
  4501. UPDATING since this code isn't yet tested. [Skotlex]
  4502. * Cleaned up a bit the char-saving code, added overflow crash prevention in
  4503. case there are more memos than the max-allowed saved. [Skotlex]
  4504. * AM_CALLHOMUN can now be used to recall vaporized homuns. [Skotlex]
  4505. * AM_RESURRECTHOMUN will now fail when the homun is vaporized. [Skotlex]
  4506. * Added SCB_DYE which marks which status-changes need a forced cloth dye
  4507. change to 0 due to sprite issues. Currently only NJ_BUNSINJYUTSU's status
  4508. uses it. [Skotlex]
  4509. * Asura Strike now moves you to the target on fail always (unless the
  4510. target does not exists or is in another map or there's a obstacle on the
  4511. way) [Skotlex]
  4512. * Corrected skill_attack_area hitting dead characters on it's splash range.
  4513. [Skotlex]
  4514. * Swapped the values for OPTION_XMAS and OPTION_FLYING. This should enable
  4515. SG to show the fly animation again, even if sometimes others will see him
  4516. as Santa. As for xmas cloth, it shouldn't make much of a difference since
  4517. the view class is changed to christmas anyway. [Skotlex]
  4518. * Made AM_CALLHOMUN and AM_RESURRECTHOMUN be like the wedding skills, where
  4519. they automatically pick a spot around you. [Skotlex]
  4520. * Cleaned up some the AM_RESURRECTHOMUN code. Hopefully it works now.
  4521. [Skotlex]
  4522. * Cleaned up some the hom evolution code. [Skotlex]
  4523. * Fixed SIGSEGV with homunc save [Toms]
  4524. 2006/08/14
  4525. * Removed support for negative autosave intervals, instead added a
  4526. minsave_interval setting which specifies which is the minimum time between
  4527. character saves. Default to 100ms (map_athena.conf). [Skotlex]
  4528. * Sacrifice no longer shows damage to self. [Skotlex]
  4529. * When Asura fails, the skill display will still come off. [Skotlex]
  4530. * Lots of cleaning of the Homun-code. Perhaps the crashes as of late will
  4531. be fixed now (reusing AM_CALLHOMUN seems to be the cause of them)
  4532. [Skotlex]
  4533. * Increased Run's walk speed bonus to 25->50% [Skotlex]
  4534. * Modified emergency_call setting to allow for more specific configuration
  4535. (woe/non-woe, gvg-grounds/non-gvg-grounds, disable from nowarpto maps), see
  4536. skill.conf for details. [Skotlex]
  4537. * Fixed script engine allowing scripts to set a player's zeny to negative
  4538. values. [Skotlex]
  4539. * Fixed setting hide_woe_damage making even "miss" attacks seem to connect.
  4540. [Skotlex]
  4541. * When readjusting the fame-list, the last entry's id is also reset (may
  4542. fix characters appearing more than once on it?) [Skotlex]
  4543. 2006/08/13
  4544. * Removed @itemcheck as it was totally pointless. [Skotlex]
  4545. * Corrected states killer/killable being easily dispellable. [Skotlex]
  4546. * Fixed the totally wrong text messages being used for @killer/@killable
  4547. related atcommands, added appropiate entries to msg_athena [Skotlex]
  4548. * Magic and Misc attacks will now get type "flee" when they do less than 1
  4549. damage, this blocks them from causing additional status effects when they
  4550. are blocked. [Skotlex]
  4551. * Cleaned up a bit the Basilica code, it should now properly end when you
  4552. walk. [Skotlex]
  4553. * Fixed some logs not working when you enabled all logs. [Skotlex]
  4554. * Corrected unmute being a level 60 command by default (should be 80)
  4555. [Skotlex]
  4556. * Corrected the mapif_parse_PartyChangeMap function to correctly update
  4557. level-range when someone logs on/off, fixes being unable to set even-share
  4558. on once it's been broken even when the characters out of range logoff.
  4559. [Skotlex]
  4560. 2006/08/11
  4561. * Fixed Kagebunshin no Jutsu crashing for dyes > 0; though this solution
  4562. might seem hackish (changing clothes colour to 0 when it starts while
  4563. storing original colour back in val4, restoring original dye upon
  4564. end), I believe this is the best way there currently is to solve
  4565. the issue. [blackhole89]
  4566. * Fixed Dancers/Bards being able to use normal attacks while performing.
  4567. [Skotlex]
  4568. 2006/08/10
  4569. * Fixed the item group bonus not working. [Skotlex]
  4570. * Fixed songs/dances always being considered overlapped with themselves.
  4571. [Skotlex]
  4572. * Added some additional song/dance overlap code that should correctly
  4573. change the effect of songs/dances when they overlap. [Skotlex]
  4574. * Added a check so that the status-change packet is always send to self
  4575. when the inflicted char is a player disguised. [Skotlex]
  4576. * Code cleanup on homunc, they stay in memory until player disconnect or
  4577. homunc destruction [Toms]
  4578. * Corrected Advanced Jobs HP bonus from 30% -> 25% [Skotlex]
  4579. * Hopefully fixed family-party-even-share not breaking when a member logs
  4580. out. [Skotlex]
  4581. * Should have fixed the login-sql crash when passed user-name's length is
  4582. beyond the limit. [Skotlex]
  4583. * Changed setting attack_attr_none to affect all neutral-element attacks.
  4584. Basicly, this setting is now used to determine who can hit for full damage
  4585. always when using neutral-attacks (defaults to non-players) [Skotlex]
  4586. * Fixed two instances in the login-sql server where the ip in the log-login
  4587. table was being stored backwards. [Skotlex]
  4588. * Now when a skill's range is 0 and the skill is NOT casted on self, it
  4589. will take the basic weapon's range (without Vulture/Snake Eye bonus).
  4590. [Skotlex]
  4591. * Now when a duration is not specified, sc_start/sc_start2/sc_start4 will
  4592. try to guess the duration by extracting it from the skill_db (it uses
  4593. skill_get_time on whatever skill is associated to the status-change using
  4594. val1 as skill-level) [Skotlex]
  4595. * Some cleanups on trade_tradeaccept to prevent packets being resent when
  4596. they shouldn't. [Skotlex]
  4597. * Fixed syntax error in 'guild' create table statement [Toms]
  4598. 2006/08/09
  4599. * Fixed Asura not wasting all SP away when it fails on cast-end. [Skotlex]
  4600. * Fixed homunc skill up bug [Toms]
  4601. * Adjusted some the dance/song/encore code so that the source of an
  4602. ensemble will always get checked, so that walking out of an ensemble skill
  4603. should make it end now. However, it's likely this is not completely solved
  4604. yet and will require further tweaking. [Skotlex]
  4605. * Added crash protection to the mob_db txt reading when the mob_db file has
  4606. lines with insufficient number of columns. [Skotlex]
  4607. * Moved the class-change code from battle_calc_weapon_attack to
  4608. skill_additional_effect. Alchemist summons now also have a chance of
  4609. triggering polymorphing. [Skotlex]
  4610. * Removed the code which was auto-setting attacks that do no damage to type
  4611. FLEE, since that was disabling status-effects which should incur even when
  4612. the damage was blocked. [Skotlex]
  4613. * Trade requests will now fail when either character is unable to act
  4614. (character in storage, vending, interacting with an npc, petrified, etc)
  4615. [Skotlex]
  4616. * Heard skotlex voice, changed all msg_table[] into msg_txt() in atcommand.c [Toms]
  4617. 2006/08/08
  4618. * Fixed the char-server not invoking the party_calc_state function when the
  4619. third party-member is added to a party, hence failing to check for families
  4620. and disabling even share from them unless all three relog first (state is
  4621. correctly calculated when party is first loaded). [Skotlex]
  4622. * Crash-protections in the mail-checking function. [Skotlex]
  4623. * Some additional parenthesis on equipment check in pc_equipitem, seems to
  4624. have fixed the mid/lower headgear-sprites not showing up. [Skotlex]
  4625. * Added back missing state set to prevent Ankle-Snare from being retrieved
  4626. after the target dies. [Skotlex]
  4627. * Fixed compilation warning [Toms]
  4628. * Added a check to handle Spider Web as a targetted skill. If there's more
  4629. than one character on the targetted cell, a different one may get trapped,
  4630. but it will mostly do as it is now. [Skotlex]
  4631. * Added check to Asura so that it will move you to the target when it fails
  4632. ONLY when you can cast the skill on the target (not stunned, asleep, target
  4633. not hidden, etc) [Skotlex]
  4634. * Changed the map_freeblock_unlock code so that when there's an "already
  4635. free'd pointer" error, the memory manager will print out the invoking
  4636. function rather than map_freeblock_unlock, this should help fix it up next
  4637. time it happens and is reported. [Skotlex]
  4638. * Casting Kaensin will clear out Suiton and viceversa now. [Skotlex]
  4639. * Fixed drop-rates (@whodrops) getting duplicates when you use @reloadmobdb
  4640. [Skotlex]
  4641. * Fixed unjailing not sending characters to Prontera. [Skotlex]
  4642. * Fixed yet again AS_SPLASHER doing full damage on all characters. Now you
  4643. can use the NK split damage value in the skill_db if you want damage
  4644. divided by the amount of targets rather than by 2. [Skotlex]
  4645. * Fixed crash on the battle_drain functions. [Skotlex]
  4646. * Cleaned up HAMI_CASTLE, HLIF_AVOID, HAMI_DEFENCE so that it's usable by
  4647. other types of objects other than Homunculus. [Skotlex]
  4648. * Cleaned up the Asura Strike code so that the SP/Spheres/States is not
  4649. consumed when the skill fails due to Fog of Wall. [Skotlex]
  4650. * When a negative delay for a skill is specified, this delay is now added
  4651. on top of the character's amotion rather than adelay [Skotlex]
  4652. * Modified main.sql to make the guild table allow NULL on the emblem data.
  4653. [Skotlex]
  4654. * Added file conf-tmpl/Changelog.txt to log config changes. [Skotlex]
  4655. 2006/08/07
  4656. * Fixed the login-sql server replying to the change-sex packet with the
  4657. wrong gender, causing the char-server to screw-up job-change updates.
  4658. [Skotlex]
  4659. * Cleaned up the apparent mess that is pc_skill. Hopefully it SHOULD work as
  4660. described on the docs now, this should also fix adopting not correctly
  4661. giving the family-related skills. The flag value of skill should be: 0 to
  4662. set the skill (if skill level is 0, this removes a learned skill), 1 grants
  4663. the skill as an item bonus which is temporary, and 2 will add a skill bonus
  4664. like 1, except the skill level adds up to whatever level already known of
  4665. that skill. [Skotlex]
  4666. * Fixed EQP_WEAPON related code messing up with both weapon AND shield.
  4667. [Skotlex]
  4668. * Cleaned up the Asura code so that when the skill fails your
  4669. SP/Spheres/Fury are all taken away always, as well as moving you next to
  4670. the target (as long as the target still exists within a reachable path from
  4671. your position) [Skotlex]
  4672. * SC_GUILDAURA is now removed on logout. [Skotlex]
  4673. * Fixed Venom Splasher doing half-damage instead of full-damage to the
  4674. "exploding" character. [Skotlex]
  4675. * Hopefully fixed the party_even_share cast-overflow bug as reported by
  4676. Adobe. [Skotlex]
  4677. * Standarized the autosave interval setting to be always in seconds
  4678. regardless of type. [Skotlex]
  4679. * Moved the "bosses can't be knockback" logic from battle_calc_* functions
  4680. and placed it on skill_blown. [Skotlex]
  4681. * Some parenthesis cleanup before invoking battle_calc_base_damage, could
  4682. be fixing the current issue with arrow attacks not adding the arrow damage.
  4683. [Skotlex]
  4684. * Fixed the map_search_freecell error which was making mobs fail to
  4685. respawn. [Skotlex]
  4686. * Added in Lupus's suggestion of not making multi-slot headgears set all
  4687. slot view-ids, which supposedly causes the client to re-draw the headgear
  4688. multiple times on characters. [Skotlex]
  4689. * Fixed HT_BLITZBEAT hitting neutral characters when it auto-triggers.
  4690. [Skotlex]
  4691. * Simplified the Tatami Gaeshi code. [Skotlex]
  4692. * Fixed AS_SPLASHER doing full damage on everyone except targetted char
  4693. instead of the other way around. [Skotlex]
  4694. * Fixed KAENSIN clearing out SUITON cells and viceversa. [Skotlex]
  4695. * The spawn area is now seen as range rather than absolute for mob spawn
  4696. lines. This means that x,y,10,10 will spawn the mob on a 21x21 grid around
  4697. the given x,y point. [Skotlex]
  4698. * Some clean up of the mob-spawn code. Now you can specify negative areas,
  4699. so that a spawn location such as 100,150,0,-1 will spawn a mob always on
  4700. x=100, but any Y value of the current map. [Skotlex]
  4701. * Reflected damage will now also have a chance of draining hp/sp. [Skotlex]
  4702. * Adjusted the order in which option/sc change packets are sent to match
  4703. Aegis's [Skotlex]
  4704. * Added script command getpartyleader through which you can retrieve
  4705. various information of a party's leader. See doc/script_commands.txt for
  4706. further information. [Skotlex]
  4707. * mpeg's Ninja work [Vicious]
  4708. * Adjusted Battle_check_target so that alchemist summoned mobs are
  4709. targetted by everyone as long as 1. The top-level master is a player and 2.
  4710. the actual attacker is not a mob-type. [Skotlex]
  4711. * Added config force_random_spawn which overrides the spawn-files defined
  4712. coordinates to make all mobs always spawn randomly on the map. [Skotlex]
  4713. * SC_SPEEDUP0 is no longer dispellable by SA_DISPEL [Skotlex]
  4714. 2006/08/06
  4715. * Updated item_db.sql & mob_db.sql to latest. [Toms]
  4716. * Little fixes on homunc (hp/sp are now saved and init stats changed) [Toms]
  4717. 2006/08/04
  4718. * Added a commented piece of code at the end of clif_parse_LoadEndAck which
  4719. will update your direction to wherever you were facing before warping.
  4720. Should this be the default? Nearby people DO see you facing on the same
  4721. direction before warping, it's only your client that will always see you
  4722. facing north on spawn (the spawn packet does contain direction
  4723. information). [Skotlex]
  4724. * Updated @mobinfo to display slots in the drop information. [Skotlex]
  4725. * Fixed flag.elefix not being respected in battle_calc_misc_damage.
  4726. [Skotlex]
  4727. * Some code cleanups in battle_calc_damage. [Skotlex]
  4728. * Modified bAddItemHealRate so it can receive both item-id and item-group
  4729. values (since the first item-id is +500, there's no risk of mixing them
  4730. up). [Skotlex]
  4731. * Removed settings enemy_critical_rate, homun_critical_rate. Added settings
  4732. enable_critical (defaults to specify only players), mob_critical_rate and
  4733. critical_rate. The last applies to all non-mobs and non-players
  4734. (battle/battle.conf) [Skotlex]
  4735. * Removed settings mob_npc_warp, mob_warpportal. Replaced with setting
  4736. mob_warp which specifies which types of warp can a mob step into
  4737. (battle/monster.conf) [Skotlex]
  4738. * Enabled Mastery damage on Soul Breaker again, moved adv katar mastery out
  4739. of the mastery function so that it may apply to all skills except Soul
  4740. Breaker. [Skotlex]
  4741. * Changed name of the setting log_pick to log_filter since that's what it
  4742. does now. [Skotlex]
  4743. * Modified enable_logs so that instead of a 0/1 setting, you can specify
  4744. which kind of events to log (so you can use a combination), see log_athena
  4745. for the bitmask configuration. [Skotlex]
  4746. * Cleaned a bit the contents of log_athena.conf
  4747. * Hide/Chasewalk will again stop screaming skill name. [Skotlex]
  4748. * Soul Breaker will no longer receive Mastery damage. [Skotlex]
  4749. * Fixed warning:'type' might be used uninitialized in this function [Toms]
  4750. 2006/08/03
  4751. * Added a check to skip the experience share of characters who are dead or
  4752. on another map. [Skotlex]
  4753. * Reverted the previous change, chasewalk has no icon, only the str-bonus
  4754. has that fist icon now. [Skotlex]
  4755. * Allowed chase-walk to display a skill animation when using it. [Skotlex]
  4756. * Readjusted the Chasewalk icon to be as it should be. [Skotlex]
  4757. * GS_DESPERADO is now a short-range attack skill. [Skotlex]
  4758. * Changed the Battle-Orders icon to be the Strength Up icon (for
  4759. Chasewalk's str bonus). [Skotlex]
  4760. * Fixed using the right-hand weapon's size modifiers regardless of which
  4761. weapon's damage was being calculated in regards to. [Skotlex]
  4762. * Simplified the ignore-size check by making the Weapon Perfection check be
  4763. done when specifying the flag, also moved the size-fix property of riding
  4764. spear-knights to status_calc_pc. [Skotlex]
  4765. * Changed SI_CHASEWALK value to 119 as concluded by LoneWolf [Skotlex]
  4766. * Corrected clif.c sending the raw mdef2 value to the client instead of
  4767. first substracting the "secret vit/2" bonus from it. [Skotlex]
  4768. * Added a damage cap to CR_ACIDDEMONSTRATION of INT_MAX/2 to prevent
  4769. overflows. It is not capped to INT_MAX because damage increasing skills
  4770. would cause it to still overflow afterwards. [Skotlex]
  4771. * Fixed NPC_CRITICALSLASH not being considered as a Critical hit by the
  4772. code. [Skotlex]
  4773. * Added RUDE_ATTACKED_COUNT so you can easily adjust how many rude-attacks
  4774. should happen before a mob uses the rude-attacked skill. Value has been set
  4775. to 2 for now. [Skotlex]
  4776. * Now when a mob changes target (to someone they can hit) their
  4777. rude-attacked count won't be reset, but instead will be reduced by one.
  4778. [Skotlex]
  4779. * SC_SPEEDUP0 can now stack with the other speed raising buffs. [Skotlex]
  4780. * Some adjustments so that the last-skill-used will be correctly cleared
  4781. when your combo-time ends. [Skotlex]
  4782. * Fix a bug in atcommand_charspeed [Toms]
  4783. * Fixed a logic error preventing from cooking anything [DracoRPG]
  4784. * Cleaned up the last NJ update code. [Skotlex]
  4785. * Added @ command `charspeed` [Skotlex]
  4786. * Fixed @jailfor using MAP_PRONTERA as jail instead of MAP_JAIL [Skotlex]
  4787. * Removed case for GS_SPREADATTACK on damage packets to see if the skill
  4788. displays correctly now. [Skotlex]
  4789. * Corrected Deluge/Volcano/V. Gale overlaps so that the placing tiles are
  4790. removed, NOT the ones who were already placed. [Skotlex]
  4791. * Made SC_SPEEDUP0 and SC_SPEEDUP1 use different icon IDs, to fix
  4792. icon-confusion when both are enabled at a time. [Skotlex]
  4793. * Mob rude-attacked count is not reset now on picking a new char (gotta
  4794. investigate this further) [Skotlex]
  4795. * Changed atoi to strtoul for guild-experience's field [Toms]
  4796. * Fixed a bug in int_storage.c, temp array doesn't have the good size [Toms]
  4797. 2006/08/02
  4798. * Modified yet again SC_SILENCE after iRO tests from Entwined on IRC.
  4799. Silence now ONLY blocks skills from being used, it will not stop on-going
  4800. casts. [Skotlex]
  4801. * Updated status_cast_cancel to also include silence (so the cast bar is
  4802. cancelled if you are silenced during it) [Skotlex]
  4803. * Updated the way SC_SILENCE works. From what I remember (from previous
  4804. forum discussions) it: 1- Always blocks skills from being used. 2- Will
  4805. only block a skill when the cast-bar ends IF the skill is targetted. If
  4806. anyone wants to debate to get this changed, make an appropiate forum topic
  4807. in the svn development area to discuss. [Skotlex]
  4808. * Added a check in the walking code when triggering skills.
  4809. NPC_SELFDESTRUCTION will no longer cancel walking, it will instead resend
  4810. the walk packet, this effectively causes the mob to start walking
  4811. (clientside) while the cast-bar is showing. [Skotlex]
  4812. * Fixed a logic error on battle_get_master which was causing infinite
  4813. loops.. [Skotlex]
  4814. * Fixed homunculus error message [Toms]
  4815. * Rewrote pc_payzeny to not use doubles, it may more accurately prevent
  4816. charging a player more zeny than they can withhold. [Skotlex]
  4817. * Fixed failing to create Deadly Poison Bottles damaging 50% of your max
  4818. life instead of 25% [Skotlex]
  4819. * Added the missing status-change flags to SC_FREEZE to signal it should
  4820. modify def and magic def [Skotlex]
  4821. * Little add on NJ_HUUMA [Toms]
  4822. * Merged Mpeg's work on Ninja skills [Toms]
  4823. * Fixed Martyr's Reckoning having a cap damage of 32k. [Skotlex]
  4824. * Now you can teleport in Thanatos Boss room, but you can't respawn there [Playtester]
  4825. * Fixed Defender Raising Walk speed instead of diminishing it. [Skotlex]
  4826. * Added a check on status-change load to prevent loading speed-affecting
  4827. status when their speed adjustment is 0 (prevents division by zero)
  4828. [Skotlex]
  4829. * Code cleanup & optimization on guild part of char-server [Toms]
  4830. * Fixed script code data not being free'd if a player quits in the middle
  4831. of a script. [Skotlex]
  4832. * Modified run_script so that when there are leaks, it will report the
  4833. place where run_script was called from as source rather than the inner code
  4834. of run_script (for debugging purposes) [Skotlex]
  4835. * Made recursive master check the default (otherwise it messes skill -> pet
  4836. -> player kind of herarchies) and cleaned up some the battle_get_master
  4837. code to prevent infinite loops in the weird case someone specifies that
  4838. their master is itself. [Skotlex]
  4839. * Recoded the GuildAura code to use val3 & val4, allowing much greater stat
  4840. bonuses (in case someone wants to get Guild Skill level 20 or something
  4841. crazy like that) [Skotlex]
  4842. * Updated battle_check_target so that all alchemist summoned mobs can be
  4843. target by everyone. [Skotlex]
  4844. * Cleaned up skill_check_condition_mob_master_sub, it will now count both
  4845. total number of summoned mobs and amount that belong to the same type.
  4846. [Skotlex]
  4847. * Corrected AM_CANNIBALIZE so it will fail if you already have plants of
  4848. another type out. [Skotlex]
  4849. * Using NPC_SELFDESTRUCTION no longer will make the caster stop walking.
  4850. [Skotlex]
  4851. * Removed SI_GUILDAURA, and replaced it with SI_LANDENDOW, now
  4852. Volcano/Deluge/V. Gale will get that funky icon instead. [Skotlex]
  4853. * Changed clif_hominfo to receive both sd and hd as parameters
  4854. * Some redundancy cleaning in mercenary.c [Skotlex]
  4855. * Moved updating of sd->mercenary.hp from merc_damage to pc_makesavestatus.
  4856. [Skotlex]
  4857. 2006/08/01
  4858. * Miscellanous fixes which make the Marine Sphere self destruction work as
  4859. best as I can. It only has one flaw: It self-destructs instantly after
  4860. walking because if I make it use self-destruction with a cast-bar,
  4861. client-side the object stops moving inmediately... [Skotlex]
  4862. * Modified unit_walktoxy and NPC_RUN to enable running even when the caster
  4863. does not has the MD_CANMOVE bit on. [Skotlex]
  4864. * PF_MINDBREAKER will now silently fail if you try to use it on someone who
  4865. already has the status active. [Skotlex]
  4866. * Cleaned up yet again skill_landprotector, now new cells of
  4867. Deluge/Volcano/V.Gale will delete previous cells when they are recasted on
  4868. top of each other. [Skotlex]
  4869. * Summoned Marine Spheres no longer get the MD_CANMOVE bit. [Skotlex]
  4870. * Cleaned up some more the SC_JAILED code [Skotlex]
  4871. * merged in atcommands jailfor, jailtime, charjailtime. Thanks to Meruru
  4872. and Coltaro for the code. [Skotlex]
  4873. * Cleaned the code of atcommands jail and unjail [Skotlex]
  4874. * Be warned that the code MAY contain bugs as I adjusted it to save the
  4875. character's position before jailing, allowing the automatic unjailing to
  4876. warp you back to the exact spot you were at before being jailed. [Skotlex]
  4877. * Should have fixed the cooking sets not displaying all cooking available
  4878. items. [Skotlex]
  4879. * Figured out and fixed the issue with Volcano/Deluge/Violent Gale not
  4880. really working. Thanks to Mpeg for noting it out. [Skotlex]
  4881. * Modified Self Destruction, so that Marine Spheres in non-versus maps will
  4882. hurt only enemies, while in all other situations this skill will hurt
  4883. everyone around them. [Skotlex]
  4884. * Expanded setting debuff_on_logout so that &1 removes negative buffs and
  4885. &2 removes positive buffs. [Skotlex]
  4886. * Food status boosts will no longer end on death, but they will end when
  4887. you respawn or logout. [Skotlex]
  4888. * Added battle config file status.conf, moved some settings from skill.conf
  4889. and battle.conf to it since they are entirely Status-Change related.
  4890. [Skotlex]
  4891. * Added the missing lines to enable script command "kickwaitingroomall"
  4892. [Skotlex]
  4893. * Magic Rod's can-act delay will no longer be applied when you absorb a
  4894. spell. [Skotlex]
  4895. * Fixed Don't Forget Me increasing speed instead of decreasing it. [Skotlex]
  4896. * Modified setlabel so that the script engine barks when you are trying to
  4897. use the same label name as a constant or variable name. [Skotlex]
  4898. 2006/07/31
  4899. * Fixed the subnet 0 mask being reset to 0 when someone goes up on the fame
  4900. rankings. [Skotlex]
  4901. * Updated Poison React chance to counter and number of counters as per
  4902. skill description updates. [Skotlex]
  4903. * Fixed Sharpshooting being counted as a magic attack, and hence, using
  4904. your MATK as base damage. [Skotlex]
  4905. * Fixed NPC_STOP id value in skill_cast_db [Skotlex]
  4906. * Bladestop will no longer stop when you push either of the characters
  4907. around. [Skotlex]
  4908. * Fixed Enchant Poison having a near 100% chance of poisoning target on
  4909. attack. [Skotlex]
  4910. * Little fix on duel [Toms]
  4911. * Added possibility to restrict duel usage to same map [Toms]
  4912. * Merged mpeg's fix on ninja skills [Toms]
  4913. * Corrected a status_get_race call which should be status_get_race2 in misc
  4914. attacks. [Skotlex]
  4915. * Moved the Devotion code to the top of the SC list in status_damage,
  4916. meaning that now stuff like being asleep or confused won't end if you are
  4917. hit, but the damage is absorbed by devotion. [Skotlex]
  4918. * Added the Soul Link of Rogue speed bonus to Chase-Walk. Since there's no
  4919. information of how much the bonus should be, it currently is a conservative
  4920. 10%. [Skotlex]
  4921. * Fixed a possible crash in the main script engine when restoring previous
  4922. script. [Skotlex]
  4923. * Fixed sleep.tick not being set back to 0 before resuming execution, which
  4924. leads to scripts that are continously executed even when they already ended
  4925. (they do nothing but waste resources) [Skotlex]
  4926. * Fixed a pair of free -> aFree used on stacks, which would lead to memory
  4927. manager reporting leaks where there aren't. [Skotlex]
  4928. * Removed incorrect "Waterball range+1 when standing on suiton" feature.
  4929. [Skotlex]
  4930. * Corrected the Speed update code to prevent sending "walk to xy" packets
  4931. twice when the affected character is a player. [Skotlex]
  4932. * Expanded mob can't move warning to print out where this mob was stuck at
  4933. (map, x,y) [Skotlex]
  4934. * Fixed segmentation fault in status_change_end, vd wasn't initialized [Toms]
  4935. 2006/07/30
  4936. * NPC_INVISIBLE will now use Cloaking of a level +9 of the used skill
  4937. level, so that at level 1 they can attack, use skills and receive no
  4938. walking penalty. [Skotlex]
  4939. * Mob casted Sanctuary will no longer always heal it's targets regardless
  4940. of element/race [Skotlex]
  4941. * Status change packets will now use as criteria for sending the actual
  4942. view_class instead of player/not-player. This will fix status-changes
  4943. displaying improperly on clones, and also possible crashes with disguised
  4944. players. [Skotlex]
  4945. * Merged mpeg's fix on ninja skills and SA_VOLCANO,SA_DELUGE,SA_VIOLENTGALE [Toms]
  4946. * Added bNoMiscDamage setting so you can specify misc-damage blocking from
  4947. skills. Modified battle_calc_damage so that even Pressure and similar
  4948. skills will be affected by this setting. [Skotlex]
  4949. * GS skill updates/fixes [Vicious]
  4950. * Force all users offline in sql when char-server starts [Toms]
  4951. 2006/07/29
  4952. * Removed ugly struct cast in login.c [Toms]
  4953. * New version of buildin_query_sql which accept more than one column and
  4954. can return the number of rows. See script_commands.txt for more details. [Toms]
  4955. * Fixed nullpo in merc_hom_skillup [Toms]
  4956. * Added a return value to buildin_rid2name if rid is invalid [Toms]
  4957. * Made the SQL ping interval default to 7 hours. [Skotlex]
  4958. * Made skill_unitsetting remove the group when no unit-cells were placed
  4959. down. basicly this means that if landprotector blocks all tiles, the group
  4960. will be removed from memory, preventing said group from counting to the
  4961. total number of skills you can set. [Skotlex]
  4962. * Fixed segmentation fault in script engine when calling something which is not a function [Toms]
  4963. * Fixed segmentation fault in script engine when activating DEBUG_RUN flag [Toms]
  4964. 2006/07/28
  4965. * Added Ishizu's code to check ammo type on attack. No more using Grenade
  4966. rounds with Guns. [Skotlex]
  4967. * offensive heal/sanctuary will only happen when the source of the heal is
  4968. a player, mob/pet casted heal will now always heal regardless of target.
  4969. [Skotlex]
  4970. * Shield Chain will now ignore the 'ice-pick' defense piercing bonus.
  4971. [Skotlex]
  4972. * Self destruction will now hit all characters in range, not just enemies.
  4973. [Skotlex]
  4974. * Cleaned up the NJ update code: [Skotlex]
  4975. - Restored code which was removed (stuff like SC_SKA)
  4976. - Fixed possible crashes on some NJ skills if used by non-players.
  4977. - Fixed most NJ magic spells doing more damage than they should.
  4978. - Fixed ZenyNage being able to do more damage than zeny you have.
  4979. - Cleaned up skill setting code for Suiton and Kaensin
  4980. * Some cleaning of battle_drain, Evil Druid card should work now. [Skotlex]
  4981. * Made status_damage allow damaging of objects not on a map, this should
  4982. fix pet-catching making the mob never respawn again. [Skotlex]
  4983. * Casted nothl to (unsigned int) in sprintf functions, IP is 32bits and sql field the same :) [Toms]
  4984. * Fixed "warning: `list' might be used uninitialized in this function" in char/char.c@3032 [Toms]
  4985. * Fixed "uninitialized local variable 'i' used" in skill.c and "warning: suggest explicit braces to avoid ambiguous `else'" in battle.c [Toms]
  4986. * Fixed "warning: long unsigned int format, unsigned int arg" in parse_login (login_sql\login.c) [Toms]
  4987. * Fixed sign warnings in login/login.c [Toms]
  4988. * Fixed "conversion from 'double' to 'int', possible loss of data" [Toms]
  4989. * Fixed "warning: redefinition of [ushort/uint/ulong]" [Toms]
  4990. * Fixed duplicate case value on NJ_SUITON [Toms]
  4991. 2006/07/27
  4992. * Fixed a memory leak when there exists more than one user function with
  4993. the same name, added the appropiate warning when this happens. [Skotlex]
  4994. * Added reporting source file when an npc shops item's price is
  4995. exploitable. [Skotlex]
  4996. * The picklog will now record negative values for items sold to npcs.
  4997. [Skotlex]
  4998. * Added inmediate position and hp-bar update when a character joins a
  4999. party. [Skotlex]
  5000. * Added missing SC information to NPC_CHANGEUNDEAD [Skotlex]
  5001. * Added config setting party_update_interval so you can specify how often
  5002. the party-mate minidots should be updated (defaults to 1 sec). [Skotlex]
  5003. * Removed a bunch of broken comments in skill.c [Skotlex]
  5004. * Synced the script.c file with as much data as possible from jA's:
  5005. [Skotlex]
  5006. - A lot of functions were moved around, a bunch of indentation and
  5007. space-usage changes were done to make it easier to diff against their
  5008. files.
  5009. - Miscellanous addition and corrections were applied.
  5010. - Largest one is likely a restructuring of run_script_main, which hopes to
  5011. solve the memory leaks.
  5012. - script engine now uses the setjmp functions to restore memory state when
  5013. there's an error parsing scripts, which means that script errors won't
  5014. cause the map-server to inmediately bail out anymore.
  5015. - NOTE that the amount of changes is pretty extensive, so DON'T USE THIS on
  5016. a live server. Update only to help test and debug to see if the script
  5017. engine memory leaks are gone.
  5018. * Added a cleanup routine on shutdown to remove all characters from memory
  5019. for whom the save ack has not returned from the char-server yet. [Skotlex]
  5020. * Now when you set the guardian's HP, if the guardian is spawned, it's HP
  5021. will be updated accordingly (and if you set it to 0, the guardian is
  5022. killed) [Skotlex]
  5023. * Added functions status_set_hp/status_set_sp to set hp/sp to a given
  5024. value. Applied usage of these on the Berserk and Soul Change code.
  5025. [Skotlex]
  5026. * Added config setting "party_hp_mode" (battle/party.conf) which determines
  5027. method to use to update party-mate hp bars. Aegis style is to update HP
  5028. bars whenever HP changes, while eAthena style is to update it together with
  5029. the map party dots. Defaults to aegis style. [Skotlex]
  5030. * Fixed packet 0x22a having the manner and opt3 packets in inverted
  5031. offsets. [Skotlex]
  5032. * Readded the check which prevents Cloaking from activating when your
  5033. learned level is less than 3 and you aren't next to a wall. [Skotlex]
  5034. * Some cleanups to the Frenzy/Berserk status change, it should probably
  5035. work correctly now. [Skotlex]
  5036. * Removed a redeclared variable i in the parsing of the fame list (char-sql
  5037. server) which seems to be the cause of the random memory corruptions.
  5038. [Skotlex]
  5039. * Updated item_db.sql to latest. [Toms]
  5040. * Fix homunc & code cleanup [Toms]
  5041. - Timer problems on delete_timer
  5042. - Intimacy problem (overflow & new values)
  5043. - Homunc deleted if intimacy < 0
  5044. - base exp is now given to master
  5045. - Homunc sometimes not saved
  5046. 2006/07/26
  5047. * Fixed a memory leak when reading the item_db txt. [Skotlex]
  5048. * Applied the necessary changes to make @partyoption reflect it's changes
  5049. on the alt+p window. [Skotlex]
  5050. * Modified party_item_share_type config setting so that using 1 disables
  5051. item-sharing from non-mob loot (player dropped items or pet loot) and 2
  5052. enables round-robin instead of random sharing. Using 3 obviously is
  5053. enabling both 1 and 2. [Skotlex]
  5054. * Added battle_get_master which returns the master bl of a given object.
  5055. [Skotlex]
  5056. * Recoded battle_check_target to use battle_get_master, the src/target
  5057. switch has been split into two, so that actual target and master target are
  5058. seperately treated (same for source). [Skotlex]
  5059. * Added support for "sc_end -1" which will clear all status changes. Added
  5060. the constant SC_ALL so you can use in scripts "sc_end SC_ALL;" instead.
  5061. [Skotlex]
  5062. * @pettalk will now fail when muted. [Skotlex]
  5063. * Enabled changing of equipment while stunned/asleep/petrified/etc [Skotlex]
  5064. 2006/07/25
  5065. * Cleaned up run_script_main to properly free previous stack-data when
  5066. running scripts. Note that scripts may still leak memory when run by
  5067. non-players and they don't reach the "END" state, however I am not sure how
  5068. this case should be handled, so it's left as it is for now. [Skotlex]
  5069. * Added a missing ntohl call in the loginlog code. [Skotlex]
  5070. * Added a check when buying from npcs to allow buying of item_avail items.
  5071. [Skotlex]
  5072. * Fixed duel accept invite sending the packet before the duel data is set
  5073. (resulting in a packet that noone receives). Thanks to Toms for finding it
  5074. out. [Skotlex]
  5075. * Fixed a possible crash when you dual-wield and the total damage is 0.
  5076. [Skotlex]
  5077. * Added Toms's perl scripts item_db.pl and mob_db.pl (they are in tools/),
  5078. they convert the txt databases into sql. [Skotlex]
  5079. - Usage: "script" < "input file" > "output file". eg: ./tools/item_db.pl < db/item_db.txt > sql-files/item_db.sql
  5080. * Updated the sql files since now it's quick [Skotlex]
  5081. 2006/07/24
  5082. * Re-updated the mob_db.sql to latest. [Skotlex]
  5083. * Cleaned up the skill_landprotector function to correctly block only magic
  5084. skills from being placed on land protectors. [Skotlex]
  5085. * Corrected itemdb_group so that it will not return the random item givers
  5086. (should give priority to actual item groups, so that the item heal bonuses
  5087. work correctly) [Skotlex]
  5088. * Cleaned up the Mistress Card related code so that the no-gemstone bonus
  5089. reduces item requirements by one rather than totally skip them. [Skotlex]
  5090. * Cleaned up the logs "can log"function to use the IT constants. Also
  5091. corrected the "only log large amounts" setting not working on negative
  5092. values (trades). [Skotlex]
  5093. * Adjusted skill_castfix_sc so that Suffragium will get consumed even on
  5094. instant cast skills, but Memorize won't. [Skotlex]
  5095. * BladeStop will now end when either of the characters is moved (knocked
  5096. out?) around. [Skotlex]
  5097. * Moved the Zeny penalty code from respawn to pc_dead. [Skotlex]
  5098. * Added a check to prevent Deluge/Volcano/Violent Gale from being placed on
  5099. top of each other. Reverted the previous 'fix' where atk was being
  5100. increased based on armor element rather than element of attack. [Skotlex]
  5101. * Removed the noreturn mapflag check from script command warp. [Skotlex]
  5102. * Homuculus cleanup [DracoRPG]
  5103. - Replaced nullpo's in parse functions by silent checks
  5104. - Removed server-side effect for menu option 0 (view status window...
  5105. why does the client send us the packet since we don't care? -_-)
  5106. - Rewrote intimacy underflow checks so they are really effective (no
  5107. need to check if an unsigned is < 0, it won't work... check before!)
  5108. * fixed unban unblocking players as well. [Skotlex]
  5109. * Fixed Volcano/Deluge/Violent Gale increasing damage based on element of
  5110. attack instead of defense element of attacker. [Skotlex]
  5111. * Cleaned up the code of Magic Rod, fixed it not giving SP. [Skotlex]
  5112. * Moved the code of Hermod and Basilica to castend_pos2 so it should work
  5113. now. [Skotlex]
  5114. * Modified the code of Ankle Snare so the status ends on unit's time-limit
  5115. rather than when the snared object moves away. [Skotlex]
  5116. * Re-worded the water check of ST_WATER skills. [Skotlex]
  5117. * Allowed sc-cast reductions to be processed even when cast-time is instant
  5118. (to let suffragium end even on instant-cast skills) [Skotlex]
  5119. 2006/07/23
  5120. * Modified setting skillrange_by_weapon (skill.conf) to be a
  5121. per-object-type setting instead of yes/no. The default now is that
  5122. weapon-based skills will take the attacker's range for non-players.
  5123. [Skotlex]
  5124. * Changed the default of skillrange_by_distance to include homunculus.
  5125. [Skotlex]
  5126. * Fixed buildin_isequip not working correctly with non-cards. [Skotlex]
  5127. 2006/07/22
  5128. * Updated mob_db.sql to latest. [Skotlex]
  5129. * Applied Toms's suggested corrections to homun code. [Skotlex]
  5130. * Corrected Cannibalize/Marine Sphere ignoring the selected summon spot.
  5131. [Skotlex]
  5132. * Fixed looting pets ignoring the item pick-up priority of other players.
  5133. [Skotlex]
  5134. * Should have fixed a signess warning in login txt. [Skotlex]
  5135. 2006/07/21
  5136. * Added blocking of @me when muted or in berserk status. [Skotlex]
  5137. * Corrected the @follow timer not being deleted on logout. [Skotlex]
  5138. * Applied the homunculus code fixes provided by Toms. [Skotlex]
  5139. * battle_check_target will now tag homunculus as invalid target when the
  5140. source is a skill-type object. [Skotlex]
  5141. * Added a check on pc_equipitem so that when the client specifies to equip
  5142. a weapon on the right hand when the left hand is available, the weapon will
  5143. be sent to the left hand instead (when dual-wielding is possible,
  5144. obviously). Same for the left/right accessories. [Skotlex]
  5145. * Added the necessary checks so that Suiton makes Fogwall have double
  5146. duration, and to make water-requiring skills to consume their cells.
  5147. [Skotlex]
  5148. * Corrected the loadmap event description to specify that the mapflag
  5149. required is actually "loadevent", NOT "loadmap"! [Skotlex]
  5150. * Now when the char-txt server does not finds a requested party, it will
  5151. clear out said party id of all characters (will help prevent massive
  5152. spamming/overhead when for some reason the party file needs to be deleted).
  5153. [Skotlex]
  5154. * Combo skills (inf = self, inf2 = no target self) no longer check range if
  5155. you use them while your attack-timer is still active. [Skotlex]
  5156. * Added back a map_freeblock call in skill_delunitgroup which caused a
  5157. memory leak when removed... [Skotlex]
  5158. * Added a check to prevent Blind from ending while standing on a fog of
  5159. wall. [Skotlex]
  5160. * The mob Slave ai will be executed now even when the slave has a target.
  5161. This will allow for "instant" warping to the master when it changes maps or
  5162. teleports. if the slave has a target already, it won't unlock it and chase
  5163. back to the master or anything like that. [Skotlex]
  5164. * Removed a couple of checks that prevents item ids above 20000. However,
  5165. remember that the max id is still ~32k or the client is the one who's gonna
  5166. crash! [Skotlex]
  5167. 2006/07/20
  5168. * Added source reporting when you do an invalid int&str or str&int
  5169. operation on a script. [Skotlex]
  5170. * Fixed the intif party creation packet having the incorrect size sent,
  5171. hence causing the leader's level to be read as garbage (which caused the
  5172. "impossible to even share" bug). [Skotlex]
  5173. * Added pc_check_weapontype to do a proper skill weapon check that takes
  5174. into account dual-wielding. That is, if a skill can be used with
  5175. daggers/axes, you'll be able to use the skill when dual-wielding them.
  5176. [Skotlex]
  5177. * Corrected Cloaking level 1-2 not letting you move across walls. [Skotlex]
  5178. * updated cloaking code so that when you set "enable cloaking without
  5179. walls", the code will consider you as "always next to a wall", thus you get
  5180. the wall-speed bonus always. [Skotlex]
  5181. * Applied the fix to homunculus name saving... [Skotlex]
  5182. * Added battle config settings agi_penalty_target and vit_penalty_target,
  5183. they define which object types will get vit/flee reductions when
  5184. multi-targetted and defaults to only players (battle/battle.conf) [Skotlex]
  5185. * Added the dummy intravision case for the changeoption packet 0x229
  5186. [Skotlex]
  5187. * Corrected Fog of Wall so that all targetted offensive skills (not only
  5188. those who do damage) will fail on cast-end 75% of the time. [Skotlex]
  5189. * corrected @homlevel up and one entry in the homun exp table as reported
  5190. on the forums by Albator. [Skotlex]
  5191. * Added the SQL fix to Homunculus skill learning/saving bug [DracoRPG]
  5192. * Added a status_check_skilluse on skill_attack_area call to prevent splash
  5193. damage skills from hitting hidden/trickdead/etc characters. [Skotlex]
  5194. * Corrected fog of wall to behave as best known currently: [Skotlex]
  5195. - Only takes effect when targetting a character inside it
  5196. - -50hit/-75% damage when using normal-ranged attacks
  5197. - -25% damage from all damage skills
  5198. - 75% chance of all targetted damage skills of failing.
  5199. * Should have fixed @refine applying multiple times to equipment that uses
  5200. multiple equip slots. [Skotlex]
  5201. 2006/07/19
  5202. * Fixed the inf code update breakage which was blocking all offensive
  5203. skills. [Skotlex]
  5204. * Added battle setting homun_critical_rate (defaults to 0) [Skotlex]
  5205. * Removed enemy_str/pet_str/enemy_perfect_flee and replaced them with
  5206. enable_perfect_flee which specifies which objects can have perfect flee and
  5207. enable_baseatk which specifies which objects can have a base attack value
  5208. (both in battle.conf) [Skotlex]
  5209. * Modified the targetted skill logic to enable offensive skills to be
  5210. targetted at party/guild members if the appropiate inf2 value is set.
  5211. [Skotlex]
  5212. * Added checks to make adding items to inventory/cart fail when a char is
  5213. in finalsave state. [Skotlex]
  5214. * Fixed parse_names on irc.c crashing when receiving a null argument.
  5215. [Skotlex]
  5216. * Modified the parsing of the names line, since some servers will send @
  5217. instead of = when separating the information. [Skotlex]
  5218. * Fixed the homun creation sql statement. Why noone else did so before?
  5219. [Skotlex]
  5220. * When enabling/disabling hiding/unhiding an npc, if the npc is a warp, it
  5221. will use clearchar and spawn packets instead of changeoption. Thanks to
  5222. Toms for the fix. [Skotlex]
  5223. * Corrected Trim chars to block 'enter', as explained by the Ultra mage.
  5224. [Skotlex]
  5225. * When the client passes account version 0, the login server will set it to
  5226. 1 now. [Skotlex]
  5227. * Corrected the HP bar scaling when HP is above Short Max. It should
  5228. display fine for any HP value now. [Skotlex]
  5229. * Added a check when the mob's adelay is shorter than the amotion, in which
  5230. case the adelay will be changed to the amotion value. [Skotlex]
  5231. * Some minor mapflag changes. [MasterOfMuppets]
  5232. 2006/07/18
  5233. * Added atcommand @partyoption, lets you alter the party item-distribution
  5234. type on the go. Usage is "@partyoption <pickup share> <item distribution>",
  5235. where both arguments can be 0/1, yes/no, etc. [Skotlex]
  5236. * Updated @changeleader and @partyoption to use msg_Athena entries.
  5237. [Skotlex]
  5238. * Added character 013 (enter) to the list of characters that are always
  5239. removed from new character names. [Skotlex]
  5240. * Fixed a crash when trying to extend TK's infinite combo feature. [Skotlex]
  5241. * Corrected Poison React to counter regardless of distance, and to use the
  5242. skill's 50+5*lv% counter chance (instead of 100%). [Skotlex]
  5243. * Corrected Venom splasher's splash damage [Skotlex]
  5244. * You now can't move/attack/use-skills when using Cloaking of a level less
  5245. than 3 [Skotlex]
  5246. * Fixed compilation of mercenary.c [Skotlex]
  5247. * Corrected Fog of Wall's "targetted spells fail 75% of the time" feature
  5248. by making it behave like GTB, that is, you just get a skill-failed on
  5249. cast-end, no skill-animation at all. [Skotlex]
  5250. * Added a proper check to make aggressive mobs never override homun targets
  5251. regardless of distance. [Skotlex]
  5252. * Removed a bunch of homun-related variables that are not needed at all.
  5253. The alive condition is removed, now the code checks for the hp value to
  5254. know if the homun is alive or not. [Skotlex]
  5255. * Cleaned up a bit the skill-id function, homun skill checks (such as delay
  5256. and skill-lv learned) should be correct now. [Skotlex]
  5257. * Added a proper check to make aggressive mobs never override homun targets
  5258. regardless of distance. [Skotlex]
  5259. * Fixed giving the 100% damage bonus when no-splash-targets are found in
  5260. the blown path to Grandcross instead of Bowling Bash. Bowling Bash damage
  5261. equation becomes then +50*lv% rather than +40*lv% when there's no
  5262. splash-damage (the 50*lv% figure is custom, all we know is that level 10
  5263. does 600% instead of 500% damage). [Skotlex]
  5264. 2006/07/17
  5265. * Updated mob_db.sql to current mob_db.txt data. [Skotlex]
  5266. * The char-server will allow off-line character saves when said char is
  5267. tagged for final-save (this is the scenario when the char-map reconnect).
  5268. [Skotlex]
  5269. * Should have fixed the Cart Termination damage code to be scaled correctly
  5270. when you change the max cart weight. Thanks to The Ultra Mage for the error
  5271. clarification. [Skotlex]
  5272. * Implemented Grandcross weird property where if there's noone on the path
  5273. it'll hit twice for the skill's reported damage, and when there is (or you
  5274. can't knockback the target) it'll do a splash attack that hits twice for
  5275. 500% to all affected targets. [Skotlex]
  5276. * Some cleaning of the combo code. TK Rankers will now get their combo-time
  5277. extended each time they trigger a kick, enabling them to do "unlimited
  5278. combos". [Skotlex]
  5279. * Modified the autosave function to use a sweep across the player db
  5280. instead of across connected clients. This will cause non-connected players
  5281. (like autotraders) to also be saved on a regular interval, may help with
  5282. possible data-loss from said characters on unclean shutdowns. [Skotlex]
  5283. * Removed the code that forces aggressive mobs to go after a Homun instead
  5284. of their master (no reason why there should be such a condition). [Skotlex]
  5285. * Some sign quest map flag updates [MasterOfMuppets]
  5286. * atcommand_follow is now more verbose. [Adam]
  5287. * Manually added int_homun.c to the VS8 char_sql project, *should* work [DracoRPG]
  5288. * Orn's fix to the very critical skill level up bug [DracoRPG]
  5289. * Updated mob_db.sql to current mob_db.txt data. [Skotlex]
  5290. * Added Orn's lil fix on homun [Vicious]
  5291. * Added Homunculus system, enjoy! [orn aka Nylou]
  5292. - WARNING: This currently only works with the SQL version, as the TXT char-server
  5293. has no code for it at the moment. You TXT server won't break, but the char-server
  5294. will complain of an unknown packet if you try to get an Homunculus
  5295. * Updated nomemo mapflags based on info from http://ro.doddlercon.com/images/memo.jpg [Poki#3]
  5296. 2006/07/15
  5297. * Small change in conf/battle/player.conf to say that 199 is max aspd allowed
  5298. (Haplo says that there are many reports of having over 200 is giving errors) [Evera]
  5299. 2006/07/13
  5300. * Kaahi no longer shows the heal effect to everyone. [Skotlex]
  5301. * Eska no will cause defense to change randomly every second. [Skotlex]
  5302. * Tuned up some more NJ_KAENSIN based on Tharis's information. [Skotlex]
  5303. * Corrected NJ_KAENSIN as per description. [Skotlex]
  5304. * Fixed a leaking map_freeblocklock on skill_del_unitgroup. [Skotlex]
  5305. * Changed the default save interval to 5 minutes. Added support for
  5306. specifying fixed save-intervals by using negative values. [Skotlex] EG:
  5307. - Save interval set to 300 (5 minutes): all characters will be saved in
  5308. equal time-slots, so that everyone is saved every 5 minutes regardless of
  5309. number of players online.
  5310. - Save interval set to -1000 (1000 ms): One character will be saved every
  5311. second, regardless of amount of characters online.
  5312. The new fixed-time-slots method is meant for larger servers, so that they
  5313. can control the saving-induced stressed on the char-server.
  5314. * Fixed @storeall and @charstoreall failing when the target character
  5315. already had the storage open. [Skotlex]
  5316. * Reverted temporarily the Cart Termination equation until it can be
  5317. fixed... [Skotlex]
  5318. * Fixed script command "recovery". [Skotlex]
  5319. 2006/07/12
  5320. * Fixed a small typo in my code [Zido]
  5321. * Added negative value in bonus exploit fix for more stat bonuses [Zido]
  5322. * Fixed exploit in pc_bonus there are no checks that check that the value being
  5323. added onto a status don't make it go below zero, which means if you have a mineral
  5324. card and reset stats it reduces your base attack to lower than zero, making it
  5325. go up to 64000. Fixed by adding a check for SP_BASE_ATK, although i recommend
  5326. doing it for other status bonuses also [Zido]
  5327. * Recoded NJ_BAKUENRYU to behave as I understand it best from the
  5328. skill-description (since Haplo told me this skill doesn't really has video
  5329. information or anything...) [Skotlex]
  5330. * Fixed NJ_TATAMIGAESHI to use ground-tiles rather than "for each in path"
  5331. calls. The skill should be working correctly now, except for the fact that
  5332. the correct "unit id" is missing (this is what would give the ground tile
  5333. it's correct display). Temporarily it is using 0xba until the correct value
  5334. is found. [Skotlex]
  5335. * Added back the undead check to turn undead/resurrection to prevent
  5336. damaging non-undead targets, removed it from the battle damage section.
  5337. [Skotlex]
  5338. * Resurrection will now silently fail when used on non-undead + not-dead
  5339. characters. [Skotlex]
  5340. * Poem of bragi/magic String's base delay reduction at level 10 (or above)
  5341. is now 50% instead of 3*lv%. [Skotlex]
  5342. * status_damage will no longer fail when the target is not on a map AND the
  5343. flag is 2 (charge rather than damage). Fixes SP-draining status changes
  5344. ending suddenly when in-between maps. [Skotlex]
  5345. * Fixed the IP value being apparently incorrectly casted before inserting
  5346. into the loginlog table on "connect success" events. [Skotlex]
  5347. * Fixed Cart Termination's damage. [Skotlex]
  5348. * Added the missing check to remove character from memory when logging out
  5349. and using the charsave_method which saves character map-server-side.
  5350. [Skotlex]
  5351. 2006/07/11
  5352. * Fixed inverted check which was preventing you from buying more than 1
  5353. from any stackable item.... [Skotlex]
  5354. * Should have fixed the crash in intif gm message... [Skotlex]
  5355. * Fixed GTB card only working while you had a status-change active.
  5356. [Skotlex]
  5357. * Fixed being unable to compound cards in armor. [Skotlex]
  5358. * Made @monsterignore be an universal ignore. Means you cannot be targetted
  5359. as an enemy by anything. Also added alias "@battleignore" which does the
  5360. same as monsterignore. [Skotlex]
  5361. * Fixed magic power setting your min matk as max-matk. [Skotlex]
  5362. * Modified the packets involved in @fakename in hopes it'll refresh
  5363. correctly on nearby clients now. [Skotlex]
  5364. * Fixed clif_parse not checking for func_parse before sending data to the
  5365. connected clients. This in turn required various code-rewrites in: [Skotlex]
  5366. - duel related messaging functions (added clif targets DUEL/DUEL_WOS).
  5367. - intif whisper to gm function
  5368. - day/night timers
  5369. - Rewrote the parse_console function to stop allocating/deallocating memory
  5370. on every call.
  5371. - Modified chrif_charselectreq to receive the player's ip among the data.
  5372. * Added function clif_disp_message, which is the same as
  5373. clif_disp_onlyself, except you can specify the targets (it sends a
  5374. guild-chat packet) [Skotlex]
  5375. * Fixed the subele bonus (elemental reduction) being applied to the element
  5376. of the attacker instead of the element of the attack. [Skotlex]
  5377. * mob skills now won't trigger on unit_stopwalking calls. [Skotlex]
  5378. * Coded @reset. [Skotlex]
  5379. * Reenabled @changesex [Skotlex]
  5380. * Added function pet_create_egg which handles creating pet eggs correctly
  5381. (when passed item id is indeed a valid petegg). Applied this on @createitem
  5382. and getitem. [Skotlex]
  5383. * Cleaned up code of @item [Skotlex]
  5384. * Cleaned up the itemdb_isequip functions. itemdb_isequip will now return
  5385. if the item is equipable by players, itemdb_isstackable returns if the item
  5386. can be stacked, and itemdb_isidentified returns if the item should drop
  5387. identified. [Skotlex]
  5388. * Added defines CARD0_PET/CARD0_FORGE/CARD0_CREATED to identify if a given
  5389. item has "invalid" cards, added define function itemdb_isspecial to
  5390. simplify this check. [Skotlex]
  5391. * Removed itemdb.c considering item ids above 20000 as invalid. [Skotlex]
  5392. * Cleaned up script commands getitem and card-counting related ones.
  5393. [Skotlex]
  5394. * Cleaned up a bit more pc_isequip [Skotlex]
  5395. * Added script function warpportal(x,y,targetmap$,targetx,targety).
  5396. This creates warp portals as in the skill unit as a volatile alternative
  5397. to static warp portals. [blackhole89]
  5398. * Modified the login-sql server to do the ip-ban check only on the
  5399. auth-packets instead of on every packet. [Skotlex]
  5400. 2006/07/10
  5401. * Corrected Warp Portal being unable to warp people who are standing on it
  5402. on the moment it triggers. [Skotlex]
  5403. * Fixed @follow stopping the moment you are warped. [Skotlex]
  5404. * Fixed pc_additem messing with the equip field of the passed item data.
  5405. Fixes the famous "equip stuff on your arrow slot" bug. [Skotlex]
  5406. * Fixed cart-termination crashing the server if you used level 16 of it.
  5407. [Skotlex]
  5408. * Fixed check_connect_login_server check in char-sql server. Fixes
  5409. char-server not reconnecting to the login server. [Skotlex]
  5410. * Login-sql server will no longer change an account's state to "7" when
  5411. banning a player. This should fix being able to use @ban to clear out a
  5412. @blocked player. Players will now be identified as banned only through the
  5413. banned-until timestamp. [Skotlex]
  5414. * Fixed a crash when using Gospel... [Skotlex]
  5415. * The on-place function won't be invoked on setting ground skills if the
  5416. group's tick is greater than the current tick. As Buuyo pointed out, this
  5417. should fix Sanctuary and Gospel taking effect inmediately instead of after
  5418. "x" amount of ms as they should. [Skotlex]
  5419. * Added login-char packet 0x2737. Sets all characters offline (login-server
  5420. side). [Skotlex]
  5421. * Cleaned up char server "set all offline" implementation to remove only
  5422. characters from the map-server from which the packet was invoked. It will
  5423. also now correctly kick/set-character offline from the map-server if they
  5424. are connected. [Skotlex]
  5425. * Cleaned up the char-sql reconnect code. It no longer sets everyone to
  5426. offline. [Skotlex]
  5427. * Removed setting "kick_on_disconnect", servers will no longer kick
  5428. characters out when there's a disconnection. Instead, it'll use the most
  5429. logical approach: Set characters into a "lost" state when there's a
  5430. disconnection, on reconnect, resent the list of online-characters, do a
  5431. sync, and let the difference be characters to be removed. Also, the
  5432. map-server won't release character data until it's saved and the ack
  5433. returns from the char-server to prevent data loss (all this data is resent
  5434. on reconnect for saving anyway). [Skotlex]
  5435. * Added a check in pc_equipitem so that when switching weapons and you have
  5436. the skill_range_by_weapon setting active, the skill info block (which
  5437. includes range) will be resent when the new weapon to equip has a range
  5438. different than the previous one. [Skotlex]
  5439. * One closer inspection, removed that clear in itemdb_reload for a foreach
  5440. call again. And modified itemdb_load to scrap the dummy item entry from the
  5441. item_db and replace it with proper data for the item. [Skotlex]
  5442. * itemdb_reload will clear the itemdb before reloading info instead of only
  5443. clearing the scripts now. [Skotlex]
  5444. * Some cleaning of skill_castend_pos2, fixed Gospel, and a
  5445. map_freeblock_unlock misplacement. [Skotlex]
  5446. * Sense/Estimation will now display the mob info window to all party
  5447. members in the same map. [Skotlex]
  5448. 2006/07/08
  5449. * Fixed the new addeff structure not working well with SC_STONE (because
  5450. SC_STONE is 0, which was by default not handled as a valid value).
  5451. [Skotlex]
  5452. * Added back the TF_MISS walking speed bonus to assassin type classes (how
  5453. did that got lost?) [Skotlex]
  5454. * Fixed mobinfo displaying exp as signed ints rather than unsigned.
  5455. [Skotlex]
  5456. * Added status_check_visibility to check if an object is within range of
  5457. view of another. Nothing more, nothing less. It's used by unit movement to
  5458. check whether you can continue chasing your target or not when the "chase
  5459. target" directive is given. [Skotlex]
  5460. * Fixed the char table having party/guild_id as smallint when they need int
  5461. there. Thanks to hermematon for pointing it out (use svn_ugprade7580.sql)
  5462. [Skotlex]
  5463. * Applied k3dt fixes to pet-hatching, ice-wall check, and wedding skills.
  5464. [Skotlex]
  5465. * Fixed endow skills calling the skill no damage packet twice. [Skotlex]
  5466. * Fixed a crash on warpwaitingpc when the chat-room is empty. [Skotlex]
  5467. 2006/07/07
  5468. * Fixed the Warm Skills [Skotlex]
  5469. * Removed the debug message when a player logs out and is removed from
  5470. memory, it is working fine (tested normal logging off and autotrade). [Skotlex]
  5471. * Corrected the pet-armor field of the pet not being updated on
  5472. equip/unequip of accessories, making them not show up inmediately. [Skotlex]
  5473. * Status_calc_bl will no longer stop you from attacking/walking when the
  5474. mode is changed unless the new mode no longer includes
  5475. "can-attack"/"can-move" respectively. [Skotlex]
  5476. * Should have fixed clif_item_sub to properly store pet egg/armor data.
  5477. There should be no more "random refine levels" bugs related to these.
  5478. [Skotlex]
  5479. * itemdb_exists will now return NULL for item_id 0. [Skotlex]
  5480. * Added a check to free a character from memory when changing map servers.
  5481. [Skotlex]
  5482. * Okay, added a chrif_save_ack packet to the char-server so now the map
  5483. server will know once a character was "final saved", and only then the
  5484. character will be removed from memory. On char-server reconnection, all
  5485. chars that are in final-save state are resent to save (if they are still in
  5486. memory, it's because the ack hasn't gotten here from the char-server). This
  5487. should effectively block all dupe problems due to heavy inter-server lag,
  5488. however as it's untested, it currently prints some debug messages when
  5489. people are saved and then removed from memory. Need testers so this can be
  5490. debugged and merged to stable! [Skotlex]
  5491. * Now, when the login-char connection is cut, the char-server won't set
  5492. everyone offline on reconnect, instead it will send the list of online
  5493. accounts to the login server. [Skotlex]
  5494. * Modified the error on the char-sql server to set chars online when it
  5495. receives a save packet from a character tagged as offline (until it can be
  5496. figured out why this is happening) [Skotlex]
  5497. * Fixed signed/unsigned comparison issues in the char txt/sql server.
  5498. [Skotlex]
  5499. * Fixed the cooking success chances. Thanks to Ishizu Chan. [Skotlex]
  5500. * Added a temporary band-aid to prevent executing the script of non-arrows
  5501. when they are equipped on the arrow-slot (until the actual cause of why
  5502. pc_unequipitem is not working correctly is discovered/fixed) [Skotlex]
  5503. 2006/07/06
  5504. * Modified the party_data structure on the map server to remove some
  5505. redundant data. Added a party_data structure on the char-server to hold a
  5506. more complete set of information about parties. Added to the party_member
  5507. structure the class of each member so that the map server can do the
  5508. appropiate checks even if the character is on another mapserver/offline.
  5509. Due to the format changes in the party structure, txt servers will have to
  5510. wipe their party file... (sql save format has not been changed) [Skotlex]
  5511. * Added function char_family to check if there's a family state given the
  5512. three character ids, instead of doing individual checks all the time.
  5513. [Skotlex]
  5514. * Rewrote all the item restriction functions so that they will take into
  5515. account slotted card restrictions as well. [Skotlex]
  5516. * Added no_skill_delay setting, when set, affected object types will have
  5517. the minimum skill delay for all skills. Defaults to mobs, since they
  5518. don't have skill delays. [Skotlex]
  5519. * Cleaned up pc_equipitem. When dual wielding or equipping accessories, if
  5520. the client actually specifies one of the two positions, it will be taken
  5521. into account (now, does the client actually does this?) [Skotlex]
  5522. * Fixed GrandCross and similar skills. [Skotlex]
  5523. * FogWall will now also affect the caster. [Skotlex]
  5524. 2006/07/05
  5525. * Updated NJ_KAENSIN by Saycyber21 [Vicious]
  5526. * Updated @refine to take account of MAX_REFINE, thanks to Omega... GM
  5527. Designer. [Skotlex]
  5528. - Also optimized the @refine loop for better performance.
  5529. 2006/07/04
  5530. * Fixed compile issue for NJ_BAKUENRYU, by Saycyber21. [Vicious]
  5531. * Implemented Saycyber21's some NJ work. Untested. :D [Vicious]
  5532. * Implemented cooking chances. Chance of success is 70% - 7*(dish-lv)% +
  5533. 12*(cooking set-lv)%. Exception: When using the legendary cooking set,
  5534. success chance is 100% regardless of dish. [Skotlex]
  5535. * Added battle config setting emergency_recall, specifies behaviour of that
  5536. skill (skill.conf): 0 - Disabled. 1 - can't be used in nowarpto maps. 2 -
  5537. Can be used everywhere. [Skotlex]
  5538. * Removed the NPC/Dance/Song inf2 check of AbraCadabra. whether a skill can
  5539. come out or not is entirely decided by the abra db file now. [Skotlex]
  5540. * Added structure s_addeffect to handle status change additions. Cleaned up
  5541. relevant code. It is now possible to specify ANY status change, not just
  5542. the basic ones. NOTE that the code is proof-read, but untested! [Skotlex]
  5543. * Added support for bonus3 bAddEff/bAddEffWhenHit as follows: [Skotlex]
  5544. bonus3 bAddEff/bAddEffWhenHit, <SC value>, <rate>, <target flag>.
  5545. Target flag is 0: Self. 1: Enemy. 2: Both.
  5546. * Added these descriptions to doc/item_bonus.txt [Skotlex]
  5547. * Added a check when joining a chat to make sure the target object is of
  5548. type BL_CHAT. [Skotlex]
  5549. 2006/07/03
  5550. * Cleared up the bAutoSpellWhenHit description in doc/item_bonus.txt
  5551. [Skotelx]
  5552. * Fixed Phantasmic Arrow and Magical Bullet not being correctly tagged as a
  5553. ranged arrow-type attack. [Skotlex]
  5554. * Updated help.txt and help2.txt, thanks to Inuyasha for providing the
  5555. updated files. [Skotlex]
  5556. * Char-server SQL won't perform the reconnect cleanup routines when
  5557. kick_on_disconnect is disabled. [Skotlex]
  5558. * Renamed summons_inherit_effects to summons_trigger_autospells as the
  5559. setting now only makes the attacks of the slaves trigger the autospells of
  5560. the master (as it should be). [Skotlex]
  5561. * Corrected code capping no_spawn_on_player to 50 when the max should be
  5562. 100. [Skotlex]
  5563. * Warmth will dispel when warping now (or else the effect is left on the
  5564. ground) [Skotlex]
  5565. * Fixed reading of the refine_db not working right when MAX_REFINE is
  5566. increased from 10. [Skotlex]
  5567. * Some more cleaning to the implementation of Abracadabra [Skotlex]
  5568. * Fixed a compile warning in login sql/txt [Skotlex]
  5569. * Fixed pc_makesavestatus not setting your logout position. [Skotlex]
  5570. * Fixed two dances becoming BA_DISSONANCE instead of DC_UGLYDANCE.
  5571. [Skotlex]
  5572. * Added the missing +100% damage modifier of Enchant Deadly Poison.
  5573. [Skotlex]
  5574. * Fixed SkillStatusChangeTable not working correctly for Homun/Guild
  5575. skills. [Skotlex]
  5576. 2006/06/30
  5577. * Fixed a typo in msg_athena.conf, "This item cannot be drop" -> "This item cannot be dropped" [MasterOfMuppets]
  5578. * Added a check to prevent equipped items from being traded. [Skotlex]
  5579. * Added UF_SONG (0x400) to differentiate songs from dances. [Skotlex]
  5580. * Added preliminar support for making a Song+Dance turn into BA_DISSONANCE
  5581. cells. Beware of potential bugs as it's untested. [Skotlex]
  5582. * Added mapflag "nochat" to prevent chatting rooms from being created.
  5583. [Skotlex]
  5584. * Corrected some of the sleep checks when the char id does not matches with
  5585. the char-id expected by the script engine. [Skotlex]
  5586. * Cleanup in itemheal related code, fixed the item heal group bonus not
  5587. working on Groups beyond 7. [Skotlex]
  5588. * Fixed pet's loot not being moved to your inventory on logout. [Skotlex]
  5589. 2006/06/29
  5590. * Made the map server send list of characters online to the char-server on
  5591. reconnection regardless of "kick_on_disconnect" setting, as otherwise, a
  5592. temporary disconnection would make the char-server tag all characters
  5593. offline and refuse to save them afterwards. [Skotlex]
  5594. * Fixed guild storage being "eternally in use" if you quit/logout before
  5595. closing it. [Skotlex]
  5596. * Ending SC_CLOAK/SC_HIDE/SC_CHASEWALK will now trigger ontouch npcs.
  5597. [Skotlex]
  5598. * [Fixed]
  5599. - Scripting system screwing up script position after mixing timers with menus.
  5600. - NPC attached AI mobs display as alive when dead.
  5601. - View data not updating after buildin_unitdeadsit.
  5602. [Improved]
  5603. - NPCE_LOADMAP to execute after all (area) objects are sent to the player.
  5604. - Simplified scripting system. sd will now use pointer to the script state itself.
  5605. [Lance]
  5606. 2006/06/28
  5607. * changed:
  5608. dynamic_pass_failure_ban_how_many:from 3 to 7
  5609. dynamic_pass_failure_ban_how_long:from 60 to 5
  5610. as in official servers. [Musashiden]
  5611. * Added a check in script command "set_option" so that invoking
  5612. "set_option(0)" removes Cart/Peco/Falcon, as expected by scripts. [Skotlex]
  5613. * Added trade-range check on trade start. [Skotlex]
  5614. * Added inf2 4096 (INF2_ALLOW_ENEMY) which is to be used in conjunction
  5615. with INF2_PARTY_ONLY/INF2_GUILD_ONLY when said skill should ALSO be allowed
  5616. to be used on enemies. [Skotlex]
  5617. * Cleaned up a bit the code for @item [Skotlex]
  5618. * Fixed character/storage being sent to be saved TWICE when you logged out
  5619. while the storage is opened. [Skotlex]
  5620. * Added save_settings map config. Specifies after which events do
  5621. characters get saved (defaults to all): 1 - Trade successful, 2 - Vending
  5622. transaction, 4 - Closing storage/guild storage, 8 - hatching a pet.
  5623. [Skotlex]
  5624. * Changed the mob drop rate adjust function to receive a signed int
  5625. argument. Probably will fix those drops with 0% becoming 100% [Skotlex]
  5626. * Corrected Musical Strike having a different damage equation from Throw
  5627. Arrow. [Skotlex]
  5628. * Added state rewarp to players. It gets set when a pc_setpos call is
  5629. triggered while the player is changing maps so that when the player finish
  5630. loading the map, it is inmediately rewarped to where it has been
  5631. rewarped/recalled to. [Skotlex]
  5632. 2006/06/27
  5633. * Map server will now resent the whole list of online characters to
  5634. char-server on reconnect when the kick_on_disconnect setting is active.
  5635. [Skotlex]
  5636. * Cleaned up and optimized the IP sync code. New login_athena config
  5637. setting sync_ip_interval specifies how often to sync the ip. The default is
  5638. 0 (disabled). [Skotlex]
  5639. * Added mapflag "loadevent", now load-map script events will ONLY trigger
  5640. on maps with this mapflag on, rather than every map. [Skotlex]
  5641. * High Jump can now be used in all versus maps. [Skotlex]
  5642. * Added Kaite's opt3 value, taken from jA [Skotlex]
  5643. * Added state dirty == 2 to storages. Signals when a storage was sent for
  5644. final saving. Said storage is removed from memory after the ack from the
  5645. char-server, and they are sent to save if the map/char servers reconnect
  5646. before the ack arrives. In short: they are guaranteed to be saved after a
  5647. char logs out. [Skotlex]
  5648. * Put pay_arche.gat in the "no experience lost" mapflag file. [MasterOfMuppets]
  5649. 2006/06/26
  5650. * Corrected the element of hunter traps. [Skotlex]
  5651. * Deadly Poison now also reduces def2 by 25% [Skotlex]
  5652. * Cleaned up a bit skill_moonlit, Moonlit Petals should work correctly now.
  5653. [Skotlex]
  5654. * Fixed @mi displaying always 0 instead of the mob's class. [Skotlex]
  5655. * Rough implementation of Ground Drift according to description and jA
  5656. info. [Skotlex]
  5657. * Implemented Tatami Gaeshi using skill description and jA implementation
  5658. for reference. [Skotlex]
  5659. * Merged Mitternacht's max_heal/max_heal_lv config settings. [Skotlex]
  5660. * Removed support of packet 0xc3 on the new packet versions. Thanks to
  5661. Meruru for pointing out they aren't being used anymore. [Skotlex]
  5662. * Autospells will now again check for the skill's nk value, so that skills
  5663. tagged "nodamage" skills will not trigger autospells. [Skotlex]
  5664. * Corrected clif_item_sub so that pet eggs will correctly be sent as
  5665. equipment (fixes them showing up "broken" and with random refine levels)
  5666. [Skotlex]
  5667. * [Added]:
  5668. - buildin_unitkill just for kicks. [Lance]
  5669. 2006/06/23
  5670. * [Optimized]:
  5671. - Setting of variables with defined scope in some frequently executed script
  5672. events.
  5673. [Added]:
  5674. - Missing script_require_trigger flags for some power hungry events.
  5675. * Updated mob_db.sql and item_db.sql to latest. [Skotlex]
  5676. * Modified pc_setoption so that it will correctly update sprite AND clothes
  5677. color when mounting/unmounting changing into/from xmas/wedding sprites.
  5678. [Skotlex]
  5679. * Allowed itemdb_exists to return the dummy item. Enables "invalid" items
  5680. to be sold, traded, dropped, etc. [Skotlex]
  5681. * Corrected ASC_BREAKER. Int-based damage is applied after attribute fixes
  5682. and before card reductions. The skill now completely disregards left
  5683. hand weapon. [Skotlex]
  5684. * Standarized PF_MEMORIZE to be 50% cast time on all skills (instead of
  5685. -50% for targetted skills and -66% for ground skills >.>) [Skotlex]
  5686. * Cleared up the comment on what item_check does and how it works.
  5687. [Skotlex]
  5688. * Changed setting for skill_nocast flag 16. It is no longer a "pk-mode map"
  5689. setting, it's now a clone-forbidden skill. That is, skills with the flag 16
  5690. will never be copied by clones. If you use a PK-mode server, use flag 2 now
  5691. to forbid skills from common maps. [Skotlex]
  5692. * Default skills from not being cloned are Magnus Exorcism and Turn Undead.
  5693. * The map search free cell will now use the size of the map # of tries
  5694. before giving up when the spawn area is the whole map. Added a check to
  5695. inmediately give up when the number of spawn retries has reached the max
  5696. specified (no_spawn_onplayer = 100). [Skotlex]
  5697. * Cleaned up a bit the clone code to account for the unit flags
  5698. UF_NOPC/UF_NOMOB when the skill is not ground-based (accounts for self
  5699. skill that causes a ground-tile to be placed, like Dances). [Skotlex]
  5700. * Added pc_bonus_autospell_del, gives support for removing autospell
  5701. effects. When a negative rate is specified, it will decrease the chance of
  5702. casting (eg: You have two different cards with autospell Heal +20% each,
  5703. then do autospell -30. The second card will be cancelled, and the first one
  5704. will become Heal +10%) [Skotlex]
  5705. * npc_timers now will not restore the previous timer data when there's no
  5706. players attached (when it's strictly an npc timer). This should reenable
  5707. the old behaviour of getnpctimer returning the total ellapsed time since
  5708. "startnpctimer" even after the last label has been reached. However, this
  5709. behaviour won't apply to player-attached timers. [Skotlex]
  5710. * [Fixed]:
  5711. - MAPREGSQL overloading SQL table with temperory map registries.
  5712. - Incorrect perfomance calculation for MAPREGSQL loading and saving. [Lance]
  5713. 2006/06/22
  5714. * Guessed and added support for the packets 0x22a (idle) and 0x22b (spawn).
  5715. This should complete the required packets for PACKETVER 7. [Skotlex]
  5716. * Added support for the PACKETVER 7 packets in the "dummy" current
  5717. intravision implementation. [Skotlex]
  5718. * Fixed @autoloot being off by 0.01% when entering a manual value.
  5719. [Skotlex]
  5720. * Restored the "Secret" behaviour of Blast Mine and Claymore Trap where
  5721. each target is hit N times (where N is the number of mobs in the splash
  5722. area at the moment of triggering). [Skotlex]
  5723. * Updated the tools/stackdump script to also handle sig-plugin generated
  5724. backtraces. Now it will also auto-determine whether the exe needs a .exe at
  5725. the end or not. Help me test it as I want this script on stable NOW :X
  5726. [Skotlex]
  5727. * Usage is "stackdump <login/char/map> <txt/sql> [number]". When a number
  5728. is given, sig-plugin stackdumps are assumed, otherwise it parses the normal
  5729. stackdump as before. [Skotlex]
  5730. * Corrected autoloot so that you can specify rate with decimal precision
  5731. ("@autoloot 0.01" should work) [Skotlex]
  5732. 2006/06/21
  5733. * [Removed]:
  5734. - Redundant mob name copying. (it's already copied in mob_parse_dataset) [Lance]
  5735. * [Fixed]:
  5736. - Compilation warnings and errors.
  5737. [Improved]:
  5738. - Changed and moved IP sync status messages to elaborate more. [Lance]
  5739. * Tested and fixed resolve_hostbyname. Applied said function around most of
  5740. the code where needed. Removed includes for the OS/network system pretty
  5741. much from every file (our socket.c file should handle this) [Skotlex]
  5742. * Made the GM mute request bypass the manner_system setting. [Skotlex]
  5743. * Applied use of parse_hostbyname() in chrif.c to fix compilation errors.
  5744. [Skotlex]
  5745. * status_percent_change will now account for when the target's max hp/sp is
  5746. above INT_MAX. [Skotlex]
  5747. * [Added]:
  5748. - DNS (WAN) sync for those pesky disconnections (dynamic ip renewal). [Lance]
  5749. 2006/06/20
  5750. * Some cleaning up of OPTION related code. OPTION_XMAS and OPTION_FLYING
  5751. really ARE the same value clientside! (totally stupid), therefore I've
  5752. opted from removing the flying animation since it really just displays as
  5753. Xmas for others (and the correct fix involves adding a bunch of
  5754. class-change packets...) [Skotlex]
  5755. * Updated skill_require_db to place the Zeny requirements of ZenyNage and
  5756. Fling. [Skotlex]
  5757. * Fixed crash when non-players use ZenyNage. Added the correct Zeny check
  5758. in skill_check_condition, fixed the skill so that it's damage is based on
  5759. whatever zeny is specified in skill_require_db. [Skotlex]
  5760. * Can-act delay will not be reset when warping now. [Skotlex]
  5761. * Fixed Quagmire not altering walking-speed. [Skotlex]
  5762. * Silence now blocks skills both on begin/end casting. [Skotlex]
  5763. * Updated status_calc_bl so that when walking speed changes, the character
  5764. is made to rewalk so that the new speed takes effect inmediately. [Skotlex]
  5765. 2006/06/19
  5766. * Added Ayothaya to nopenalty and nopvp mapflags. [Evera]
  5767. * Combo-used Skills with State "move_enable" will now override the "can't
  5768. move delay". Fixes Break-Fall -> Jump-Kick. [Skotlex]
  5769. * Some more cleanups of battle_calc_damage to account for absorbed damage
  5770. reductions. [Skotlex]
  5771. * Moved back Soul Drain code from mob_dead to skill_counter_additional_effect.
  5772. Now we are back to where the skill animation does not shows, but you DO
  5773. get SP T.T' [Skotlex]
  5774. * Some cleanups and corrections in battle.c to account for negative
  5775. (absorbed) damage. [Skotlex]
  5776. * Fixed fame-list updating crashing char-sql server when the given char-id
  5777. just got into ranking. [Skotlex]
  5778. * Added missing Arunafeltz maps with information from NLZ [Evera]
  5779. 2006/06/18
  5780. * [Fixed]:
  5781. - Typo in status.c add_sc() using 'skill' instead of 'sk' as index, resulting in
  5782. filling the SkillStatusChangeTableArray with junk data.
  5783. - > NEEDS CONFIRMATION < Ends casting if player is knocked with freezing/stun/whatever
  5784. - Typo in parse_frommap. [Lance]
  5785. * [Fixed]:
  5786. - clif_initialstatus using SHRT_MAX instead of USHRT_MAX for status_point.
  5787. * [Temperory Fixed]:
  5788. - Crashing of SQL char-server in parse_frommap case 0x2b01. [Lance]
  5789. * [Removed]:
  5790. - Large part of scripted mob control commands are removed.
  5791. - Large part of scripted player control commands are removed.
  5792. - Scripted mob slaves changing master ID.
  5793. [Added]:
  5794. - Unit control commands.
  5795. - CALLBACK_NPCCLICK for scripted mobs, added this to db/const.txt too.
  5796. - Macro RECURSIVE_MASTER_CHECK in battle.c
  5797. [Modified]:
  5798. - buildin_skilluseid and buildin_skillusepos -> buildin_unitskilluseid
  5799. and buildin_unitskillusepos.
  5800. - md->callback_flag to short (double word). [Lance]
  5801. 2006/06/17
  5802. * Devotion absorbed damage will now appear to come from oneself (instead of
  5803. the original attacker changing directions towards the Crusader) [Skotlex]
  5804. * Updated clif_refres to send inventory, cart, and weight info. [Skotlex]
  5805. * Fixed intif_guild_memberinfoshort to not leave a dangling pointer when
  5806. someone logs out <.< [Skotlex]
  5807. * Changed some mapflags related to the eye of hellion quest. [MasterOfMuppets]
  5808. * [Added]:
  5809. - buildin_checkcell, buildin_mobwarp, buildin_pcattack.
  5810. [Improved]:
  5811. - buildin_skilluseid and buildin_skillusepos to accept a few more arguments.
  5812. - mob_script_callback to return sucess value [Lance]
  5813. * Fixed the party HP packets to send max HP 10000 and scale HP accordingly
  5814. when the player's HP doesn't fits in the packet's field. Fixes HP bars not
  5815. correctly displaying the % of life when max HP is above 32k. [Skotlex]
  5816. 2006/06/16
  5817. * Fixed option value being reset'ed on login (fixes cart/peco/falcon being
  5818. lost) [Skotlex]
  5819. * Corrected @speed to alter your base speed instead of battle one. Means
  5820. the change remains for much longer (until status_calc_pc is invoked, which
  5821. could be due to equipping/unequipping stuff) [Skotlex]
  5822. * Modified the bNoMagicDamage/bNoWeaponDamage bonuses to be a 0-100
  5823. setting. Meaning you can do bonus bNoMagicDamage,50; To make all magic
  5824. damage be reduced by half. This bonus stack, so two cards with
  5825. bNoMagicDamage,50 will give magic immunity. [Skotlex]
  5826. * Removed setting gtb_pvp_only and replaced it with gtb_sc_immunity which
  5827. specifies the threshold before the bNoMagicDamage starts blocking support
  5828. statuses as well. ie: gtb_sc_imunity: 75 will mean that "bonus
  5829. bNoMagicDamage,70;" reduces magic damage by 70%, but does not blocks heal
  5830. or support status, while "bonus bNoMagicDamage,80;" does. [Skotlex]
  5831. * Removed db_tables.sql as it's no longer used. [Skotlex]
  5832. * the mvp_sd is removed when the mob is the emperium and there's no
  5833. killer/exp-awarded (assumed killed by script), this prevents the on-kill
  5834. event from triggering and giving the castle to whoever damaged the most the
  5835. emperium without destroying it. [Skotlex]
  5836. * [Added]:
  5837. - Custom slave mobs to inherit the callback_flag.
  5838. - Added option #25 to buildin_setmobdata to set the callback_flag. [Lance]
  5839. * [Improved]:
  5840. - Cleaned up Custom Mob Script Callback codes. Looks much better now :B. [Lance]
  5841. 2006/06/15
  5842. * [Fixed]:
  5843. - intif_parse_RenamePetOk for not compatible with ANSI-C initialzation specification.
  5844. [Lance]
  5845. * Added indexes for loginlog and ipbanlist as they did not have any.
  5846. (note, someone already put the index on loginlog on trunk.) [Euph]
  5847. * Merged Adam's patch to let the char-server handle validation of
  5848. pet-name-change requests through the allowed char letters config. [Skotlex]
  5849. * Fixed "wedding_ignore_palette: yes" not working when relogging with the
  5850. gear already equipped. [Skotlex]
  5851. * Added blocking of the Kick skills when you are a Soul Linker. [Skotlex]
  5852. * Added enabling to turn off a kick-stance regardless of class. [Skotlex]
  5853. * Altered a bit how status_set_viewdata behaves in regards to Wedding/Xmas
  5854. options. [Skotlex]
  5855. * Added back OPTION_XMAS, but the actual value is missing! [Skotlex]
  5856. * Corrected chrif_save so that the player is not set offline on map-change.
  5857. [Skotlex]
  5858. * Added change-look support in pc_setoption when specifying OPTION_XMAS
  5859. [Skotlex]
  5860. * Fixed clif_parse_RemoveOption removing all options instead of just
  5861. Falcon/Cart/Peco [Skotlex]
  5862. * Fixed clif_send not sending packets to SELF when specifying AREA if the
  5863. source is not on the map yet. [Skotlex]
  5864. * Fixed and cleaned up script command 'equip' [Skotlex]
  5865. * Fixed 'autoequip' items. [Skotlex]
  5866. * Fixed Aspd not being updated in your status window after Agi/Dex
  5867. increasing statuses take effect. [Skotlex]
  5868. 2006/06/14
  5869. * Fixed map_nick2sd so that searching for "Adam" will not match a char
  5870. named "Adam Smith". Thanks to Adam for reporting it out. [Skotlex]
  5871. * Modified how luk reduces status changes by reducing the gap. Eg: resist =
  5872. vit; resist += (max - resist)*luk/300; [Skotlex]
  5873. * Added battle settings pc_max_sc_luk/mob_max_sc_luk to handle which is the
  5874. luk threshold at which you gain inmunity (defaults to 300). [Skotlex]
  5875. * Fixed buildin_getmobdata. It was trying to handle the first parameter as the
  5876. array to fill in. [blackhole89]
  5877. * Blocked again skill usage during marionette. [Skotlex]
  5878. * Fixed main.sql adding a key on char_id rather than account_id for the
  5879. char table. [Skotlex]
  5880. * Cleaned up character saving in char-sql, it no longer needs to query the
  5881. database to see if the player exists on each char-save, instead it checks
  5882. the received data against the online-players db. No such fix is required
  5883. for char-txt. [Skotlex]
  5884. * Added an error message on the char-server when the received player data
  5885. size does not matches with the expected size (should avoid the crash that
  5886. happens on such a memcpy). [Skotlex]
  5887. * [Improved]:
  5888. - script_save_mapreg for MapregSQL Saving to display perfomance only in slow
  5889. queries. [Lance]
  5890. 2006/06/13
  5891. * Updated mob_db.sql and item_db.sql to latest. [Skotlex]
  5892. * Added account_id index to char table. Thanks to Buuyo for reporting it.
  5893. Sql users apply upgrade_svn7146.sql NOW. [Skotlex]
  5894. * Marionette and Devotion will now check raw distance and ignore obstacles
  5895. and the like. [Skotlex]
  5896. * Added irc_channel_pass setting and prevent crashing when irc server
  5897. lookup by host fails. Thanks to Trancid for the details. [Skotlex]
  5898. * [Fixed]:
  5899. - clif_parse_GetCharNameRequest displaying false alarm for legitimate GM snooping.
  5900. [Lance]
  5901. * Added support for reading correctly status change data from Guild and
  5902. Homun skills. [Skotlex]
  5903. * Added support for reading Homun skill data (which means the HM skills are
  5904. now safe to add to skill_db, skill_require_db, etc) [Skotlex]
  5905. * Oppositions can't be made during WoE now. [Skotlex]
  5906. * Fixed a few compiler warnings from VC [Skotlex]
  5907. * Commented out the Homunculus Skills<->Status Change link which was
  5908. causing some memory corruptions. [Skotlex]
  5909. 2006/06/12
  5910. * [Fixed]:
  5911. - buildin_npcshopitem not allocating extra 1 block of terminator.
  5912. [Added]:
  5913. - Modified versions of Dj-Yhn's buildin_npcshopdelitem and buildin_npcshopadditem
  5914. [Lance]
  5915. * Updated clif_disp_onlyself to not use dynamic memory and write directly
  5916. to the player's buffer. [Skotlex]
  5917. * Updated @noask to also tell the user what he has just rejected (added
  5918. msg_athena entries for each of the different requests). Also updated it to
  5919. use clif_disp_onlyself. [Skotlex]
  5920. * Fixed a pair of missing initializers in the clif storage functions.
  5921. [Skotlex]
  5922. * @heal no longer displays a healing animation. Fixes the client believing
  5923. you couldn't be healed more than 32K. [Skotlex]
  5924. * Now you can use any skills (except encore/dancing ones) while under
  5925. Longing for Freeding. [Skotlex]
  5926. * Now you can use any skills while under Marionette Control. [Skotlex]
  5927. * Fixed npc_checknear's distance check returning the opposite of what it
  5928. should (false when the range is correct and viceversa) [Skotlex]
  5929. * Added a warning on item loading when an item is of equippable type but
  5930. has no equippable position. [Skotlex]
  5931. * Turning an alliance to an opposition won't work now during WoE [Skotlex]
  5932. * Slaves can summon other mobs now. The only ones who can't do this are
  5933. player summoned mobs. [Skotlex]
  5934. * Merged the following functions for faster processing of items: [Skotlex]
  5935. clif_storageitemlist + clif_storageequiplist = clif_storagelist
  5936. clif_guildstorageitemlist + clif_guildstorageequiplist = clif_guildstoragelist
  5937. clif_itemlist + clif_equiplist = clif_inventorylist
  5938. Note that the changes are a bit substantial and need proper testing!
  5939. * Increased max knockback value support to 25. [Skotlex]
  5940. * [Optimized]:
  5941. - buildin_npcshopitem memory allocation to calculate before reallocating.
  5942. [Lance]
  5943. * Made guild member exp an unsigned int. [Skotlex]
  5944. * Various cleanups to the npc clicking related functions. Should fix quite
  5945. some possible crashes from crafted packets. [Skotlex]
  5946. * Added overflow checks for bonus settings mdef_rate/def_rate. [Skotlex]
  5947. * Added missing update of INT after a buf. [Skotlex]
  5948. * Small cleanup of how SC_BLEEDING works. [Skotlex]
  5949. * Fixed party_foreach_samemap invoking the function on the CASTER instead
  5950. of on the party members. [Skotlex]
  5951. * Modified clif_parse_NpcClicked to handle the different situations with
  5952. different bl-objects (attack on players/mobs, click on npcs or mobs with
  5953. npc attached) [Skotlex]
  5954. 2006/06/09
  5955. * [Fixed]
  5956. - Compilation warnings on guild.c and int_guild.c [Lance]
  5957. * Added structure party_data and party_member_data to the map server to
  5958. hold party-specific required information about parties including
  5959. Monk/TK/SG/SN states and party member count. Family information is still
  5960. missing, and handling of the state should probably be done by the
  5961. char-server, too... [Skotlex]
  5962. * party Hp updates are no longer done each time the Hp is modified, but
  5963. together with the party xy timer. It means HP-bars will be a bit delayed
  5964. before being updated, but packet consumption should be much less during
  5965. heated battles. [Skotlex]
  5966. * Fixed MoM's typo [Vicious]
  5967. * Fixed map_readafm missing strcpy(afm_name, m->name). [Skotlex]
  5968. * [Improved]:
  5969. - npc_click interception on BL_MOB and BL_PC to let sd act accordingly.
  5970. [Lance]
  5971. * [Fixed]:
  5972. - Execution of sleep/sleep2 more than once will hang the script_state.
  5973. [Lance]
  5974. * Fixed @mapinfo displaying incorrectly maps with nosave which send you
  5975. back to your last savepoint. [Skotlex]
  5976. * Moved guild_exp_rate from a mapserver battle config setting to a char
  5977. server config. It no longer modifies the total taxed exp as seen on the
  5978. guild information window, but directly modifies the exp that the guild
  5979. earns. [Skotlex]
  5980. * Added an error report and correction when the map server receives a guild
  5981. from the char-server with more guild members than MAX_GUILD. [Skotlex]
  5982. * Changed the interval between waterballs back to 125 [MasterOfMuppets]
  5983. * Fixed a typo in char_sql/char.c, thanks to Euph [MasterOfMuppets]
  5984. 2006/06/08
  5985. * Modified guild exp to be an unsigned int rather than a signed one.
  5986. [Skotlex]
  5987. * Fixed @skilltree printing out Unknown job for most targets used.
  5988. [Skotlex]
  5989. * Cleaned clif_pvpset to not send the packet to nearby characters when the
  5990. source is GM-hidden. May help fix the crash on PvP with gm-hidden
  5991. characters. [Skotlex]
  5992. * Modified map_freeblock_unlock so that aFree errors will report the
  5993. file/line that INVOKED the function rather than the function itself.
  5994. [Skotlex]
  5995. NOTE: Do NOT disable the memory manager as that will break this change.
  5996. This change is to be temporarily set until the afree'd error can be
  5997. resolved.
  5998. * Updated mob_npc_warp to a three-state config switch. 0 disables. 1 enable
  5999. only on warps that don't lead to nobranch maps. 2 - enable on all warps.
  6000. [Skotlex]
  6001. * Adjusted Don't Forget Me, Defender, Longing to use all val entries, and
  6002. to hold the speed adjustment value rather than speed penalty (eg: 125
  6003. instead of 25). [Skotlex]
  6004. * Cleaned up status_calc_speed so that speed penalties are correctly
  6005. handled (eg: 25% penalty is speed*100/75, not +speed*25/100). Thanks to
  6006. Euph for pointing it out and Belle for the speed mechanics. [Skotlex]
  6007. 2006/06/07
  6008. * Fixed Sense using mdef instead of mdef2 [Skotlex]
  6009. * Fixed item-skills not showing up on login. [Skotlex]
  6010. * Cleaned up clif_parseLoadEndAck, by testing which packets are required
  6011. only on first-login and which ones are required on all map-changes.
  6012. Skill-tree, Exp, Skill Points and most of the basic status are no longer
  6013. sent on map-change (items, cart data and zeny still need to be sent one
  6014. very map-change). [Skotlex]
  6015. * Fixed the mob state not being set to Berserk/Angry correctly after the
  6016. mob reaches the target's location. [Skotlex]
  6017. * Added config setting mob_npc_warp, when set to yes, enables mobs to be
  6018. warped between maps when stepping on a npc-warp. [Skotlex]
  6019. * Added monster_ai setting &64, when enabled makes a mob run to any nearby
  6020. npc-warp when their current target has switched maps. [Skotlex]
  6021. * Added pc_calcexp to calculate individual exp bonuses acquired from exp's
  6022. source (race bonus cards, SG Exp skills, pk-mode higher level exp) [Skotlex]
  6023. * pc_gain_exp now also receives the source of the exp, when said source
  6024. exists, bonuses are applicated as needed. [Skotlex]
  6025. * Added status_kill when capturing a mob, should take care of the mob not
  6026. respawning after caputed. [Skotlex]
  6027. * Fixed item info not displaying the found item id [Skotlex]
  6028. * Fixed item info not displaying the weight value properly. [Skotlex]
  6029. * Adjusted status resistances and durations taking as base Viccious's info
  6030. from the kro guidebook. [Skotlex]
  6031. * Moved souldrain code from skill_counter_additional_effect to mob_dead. It
  6032. should display the skill animation correctly now. [Skotlex]
  6033. * Adjusted several sc rate/time reductions as pointed out by Playtester.
  6034. [Skotlex]
  6035. - Luk now plays a luk/10 reduction role rather than a luk/3 one.
  6036. * Removed char_nick2id from char-sql server as it's no longer needed.
  6037. [Skotlex]
  6038. * Fixed quitting the map server not properly saving the storage before
  6039. deleting it. Thanks to Adam for pointing it out. [Skotlex]
  6040. * Cleaned status_get_sc_tick/status_get_sc_def to use the status_data
  6041. function. [Skotlex]
  6042. * SC_STOP's chance and duration can't be reduced anymore. [Skotlex]
  6043. * Storm Gust no longer has a 100% chance to freeze by passing mdef, now it
  6044. has a 300% base chance reduced by mdef and the like as explained out by
  6045. Tharis. [Skotlex]
  6046. * Frost Diver/Frost Nova's base freezing chance is no longer affected by
  6047. target's int. [Skotlex]
  6048. * [Improved]:
  6049. - mob_dead not to remove script controlled monsters with player sprites.
  6050. [Added]:
  6051. - buildin_mobdeadsit :D [Lance]
  6052. * [Fixed]:
  6053. - temp++ gets issued before if(mvp_damage<(unsigned int)md->dmglog[i].dmg) in
  6054. mob_damage. Thanks to seahorsix. [Lance]
  6055. * [Fixed]:
  6056. - Corrected login-server SQL to use *((ulong *)p) instead of (ulong)p [Lance]
  6057. * [Optimized]:
  6058. - list and size not being initialized (size get intialized in default: switch case)
  6059. Eliminated default case and initialized list and size at the beginning. [Lance]
  6060. 2006/06/06
  6061. * Hopefully fixed for sure mobs getting extra stats when changing-class due
  6062. to the mobs level up setting. [Skotlex]
  6063. * Removed a piece of code that should no longer be needed due to the
  6064. combo-skill setting (inf = self, inf2 = no-target-self) which is blocking
  6065. self-skills from being used on others (pets/mobs should be allowed to do
  6066. that) [Skotlex]
  6067. * Added a status_check_skilluse call in Sightblaster to prevent it from
  6068. hitting hidden/cloaked/act-dead/etc players. [Skotlex]
  6069. * Fixed firewall counter going down by 2 each hit rather than 1. [Skotlex]
  6070. * Fixed Soul Burn not zapping away all SP. [Skotlex]
  6071. * The monsters can level up setting will not take effect when the mob's
  6072. level is LESS than their db counter-part (should prevent under-leveling
  6073. causing underflows and semi-immortal mobs) [Skotlex]
  6074. * Fixed mvp-exp calculations being messed up with more than one attacker.
  6075. [Skotlex]
  6076. * Changed the mob exp race bonus so that each player gets their own bonus,
  6077. rather than the killer's bonus applying to everyone. Still not the
  6078. "correct" way, but one step closer to it. [Skotlex]
  6079. * [Fixed]:
  6080. - Allocation of event_list in guild_npc_request_info to aCalloc so
  6081. memcpy(ev->name,event,strlen(event)) will have a null terminator. [Lance]
  6082. 2006/06/05
  6083. * Fixed a crash when using SL_SMA and the "combo" ain't ready. [Skotlex]
  6084. * Hopefully fixed changing a mob's class causing them to get all sort of
  6085. stat bonuses due to the mobs-level-up setting. [Skotlex]
  6086. * Changed hit, flee, cri, flee2, def2 and mdef2 to signed short, def, mdef
  6087. to signed char to correctly account for cards with penalties in said stats.
  6088. [Skotlex]
  6089. * Fog of Wall won't affect the caster now in any way. [Skotlex]
  6090. * Added clif_fixpos packets before attacking for the first time to clear
  6091. any position sync issues with the client. [Skotlex]
  6092. * Fixed skill_unitsetting using layout->count for the for instead of
  6093. group->count [Skotlex]
  6094. * Added SC_INCDEXRATE/SC_INCAGIRATE. NPC_POWERUP/NPC_AGIUP now correctly
  6095. increase dex/agi by 40% per level. [Skotlex]
  6096. * Fixed char-sql server not deleting character variables when deleting a
  6097. char. [Skotlex]
  6098. * Corrected cloaking not ending on attack if you are near a wall. [Skotlex]
  6099. * Updated pc_bonus to use cap_value on all status_data modifiers to prevent
  6100. overflows/underflows. [Skotlex]
  6101. 2006/06/03
  6102. * Fixed @mi/@mobinfo not showing the name collumns correcly [shadow]
  6103. * Solved the bug that made firewalls only castable a few times until [MasterOfMuppets]
  6104. you relogged. Thanks to Euph for the fix.
  6105. * Added variable other_mapserver_count to chrif.c which holds total count
  6106. of connected map-servers. By using this we prevent sending unnecessary
  6107. packets to the char-server when there's no more map-servers connected.
  6108. [Skotlex]
  6109. - Affected packets are whispers, announces, party messages, guild messages.
  6110. 2006/06/02
  6111. * Fixed Visual Studio 7.1 Solution File (Login TXT and Map TXT were removed)
  6112. * Fixed a bug in unit_can_reach_bl which breaks path seeking when the
  6113. target is near obstacles. [Skotlex]
  6114. * Updated offensive use of Sanctuary to function like on the official servers [MasterOfMuppets]
  6115. * Changed the interval between waterballs from 150 to 250 milliseconds [MasterOfMuppets]
  6116. * Corrected clif_parse_takeitem to ALWAYS return a NAK packet when it
  6117. fails. Fixes cases where the client gets "stuck" and refuses to let you
  6118. pick any items. [Skotlex]
  6119. * Removed the walk delay from firewall and changed its knockback [MasterOfMuppets]
  6120. to 1 tile to make it act more like in the official servers.
  6121. * Some cleaning of the mob slave ai. [Skotlex]
  6122. * Corrected Brandish Spear to work on levels above 10. [Skotlex]
  6123. * Updated Two-HandQuicken, One-HandQuicken to give 30 +2*lv% aspd-rate for
  6124. skill levels above 10 (meant for boss casted skills) [Skotlex]
  6125. * Fixed Spear-Quicken messing with the calc_flag [Skotlex]
  6126. * Fixed Freeze/Stone/Benedictio not changing your elemental LEVEL to 1.
  6127. [Skotlex]
  6128. * [Fixed]
  6129. - Yet another compilation warning. [Lance]
  6130. 2006/06/01
  6131. * Altered status_calc_pc so that equipment scripts are ran before
  6132. card-scripts. [Skotlex]
  6133. * Fixed pc_bonus to not underflow/overflow when adjusting def/mdef.
  6134. [Skotlex]
  6135. - These two together, should fix Tao Gunka Card.
  6136. * npc_debug_warps() will now be invoked if warp_point_debug is set.
  6137. [Skotlex]
  6138. * Updated item_db.sql/mob_db.sql to current. [Skotlex]
  6139. * Fixed NPC_SELFDESTRUCTION not showing nor dealing damage. [Skotlex]
  6140. * NPC_TRANSFORMATION/NPC_METAMORPHOSIS will now preserve the original mob
  6141. without removing it when the skill level is greater than one. [Skotlex]
  6142. * Added SC_DANCING declaration in the Status Change tables to signal it
  6143. modifies Walk speed. [Skotlex]
  6144. * Fixed pc_damage setting your canlog_tick even if the damage has no source
  6145. (eg: poison, berserk) [Skotlex]
  6146. * Berserk's aspd bonus now stacks with other aspd bonuses, but is still
  6147. affected by Quagmire/Forget-me-not. [Skotlex]
  6148. * Corrected setting slaves_inherit_mode to not apply to morphosis skills.
  6149. [Skotlex]
  6150. * Corrected pc_setoption to invoke status_calc_pc when getting/removing the
  6151. cart. [Skotlex]
  6152. * Fixed @mobinfo displaying the wrong element. [Skotlex]
  6153. * Fixed Autoblitz taking into account target's luck rather than attacker's
  6154. [Skotlex]
  6155. * Fixed slaves warping endlessly to their master when the master-slave
  6156. distance exceeds 30. [Skotlex]
  6157. * SC_ORCISH will now be dispelled on logout (if debufF_on_logout is set)
  6158. [Skotlex]
  6159. * Removed attackrange/attackrange_ from TBL_PC, corrected clif.c using the
  6160. incorrect range variable. [Skotlex]
  6161. * You can now equip/unequip stuff while the storage is open. [Skotlex]
  6162. 2006/05/31
  6163. * Fixed Soul Drain not really giving you SP [Skotlex]
  6164. * [Fixed]:
  6165. - Suppressed compilation warning in chrif.c [Lance]
  6166. * [Fixed]:
  6167. - Guys can't go across map-servers :( [Lance]
  6168. * [Fixed]:
  6169. - Restoration and saving of sd->npc_id must be done every time. [Lance]
  6170. * Added back the Freeze/Petrify adjustments of -50%def and +25%mdef (when
  6171. where these lost?). Thanks to Buuyo for pointing it out. [Skotlex]
  6172. * Corrected the mob_ai&2 setting triggering rude-attacked due to can't walk
  6173. delay. [Skotlex]
  6174. * Made the char_name_option char_athena.conf setting apply to parties and
  6175. guilds as well. It cannot be applied to pets yet without adding a
  6176. change-name-request interserver packet. [Skotlex]
  6177. * Moved the JOB_* defines from map.h to mmo.h, update char.c to use them.
  6178. [Skotlex]
  6179. * Added function char_read_fame_list for famelist reading. Invoked it on
  6180. init, and made it be sent automatically to connecting map servers.
  6181. [Skotlex]
  6182. * Some cleaning of the fame-list reading code. [Skotlex]
  6183. * Some cleaning of the fame-update code, fixed a logic bug which made the
  6184. ranking list fail to display the correct ranker names. [Skotlex]
  6185. * Removed typedef bool from socket.h and included cbasetypes.c instead.
  6186. [Skotlex]
  6187. * Cleaned up and corrected the calculation of hit/flee/cri/lucky dodge in
  6188. status_calc_bl. [Skotlex]
  6189. * [Fixed]:
  6190. - Incorrect SQL syntax in login.c (missing collumn) [Lance]
  6191. * [Improved]:
  6192. - SQL upgrade file for the new loginlog. Thanks to ultramage. [Lance]
  6193. * [Fixed]:
  6194. - nullpo in pet.c caused by equipping without checking if the pet is available.
  6195. [Lance]
  6196. * [Fixed]:
  6197. - Latest client support completed! [Lance]
  6198. * [Fixed]:
  6199. - Missing #include for cbasetypes.h in login server SQL.
  6200. - Logic errors in run_script [Lance]
  6201. * [Added]:
  6202. - Partial support for latest login packet. But it seems to have a new security
  6203. module. [Lance]
  6204. 2006/05/30
  6205. * [Improved]:
  6206. - Fake NPC interface to use real NPCs.
  6207. - Scripting interface to restore and save sd->npc_id. [Lance]
  6208. * Added function pc_check_skilltree for checking if you unlocked new
  6209. tree-skills when raising non-passive skills. [Skotlex]
  6210. * Fixed flee/hit calculation in status_calc_bl to account for bonuses from
  6211. the base status. [Skotlex]
  6212. * [Fixed]:
  6213. - Compatibility problems in login.c [Lance]
  6214. * Fixed pets ignoring can-act delays for skill usage. [Skotlex]
  6215. * [Added]:
  6216. - Mercenary.c in VS.NET 2005 project files
  6217. [Improved]:
  6218. - loginlog using unsigned long `ip` field.
  6219. (Please check for compatibility problems). [Lance]
  6220. * Fixed status_calc_pc not zero'ing ALL vars it should, allowing certain
  6221. bonuses (like effect-on-hit) to stack. [Skotlex]
  6222. * slaves inherit speed setting will now work regardless of whether the
  6223. slave or master has the MD_CANMOVE mode bit. [Skotlex]
  6224. * Call Slave now invokes slaves on a 5x5 area around master. [Skotlex]
  6225. * AL_TELEPORT will fail when used by slave mobs. [Skotlex]
  6226. * Added NPC_ENERGYDRAIN, NPC_MENTALBREAKER to the list of undodgeable
  6227. attacks. [Skotlex]
  6228. * Fixed status_damage not setting your HP to 0 when you died [Skotlex]
  6229. * Fixed the pcbonus2 warnings using the wrong value before printing the
  6230. invalid Element error. [Skotlex]
  6231. * Fixed underflow issues when calculating dmotion. [Skotlex]
  6232. * Fixed Absorb Spirit Spheres [Skotlex]
  6233. * Added battle_config min_chat_delay (default 0, battle/client.conf)
  6234. specifies in ms what is the min delay between player sent chats
  6235. (whisper/global/party/guild). Messages that exceed this threshold are
  6236. silently ignored for now (perhaps need to add a "DON'T SPAM" reply to the
  6237. player?) [Skotlex]
  6238. * [Fixed]:
  6239. - signed/usigned problem in sprintf and fscanf @ mercenary.c [Lance]
  6240. * Rewrote/cleaned up @petfriendly. [Skotlex]
  6241. * Cleaned up final part of status_calc_pc (flags 2/4 do not exist) [Skotlex]
  6242. * Updated attr_fix_table reading code to account for ELE_MAX (will
  6243. correctly read bigger elemental tables if ELE_MAX is changed) [Skotlex]
  6244. * Aggressive mobs will now use battle_check_range rather than mob_can_reach
  6245. to decide whether to lock-on or not to a target within sight-range. [Skotlex]
  6246. * Added warnings in mob_readdb when the mob's element is invalid. [Skotlex]
  6247. * Added error messages in pc_bonus* functions when an invalid element is
  6248. passed to the relevant bonuses. [Skotlex]
  6249. * [Optimized]:
  6250. - clif_specialeffect to use the enums.
  6251. [Improved]:
  6252. - buildin_specialeffect and buildin_specialeffect2 to accept effect area
  6253. definition. [Lance]
  6254. * [Added]:
  6255. - Visual Studio .NET 2003 includes for mercenary.c [Lance]
  6256. * Removed the on-die specific code from unit_remove_map and placed it on
  6257. the corresponding *_dead functions. unit_remove_map should never assume the
  6258. char died, it is just a "remove from map" function. [Skotlex]
  6259. * Updated status_damage to handle the general death code (clearing status
  6260. changes, clearing skill related data, sending death packet, etc). The
  6261. return value from the *_dead functions will tell it what to do or not with
  6262. the object (death aborted, clear it from map/memory, etc) [Skotlex]
  6263. * Cleaned up pc_dead to take advantage of the fact that status changes are
  6264. not ended until after the function. [Skotlex]
  6265. * Disabled ontouch npcs triggering on hidden/chase-walk characters.
  6266. [Skotlex]
  6267. * Updated/adapted current Homun code to use the status_data update.
  6268. [Skotlex]
  6269. * Updated map-server Makefile to compile mercenary.* files. [Skotlex]
  6270. * [Fixed]:
  6271. - Pets attacking even master is dead. [Lance]
  6272. * Fixed battle_calc_weapon_attack damage capping damage to a minimum of 0
  6273. (negative values should be allowed when attack is absorbed by target's
  6274. element) [Skotlex]
  6275. 2006/05/29
  6276. * [Fixed]:
  6277. - Missing ';' in item #4358 [Lance]
  6278. * [Fixed]:
  6279. - Missing maps in map index database. [Lance]
  6280. * [Fixed]:
  6281. - Battle mechanics in battle_check_target [Lance]
  6282. * [Fixed]:
  6283. - Typo in mob_dead causing crash. Thanks to reddozen and his gang for testing.
  6284. [Lance]
  6285. * Cleaned up friend list saving and fixed loading of friends.txt file
  6286. (char-txt) [Skotlex]
  6287. * Added the Arunafeltz maps, not tested yet [Playtester]
  6288. - someone with an up-to-date client should test them
  6289. * Fixed pc_gainexp resetting your exp to 0 rather than adding it in...
  6290. [Skotlex]
  6291. * Corrected aspd calculation code to avoid negative overflows. [Skotlex]
  6292. * Fixed battle_check_target check on BCT_ALL to check versus BL_CHAR
  6293. instead of BL_PC and BL_MOB [Skotlex]
  6294. * [Fixed]:
  6295. - Declaration of int map_getcellp(struct map_data*,int,int,cell_t); [Lance]
  6296. * Removed Undead being immune to poison status. [Skotlex]
  6297. * Removed speed penalty from SC_SKA [Skotlex]
  6298. * Fixed SC_SPURT triggering on Soul Linkers. [Skotlex]
  6299. * SC_DODGE won't be dispelled on death now. [Skotlex]
  6300. * [Fixed]:
  6301. - pc_follow_timer possible triggering crash.
  6302. - pc_reg_received to use battle_status.hp instead of status.hp
  6303. [Added]:
  6304. - macro map_id2index for non-cyptic mapid to mapindex conversion. [Lance]
  6305. * Added a division by zero check in mob_dead to prevent the (impossible)
  6306. case where a mob dies with received damage of zero. [Skotlex]
  6307. * Modified skill_get_range2 to return range 9 for skills with range 0 for
  6308. Non-Players. This usually signals Self skills, and mobs/pets should be able
  6309. to use them in other characters. [Skotlex]
  6310. * Optimized a bit the SC_PROVOKE code (to use val3/val4) [Skotlex]
  6311. * Fixed draining when the amount drained is negative (invoke zap rather
  6312. than heal) [Skotlex]
  6313. * Implemented GS_FLING as per the current skill description. [Skotlex]
  6314. * Fixed pc_readparam/pc_setparam to use battle_status.hp/sp rather than
  6315. status.hp/sp, fixes scripts reading the wrong Hp/Sp values [Skotlex]
  6316. * Added some missing SC_* entries on the initial listing (potion related
  6317. and speed up ones) [Skotlex]
  6318. * Fixed function declaration of map_getcellp() [Skotlex]
  6319. * [Fixed]:
  6320. - status.c:920: warning: 'mbl' might be used uninitialized in this function
  6321. - skill.c:6648: warning: 'matk_min' might be used uninitialized in this function
  6322. - skill.c:6648: warning: 'matk_max' might be used uninitialized in this function
  6323. - skill.c:2826: warning: 'sid' might be used uninitialized in this function [Lance]
  6324. * [Optimized]:
  6325. - Removed unused variable (account_id) in storage_guild_storagesaved.
  6326. * [Optimized]:
  6327. - Removed unused checks for unsigned data type and possible logic error for
  6328. char type (gcc treats char as unsigned). [Lance]
  6329. * [Fixed]:
  6330. - Relogging in with 0 HP didn't trigger dead event. [Lance]
  6331. 2006/05/28
  6332. * Added functions status_revive, pc_revive and mob_revive to handle revival
  6333. (it doesn't handles player respawning, though). Fixed reviving @ commands.
  6334. [Skotlex]
  6335. * Added SC_BLADESTOP to the skill enum at the beginning of status.c (fixes
  6336. Bladestop causing an unknown status change message). [Skotlex]
  6337. * Fixed MSS_DEAD state skills not triggering. [Skotlex]
  6338. * Changed undeads to by default always sustain 100% of the damage from firewalls [MasterOfMuppets]
  6339. * [Fixed]:
  6340. - script functions that doesn't pass references, thanks to End_of_exam. [Lance]
  6341. * [Protected]:
  6342. - clif_parse_LGMmessage from possible hacks [Lance]
  6343. * Fixed unable to store n items into storage unless n was the total amount
  6344. of items you had. [Skotlex]
  6345. * Suppressed compilation warnings (unsigned and signed mismatches) [Lance]
  6346. 2006/05/27
  6347. * Added structure status_data which holds status-related information (str,
  6348. agi, etc, speed, amotion, adelay, dmotion, weapon-damage, race, size, etc)
  6349. and weapon_atk structure with the weapon specific info (atk, atk2, element)
  6350. to be used by all combat structures (TODO: Homun needs to be updated to use
  6351. it). This in change involves a LOT of changes throughout the code and many
  6352. optimizations were done as well. Partial list (see svn changelog for complete
  6353. changes): [Skotlex]
  6354. - NOTE: Changes are substantial! I tested a bunch of stuff and all the
  6355. skills I changed the most, but it is possible there are unnoticed bugs
  6356. remaining to fix!
  6357. - Cleaned up TBL_PC, TBL_MOB, TBL_PC and mob_db structures to use status_data.
  6358. - Split damage received functions into pc_damage/pc_dead and mob_damage/mob_dead
  6359. - Added status functions to deal with damage and healing (status_damage,
  6360. status_heal, status_percent_change) and a bunch of defines for easier
  6361. handling of them (status_percent_heal, status_percent_damage,
  6362. status_fix_damage, status_kill, etc). Objects must be hurt/healed through
  6363. THIS, pc_damage/mob_damage most no longer be directly invoked!
  6364. - Rewrote and cleaned up battle_calc_misc_attack
  6365. - Merged config options pc_attack_attr_none, mob_attack_attr_none,
  6366. pet_attack_attr_none into attack_attr_none (type 4)
  6367. - Removed config options player_defense_type, monster_defense_type,
  6368. pet_defense_type in favor of weapon_defense_type
  6369. - Modified skill_calc_heal to take into account the MEDITATION bonus.
  6370. - Modified Slim Pitcher so it will work when casted by non-players. Will
  6371. now also work with SP-healing items.
  6372. - Rewrote Freedom of Cast code to use function status_freecast_switch to
  6373. switch adelay/speed when cast begins/ends.
  6374. - Modified Magic Power to store amplified MATK/MATK2 in val3/val4 for
  6375. easier updating when used in conjunction with ground skills.
  6376. - Fixed Asura Strike being usable from within a combo regardless of combo skill.
  6377. - Added status_calc_bl which does status-change related calculations using
  6378. as base the base_status of the bl object and the SCB_* flag passed. This is
  6379. invoked on status changes, and status_calc_pc will no longer be invoked
  6380. (which results on much faster status-change calculations).
  6381. - pc_clean_skilltree will now also remove item-granted skills.
  6382. - Learning skills will now only invoke status_calc_pc when the skill is passive.
  6383. - Cleaned up pc_check_base/job_lvup to only invoke the lv-up related
  6384. packets and functions ONCE regardless of skill-levls earned.
  6385. - Cleaned up pc_ regen related functions.
  6386. - Made player-sprite mobs have item pickup animation and walkdelay when taking items.
  6387. - Clones will copy a player's base status rather than battle status (so
  6388. status-change alterations are not cloned)
  6389. 2006/05/26
  6390. * Part B of the homunculus code. [blackhole89]
  6391. While most of the homunculus handling functions are in now, it still lacks
  6392. code required for players to create it.
  6393. Given I haven't screwed up, you could master yourself one through the DB though.
  6394. * Fixed crashing in mob.c [Lance]
  6395. * Patches to allow everything to work right. + 1 more sample script. [Lance]
  6396. * Mob control engine tested 99% working so far. [Lance]
  6397. * Change scripting engine's NPC scope vars to dot (.) style.
  6398. * Improved and (should be fully) fixed the mob control engine. [Lance]
  6399. * Fixed typos in char.c [Lance]
  6400. * Rewrote fame rank lists system to reduce char-server load, as requested by
  6401. Skotlex: now it has a copy of those lists, and updates only the proper one
  6402. when needed instead of rebuilding all from saves everytime (which required
  6403. to always save the character before rebuilding the lists) [DracoRPG]
  6404. - Note it hasn't been compiled nor tested with SQL, please do it for me
  6405. 2006/05/25
  6406. * Simplified ASC_BREAKER by making it a BF_WEAPON attack with an additional
  6407. int-based damage component (which is added right before elemental
  6408. modifiers) as described by AuronX. Pending further refining. [Skotlex]
  6409. * Resolved differences between Stable/Trunk msg_athena.conf. [Lupus]
  6410. Fixed atcommand @request MSG numbers accordinly.
  6411. On adding new MSG strings, plzm reserve them in STABLE msg_athena.conf, too
  6412. * Added NoVending mapflag. You may disable vending in the streets [Lupus]
  6413. * Increased capacity for Account Variables to 64 [Skotlex]
  6414. * Reverted Intravision implementation to that of stable's. [Skotlex]
  6415. * Corrected Login Server taking it's first argument as both login config
  6416. and lan config. [Skotlex]
  6417. * Fixed mob control commands.
  6418. * Fixed memory leak in scripts (again). Still have a few lying. [Lance]
  6419. 2006/05/24
  6420. * Fix to the slave AI problem. [erKURITA], by [Skotlex], reported by Niktout.
  6421. * Item sharing now shares the same rules as exp sharing (no sharing when
  6422. dead, or idle, etc) [Skotlex]
  6423. * Fixed summoned slaves being able to cast onspawn summon-skills (slaves
  6424. aren't supposed to be able to call minions) [Skotlex]
  6425. * The clif_skill_poseffect packet will not be invoked in Snap unless the
  6426. skill was successful. May fix the client-position lag. [Skotlex]
  6427. * Merged item_db.sql from stable (the one from stable was more recent than
  6428. the one of trunk...) [Skotlex]
  6429. * Corrected SL KA* spells not working on other Soul Linkers. [Skotlex]
  6430. * Corrected a pair of incorrect sql query parsing logic in the login-sql
  6431. ban request packet. [Skotlex]
  6432. 2006/05/23
  6433. * Corrected mob angry mode, now it only "restores" itself after being hit
  6434. when the mob has no target within their range of sight rather than on
  6435. picking a new target. [Skotlex]
  6436. * Fixed wedding sprite where it would stay active after unequipping. [Zido]
  6437. * Some cleanup of run_script, should fix the memory leak there. [Skotlex]
  6438. * the charname request hack message has been downgraded to only include
  6439. GM-invisible characters. [Skotlex]
  6440. * corrected clif_charnameack to send negative ID when a disguised player
  6441. asks for it's own disguised name. [Skotlex]
  6442. * Cleaned up the disguised target-id checks taking into considering that
  6443. the only character that sees a negative ID is the same disguised character.
  6444. [Skotlex]
  6445. * Modified battle_calc_weapon_attack to use new flags pdef/pdef (pierce
  6446. defense), Investigate and Icepick will now use the final def/vit-def values
  6447. rather than the base ones. [Skotlex]
  6448. * The move-enable condition checks for skills are now checked for only when
  6449. on skill use, not at cast-end time. [Skotlex]
  6450. * Corrected clif parse name request failing on disguised characters [Skotlex]
  6451. * Corrected Soul Drain draining from all non-ground-based skills including
  6452. non-magic attacks. [Skotlex]
  6453. * Corrected pc_setoption to change the option and then change class.
  6454. changing option-wedding will automatically convert the view-class as well.
  6455. [Skotlex]
  6456. * Corrected the 15% drop rate increase when killing higher level mobs in
  6457. pk-mode triggering for all mobs with lower level than yourself. Thanks to
  6458. Vayu. [Skotlex]
  6459. * Fixed typo (this time it's not my fault) in script_reload() clearing the same
  6460. db each time o_o [Lance]
  6461. * Fixed sleep command. [Lance]
  6462. * Added 'setd' support for local NPC scope (') variables. [Lance]
  6463. * [Scripting Engine Update] New variables are ready to be used. [Lance]
  6464. 2006/05/22
  6465. * Updated skill_delayfix to return 0 for mobs since they have no skill
  6466. delay other than the one specified in mob_skill_db [Skotlex]
  6467. * Corrected the 20 lvl diff 15% exp bonus on pk_mode servers. Thanks to
  6468. Vayu for pointing it out. [Skotlex]
  6469. * status_get_sc_tick will now use directly Stun's formula rather than
  6470. invoking the status sc chance once. [Skotlex]
  6471. * Fixed a possible null pointer in script command misc_effect [Skotlex]
  6472. * Modified Investigate to take into consideration final def/vit-def rather
  6473. than base values for damage adjustment. [Skotlex]
  6474. * WARNING: New scripting system contains memory leak
  6475. TODO: Free all scripts using script_free_code() instead of old methods. [Lance]
  6476. * Excluded idle and auto-trade party members from TK_POWER list. [Lance]
  6477. * Fixed compilation errors.
  6478. Tidy up jobmaster for easy debugging. [Lance]
  6479. 2006/05/21
  6480. * Part A of the Homunculus code.
  6481. This only features the structures, status_* and clif_* (packets) and is
  6482. not functional yet in any conventional way, but doesn't interfere
  6483. with present functionality either.
  6484. Main purpose is helping me to keep my work organized. [blackhole89]
  6485. * Fixed the "fake" mute status bug. [Zido]
  6486. * Speed up array size calculation and deletion. [Lance]
  6487. * Player must learn the skill before doing auto-spell [Lance]
  6488. * Exploit prevention in clif_parse_NpcStringInput [Lance]
  6489. * SC_SPEARSQUICKEN -> SC_SPEARQUICKEN normalized enum name [Lupus]
  6490. * Thanks to damirych & Falcon for [2006/04/30] STEAL skill [Lupus]
  6491. 2006/05/20
  6492. * grfio_final moved back if any of GRF overriding is enabled so servers
  6493. with such configuration will not have different values after reloading. [Lance]
  6494. * jA1983 script.c buildin_menu fix. Thanks to End_of_exam. [Lance]
  6495. * Abit of alterations to login-server. [Lance]
  6496. 2006/05/19
  6497. * Minor unsigned/signed alteration in pc_additem to shut the compiler up. [Lance]
  6498. * Small change in pc_additem that could be fixing the current bug with new
  6499. items not getting added. [Skotlex]
  6500. * Fixed loginlog definition in main.sql, thanks to Tempesta [Skotlex]
  6501. * Likely fixed the mob-skill random picking behaviour causing infinite
  6502. loops sometimes. [Skotlex]
  6503. * Modified mobskill_use behaviour to pick a random starting point and check
  6504. skills from that, rather than always checking from first to last. Fixes
  6505. skills with high priority blocking skills lower down in the list from
  6506. triggering. [Skotlex]
  6507. * Updated mob ai behaviour so that mobs use IDLE state skills when their
  6508. current target cannot be reached for melee fighting. [Skotlex]
  6509. 2006/05/18
  6510. * Added 5 config settings to adjust damage in pk-mode servers (misc.conf)
  6511. [Skotlex]
  6512. * Fixed mob_max_skilllvl being capped to 11! [Skotlex]
  6513. * Rewrote/cleaned up several functions in storage.c [Skotlex]
  6514. * Optimized pc_additem comparisons to account for items with more than four
  6515. slots. [Skotlex]
  6516. * Updated clif.c to enable retrieval of items from cart/storage while
  6517. trading. Exception is retrieving items from the cart while vending.
  6518. [Skotlex]
  6519. - The reasoning is that an ongoing trade will not get "corrupted" if you
  6520. earn items before it is commited (only if you lose items from your
  6521. inventory), and it is an annoyance when you realize the stuff you want to
  6522. trade is on the cart/storage.
  6523. * skill reiteration code now does not checks for the trigger-area of the
  6524. skill in the case of non-players, which means mobs can now place traps in
  6525. cells adjacent to each other. [Skotlex]
  6526. * Applied an experimental weather code that should lower bandwidth usage to
  6527. near-none, which's only disadvantage should be the weather not clearing out
  6528. until moving to another map (even when the mapflag is removed from the
  6529. current map). Please test and report if there's any anomalies with it.
  6530. [Skotlex]
  6531. * NPC_AGIUP will now give movement boost of 50% [Skotlex]
  6532. * Fixed WZ_WATERBALL number of hits when used by non-players. [Skotlex]
  6533. * MO_BODYRELOCATION will send the slide packet with the actual src's
  6534. coordinates rather than selected tile. [Skotlex]
  6535. 2006/05/17
  6536. * Modified mob_can_changetarget to return true always when the new target
  6537. is the provoked-by character. Fixes provoke not making the mob change
  6538. target when it already is locked on another player. [Skotlex]
  6539. * Added check to clear previous skill when combo time ends. Should fix TK
  6540. Rankers being unable to initiate a combo with the same kick their previous
  6541. combo was finished with. [Skotlex]
  6542. * Power Up and Agi Up now increase Hit/Flee by 20%/lv [Skotlex]
  6543. 2006/05/16
  6544. * Modified "hide woe damage" to send the number of hits rather than 1 as
  6545. damage Because when the damage is less than the number of hits, the client
  6546. will display MISS. [Skotlex]
  6547. * Fire Pillar will now do 200%MATK damage per hit when level is >10.
  6548. [Skotlex]
  6549. * Blood Drain always hits now. [Skotlex]
  6550. * Fixed Mob Area Skills not updating their use-time (rendering their skill
  6551. delay useless) [Skotlex]
  6552. * Search free cell will now skip picking the center-tile as target
  6553. location. Will prevent slaves from walking on top of their master, or mobs
  6554. placing stuff right under themselves with the "around" target conditions
  6555. among other things. [Skotlex]
  6556. 2006/05/15
  6557. * Small changes to the skill.conf
  6558. - Monsters now can place ground skills on top of each other by default
  6559. - Land_Skill_Limit format changed and set to "Only Players" by default
  6560. * When reading mapflags, when a map is set to be pvp or gvg, the other will
  6561. be turned off (disables pvp mapflags in gvg maps for pk-servers) [Skotlex]
  6562. * Firepillar's damage per hit is now 100% MATK (rather than 20%) when the
  6563. skill level is above 10. [Skotlex]
  6564. * Sorted out the item_data structure, getiteminfo should work correctly
  6565. now. [Skotlex]
  6566. * KA* skills can now be casted on other Soul Linkers as well without the
  6567. Spirit requirement. [Skotlex]
  6568. * Soul Drain will now show the SP drained regardless of drain display
  6569. settings. [Skotlex]
  6570. * SC_COMBO state will now end in skill_attack rather than
  6571. skill_check_condition (as it is required there to apply damage bonuses
  6572. based on combo-casted skills) [Skotlex]
  6573. * Fixed Option_Wedding in const.txt (0x1000 won't work, it has to be 4096)
  6574. [Skotlex]
  6575. * Fixed the nocast flag 2 (not usable in pvp) returning true in pk-mode
  6576. servers. [Skotlex]
  6577. * When removing a castle's owning guild, the char servers will erase the
  6578. guardian data now. [Skotlex]
  6579. * Changed the behaviour of immobile mobs when they can't chase their
  6580. target. Rather than using a longrange skill and then unlocking, they will
  6581. use an attack/angry state skill and then unlock. [Skotlex]
  6582. * Some adjustments of how disguising + gm-hiding work together. [Skotlex]
  6583. * Fixed clif_GlobalMessage being the exact same function as clif_message
  6584. (the first should send to ALL_CLIENT and the later should send to
  6585. AREA_CHAT_WOS). Should fix globalmes script command. [Skotlex]
  6586. * Added SC_BLADESTOP to the switch listing in status_change_start [Skotlex]
  6587. * Characters in vending are now always considered "idle" if the
  6588. idle_no_share setting is active. [Skotlex]
  6589. * Players with OPTION_INVISIBLE should not be sent to clients. [Lance]
  6590. * Remaining fixes for item scripts. [Lance]
  6591. * Added NPC event deprecated warnings to ease debugging old scripts. [Lance]
  6592. 2006/05/12
  6593. * Supplied fake NPC ID in sd->npc_id for item scripts. [Lance]
  6594. * Bugfix on fake npc [Lance]
  6595. * Fixed mob_once_spawn not working for non-random coordinates. [blackhole89]
  6596. * Reverted again the change that stuns the caster on Ske, Ska, Swoo when
  6597. the target is a nonplayer (rather than always) [Skotlex]
  6598. * Modified mob_spawn_once so that coordinates -1,-1 are "random around the
  6599. player" while 0,0 are random around the whole map (regardless of whether
  6600. there's a player attached or not) [Skotlex]
  6601. * Knockback will no longer work on traps during woe. [Skotlex]
  6602. 2006/05/11
  6603. * Fixed the definition of the KEY in the loginlog, thanks to TheUltraMage
  6604. [Skotlex]
  6605. * NPC_POWERUP and NPC_AGIUP now cause a increase in hit/flee (respectively)
  6606. of 40% per level. [Skotlex]
  6607. * Changed a bit the MAX_ZENY checks in trade.c to prevent overflows.
  6608. [Skotlex]
  6609. * Rewrote npc_selllist for a more proper-clean implementation. [Skotlex]
  6610. * Increased NPC_POWERUP's dex bonus to +25*lv [Skotlex]
  6611. * Moved TK_DOWNKICK's stun time from time to time2 [Skotlex]
  6612. * Added TK_TURNKICK's stun to splash-pushed mobs. Duration is 2secs (time2)
  6613. [Skotlex]
  6614. * Merged the code for Ska, Ske, Swoo together. Swoo stun duration is now 10
  6615. secs (reducable) if you target a mob that already has Swoo active. [Skotlex]
  6616. * Added the missing semi-comma from the upgrade_svn6533.sql file. Thanks to
  6617. Tanaous [Skotlex]
  6618. * Added back the missing code that substracts arrows when normal-attacking.
  6619. [Skotlex]
  6620. 2006/05/10
  6621. * Changed the state of Asura back to explosionspirits, added a hardcoded
  6622. move_enable check when invoking Asura and NOT while in BladeStop or a
  6623. Combo. [Skotlex]
  6624. * Added back SC_XMAS to status.c, it got lost sometime during all the
  6625. previous reworkings. [Skotlex]
  6626. * Changed wedding costumes to use setoption rather than changebase.
  6627. [Skotlex]
  6628. * Modified setoption so that flag 1 or no flag adds an option, and flag 0
  6629. removes it. [Skotlex]
  6630. * Updated script_commands with the new behaviour. [Skotlex]
  6631. * Updated mob_db2.txt and mob_db2.sql to have only 10 drop slots rather
  6632. than 15. [Skotlex]
  6633. * Users are now able to use their own dnsbl servers (login_athena) [Zido]
  6634. 2006/05/09
  6635. * Rewrote/cleaned up trade.c for a more clean trading implementation.
  6636. [Skotlex]
  6637. * Added @request commands, sends a request to all connected GMs of
  6638. lowest_gm_level or above as a whisper message. Defaults to gm level 20
  6639. users (UNTESTED). [Skotlex]
  6640. * Modified @commands to use Meruru's code which is faster and does a fair
  6641. attempt at tabulating the commands presented. [Skotlex]
  6642. * Updated SKA to return a random value between 0 and 99 each time
  6643. status_get_def is invoked. [Skotlex]
  6644. * Updated Making Arrow to not include unidentified items in the list.
  6645. [Skotlex]
  6646. * Reduced drop slots from 15 to 10. [Skotlex]
  6647. * Updated mob_db.sql with the current data. [Skotlex]
  6648. * Updated setoption script command to receive a second (optional) argument
  6649. flag. If the flag is 1, the option is added to what the player currently
  6650. has; likewise using flag 2 removes only that option. No flag (or any other
  6651. value) is the older behaviour of removing all other options and setting
  6652. specificly what is passed. [Skotlex]
  6653. * Updated script_commands information for setoption due to this change.
  6654. [Skotlex]
  6655. * Small fix in npc-created chat rooms to properly include the terminating 0
  6656. on the chat's event. [Skotlex]
  6657. * Fixed Fog of Wall's symmetry in respect to Misc attacks, they no longer
  6658. get reduced by 50% regardless of who is standing on the fog. [Skotlex]
  6659. * monster_ai&2 will now trigger the rude-attacked skill when the mob can't
  6660. move and the attacker is out of it's attack range. [Skotlex]
  6661. * Added missing icon for Joint Beat [Skotlex]
  6662. * Mob-search functions will now skip enemies with no exp/job_exp. [Skotlex]
  6663. * Treasure chests will now be excluded from the mob-drop listings
  6664. (@whodrops) [Skotlex]
  6665. * Fix on pc_skill which fixes overlapping when one gets more than one bonus
  6666. for the same skill. [Skotlex]
  6667. * Updated main.sql's loginlog table structure. [Skotlex]
  6668. * Added svn_update6533.sql to update the loginlog structure as suggested by
  6669. theultramage. [Skotlex]
  6670. * Cleaned up somewhat the implementation of BladeStop. [Skotlex]
  6671. * Fixed the head_bottom (pet-armor) position in packet 0x22c (walk packet)
  6672. when crafted for non-players. [Skotlex]
  6673. * Script commands sc_start, sc_start2 and sc_start4 will now start
  6674. regardless of sc defense of the target player (that is, they cannot be
  6675. avoided/blocked) [Skotlex]
  6676. * Fixed a possible counter overflow in attacked_count, changed the var size
  6677. to unsigned char since the code can handle the overflow now. [Skotlex]
  6678. * Multiple targets again reduces armor defense, as reported by Tharis.
  6679. [Skotlex]
  6680. * Increased dex bonus of NPC_POWERUP to +20 per level. [Skotlex]
  6681. * Fog of Wall's -50 hit reduction is now only for ranged attacks. [Skotlex]
  6682. 2006/05/08
  6683. * Reverted the change that was making ES skills stun the caster always.
  6684. [Skotlex]
  6685. * Removed the fixpos packet which is sent whenever you are hit while moving
  6686. as Aegis doesn't sends this packet neither. [Skotlex]
  6687. * ES magic will now put the caster on stun for 0.5 secs regardless of
  6688. whether the skill-target is a mob or not. [Skotlex]
  6689. * Added function clif_party_join_info which sends packet 0x1e9 each time a
  6690. party-member joins. This packet (as redundant info as it has) should also
  6691. contain the field for "adoptability", but that needs to be coded in yet.
  6692. [Skotlex]
  6693. * Added clif_ParseAdoptRequest which does the basic adoption handling. More
  6694. checks and the reply packets still need to be coded in. [Skotlex]
  6695. * Happy State and TK stances won't dispel on death now. [Skotlex]
  6696. * Cleaned up combo-skill implementation, SC_COMBO is automatically ended in
  6697. skill_check_condition now. [Skotlex]
  6698. * Modified TK-ranker infinite combos to behave as described by AuronX.
  6699. Refer to his thread in the development section for details. [Skotlex]
  6700. * Made all Soul Link Spirit skills not be castable on self. [Skotlex]
  6701. * Changed rate of NPC status effect skills to 50+10*lv% base chance
  6702. (guessed, but better than 100% for all levels) [Skotlex]
  6703. * Changed max level of NPC status effect skills to 5 [Skotlex]
  6704. * Increased max number of tries to find a random spot in maps to 1000 since
  6705. some maps have so many non-walkable tiles it's hard to find one in just 100
  6706. tries. [Skotlex]
  6707. * status_set_viewdata will remove the Wedding Option status when you set a
  6708. class that is not wedding. [Skotlex]
  6709. * hide_gvg_damage will now send 1 instead of -1 as damage. [Skotlex]
  6710. * idletime will now be updated on attack-request, not on sit/standup
  6711. [Skotlex]
  6712. * Party members sitting will no longer be considered idle. [Skotlex]
  6713. * Removed SP_DISGUISE from the bonus list (onequip/onunequip should be used
  6714. with the disguise/undisguise script commands instead). [Skotlex]
  6715. * Moved Sharp Shooting display to the block with Auto-Counter (since that's
  6716. the other skill that can show critical as well) [Skotlex]
  6717. * Corrected some fields in the standing still packet (guild emblem being
  6718. stored as a Long when it should be Short) [Skotlex]
  6719. * Modified most fields of view_data to be unsigned shorts rather than
  6720. signed ones. [Skotlex]
  6721. * On-Touch NPCs will now make you stop walking when you trigger them.
  6722. [Skotlex]
  6723. * ShadowJump/JumpKick will make you land on the target's cell now.
  6724. [Skotlex]
  6725. * Fixed Kaahi triggering only once per skill duration. [Skotlex]
  6726. 2006/05/07
  6727. * Fixed readme/changelog.html [KillerBox]
  6728. * Removed old logs. [Lupus]
  6729. TODO: 1. Add produce logging into PICKLOG 2. Replace map names with map index
  6730. 2006/05/05
  6731. * Optimized clif.c clif_scriptmenu/input/inputstr to check for sd->state.using_fake_npc
  6732. before sending one (as it's not required to send twice).
  6733. * Reinitialize sd->state.using_fake_npc in clif_parse_LoadEndAck (for scripts that warps
  6734. players and still continues execution to work). [Lance]
  6735. * Updated item_db.sql to current. [Skotlex]
  6736. * Fixed a bug in @commands, most likely the reason some people were still
  6737. getting crashes. [Skotlex]
  6738. * Fixed @commands not showing the last available commands (unless the total
  6739. amount of commands is divisible by ten) [Skotlex]
  6740. * Added a npc-script-event cache to avoid looking up event-scripts every
  6741. time they need to be executed. Events cached are all those defined in
  6742. script_config (on login, logout, mapchange, death, kill, level up) [Skotlex]
  6743. - Since the cache holds direct pointers to the npcs/events, do NOT unload
  6744. the related NPCs or you'll get dangling pointer crashes. However,
  6745. @reloadscript will work fine.
  6746. - Set the etc_log to on to see a summary of npcs/events loaded for script
  6747. execution on startup.
  6748. * The Rest bonus activated by using /doridori while in rest should now
  6749. trigger with all the class tree (TK/SL/SG) [Skotlex]
  6750. * Fixed Kaupe always triggering when the one who was under Kaupe was a
  6751. player rather than the one attacking... [Skotlex]
  6752. * /doridori now won't double the HP/SP regen of TKs, it only activates
  6753. their "happy" state. [Skotlex]
  6754. * Added the -50 hit penalty when standing on Wall of Fog. [Skotlex]
  6755. * Uncommented the status_calc_mdef2 call in status_calc_pc. [Skotlex]
  6756. * Being in Enjoyable Rest state will now also trigger the HP/SP Time skills
  6757. (even if there's no other TK around). [Skotlex]
  6758. * Added battle config settings view_range_rate and chase_range_rate to
  6759. adjust the view-range and chase-range (range2/range3) of the mob_db without
  6760. having to manually change them (battle/monster.conf) [Skotlex]
  6761. * Kaupe now will only block all skills of players, for non-players, only
  6762. normal attacks can be missed. [Skotlex]
  6763. * Moved the Kaite spell-reflect code after the damage calculation function,
  6764. so the reflected damage is exactly the damage the original target would
  6765. have received. Will only trigger if the damage to be reflected is above 0.
  6766. [Skotlex]
  6767. * OnEquip scripts will now trigger on log-on. [Skotlex]
  6768. * Infinite Endure will no longer give mdef bonus. [Skotlex]
  6769. * Removed bInfiniteEndure bonus, Eddga card now uses onequip/onunequip to
  6770. start/end infinite endure. [Skotlex]
  6771. * Fixed Kaahi's SP cost per heal. [Skotlex]
  6772. * Now when walkdelay is set to 0, characters will stop walking when hit,
  6773. but will not have any walk delay. (previously setting walk delay to 0 would
  6774. not even stop characters from walking when hit) [Skotlex]
  6775. 2006/05/04
  6776. * Some people think its sexy to declare variables after blocks of code. Fixed. [Zido]
  6777. * Fixed a possible infinite loop in skill_clear_unit_group [Skotlex]
  6778. * Some clean-ups in the mob_ai [Skotlex]
  6779. * Improved atcommand autoloot, now displays droprate in percents and notices
  6780. player if autoloot is already on or off. Also simplified the code [Harbin, Kain],
  6781. commited by erKURITA
  6782. * Added one grace range in the mob_loot search function which should fix
  6783. mob_can_reach failing when invoked with the same distance that distance_bl
  6784. returned. [Skotlex]
  6785. * Stun time for using ES magic on non-mobs reduced to 0.5 secs. [Skotlex]
  6786. * Eska is now usable on bosses. [Skotlex]
  6787. * Swoo will stun you if attempted on an already 'swooned' enemy. [Skotlex]
  6788. * clif_skill_failed will print out a debug line with the skill_id (since
  6789. the current null_po does not helps at all to fix it) [Skotlex]
  6790. * Applied TheUltraMage's suggested fixes to the grfio module. [Skotlex]
  6791. * Rewrote Kaahi to behave as it should. It will heal whatever amount of
  6792. damage accumulates in the time2 interval (500ms by default) after being
  6793. hit. [Skotlex]
  6794. * Changed skill_unit_move_unit_group to enable moving of all types of
  6795. ground-skills except ensembles (fixes warmth not following you) [Skotlex]
  6796. 2006/05/03
  6797. * Kaahi now triggers every 500ms rather than on every hit (but it only
  6798. heals if in those 500ms an attack that would previously trigger Kaahi has
  6799. taken effect). In other words, it works just like before, except damage
  6800. gets "buffered" into 500ms slots. [Skotlex]
  6801. * Kaite, Kaute will now show a skill effect when they trigger. [Skotlex
  6802. * Knowledge will now only trigger if you logon to the memorized map, not
  6803. walk into it. [Skotlex]
  6804. * Corrected @whomap directly invoking msg_table[] rather than msg_txt()
  6805. [Skotlex]
  6806. * Guessed where the pet data goes in spawn packet 0x7c. This may be wrong
  6807. and not fix the pet issue, but I doubt it'll cause any problems that won't
  6808. be fixed by making the pet move. [Skotlex]
  6809. * Updated Charge Attack's state from none to move_enable. [Skotlex]
  6810. * Made tomahawk an NPC_SKILL so that it may not be plagiarized. [Skotlex]
  6811. 2006/05/02
  6812. * Fixed standing up not really standing you up. [Skotlex]
  6813. * Moved battle_consume_ammo to the end of skill_castend_damage_id,
  6814. skill_castend_nodamage_id and skill_castend_pos2 rather than
  6815. battle_calc_weapon_attack. They will trigger when the player's arrow_atk
  6816. state is active and a ground skill was not invoked. It should fix all
  6817. issues with splash/ground skills consuming ammo per target rather than once
  6818. per skill use. [Skotlex]
  6819. * Added structure state to the ground skills, their fields are magic_power,
  6820. into_abyss and ammo_consume to indicate the states that were previously
  6821. stored in val3. [Skotlex]
  6822. * Implemented desperado as explained by Rockman-EXE. The skill-effect is
  6823. not showing up though, I'll need some logged packets to see what's missing.
  6824. [Skotlex]
  6825. * Removed the unit_can_move checks in skill cast-end, they should be
  6826. performed in skill_check_require when the skill's state is move_enabled.
  6827. [Skotlex]
  6828. * Changed extremity fist's state to move_enabled, the explosion spirits
  6829. check is now hardcoded. [Skotlex]
  6830. * Absorb Spirit Sphere now gives +10SP per sphere as per discussions with
  6831. Haplo. [Skotlex]
  6832. * Changed a <= into a < in pc_steal_item. This means drops with 0.01% are
  6833. impossible to steal unless you have at least 100% steal-rate (where steal
  6834. rate is dex - opponent dex + skill_lv*3% + 10%) [Skotlex[
  6835. * Cleaned up clif_parse_action_request to enable sitting/standing while in
  6836. shops, interacting with npcs, etc. [Skotlex]
  6837. * Kaite now works against all types of spells. [Skotlex]
  6838. * Kaupe now works against all skills. [Skotlex]
  6839. * Sanctuary now won't damage non-enemies. [Skotlex]
  6840. * Blessing now will always give you bonus stats even if you are wearing
  6841. undead armor. [Skotlex]
  6842. * Modified how Rogue's treasure works so that you get +1% to your steal
  6843. rate rather than +0.01% to the final rate. [Skotlex]
  6844. * Rewrote Warmth to use ground-skill-units, it should behave now like in
  6845. officials (implementation is not quite the same, but it should yield the
  6846. same effects while consuming less bandwidth). "Stacking", as it's called,
  6847. is possible now, but limited to eA's minimum timer skill interval (100ms).
  6848. [Skotlex]
  6849. * Modified NPC_POWERUP so that it gives +10 dex * skill level rather than
  6850. +5+lv to all stats (as explained by Playtester and Tharis on how the skill
  6851. behaves). [Skotlex]
  6852. * Allowed SG_FEEL memorizing the same map for all three. [Skotlex]
  6853. * SC_FUSION won't end when you die now. [Skotlex]
  6854. 2006/05/01
  6855. * Added knockback when you run into a wall during running. However
  6856. position is not being refreshed on the client yet... [Skotlex]
  6857. * Fixed pc_disguise not allowing you to "redisguise". [Skotlex]
  6858. * Corrected a crash when sd is null in npc_event [Skotlex]
  6859. * After testing to make sure it works properly, I'm including
  6860. new battle conf options to limit MVP drops. [Reddozen]
  6861. * Removed OPTION_XMAS, it seems to not exist.... [Skotlex]
  6862. * Added SC_SMA to handle "ready to use SMA" status (rather than SC_COMBO)
  6863. since it has a visual effect to use. [Skotlex]
  6864. * Corrected the value of OPTION_FLYING [Skotlex]
  6865. * Using SG_FUSION ends Soul Linked effect. [Skotlex]
  6866. * status_setviewdata will set your option accordingly when the previous/new
  6867. view-class is wedding or xmas suit. [Skotlex]
  6868. * Added function map_foreachinshootrange, behaves the same way as
  6869. map_foreachinrange, but it also performs a "shoot-path" check before
  6870. invoking the function. Used in the skill subtimer function if
  6871. skill_wall_check is defined. [Skotlex]
  6872. * Fixed AL_WARP displaying "Unknown Area" selections when you don't have
  6873. all memo points used up. [Skotlex]
  6874. * Fixed alive_count not being reset on skill unitsetting, which leads to
  6875. some groups not being cleared once all their units expire. [Skotlex]
  6876. * Optimized Kaahi/Kahai, will now only show the amount of HP healed. Moved
  6877. to skill_counter additional effect so it may trigger even on miss. [Skotlex]
  6878. * SKA no longer blocks skills. [Skotlex]
  6879. * Optimized fake npc system. Added npc_checknear back to npc_buysellsel. [Lance]