12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023 |
- // Copyright (c) rAthena Dev Teams - Licensed under GNU GPL
- // Copyright (c) Hercules Dev Team - Licensed under GNU GPL
- // For more information, see LICENCE in the main folder
- #ifndef MAP_PACKETS_STRUCT_HPP
- #define MAP_PACKETS_STRUCT_HPP
- #include <common/cbasetypes.hpp>
- #include <common/mmo.hpp>
- /**
- *
- **/
- enum packet_headers {
- banking_withdraw_ackType = 0x9aa,
- banking_deposit_ackType = 0x9a8,
- banking_checkType = 0x9a6,
- cart_additem_ackType = 0x12c,
- sc_notickType = 0x196,
- #if PACKETVER < 4
- idle_unitType = 0x78,
- #elif PACKETVER < 7
- idle_unitType = 0x1d8,
- #elif PACKETVER < 20080102
- idle_unitType = 0x22a,
- #elif PACKETVER < 20091103
- idle_unitType = 0x2ee,
- #elif PACKETVER < 20101124
- idle_unitType = 0x7f9,
- #elif PACKETVER < 20120221
- idle_unitType = 0x857,
- #elif PACKETVER < 20131223
- idle_unitType = 0x915,
- #elif PACKETVER < 20150513
- idle_unitType = 0x9dd,
- #else
- idle_unitType = 0x9ff,
- #endif
- #if PACKETVER >= 20120618
- status_changeType = 0x983,
- #elif PACKETVER >= 20090121
- status_changeType = 0x43f,
- #else
- status_changeType = sc_notickType,/* 0x196 */
- #endif
- status_change2Type = 0x43f,
- status_change_endType = 0x196,
- #if PACKETVER < 20091103
- spawn_unit2Type = 0x7c,
- idle_unit2Type = 0x78,
- #endif
- #if PACKETVER < 20071113
- damageType = 0x8a,
- #elif PACKETVER < 20131223
- damageType = 0x2e1,
- #else
- damageType = 0x8c8,
- #endif
- #if PACKETVER < 4
- spawn_unitType = 0x79,
- #elif PACKETVER < 7
- spawn_unitType = 0x1d9,
- #elif PACKETVER < 20080102
- spawn_unitType = 0x22b,
- #elif PACKETVER < 20091103
- spawn_unitType = 0x2ed,
- #elif PACKETVER < 20101124
- spawn_unitType = 0x7f8,
- #elif PACKETVER < 20120221
- spawn_unitType = 0x858,
- #elif PACKETVER < 20131223
- spawn_unitType = 0x90f,
- #elif PACKETVER < 20150513
- spawn_unitType = 0x9dc,
- #else
- spawn_unitType = 0x9fe,
- #endif
- #if PACKETVER < 20080102
- authokType = 0x73,
- #elif PACKETVER < 20141022
- authokType = 0x2eb,
- // Some clients smaller than 20160330 cant be tested [4144]
- #elif PACKETVER < 20160330
- authokType = 0xa18,
- #else
- authokType = 0x2eb,
- #endif
- script_clearType = 0x8d6,
- package_item_announceType = 0x7fd,
- item_drop_announceType = 0x7fd,
- #if PACKETVER < 4
- unit_walkingType = 0x7b,
- #elif PACKETVER < 7
- unit_walkingType = 0x1da,
- #elif PACKETVER < 20080102
- unit_walkingType = 0x22c,
- #elif PACKETVER < 20091103
- unit_walkingType = 0x2ec,
- #elif PACKETVER < 20101124
- unit_walkingType = 0x7f7,
- #elif PACKETVER < 20120221
- unit_walkingType = 0x856,
- #elif PACKETVER < 20131223
- unit_walkingType = 0x914,
- #elif PACKETVER < 20150513
- unit_walkingType = 0x9db,
- #else
- unit_walkingType = 0x9fd,
- #endif
- bgqueue_ackType = 0x8d8,
- bgqueue_notice_deleteType = 0x8db,
- bgqueue_registerType = 0x8d7,
- bgqueue_updateinfoType = 0x8d9,
- bgqueue_checkstateType = 0x90a,
- bgqueue_revokereqType = 0x8da,
- bgqueue_battlebeginackType = 0x8e0,
- bgqueue_notify_entryType = 0x8d9,
- bgqueue_battlebeginsType = 0x8df,
- notify_bounditemType = 0x2d3,
- #if PACKETVER < 20110718
- skill_entryType = 0x11f,
- #elif PACKETVER < 20121212
- skill_entryType = 0x8c7,
- #elif PACKETVER < 20130731
- skill_entryType = 0x99f,
- #else
- skill_entryType = 0x9ca,
- #endif
- graffiti_entryType = 0x1c9,
- #if defined(PACKETVER_ZERO) || PACKETVER >= 20180418
- dropflooritemType = 0xadd,
- #elif PACKETVER > 20130000 /* not sure date */
- dropflooritemType = 0x84b,
- #else
- dropflooritemType = 0x9e,
- #endif
- #if PACKETVER_RE_NUM >= 20180912 || PACKETVER_ZERO_NUM >= 20180919 || PACKETVER_MAIN_NUM >= 20181002
- inventorylistnormalType = 0xb09,
- #elif PACKETVER >= 20120925
- inventorylistnormalType = 0x991,
- #elif PACKETVER >= 20080102
- inventorylistnormalType = 0x2e8,
- #elif PACKETVER >= 20071002
- inventorylistnormalType = 0x1ee,
- #else
- inventorylistnormalType = 0xa3,
- #endif
- #if PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- inventorylistequipType = 0xb39,
- #elif PACKETVER_MAIN_NUM >= 20181002 || PACKETVER_RE_NUM >= 20180912 || PACKETVER_ZERO_NUM >= 20180919
- inventorylistequipType = 0xb0a,
- #elif PACKETVER >= 20150226
- inventorylistequipType = 0xa0d,
- #elif PACKETVER >= 20120925
- inventorylistequipType = 0x992,
- #elif PACKETVER >= 20080102
- inventorylistequipType = 0x2d0,
- #elif PACKETVER >= 20071002
- inventorylistequipType = 0x295,
- #else
- inventorylistequipType = 0xa4,
- #endif
- #if PACKETVER_RE_NUM >= 20180829 || PACKETVER_ZERO_NUM >= 20180919 || PACKETVER_MAIN_NUM >= 20181002
- storageListNormalType = 0xb09,
- #elif PACKETVER >= 20120925
- storageListNormalType = 0x995,
- #elif PACKETVER >= 20080102
- storageListNormalType = 0x2ea,
- #elif PACKETVER >= 20071002
- storageListNormalType = 0x295,
- #else
- storageListNormalType = 0xa5,
- #endif
- #if PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- storageListEquipType = 0xb39,
- #elif PACKETVER_MAIN_NUM >= 20181002 || PACKETVER_RE_NUM >= 20180829 || PACKETVER_ZERO_NUM >= 20180919
- storageListEquipType = 0xb0a,
- #elif PACKETVER >= 20150226
- storageListEquipType = 0xa10,
- #elif PACKETVER >= 20120925
- storageListEquipType = 0x996,
- #elif PACKETVER >= 20080102
- storageListEquipType = 0x2d1,
- #elif PACKETVER >= 20071002
- storageListEquipType = 0x296,
- #else
- storageListEquipType = 0xa6,
- #endif
- #if PACKETVER_RE_NUM >= 20180829 || PACKETVER_ZERO_NUM >= 20180919 || PACKETVER_MAIN_NUM >= 20181002
- cartlistnormalType = 0xb09,
- #elif PACKETVER >= 20120925
- cartlistnormalType = 0x993,
- #elif PACKETVER >= 20080102
- cartlistnormalType = 0x2e9,
- #elif PACKETVER >= 20071002
- cartlistnormalType = 0x1ef,
- #else
- cartlistnormalType = 0x123,
- #endif
- #if PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- cartlistequipType = 0xb39,
- #elif PACKETVER_MAIN_NUM >= 20181002 || PACKETVER_RE_NUM >= 20180829 || PACKETVER_ZERO_NUM >= 20180919
- cartlistequipType = 0xb0a,
- #elif PACKETVER >= 20150226
- cartlistequipType = 0xa0f,
- #elif PACKETVER >= 20120925
- cartlistequipType = 0x994,
- #elif PACKETVER >= 20080102
- cartlistequipType = 0x2d2,
- #elif PACKETVER >= 20071002
- cartlistequipType = 0x297,
- #else
- cartlistequipType = 0x122,
- #endif
- openvendingType = 0x136,
- #if PACKETVER >= 20120925
- equipitemType = 0x998,
- #else
- equipitemType = 0xa9,
- #endif
- #if PACKETVER >= 20120925
- unequipitemackType = 0x99a,
- #else
- unequipitemackType = 0xac,
- #endif
- notifybindonequip = 0x2d3,
- monsterhpType = 0x977,
- maptypeproperty2Type = 0x99b,
- #if PACKETVER >= 20131223 // version probably can be 20131030 [4144]
- wisendType = 0x9df,
- #else
- wisendType = 0x98,
- #endif
- partyleaderchangedType = 0x7fc,
- rouletteinfoackType = 0xa1c,
- roulettgenerateackType = 0xa20,
- roulettercvitemackType = 0xa22,
- #if PACKETVER >= 20141016
- achievementListType = 0xa23,
- achievementUpdateType = 0xa24,
- achievementRewardAckType = 0xa26,
- #endif // PACKETVER >= 20141016
- #if PACKETVER_ZERO_NUM >= 20181010 || PACKETVER >= 20181017
- questListType = 0xaff, ///< ZC_ALL_QUEST_LIST4
- #elif PACKETVER >= 20150513 // [4144] 0x09f8 handling in client from 2014-10-29aRagexe and 2014-03-26cRagexeRE
- questListType = 0x9f8, ///< ZC_ALL_QUEST_LIST3
- #elif PACKETVER >= 20141022
- questListType = 0x97a, ///< ZC_ALL_QUEST_LIST2
- #else // PACKETVER < 20141022
- questListType = 0x2b1, ///< ZC_ALL_QUEST_LIST
- #endif // PACKETVER >= 20141022
- /* Rodex */
- rodexicon = 0x09E7,
- rodexwriteresult = 0x09ED,
- rodexnextpage = 0x09F0,
- rodexgetzeny = 0x09F2,
- rodexgetitem = 0x09F4,
- rodexdelete = 0x09F6,
- rodexremoveitem = 0x0A07,
- rodexopenwrite = 0x0A12,
- #if PACKETVER < 20160601
- rodexmailList = 0x09F0,
- #elif PACKETVER < 20170419
- rodexmailList = 0x0A7D,
- #else // PACKETVER >= 20170419
- rodexmailList = 0x0Ac2,
- #endif
- #if PACKETVER >= 20151223
- skillscale = 0xA41,
- #endif
- #if PACKETVER >= 20130821
- progressbarunit = 0x09D1,
- #endif
- #if PACKETVER >= 20171207
- partymemberinfo = 0x0ae4,
- partyinfo = 0x0ae5,
- #elif PACKETVER_MAIN_NUM >= 20170524 || PACKETVER_RE_NUM >= 20170502 || defined(PACKETVER_ZERO)
- partymemberinfo = 0x0a43,
- partyinfo = 0x0a44,
- #else
- partymemberinfo = 0x01e9,
- partyinfo = 0x00fb,
- #endif
- #if PACKETVER >= 20120716
- clanOnlineCount = 0x0988, ///< ZC_NOTIFY_CLAN_CONNECTINFO
- clanLeave = 0x0989, ///< ZC_ACK_CLAN_LEAVE
- clanMessage = 0x098E, ///< ZC_NOTIFY_CLAN_CHAT
- #endif
- #if PACKETVER_ZERO_NUM >= 20181010 || PACKETVER >= 20181017
- questAddType = 0xb0c,
- #elif PACKETVER >= 20150513 // [4144] 0x09f9 handled in client from 2014-10-29aRagexe and 2014-03-26cRagexeRE
- questAddType = 0x9f9,
- #else
- questAddType = 0x2b3,
- #endif // PACKETVER < 20150513
- #if PACKETVER_ZERO_NUM >= 20181010 || PACKETVER >= 20181017
- questUpdateType = 0xafe,
- #elif PACKETVER >= 20150513
- questUpdateType = 0x9fa,
- #else
- questUpdateType = 0x2b5,
- #endif // PACKETVER < 20150513
- questUpdateType2 = 0x8fe,
- #if PACKETVER >= 20180627
- authError = 0xb02,
- #elif PACKETVER >= 20101123
- authError = 0x83e,
- #else
- authError = 0x6a,
- #endif
- #if PACKETVER >= 3
- useItemAckType = 0x1c8,
- #else
- useItemAckType = 0xa8,
- #endif
- #if PACKETVER >= 4
- sendLookType = 0x1d7,
- #else
- sendLookType = 0xc3,
- #endif
- #if PACKETVER >= 20141016
- buyingStoreUpdateItemType = 0x9e6,
- #else
- buyingStoreUpdateItemType = 0x81b,
- #endif
- reqName = 0x95,
- #if PACKETVER_MAIN_NUM >= 20170502 || PACKETVER_RE_NUM >= 20170419 || defined(PACKETVER_ZERO)
- skilWarpPointType = 0xabe,
- #else
- skilWarpPointType = 0x11c,
- #endif
- #if PACKETVER_MAIN_NUM >= 20161019 || PACKETVER_RE_NUM >= 20160921 || defined(PACKETVER_ZERO)
- guildExpulsion = 0xa82,
- #elif PACKETVER >= 20100803
- guildExpulsion = 0x839,
- #else
- guildExpulsion = 0x15c,
- #endif
- #if PACKETVER_MAIN_NUM >= 20161019 || PACKETVER_RE_NUM >= 20160921 || defined(PACKETVER_ZERO)
- guildLeave = 0xa83,
- #else
- guildLeave = 0x15a,
- #endif
- };
- #if PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- DEFINE_PACKET_ID(ZC_PAR_4JOB_CHANGE, 0x0b25);
- #endif // PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- #if !defined(sun) && (!defined(__NETBSD__) || __NetBSD_Version__ >= 600000000) // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute
- #pragma pack(push, 1)
- #endif // not NetBSD < 6 / Solaris
- struct PACKET_ZC_PAR_CHANGE {
- int16 PacketType;
- uint16 varID;
- int32 count;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_PAR_CHANGE, 0x00b0);
- struct PACKET_ZC_LONGPAR_CHANGE {
- int16 PacketType;
- uint16 varID;
- int32 amount;
- } __attribute__((packed));
- DEFINE_PACKET_ID(ZC_LONGPAR_CHANGE, 0x00b1);
- struct PACKET_ZC_STATUS_CHANGE {
- int16 PacketType;
- uint16 statusID;
- uint8 value;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_STATUS_CHANGE, 0x00be);
- struct PACKET_ZC_NOTIFY_CARTITEM_COUNTINFO {
- int16 PacketType;
- int16 curCount;
- int16 maxCount;
- int32 curWeight;
- int32 maxWeight;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_NOTIFY_CARTITEM_COUNTINFO, 0x0121);
- struct PACKET_ZC_ATTACK_RANGE {
- int16 PacketType;
- int16 currentAttRange;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ATTACK_RANGE, 0x013a);
- struct PACKET_ZC_COUPLESTATUS {
- int16 PacketType;
- uint32 statusType;
- int32 defaultStatus;
- int32 plusStatus;
- } __attribute__((packed));
- DEFINE_PACKET_ID(ZC_COUPLESTATUS, 0x0141);
- #if PACKETVER_MAIN_NUM >= 20170906 || PACKETVER_RE_NUM >= 20170830 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_LONGLONGPAR_CHANGE {
- int16 PacketType;
- uint16 varID;
- int64 amount;
- } __attribute__((packed));
- DEFINE_PACKET_ID(ZC_LONGLONGPAR_CHANGE, 0x0acb);
- #endif // PACKETVER_MAIN_NUM >= 20170906 || PACKETVER_RE_NUM >= 20170830 || defined(PACKETVER_ZERO)
- /**
- * structs for data
- */
- struct EQUIPSLOTINFO {
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 card[4];
- #else
- uint16 card[4];
- #endif
- } __attribute__((packed));
- struct NORMALITEM_INFO {
- int16 index;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 ITID;
- #else
- uint16 ITID;
- #endif
- uint8 type;
- #if PACKETVER < 20120925
- uint8 IsIdentified;
- #endif
- int16 count;
- #if PACKETVER >= 20120925
- uint32 WearState;
- #else
- uint16 WearState;
- #endif
- #if PACKETVER >= 5
- struct EQUIPSLOTINFO slot;
- #endif
- #if PACKETVER >= 20080102
- int32 HireExpireDate;
- #endif
- #if PACKETVER >= 20120925
- struct {
- uint8 IsIdentified : 1;
- uint8 PlaceETCTab : 1;
- uint8 SpareBits : 6;
- } Flag;
- #endif
- } __attribute__((packed));
- struct ItemOptions {
- int16 index;
- int16 value;
- uint8 param;
- } __attribute__((packed));
- // TODO split struct inside blocks of #if/#elif
- struct EQUIPITEM_INFO {
- int16 index;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 ITID;
- #else
- uint16 ITID;
- #endif
- uint8 type;
- #if PACKETVER < 20120925
- uint8 IsIdentified;
- #endif
- #if PACKETVER >= 20120925
- uint32 location;
- uint32 WearState;
- #else
- uint16 location;
- uint16 WearState;
- #endif
- #if PACKETVER < 20120925
- uint8 IsDamaged;
- #endif
- #if !(PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024)
- uint8 RefiningLevel;
- #endif // !(PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024)
- struct EQUIPSLOTINFO slot;
- #if PACKETVER >= 20071002
- int32 HireExpireDate;
- #endif
- #if PACKETVER >= 20080102
- uint16 bindOnEquipType;
- #endif
- #if PACKETVER >= 20100629
- uint16 wItemSpriteNumber;
- #endif
- #if PACKETVER >= 20150226
- uint8 option_count;
- struct ItemOptions option_data[MAX_ITEM_OPTIONS];
- #endif
- #if PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- uint8 RefiningLevel;
- uint8 grade;
- #endif // PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- #if PACKETVER >= 20120925
- struct {
- uint8 IsIdentified : 1;
- uint8 IsDamaged : 1;
- uint8 PlaceETCTab : 1;
- uint8 SpareBits : 5;
- } Flag;
- #endif
- } __attribute__((packed));
- struct packet_authok {
- int16 PacketType;
- uint32 startTime;
- uint8 PosDir[3];
- uint8 xSize;
- uint8 ySize;
- #if PACKETVER >= 20080102
- int16 font;
- #endif
- // Some clients smaller than 20160330 cant be tested [4144]
- #if PACKETVER >= 20141022 && PACKETVER < 20160330
- uint8 sex;
- #endif
- } __attribute__((packed));
- struct packet_monster_hp {
- int16 PacketType;
- uint32 GID;
- int32 HP;
- int32 MaxHP;
- } __attribute__((packed));
- struct packet_sc_notick {
- int16 PacketType;
- int16 index;
- uint32 AID;
- uint8 state;
- } __attribute__((packed));
- // TODO put struct under #ifdef/#elif
- // [4144] dates unconfirmed
- struct PACKET_ZC_ITEM_PICKUP_ACK {
- int16 PacketType;
- uint16 Index;
- uint16 count;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 nameid;
- #else
- uint16 nameid;
- #endif
- uint8 IsIdentified;
- uint8 IsDamaged;
- #if !(PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024)
- uint8 refiningLevel;
- #endif // !(PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024)
- struct EQUIPSLOTINFO slot;
- #if PACKETVER >= 20120925
- uint32 location;
- #else
- uint16 location;
- #endif
- uint8 type;
- uint8 result;
- #if PACKETVER >= 20061218
- int32 HireExpireDate;
- #endif
- #if PACKETVER >= 20071002
- uint16 bindOnEquipType;
- #endif
- #if PACKETVER >= 20150226
- struct ItemOptions option_data[MAX_ITEM_OPTIONS];
- #endif
- #if PACKETVER >= 20160921
- uint8 favorite;
- uint16 look;
- #endif
- #if PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- uint8 refiningLevel;
- uint8 grade;
- #endif // PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- } __attribute__((packed));
- #if PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- DEFINE_PACKET_HEADER(ZC_ITEM_PICKUP_ACK, 0x0b41);
- #elif PACKETVER >= 20160921
- DEFINE_PACKET_HEADER(ZC_ITEM_PICKUP_ACK, 0x0a37);
- #elif PACKETVER >= 20150226
- DEFINE_PACKET_HEADER(ZC_ITEM_PICKUP_ACK, 0x0a0c);
- #elif PACKETVER >= 20120925
- DEFINE_PACKET_HEADER(ZC_ITEM_PICKUP_ACK, 0x0990);
- #elif PACKETVER >= 20071002
- DEFINE_PACKET_HEADER(ZC_ITEM_PICKUP_ACK, 0x02d4);
- #elif PACKETVER >= 20061218
- DEFINE_PACKET_HEADER(ZC_ITEM_PICKUP_ACK, 0x029a);
- #else
- DEFINE_PACKET_HEADER(ZC_ITEM_PICKUP_ACK, 0x00a0);
- #endif
- struct packet_dropflooritem {
- int16 PacketType;
- uint32 ITAID;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 ITID;
- #else
- uint16 ITID;
- #endif
- #if PACKETVER >= 20130000 /* not sure date */
- uint16 type;
- #endif
- uint8 IsIdentified;
- int16 xPos;
- int16 yPos;
- uint8 subX;
- uint8 subY;
- int16 count;
- #if defined(PACKETVER_ZERO) || PACKETVER >= 20180418
- int8 showdropeffect;
- int16 dropeffectmode;
- #endif
- } __attribute__((packed));
- struct packet_idle_unit2 {
- #if PACKETVER < 20091103
- int16 PacketType;
- #if PACKETVER >= 20071106
- uint8 objecttype;
- #endif
- uint32 GID;
- int16 speed;
- int16 bodyState;
- int16 healthState;
- int16 effectState;
- int16 job;
- uint16 head;
- uint16 weapon;
- uint16 accessory;
- uint16 shield;
- uint16 accessory2;
- uint16 accessory3;
- int16 headpalette;
- int16 bodypalette;
- int16 headDir;
- uint32 GUID;
- int16 GEmblemVer;
- int16 honor;
- int16 virtue;
- uint8 isPKModeON;
- uint8 sex;
- uint8 PosDir[3];
- uint8 xSize;
- uint8 ySize;
- uint8 state;
- int16 clevel;
- #else // ! PACKETVER < 20091103
- UNAVAILABLE_STRUCT;
- #endif // PACKETVER < 20091103
- } __attribute__((packed));
- struct packet_spawn_unit2 {
- #if PACKETVER < 20091103
- int16 PacketType;
- #if PACKETVER >= 20071106
- uint8 objecttype;
- #endif
- uint32 GID;
- int16 speed;
- int16 bodyState;
- int16 healthState;
- int16 effectState;
- uint16 head;
- uint16 weapon;
- uint16 accessory;
- int16 job;
- uint16 shield;
- uint16 accessory2;
- uint16 accessory3;
- int16 headpalette;
- int16 bodypalette;
- int16 headDir;
- uint8 isPKModeON;
- uint8 sex;
- uint8 PosDir[3];
- uint8 xSize;
- uint8 ySize;
- #else // ! PACKETVER < 20091103
- UNAVAILABLE_STRUCT;
- #endif // PACKETVER < 20091103
- } __attribute__((packed));
- struct packet_spawn_unit {
- int16 PacketType;
- #if PACKETVER >= 20091103
- int16 PacketLength;
- uint8 objecttype;
- #endif
- #if PACKETVER >= 20131223
- uint32 AID;
- #endif
- uint32 GID;
- int16 speed;
- int16 bodyState;
- int16 healthState;
- #if PACKETVER < 20080102
- int16 effectState;
- #else
- int32 effectState;
- #endif
- int16 job;
- uint16 head;
- #if PACKETVER < 7
- uint16 weapon;
- #else
- uint32 weapon;
- #endif
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 shield;
- #endif
- uint16 accessory;
- #if PACKETVER < 7
- uint16 shield;
- #endif
- uint16 accessory2;
- uint16 accessory3;
- int16 headpalette;
- int16 bodypalette;
- int16 headDir;
- #if PACKETVER >= 20101124
- uint16 robe;
- #endif
- uint32 GUID;
- int16 GEmblemVer;
- int16 honor;
- #if PACKETVER > 7
- int32 virtue;
- #else
- int16 virtue;
- #endif
- uint8 isPKModeON;
- uint8 sex;
- uint8 PosDir[3];
- uint8 xSize;
- uint8 ySize;
- int16 clevel;
- #if PACKETVER >= 20080102
- int16 font;
- #endif
- #if PACKETVER >= 20120221
- int32 maxHP;
- int32 HP;
- uint8 isBoss;
- #endif
- #if PACKETVER >= 20150513
- int16 body;
- #endif
- /* Might be earlier, this is when the named item bug began */
- #if PACKETVER >= 20131223
- char name[NAME_LENGTH];
- #endif
- } __attribute__((packed));
- struct packet_unit_walking {
- int16 PacketType;
- #if PACKETVER >= 20091103
- int16 PacketLength;
- #endif
- #if PACKETVER >= 20071106
- uint8 objecttype;
- #endif
- #if PACKETVER >= 20131223
- uint32 AID;
- #endif
- uint32 GID;
- int16 speed;
- int16 bodyState;
- int16 healthState;
- #if PACKETVER < 7
- int16 effectState;
- #else
- int32 effectState;
- #endif
- int16 job;
- uint16 head;
- #if PACKETVER < 7
- uint16 weapon;
- #else
- uint32 weapon;
- #endif
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 shield;
- #endif
- uint16 accessory;
- uint32 moveStartTime;
- #if PACKETVER < 7
- uint16 shield;
- #endif
- uint16 accessory2;
- uint16 accessory3;
- int16 headpalette;
- int16 bodypalette;
- int16 headDir;
- #if PACKETVER >= 20101124
- uint16 robe;
- #endif
- uint32 GUID;
- int16 GEmblemVer;
- int16 honor;
- #if PACKETVER > 7
- int32 virtue;
- #else
- int16 virtue;
- #endif
- uint8 isPKModeON;
- uint8 sex;
- uint8 MoveData[6];
- uint8 xSize;
- uint8 ySize;
- int16 clevel;
- #if PACKETVER >= 20080102
- int16 font;
- #endif
- #if PACKETVER >= 20120221
- int32 maxHP;
- int32 HP;
- uint8 isBoss;
- #endif
- #if PACKETVER >= 20150513
- uint16 body;
- #endif
- /* Might be earlier, this is when the named item bug began */
- #if PACKETVER >= 20131223
- char name[NAME_LENGTH];
- #endif
- } __attribute__((packed));
- struct packet_idle_unit {
- int16 PacketType;
- #if PACKETVER >= 20091103
- int16 PacketLength;
- uint8 objecttype;
- #endif
- #if PACKETVER >= 20131223
- uint32 AID;
- #endif
- uint32 GID;
- int16 speed;
- int16 bodyState;
- int16 healthState;
- #if PACKETVER < 20080102
- int16 effectState;
- #else
- int32 effectState;
- #endif
- int16 job;
- uint16 head;
- #if PACKETVER < 7
- uint16 weapon;
- #else
- uint32 weapon;
- #endif
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 shield;
- #endif
- uint16 accessory;
- #if PACKETVER < 7
- uint16 shield;
- #endif
- uint16 accessory2;
- uint16 accessory3;
- int16 headpalette;
- int16 bodypalette;
- int16 headDir;
- #if PACKETVER >= 20101124
- uint16 robe;
- #endif
- uint32 GUID;
- int16 GEmblemVer;
- int16 honor;
- #if PACKETVER > 7
- int32 virtue;
- #else
- int16 virtue;
- #endif
- uint8 isPKModeON;
- uint8 sex;
- uint8 PosDir[3];
- uint8 xSize;
- uint8 ySize;
- uint8 state;
- int16 clevel;
- #if PACKETVER >= 20080102
- int16 font;
- #endif
- #if PACKETVER >= 20120221
- int32 maxHP;
- int32 HP;
- uint8 isBoss;
- #endif
- #if PACKETVER >= 20150513
- uint16 body;
- #endif
- /* Might be earlier, this is when the named item bug began */
- #if PACKETVER >= 20131223
- char name[NAME_LENGTH];
- #endif
- } __attribute__((packed));
- struct packet_status_change {
- int16 PacketType;
- int16 index;
- uint32 AID;
- uint8 state;
- #if PACKETVER >= 20120618
- uint32 Total;
- #endif
- #if PACKETVER >= 20090121
- uint32 Left;
- int32 val1;
- int32 val2;
- int32 val3;
- #endif
- } __attribute__((packed));
- struct packet_status_change_end {
- int16 PacketType;
- int16 index;
- uint32 AID;
- uint8 state;
- } __attribute__((packed));
- struct packet_status_change2 {
- int16 PacketType;
- int16 index;
- uint32 AID;
- uint8 state;
- uint32 Left;
- int32 val1;
- int32 val2;
- int32 val3;
- } __attribute__((packed));
- struct packet_maptypeproperty2 {
- int16 PacketType;
- int16 type;
- struct {
- uint32 party : 1; // Show attack cursor on non-party members (PvP)
- uint32 guild : 1; // Show attack cursor on non-guild members (GvG)
- uint32 siege : 1; // Show emblem over characters' heads when in GvG (WoE castle)
- uint32 mineffect : 1; // Automatically enable /mineffect
- uint32 nolockon : 1; // TODO: What does this do? (shows attack cursor on non-party members)
- uint32 countpk : 1; /// Show the PvP counter
- uint32 nopartyformation : 1; /// Prevent party creation/modification
- uint32 bg : 1; // TODO: What does this do? Probably related to Battlegrounds, but I'm not sure on the effect
- uint32 nocostume : 1; /// Does not show costume sprite.
- uint32 usecart : 1; /// Allow opening cart inventory
- uint32 summonstarmiracle : 1; // TODO: What does this do? Related to Taekwon Masters, but I have no idea.
- uint32 SpareBits : 21; /// Currently ignored, reserved for future updates
- } flag;
- } __attribute__((packed));
- struct packet_bgqueue_ack {
- int16 PacketType;
- uint8 type;
- char bg_name[NAME_LENGTH];
- } __attribute__((packed));
- struct packet_bgqueue_notice_delete {
- int16 PacketType;
- uint8 type;
- char bg_name[NAME_LENGTH];
- } __attribute__((packed));
- struct packet_bgqueue_register {
- int16 PacketType;
- int16 type;
- char bg_name[NAME_LENGTH];
- } __attribute__((packed));
- struct packet_bgqueue_update_info {
- int16 PacketType;
- char bg_name[NAME_LENGTH];
- int32 position;
- } __attribute__((packed));
- struct packet_bgqueue_checkstate {
- int16 PacketType;
- char bg_name[NAME_LENGTH];
- } __attribute__((packed));
- struct packet_bgqueue_revoke_req {
- int16 PacketType;
- char bg_name[NAME_LENGTH];
- } __attribute__((packed));
- struct packet_bgqueue_battlebegin_ack {
- int16 PacketType;
- uint8 result;
- char bg_name[NAME_LENGTH];
- char game_name[NAME_LENGTH];
- } __attribute__((packed));
- struct packet_bgqueue_notify_entry {
- int16 PacketType;
- char name[NAME_LENGTH];
- int32 position;
- } __attribute__((packed));
- struct packet_bgqueue_battlebegins {
- int16 PacketType;
- char bg_name[NAME_LENGTH];
- char game_name[NAME_LENGTH];
- } __attribute__((packed));
- struct packet_script_clear {
- int16 PacketType;
- uint32 NpcID;
- } __attribute__((packed));
- #if PACKETVER_MAIN_NUM >= 20220518 || PACKETVER_ZERO_NUM >= 20220518
- struct PACKET_ZC_BROADCASTING_SPECIAL_ITEM_OBTAIN_item {
- int16 PacketType;
- int16 PacketLength;
- uint8 type;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 ItemID;
- #else
- uint16 ItemID;
- #endif
- int8 len;
- char Name[NAME_LENGTH];
- int8 boxItemID_len;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 BoxItemID;
- #else
- uint16 BoxItemID;
- #endif
- int8 refineLevel_len;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 refineLevel;
- #else
- uint16 refineLevel;
- #endif
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_BROADCASTING_SPECIAL_ITEM_OBTAIN_item, 0x0bba)
- #elif PACKETVER >= 20091201
- /* made possible thanks to Yommy!! */
- struct PACKET_ZC_BROADCASTING_SPECIAL_ITEM_OBTAIN_item {
- int16 PacketType;
- int16 PacketLength;
- uint8 type;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 ItemID;
- #else
- uint16 ItemID;
- #endif
- int8 len;
- char Name[NAME_LENGTH];
- int8 boxItemID_len;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 BoxItemID;
- #else
- uint16 BoxItemID;
- #endif
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_BROADCASTING_SPECIAL_ITEM_OBTAIN_item, 0x07fd)
- #endif
- /* made possible thanks to Yommy!! */
- struct packet_item_drop_announce {
- int16 PacketType;
- int16 PacketLength;
- uint8 type;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 ItemID;
- #else
- uint16 ItemID;
- #endif
- int8 len;
- char Name[NAME_LENGTH];
- char monsterNameLen;
- char monsterName[NAME_LENGTH];
- } __attribute__((packed));
- struct packet_cart_additem_ack {
- int16 PacketType;
- int8 result;
- } __attribute__((packed));
- struct packet_banking_check {
- int16 PacketType;
- int64 Money;
- int16 Reason;
- } __attribute__((packed));
- struct packet_banking_deposit_req {
- int16 PacketType;
- uint32 AID;
- int32 Money;
- } __attribute__((packed));
- struct packet_banking_withdraw_req {
- int16 PacketType;
- uint32 AID;
- int32 Money;
- } __attribute__((packed));
- struct packet_banking_deposit_ack {
- int16 PacketType;
- int16 Reason;
- int64 Money;
- int32 Balance;
- } __attribute__((packed));
- struct packet_banking_withdraw_ack {
- int16 PacketType;
- int16 Reason;
- int64 Money;
- int32 Balance;
- } __attribute__((packed));
- /* Roulette System [Yommy/Hercules] */
- struct packet_roulette_open_ack {
- int16 PacketType;
- int8 Result;
- int32 Serial;
- int8 Step;
- int8 Idx;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 AdditionItemID;
- #else
- uint16 AdditionItemID;
- #endif
- int32 GoldPoint;
- int32 SilverPoint;
- int32 BronzePoint;
- } __attribute__((packed));
- struct packet_roulette_info_ack {
- int16 PacketType;
- int16 PacketLength;
- uint32 RouletteSerial;
- struct {
- uint16 Row;
- uint16 Position;
- #if PACKETVER >= 20180511
- uint32 ItemId;
- uint16 Count;
- uint16 unused;
- #else
- uint16 ItemId;
- uint16 Count;
- #endif
- } ItemInfo[42];
- } __attribute__((packed));
- struct packet_roulette_close_ack {
- int16 PacketType;
- uint8 Result;
- } __attribute__((packed));
- struct packet_roulette_generate_ack {
- int16 PacketType;
- uint8 Result;
- uint16 Step;
- uint16 Idx;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 AdditionItemID;
- #else
- uint16 AdditionItemID;
- #endif
- int32 RemainGold;
- int32 RemainSilver;
- int32 RemainBronze;
- } __attribute__((packed));
- struct packet_roulette_itemrecv_req {
- int16 PacketType;
- uint8 Condition;
- } __attribute__((packed));
- struct packet_roulette_itemrecv_ack {
- int16 PacketType;
- uint8 Result;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 AdditionItemID;
- #else
- uint16 AdditionItemID;
- #endif
- } __attribute__((packed));
- struct packet_itemlist_normal {
- int16 PacketType;
- int16 PacketLength;
- #if PACKETVER_RE_NUM >= 20180912 || PACKETVER_ZERO_NUM >= 20180919 || PACKETVER_MAIN_NUM >= 20181002
- uint8 invType;
- #endif
- struct NORMALITEM_INFO list[MAX_ITEMLIST];
- } __attribute__((packed));
- struct packet_itemlist_equip {
- int16 PacketType;
- int16 PacketLength;
- #if PACKETVER_RE_NUM >= 20180912 || PACKETVER_ZERO_NUM >= 20180919 || PACKETVER_MAIN_NUM >= 20181002
- uint8 invType;
- #endif
- struct EQUIPITEM_INFO list[MAX_ITEMLIST];
- } __attribute__((packed));
- struct ZC_STORE_ITEMLIST_NORMAL {
- int16 PacketType;
- int16 PacketLength;
- #if PACKETVER_RE_NUM >= 20180912 || PACKETVER_ZERO_NUM >= 20180919 || PACKETVER_MAIN_NUM >= 20181002
- uint8 invType;
- #endif
- #if PACKETVER >= 20120925 && PACKETVER_RE_NUM < 20180829 && PACKETVER_ZERO_NUM < 20180919 && PACKETVER_MAIN_NUM < 20181002
- char name[NAME_LENGTH];
- #endif
- struct NORMALITEM_INFO list[MAX_ITEMLIST];
- } __attribute__((packed));
- #if PACKETVER_RE_NUM >= 20180829 || PACKETVER_ZERO_NUM >= 20180919 || PACKETVER_MAIN_NUM >= 20181002
- struct PACKET_ZC_INVENTORY_START {
- int16 packetType;
- #if PACKETVER_RE_NUM >= 20180919 || PACKETVER_ZERO_NUM >= 20180919 || PACKETVER_MAIN_NUM >= 20181002
- int16 packetLength;
- #endif
- #if PACKETVER_RE_NUM >= 20180912 || PACKETVER_ZERO_NUM >= 20180919 || PACKETVER_MAIN_NUM >= 20181002
- uint8 invType;
- #endif
- #if PACKETVER_RE_NUM >= 20180919 || PACKETVER_ZERO_NUM >= 20180919 || PACKETVER_MAIN_NUM >= 20181002
- char name[];
- #else
- char name[NAME_LENGTH];
- #endif
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_INVENTORY_START, 0x0b08);
- #endif // PACKETVER_RE_NUM >= 20180829 || PACKETVER_ZERO_NUM >= 20180919 || PACKETVER_MAIN_NUM >= 20181002
- #if PACKETVER_RE_NUM >= 20180829 || PACKETVER_ZERO_NUM >= 20180919 || PACKETVER_MAIN_NUM >= 20181002
- struct PACKET_ZC_INVENTORY_END {
- int16 packetType;
- #if PACKETVER_RE_NUM >= 20180912 || PACKETVER_ZERO_NUM >= 20180919 || PACKETVER_MAIN_NUM >= 20181002
- uint8 invType;
- #endif
- char flag;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_INVENTORY_END, 0x0b0b);
- #endif // PACKETVER_RE_NUM >= 20180829 || PACKETVER_ZERO_NUM >= 20180919 || PACKETVER_MAIN_NUM >= 20181002
- struct ZC_STORE_ITEMLIST_EQUIP {
- int16 PacketType;
- int16 PacketLength;
- #if PACKETVER_RE_NUM >= 20180912 || PACKETVER_ZERO_NUM >= 20180919 || PACKETVER_MAIN_NUM >= 20181002
- uint8 invType;
- #endif
- #if PACKETVER >= 20120925 && PACKETVER_RE_NUM < 20180829 && PACKETVER_ZERO_NUM < 20180919 && PACKETVER_MAIN_NUM < 20181002
- char name[NAME_LENGTH];
- #endif
- struct EQUIPITEM_INFO list[MAX_ITEMLIST];
- } __attribute__((packed));
- struct packet_equip_item {
- int16 PacketType;
- uint16 index;
- #if PACKETVER >= 20120925
- uint32 wearLocation;
- #else
- uint16 wearLocation;
- #endif
- } __attribute__((packed));
- #if PACKETVER_MAIN_NUM >= 20121205 || PACKETVER_RE_NUM >= 20121107 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_REQ_WEAR_EQUIP_ACK {
- int16 PacketType;
- uint16 index;
- uint32 wearLocation;
- uint16 wItemSpriteNumber;
- uint8 result;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_REQ_WEAR_EQUIP_ACK, 0x0999)
- #elif PACKETVER_MAIN_NUM >= 20101123 || PACKETVER_RE_NUM >= 20100629
- struct PACKET_ZC_REQ_WEAR_EQUIP_ACK {
- int16 PacketType;
- uint16 index;
- uint16 wearLocation;
- uint16 wItemSpriteNumber;
- uint8 result;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_REQ_WEAR_EQUIP_ACK, 0x00aa)
- #else // PACKETVER_MAIN_NUM >= 20121205 || PACKETVER_RE_NUM >= 20121107 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_REQ_WEAR_EQUIP_ACK {
- int16 PacketType;
- uint16 index;
- uint16 wearLocation;
- uint8 result;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_REQ_WEAR_EQUIP_ACK, 0x00aa)
- #endif // PACKETVER_MAIN_NUM >= 20121205 || PACKETVER_RE_NUM >= 20121107 || defined(PACKETVER_ZERO)
- struct packet_unequipitem_ack {
- int16 PacketType;
- uint16 index;
- #if PACKETVER >= 20120925
- uint32 wearLocation;
- #else
- uint16 wearLocation;
- #endif
- uint8 result;
- } __attribute__((packed));
- #if PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_ZC_EQUIPWIN_MICROSCOPE {
- int16 PacketType;
- int16 PacketLength;
- char characterName[NAME_LENGTH];
- int16 job;
- int16 head;
- int16 accessory;
- int16 accessory2;
- int16 accessory3;
- int16 robe;
- int16 headpalette;
- int16 bodypalette;
- int16 body2;
- uint8 sex;
- struct EQUIPITEM_INFO list[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_EQUIPWIN_MICROSCOPE, 0x0b37);
- #elif PACKETVER_MAIN_NUM >= 20180801 || PACKETVER_RE_NUM >= 20180801 || PACKETVER_ZERO_NUM >= 20180808
- struct PACKET_ZC_EQUIPWIN_MICROSCOPE {
- int16 PacketType;
- int16 PacketLength;
- char characterName[NAME_LENGTH];
- int16 job;
- int16 head;
- int16 accessory;
- int16 accessory2;
- int16 accessory3;
- int16 robe;
- int16 headpalette;
- int16 bodypalette;
- int16 body2;
- uint8 sex;
- struct EQUIPITEM_INFO list[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_EQUIPWIN_MICROSCOPE, 0x0b03);
- #elif PACKETVER >= 20140820
- struct PACKET_ZC_EQUIPWIN_MICROSCOPE {
- int16 PacketType;
- int16 PacketLength;
- char characterName[NAME_LENGTH];
- int16 job;
- int16 head;
- int16 accessory;
- int16 accessory2;
- int16 accessory3;
- int16 robe;
- int16 headpalette;
- int16 bodypalette;
- uint8 sex;
- struct EQUIPITEM_INFO list[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_EQUIPWIN_MICROSCOPE, 0x0a2d);
- #elif PACKETVER_MAIN_NUM >= 20121205 || PACKETVER_RE_NUM >= 20121107
- struct PACKET_ZC_EQUIPWIN_MICROSCOPE {
- int16 PacketType;
- int16 PacketLength;
- char characterName[NAME_LENGTH];
- int16 job;
- int16 head;
- int16 accessory;
- int16 accessory2;
- int16 accessory3;
- int16 robe;
- int16 headpalette;
- int16 bodypalette;
- uint8 sex;
- struct EQUIPITEM_INFO list[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_EQUIPWIN_MICROSCOPE, 0x0997);
- #elif PACKETVER_MAIN_NUM >= 20111207 || PACKETVER_RE_NUM >= 20111122
- struct PACKET_ZC_EQUIPWIN_MICROSCOPE {
- int16 PacketType;
- int16 PacketLength;
- char characterName[NAME_LENGTH];
- int16 job;
- int16 head;
- int16 accessory;
- int16 accessory2;
- int16 accessory3;
- int16 robe;
- int16 headpalette;
- int16 bodypalette;
- uint8 sex;
- struct EQUIPITEM_INFO list[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_EQUIPWIN_MICROSCOPE, 0x0906);
- #elif PACKETVER >= 20101123
- struct PACKET_ZC_EQUIPWIN_MICROSCOPE {
- int16 PacketType;
- int16 PacketLength;
- char characterName[NAME_LENGTH];
- int16 job;
- int16 head;
- int16 accessory;
- int16 accessory2;
- int16 accessory3;
- int16 robe;
- int16 headpalette;
- int16 bodypalette;
- uint8 sex;
- struct EQUIPITEM_INFO list[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_EQUIPWIN_MICROSCOPE, 0x0859);
- #elif PACKETVER_AD_NUM >= 20071211 || PACKETVER_SAK_NUM >= 20071127 || PACKETVER_MAIN_NUM >= 20071211 || defined(PACKETVER_RE)
- struct PACKET_ZC_EQUIPWIN_MICROSCOPE {
- int16 PacketType;
- int16 PacketLength;
- char characterName[NAME_LENGTH];
- int16 job;
- int16 head;
- int16 accessory;
- int16 accessory2;
- int16 accessory3;
- int16 headpalette;
- int16 bodypalette;
- uint8 sex;
- struct EQUIPITEM_INFO list[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_EQUIPWIN_MICROSCOPE, 0x02d7);
- #endif
- struct packet_notify_bounditem {
- int16 PacketType;
- uint16 index;
- } __attribute__((packed));
- struct packet_skill_entry {
- int16 PacketType;
- #if PACKETVER >= 20110718
- int16 PacketLength;
- #endif
- uint32 AID;
- uint32 creatorAID;
- int16 xPos;
- int16 yPos;
- #if PACKETVER >= 20121212
- int32 job;
- #else
- uint8 job;
- #endif
- #if PACKETVER >= 20110718
- int8 RadiusRange;
- #endif
- uint8 isVisible;
- #if PACKETVER >= 20130731
- uint8 level;
- #endif
- } __attribute__((packed));
- struct packet_graffiti_entry {
- int16 PacketType;
- uint32 AID;
- uint32 creatorAID;
- int16 xPos;
- int16 yPos;
- uint8 job;
- uint8 isVisible;
- uint8 isContens;
- char msg[80];
- } __attribute__((packed));
- struct packet_damage {
- int16 PacketType;
- uint32 GID;
- uint32 targetGID;
- uint32 startTime;
- int32 attackMT;
- int32 attackedMT;
- #if PACKETVER < 20071113
- int16 damage;
- #else
- int32 damage;
- #endif
- #if PACKETVER >= 20131223
- uint8 is_sp_damaged;
- #endif
- int16 count;
- uint8 action;
- #if PACKETVER < 20071113
- int16 leftDamage;
- #else
- int32 leftDamage;
- #endif
- } __attribute__((packed));
- struct packet_gm_monster_item {
- int16 PacketType;
- #if PACKETVER >= 20131218
- char str[100];
- #else
- char str[24];
- #endif
- } __attribute__((packed));
- #if PACKETVER_MAIN_NUM >= 20130911 || PACKETVER_RE_NUM >= 20130911 || defined(PACKETVER_ZERO)
- struct PACKET_CZ_NPC_MARKET_PURCHASE_sub {
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 ITID;
- #else
- uint16 ITID;
- #endif
- int32 qty;
- } __attribute__((packed));
- struct PACKET_CZ_NPC_MARKET_PURCHASE {
- int16 PacketType;
- int16 PacketLength;
- struct PACKET_CZ_NPC_MARKET_PURCHASE_sub list[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_NPC_MARKET_PURCHASE, 0x09d6)
- #endif
- #if PACKETVER_MAIN_NUM >= 20210203 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_ZC_NPC_MARKET_OPEN_sub {
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 nameid;
- #else
- uint16 nameid;
- #endif
- uint8 type;
- uint32 price;
- uint32 qty;
- uint16 weight;
- uint32 location;
- } __attribute__((packed));
- struct PACKET_ZC_NPC_MARKET_OPEN {
- int16 packetType;
- int16 packetLength;
- struct PACKET_ZC_NPC_MARKET_OPEN_sub list[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_NPC_MARKET_OPEN, 0x0b7a);
- #elif PACKETVER_MAIN_NUM >= 20131120 || PACKETVER_RE_NUM >= 20131106 || defined(PACKETVER_ZERO)
- /* inner struct figured by Ind after some annoying hour of debugging (data Thanks to Yommy) */
- struct PACKET_ZC_NPC_MARKET_OPEN_sub {
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 nameid;
- #else
- uint16 nameid;
- #endif
- uint8 type;
- uint32 price;
- uint32 qty;
- uint16 weight;
- } __attribute__((packed));
- struct PACKET_ZC_NPC_MARKET_OPEN {
- int16 packetType;
- int16 packetLength;
- struct PACKET_ZC_NPC_MARKET_OPEN_sub list[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_NPC_MARKET_OPEN, 0x09d5);
- #endif
- struct packet_wis_end {
- int16 PacketType;
- int8 result;
- #if PACKETVER >= 20131223
- uint32 AID;
- #endif
- } __attribute__((packed));
- struct packet_party_leader_changed {
- int16 PacketType;
- uint32 prev_leader_aid;
- uint32 new_leader_aid;
- } __attribute__((packed));
- #ifdef HOTKEY_SAVING
- struct hotkey_data {
- int8 isSkill; // 0: Item, 1:Skill
- uint32 id; // Item/Skill ID
- int16 count; // Item Quantity/Skill Level
- } __attribute__((packed));
- #if PACKETVER_MAIN_NUM >= 20190522 || PACKETVER_RE_NUM >= 20190508 || PACKETVER_ZERO_NUM >= 20190605
- #define MAX_HOTKEYS_PACKET 38
- struct PACKET_ZC_SHORTCUT_KEY_LIST {
- int16 packetType;
- int8 rotate;
- int16 tab;
- struct hotkey_data hotkey[MAX_HOTKEYS_PACKET];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_SHORTCUT_KEY_LIST, 0x0b20);
- #elif PACKETVER_MAIN_NUM >= 20141022 || PACKETVER_RE_NUM >= 20141015 || defined(PACKETVER_ZERO)
- #define MAX_HOTKEYS_PACKET 38
- struct PACKET_ZC_SHORTCUT_KEY_LIST {
- int16 packetType;
- int8 rotate;
- struct hotkey_data hotkey[MAX_HOTKEYS_PACKET];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_SHORTCUT_KEY_LIST, 0x0a00);
- #elif PACKETVER_MAIN_NUM >= 20090617 || PACKETVER_RE_NUM >= 20090617 || PACKETVER_SAK_NUM >= 20090617
- #define MAX_HOTKEYS_PACKET 38
- struct PACKET_ZC_SHORTCUT_KEY_LIST {
- int16 packetType;
- struct hotkey_data hotkey[MAX_HOTKEYS_PACKET];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_SHORTCUT_KEY_LIST, 0x07d9);
- #elif PACKETVER_MAIN_NUM >= 20090603 || PACKETVER_RE_NUM >= 20090603 || PACKETVER_SAK_NUM >= 20090603
- #define MAX_HOTKEYS_PACKET 36
- struct PACKET_ZC_SHORTCUT_KEY_LIST {
- int16 packetType;
- struct hotkey_data hotkey[MAX_HOTKEYS_PACKET];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_SHORTCUT_KEY_LIST, 0x07d9);
- #elif PACKETVER_MAIN_NUM >= 20070711 || PACKETVER_RE_NUM >= 20080827 || PACKETVER_AD_NUM >= 20070711 || PACKETVER_SAK_NUM >= 20070628
- #define MAX_HOTKEYS_PACKET 27
- struct PACKET_ZC_SHORTCUT_KEY_LIST {
- int16 packetType;
- struct hotkey_data hotkey[MAX_HOTKEYS_PACKET];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_SHORTCUT_KEY_LIST, 0x02b9);
- #endif
- #if PACKETVER_MAIN_NUM >= 20070618 || defined(PACKETVER_RE) || defined(PACKETVER_ZERO) || PACKETVER_AD_NUM >= 20070618 || PACKETVER_SAK_NUM >= 20070618
- struct PACKET_CZ_SHORTCUT_KEY_CHANGE1 {
- int16 packetType;
- uint16 index;
- struct hotkey_data hotkey;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_SHORTCUT_KEY_CHANGE1, 0x02ba);
- #endif
- #if PACKETVER_MAIN_NUM >= 20190522 || PACKETVER_RE_NUM >= 20190508 || PACKETVER_ZERO_NUM >= 20190605
- struct PACKET_CZ_SHORTCUT_KEY_CHANGE2 {
- int16 packetType;
- uint16 tab;
- uint16 index;
- struct hotkey_data hotkey;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_SHORTCUT_KEY_CHANGE2, 0x0b21);
- #endif
- #if PACKETVER_MAIN_NUM >= 20140129 || PACKETVER_RE_NUM >= 20140129 || defined(PACKETVER_ZERO)
- struct PACKET_CZ_SHORTCUTKEYBAR_ROTATE1 {
- int16 packetType;
- uint8 rowshift;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_SHORTCUTKEYBAR_ROTATE1, 0x0a01);
- #endif
- #if PACKETVER_MAIN_NUM >= 20190522 || PACKETVER_RE_NUM >= 20190508 || PACKETVER_ZERO_NUM >= 20190605
- struct PACKET_CZ_SHORTCUTKEYBAR_ROTATE2 {
- int16 packetType;
- uint16 tab;
- uint8 rowshift;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_SHORTCUTKEYBAR_ROTATE2, 0x0b22);
- #endif
- #endif // HOTKEY_SAVING
- /**
- * MISSION_HUNT_INFO (PACKETVER >= 20141022)
- * MISSION_HUNT_INFO_EX (PACKETVER >= 20150513)
- */
- struct packet_mission_info_sub {
- #if PACKETVER_ZERO_NUM >= 20181010 || PACKETVER >= 20181017
- uint32 huntIdent;
- uint32 huntIdent2;
- uint32 mobType;
- #elif PACKETVER >= 20150513
- uint32 huntIdent;
- uint32 mobType;
- #endif
- uint32 mob_id;
- #if PACKETVER >= 20150513
- int16 levelMin;
- int16 levelMax;
- #endif
- int16 huntCount;
- int16 maxCount;
- char mobName[NAME_LENGTH];
- } __attribute__((packed));
- /**
- * PACKET_ZC_ALL_QUEST_LIST2_INFO (PACKETVER >= 20141022)
- * PACKET_ZC_ALL_QUEST_LIST3_INFO (PACKETVER >= 20150513)
- */
- struct packet_quest_list_info {
- int32 questID;
- int8 active;
- #if PACKETVER >= 20141022
- int32 quest_svrTime;
- int32 quest_endTime;
- int16 hunting_count;
- struct packet_mission_info_sub objectives[]; // Note: This will be < MAX_QUEST_OBJECTIVES
- #endif // PACKETVER >= 20141022
- } __attribute__((packed));
- /**
- * Header for:
- * PACKET_ZC_ALL_QUEST_LIST (PACKETVER < 20141022)
- * PACKET_ZC_ALL_QUEST_LIST2 (PACKETVER >= 20141022)
- * PACKET_ZC_ALL_QUEST_LIST3 (PACKETVER >= 20150513)
- *
- * @remark
- * Contains (is followed by) a variable-length array of packet_quest_list_info
- */
- struct packet_quest_list_header {
- uint16 PacketType;
- uint16 PacketLength;
- int32 questCount;
- //struct packet_quest_list_info list[]; // Variable-length
- } __attribute__((packed));
- struct packet_chat_message {
- uint16 packet_id;
- int16 packet_len;
- char message[];
- } __attribute__((packed));
- struct packet_whisper_message {
- uint16 packet_id;
- int16 packet_len;
- char name[NAME_LENGTH];
- char message[];
- } __attribute__((packed));
- /* RoDEX */
- struct PACKET_CZ_ADD_ITEM_TO_MAIL {
- int16 PacketType;
- int16 index;
- int16 count;
- } __attribute__((packed));
- // [4144] this packet exists from
- // PACKETVER_MAIN_NUM >= 20141112 || PACKETVER_RE_NUM >= 20140924 || defined(PACKETVER_ZERO)
- // but used only packet versions with known struct
- #if PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_ZC_ACK_ADD_ITEM_RODEX {
- int16 PacketType;
- int8 result;
- int16 index;
- int16 count;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- int8 type;
- int8 IsIdentified;
- int8 IsDamaged;
- struct EQUIPSLOTINFO slot;
- struct ItemOptions optionData[MAX_ITEM_OPTIONS];
- int16 weight;
- uint8 favorite;
- uint32 location;
- int8 refiningLevel;
- int8 grade;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ACK_ADD_ITEM_RODEX, 0x0b3f);
- #elif PACKETVER >= 20141119
- struct PACKET_ZC_ACK_ADD_ITEM_RODEX {
- int16 PacketType;
- int8 result;
- int16 index;
- int16 count;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- int8 type;
- int8 IsIdentified;
- int8 IsDamaged;
- int8 refiningLevel;
- struct EQUIPSLOTINFO slot;
- struct ItemOptions optionData[MAX_ITEM_OPTIONS];
- int16 weight;
- uint8 favorite;
- uint32 location;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ACK_ADD_ITEM_RODEX, 0x0a05);
- #endif // PACKETVER >= 20141119
- struct PACKET_CZ_REQ_OPEN_WRITE_MAIL {
- int16 PacketType;
- char receiveName[NAME_LENGTH];
- } __attribute__((packed));
- struct PACKET_ZC_ACK_OPEN_WRITE_MAIL {
- int16 PacketType;
- char receiveName[NAME_LENGTH];
- int8 result;
- } __attribute__((packed));
- struct PACKET_CZ_REQ_REMOVE_ITEM_MAIL {
- int16 PacketType;
- int16 index;
- uint16 cnt;
- } __attribute__((packed));
- struct PACKET_ZC_ACK_REMOVE_ITEM_MAIL {
- int16 PacketType;
- int8 result;
- int16 index;
- uint16 cnt;
- int16 weight;
- } __attribute__((packed));
- struct PACKET_CZ_SEND_MAIL {
- int16 PacketType;
- int16 PacketLength;
- char receiveName[24];
- char senderName[24];
- int64 zeny;
- int16 Titlelength;
- int16 TextcontentsLength;
- #if PACKETVER > 20160600
- int32 receiver_char_id;
- #endif // PACKETVER > 20160600
- char string[];
- } __attribute__((packed));
- struct PACKET_ZC_WRITE_MAIL_RESULT {
- int16 PacketType;
- int8 result;
- } __attribute__((packed));
- #if PACKETVER >= 20140423
- struct PACKET_CZ_CHECKNAME1 {
- int16 PacketType;
- char Name[24];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_CHECKNAME1, 0x0a13)
- #endif // PACKETVER >= 20140423
- #if PACKETVER_MAIN_NUM >= 20201104 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20201118
- struct PACKET_CZ_CHECKNAME2 {
- int16 PacketType;
- char Name[24];
- char own_char;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_CHECKNAME2, 0x0b97)
- #endif // PACKETVER_MAIN_NUM >= 20201104 || PACKETVER_ZERO_NUM >= 20201118
- #if PACKETVER >= 20160302
- struct PACKET_ZC_CHECKNAME {
- int16 PacketType;
- int32 CharId;
- int16 Class;
- int16 BaseLevel;
- char Name[24];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_CHECKNAME, 0x0a51)
- #elif PACKETVER >= 20141119
- struct PACKET_ZC_CHECKNAME {
- int16 PacketType;
- int32 CharId;
- int16 Class;
- int16 BaseLevel;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_CHECKNAME, 0x0a14)
- #endif
- struct PACKET_ZC_NOTIFY_UNREADMAIL {
- int16 PacketType;
- char result;
- } __attribute__((packed));
- struct maillistinfo {
- #if PACKETVER >= 20170419
- uint8 openType;
- #endif
- int64 MailID;
- int8 Isread;
- uint8 type;
- char SenderName[24];
- #if PACKETVER < 20170419
- int32 regDateTime;
- #endif
- int32 expireDateTime;
- int16 Titlelength;
- char title[];
- } __attribute__((packed));
- struct PACKET_ZC_MAIL_LIST {
- int16 PacketType;
- int16 PacketLength;
- #if PACKETVER < 20170419
- int8 opentype;
- int8 cnt;
- #endif
- int8 IsEnd;
- } __attribute__((packed));
- struct PACKET_CZ_REQ_NEXT_MAIL_LIST {
- int16 PacketType;
- int8 opentype;
- int64 Lower_MailID;
- } __attribute__((packed));
- struct PACKET_CZ_REQ_OPEN_MAIL {
- int16 PacketType;
- #if PACKETVER >= 20170419
- int64 char_Upper_MailID;
- int64 return_Upper_MailID;
- int64 account_Upper_MailID;
- #else
- int8 opentype;
- int64 Upper_MailID;
- #endif
- } __attribute__((packed));
- struct PACKET_CZ_REQ_READ_MAIL {
- int16 PacketType;
- int8 opentype;
- int64 MailID;
- } __attribute__((packed));
- #if PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_ZC_ACK_READ_RODEX_SUB {
- int16 count;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 ITID;
- #else
- uint16 ITID;
- #endif
- int8 IsIdentified;
- int8 IsDamaged;
- struct EQUIPSLOTINFO slot;
- uint32 location;
- uint8 type;
- uint16 viewSprite;
- uint16 bindOnEquip;
- struct ItemOptions option_data[MAX_ITEM_OPTIONS];
- int8 refiningLevel;
- int8 grade;
- } __attribute__((packed));
- struct PACKET_ZC_ACK_READ_RODEX {
- int16 PacketType;
- int16 PacketLength;
- int8 opentype;
- int64 MailID;
- int16 TextcontentsLength;
- int64 zeny;
- int8 ItemCnt;
- char Textcontent[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ACK_READ_RODEX, 0x0b63);
- // [4144] date unconfirmed
- #elif PACKETVER >= 20140115
- struct PACKET_ZC_ACK_READ_RODEX_SUB {
- int16 count;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 ITID;
- #else
- uint16 ITID;
- #endif
- int8 IsIdentified;
- int8 IsDamaged;
- int8 refiningLevel;
- struct EQUIPSLOTINFO slot;
- uint32 location;
- uint8 type;
- uint16 viewSprite;
- uint16 bindOnEquip;
- struct ItemOptions option_data[MAX_ITEM_OPTIONS];
- } __attribute__((packed));
- struct PACKET_ZC_ACK_READ_RODEX {
- int16 PacketType;
- int16 PacketLength;
- int8 opentype;
- int64 MailID;
- int16 TextcontentsLength;
- int64 zeny;
- int8 ItemCnt;
- char Textcontent[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ACK_READ_RODEX, 0x09eb);
- #endif // PACKETVER >= 20140115
- struct PACKET_CZ_REQ_DELETE_MAIL {
- int16 PacketType;
- int8 opentype;
- int64 MailID;
- } __attribute__((packed));
- struct PACKET_ZC_ACK_DELETE_MAIL {
- int16 PacketType;
- int8 opentype;
- int64 MailID;
- } __attribute__((packed));
- struct PACKET_CZ_REQ_REFRESH_MAIL_LIST {
- int16 PacketType;
- #if PACKETVER >= 20170419
- int64 Upper_MailID;
- int8 unknown[16];
- #else
- int8 opentype;
- int64 Upper_MailID;
- #endif
- } __attribute__((packed));
- struct PACKET_CZ_REQ_ZENY_FROM_MAIL {
- int16 PacketType;
- int64 MailID;
- int8 opentype;
- } __attribute__((packed));
- struct PACKET_ZC_ACK_ZENY_FROM_MAIL {
- int16 PacketType;
- int64 MailID;
- int8 opentype;
- int8 result;
- } __attribute__((packed));
- struct PACKET_CZ_REQ_ITEM_FROM_MAIL {
- int16 PacketType;
- int64 MailID;
- int8 opentype;
- } __attribute__((packed));
- struct PACKET_ZC_ACK_ITEM_FROM_MAIL {
- int16 PacketType;
- int64 MailID;
- int8 opentype;
- int8 result;
- } __attribute__((packed));
- struct PACKET_ZC_SKILL_SCALE {
- int16 PacketType;
- uint32 AID;
- int16 skill_id;
- int16 skill_lv;
- int16 x;
- int16 y;
- uint32 casttime;
- } __attribute__((packed));
- struct ZC_PROGRESS_ACTOR {
- int16 PacketType;
- int32 GID;
- int32 color;
- uint32 time;
- } __attribute__((packed));
- struct PACKET_ZC_ADD_MEMBER_TO_GROUP {
- int16 packetType;
- uint32 AID;
- #if PACKETVER >= 20171207
- uint32 GID;
- #endif
- uint32 leader;
- #if PACKETVER_MAIN_NUM >= 20170524 || PACKETVER_RE_NUM >= 20170502 || defined(PACKETVER_ZERO)
- int16 class_;
- int16 baseLevel;
- #endif
- int16 x;
- int16 y;
- uint8 offline;
- char partyName[NAME_LENGTH];
- char playerName[NAME_LENGTH];
- char mapName[MAP_NAME_LENGTH_EXT];
- int8 sharePickup;
- int8 shareLoot;
- } __attribute__((packed));
- struct PACKET_ZC_GROUP_LIST_SUB {
- uint32 AID;
- #if PACKETVER >= 20171207
- uint32 GID;
- #endif
- char playerName[NAME_LENGTH];
- char mapName[MAP_NAME_LENGTH_EXT];
- uint8 leader;
- uint8 offline;
- #if PACKETVER_MAIN_NUM >= 20170524 || PACKETVER_RE_NUM >= 20170502 || defined(PACKETVER_ZERO)
- int16 class_;
- int16 baseLevel;
- #endif
- } __attribute__((packed));
- struct PACKET_ZC_GROUP_LIST {
- int16 packetType;
- int16 packetLen;
- char partyName[NAME_LENGTH];
- struct PACKET_ZC_GROUP_LIST_SUB members[];
- } __attribute__((packed));
- #if PACKETVER_MAIN_NUM >= 20130626 || PACKETVER_RE_NUM >= 20130605 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_CLANINFO {
- int16 PacketType;
- int16 PacketLength;
- uint32 ClanID;
- char ClanName[NAME_LENGTH];
- char MasterName[NAME_LENGTH];
- char Map[MAP_NAME_LENGTH_EXT];
- uint8 AllyCount;
- uint8 AntagonistCount;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_CLANINFO, 0x098a);
- #endif
- struct PACKET_ZC_NOTIFY_CLAN_CONNECTINFO {
- int16 PacketType;
- int16 NumConnect;
- int16 NumTotal;
- } __attribute__((packed));
- struct PACKET_ZC_ACK_CLAN_LEAVE {
- int16 PacketType;
- } __attribute__((packed));
- struct PACKET_ZC_NOTIFY_CLAN_CHAT {
- int16 PacketType;
- int16 PacketLength;
- char MemberName[NAME_LENGTH];
- char Message[];
- } __attribute__((packed));
- /**
- * PACKET_ZC_MISSION_HUNT (PACKETVER < 20150513)
- * PACKET_ZC_MISSION_HUNT_EX (PACKETVER >= 20150513)
- */
- struct packet_quest_hunt_sub {
- #if PACKETVER_ZERO_NUM >= 20181010 || PACKETVER >= 20181017
- uint32 huntIdent;
- uint32 huntIdent2;
- uint32 mobType;
- #elif PACKETVER >= 20150513
- uint32 huntIdent;
- uint32 mobType;
- #endif
- uint32 mob_id;
- #if PACKETVER >= 20150513
- int16 levelMin;
- int16 levelMax;
- #endif
- int16 huntCount;
- char mobName[NAME_LENGTH];
- } __attribute__((packed));
- /**
- * Header for:
- * PACKET_ZC_ADD_QUEST (PACKETVER < 20150513)
- * PACKET_ZC_ADD_QUEST_EX (PACKETVER >= 20150513)
- */
- struct packet_quest_add_header {
- uint16 PacketType;
- uint32 questID;
- uint8 active;
- int32 quest_svrTime;
- int32 quest_endTime;
- int16 count;
- struct packet_quest_hunt_sub objectives[];
- } __attribute__((packed));
- /**
- * PACKET_MOB_HUNTING (PACKETVER < 20150513)
- * PACKET_MOB_HUNTING_EX (PACKETVER >= 20150513)
- */
- struct packet_quest_update_hunt {
- uint32 questID;
- #if PACKETVER_ZERO_NUM >= 20181010 || PACKETVER >= 20181017
- uint32 huntIdent;
- uint32 huntIdent2;
- #elif PACKETVER >= 20150513
- uint32 huntIdent;
- #else
- uint32 mob_id;
- #endif // PACKETVER < 20150513
- int16 maxCount;
- int16 count;
- } __attribute__((packed));
- /**
- * Header for:
- * PACKET_ZC_UPDATE_MISSION_HUNT (PACKETVER < 20150513)
- * PACKET_ZC_UPDATE_MISSION_HUNT_EX (PACKETVER >= 20150513)
- */
- struct packet_quest_update_header {
- uint16 PacketType;
- uint16 PacketLength;
- int16 count;
- struct packet_quest_update_hunt objectives[];
- } __attribute__((packed));
- /**
- * Header for:
- * PACKET_MOB_HUNTING (PACKETVER >= 20150513)
- */
- struct packet_quest_hunt_info_sub {
- uint32 questID;
- uint32 mob_id;
- int16 maxCount;
- int16 count;
- } __attribute__((packed));
- /**
- * Header for:
- * ZC_HUNTING_QUEST_INFO (PACKETVER >= 20150513)
- */
- struct packet_quest_hunt_info {
- uint16 PacketType;
- uint16 PacketLength;
- struct packet_quest_hunt_info_sub info[];
- } __attribute__((packed));
- struct PACKET_ZC_FORMATSTRING_MSG {
- uint16 PacketType;
- uint16 PacketLength;
- uint16 MessageId;
- char MessageString[];
- } __attribute__((packed));
- struct PACKET_ZC_FORMATSTRING_MSG_COLOR {
- uint16 PacketType;
- uint16 PacketLength;
- uint16 messageId;
- #if PACKETVER >= 20160406
- uint32 color;
- #endif
- char messageString[];
- } __attribute__((packed));
- struct PACKET_ZC_MSG_COLOR {
- uint16 PacketType;
- uint16 MessageId;
- uint32 MessageColor;
- } __attribute__((packed));
- struct PACKET_CZ_OPEN_UI {
- int16 PacketType;
- int8 UIType;
- } __attribute__((packed));
- #if PACKETVER >= 20171122
- struct PACKET_ZC_UI_OPEN {
- int16 PacketType;
- int8 UIType;
- int32 data;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_UI_OPEN, 0x0ae2);
- #elif PACKETVER >= 20151202
- struct PACKET_ZC_UI_OPEN {
- int16 PacketType;
- int8 UIType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_UI_OPEN, 0x0a38);
- #endif
- #if PACKETVER_MAIN_NUM >= 20210203 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_ZC_UI_OPEN2 {
- int16 PacketType;
- int8 UIType;
- int64 data;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_UI_OPEN2, 0x0b9a);
- #endif // PACKETVER_MAIN_NUM >= 20210203 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_ZC_UI_ACTION {
- int16 PacketType;
- int32 UIType;
- int32 data;
- } __attribute__((packed));
- struct PACKET_CZ_PRIVATE_AIRSHIP_REQUEST {
- int16 PacketType;
- char mapName[MAP_NAME_LENGTH_EXT];
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 ItemID;
- #else
- uint16 ItemID;
- #endif
- } __attribute__((packed));
- struct PACKET_ZC_PRIVATE_AIRSHIP_RESPONSE {
- int16 PacketType;
- uint32 flag;
- } __attribute__((packed));
- struct PACKET_CZ_REQ_STYLE_CHANGE {
- int16 PacketType;
- int16 HeadPalette;
- int16 HeadStyle;
- int16 BodyPalette;
- int16 TopAccessory;
- int16 MidAccessory;
- int16 BottomAccessory;
- } __attribute__((packed));
- struct PACKET_CZ_REQ_STYLE_CHANGE2 {
- int16 PacketType;
- int16 HeadPalette;
- int16 HeadStyle;
- int16 BodyPalette;
- int16 TopAccessory;
- int16 MidAccessory;
- int16 BottomAccessory;
- int16 BodyStyle;
- } __attribute__((packed));
- struct PACKET_ZC_STYLE_CHANGE_RES {
- int16 PacketType;
- int8 flag;
- } __attribute__((packed));
- struct pet_evolution_items {
- int16 index;
- int16 amount;
- } __attribute__((packed));
- struct PACKET_CZ_PET_EVOLUTION {
- int16 PacketType;
- uint16 PacketLength;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 EvolvedPetEggID;
- #else
- uint16 EvolvedPetEggID;
- #endif
- // struct pet_evolution_items items[];
- } __attribute__((packed));
- struct packet_ZC_REFUSE_LOGIN {
- int16 PacketType;
- #if PACKETVER >= 20101123
- uint32 error_code;
- #else
- uint8 error_code;
- #endif
- char block_date[20];
- } __attribute__((packed));
- struct PACKET_ZC_NOTIFY_CHAT {
- int16 PacketType;
- int16 PacketLength;
- uint32 GID;
- char Message[];
- } __attribute__((packed));
- struct PACKET_ZC_NOTIFY_PLAYERCHAT {
- int16 PacketType;
- int16 PacketLength;
- char Message[];
- } __attribute__((packed));
- struct PACKET_ZC_ITEM_ENTRY {
- int16 packetType;
- uint32 AID;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint8 identify;
- uint16 x;
- uint16 y;
- uint16 amount;
- uint8 subX;
- uint8 subY;
- } __attribute__((packed));
- #if PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_ZC_ADD_ITEM_TO_STORE {
- int16 packetType;
- int16 index;
- int32 amount;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint8 itemType;
- uint8 identified;
- uint8 damaged;
- struct EQUIPSLOTINFO slot;
- struct ItemOptions option_data[MAX_ITEM_OPTIONS];
- uint8 refine;
- uint8 grade;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ADD_ITEM_TO_STORE, 0x0b44)
- #elif PACKETVER_MAIN_NUM >= 20140813 || PACKETVER_RE_NUM >= 20140402 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_ADD_ITEM_TO_STORE {
- int16 packetType;
- int16 index;
- int32 amount;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint8 itemType;
- uint8 identified;
- uint8 damaged;
- uint8 refine;
- struct EQUIPSLOTINFO slot;
- struct ItemOptions option_data[MAX_ITEM_OPTIONS];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ADD_ITEM_TO_STORE, 0x0a0a)
- // [4144] this version unconfirmed
- #elif PACKETVER >= 5
- struct PACKET_ZC_ADD_ITEM_TO_STORE {
- int16 packetType;
- int16 index;
- int32 amount;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint8 itemType;
- uint8 identified;
- uint8 damaged;
- uint8 refine;
- struct EQUIPSLOTINFO slot;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ADD_ITEM_TO_STORE, 0x01c4)
- #else
- struct PACKET_ZC_ADD_ITEM_TO_STORE {
- int16 packetType;
- int16 index;
- int32 amount;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint8 identified;
- uint8 damaged;
- uint8 refine;
- struct EQUIPSLOTINFO slot;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ADD_ITEM_TO_STORE, 0x00f4)
- #endif
- struct PACKET_ZC_MVP_GETTING_ITEM {
- int16 packetType;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- } __attribute__((packed));
- struct PACKET_ZC_ACK_TOUSESKILL {
- int16 packetType;
- uint16 skillId;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- int32 btype;
- uint32 itemId;
- #else
- int16 btype;
- uint16 itemId;
- #endif
- uint8 flag;
- uint8 cause;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ACK_TOUSESKILL, 0x0110)
- #if PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_ZC_ADD_ITEM_TO_CART {
- int16 packetType;
- int16 index;
- int32 amount;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint8 itemType;
- uint8 identified;
- uint8 damaged;
- struct EQUIPSLOTINFO slot;
- struct ItemOptions option_data[MAX_ITEM_OPTIONS];
- uint8 refine;
- uint8 grade;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ADD_ITEM_TO_CART, 0x0b45);
- #elif PACKETVER_MAIN_NUM >= 20140813 || PACKETVER_RE_NUM >= 20140402 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_ADD_ITEM_TO_CART {
- int16 packetType;
- int16 index;
- int32 amount;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint8 itemType;
- uint8 identified;
- uint8 damaged;
- uint8 refine;
- struct EQUIPSLOTINFO slot;
- struct ItemOptions option_data[MAX_ITEM_OPTIONS];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ADD_ITEM_TO_CART, 0x0a0b);
- // [4144] this version unconfirmed
- #elif PACKETVER >= 5
- struct PACKET_ZC_ADD_ITEM_TO_CART {
- int16 packetType;
- int16 index;
- int32 amount;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint8 itemType;
- uint8 identified;
- uint8 damaged;
- uint8 refine;
- struct EQUIPSLOTINFO slot;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ADD_ITEM_TO_CART, 0x01c5);
- #else
- struct PACKET_ZC_ADD_ITEM_TO_CART {
- int16 packetType;
- int16 index;
- int32 amount;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint8 identified;
- uint8 damaged;
- uint8 refine;
- struct EQUIPSLOTINFO slot;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ADD_ITEM_TO_CART, 0x0124);
- #endif
- struct PACKET_CZ_REQMAKINGITEM {
- int16 packetType;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- uint32 material[3];
- #else
- uint16 itemId;
- uint16 material[3];
- #endif
- } __attribute__((packed));
- struct PACKET_ZC_ACK_REQMAKINGITEM {
- int16 packetType;
- int16 result;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- } __attribute__((packed));
- struct PACKET_ZC_FEED_PET {
- int16 packetType;
- uint8 result;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- } __attribute__((packed));
- struct PACKET_ZC_FEED_MER {
- int16 packetType;
- uint8 result;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- } __attribute__((packed));
- struct PACKET_ZC_USE_ITEM_ACK {
- int16 packetType;
- int16 index;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- uint32 AID;
- #elif PACKETVER >= 3
- uint16 itemId;
- uint32 AID;
- #endif
- int16 amount;
- uint8 result;
- } __attribute__((packed));
- struct PACKET_ZC_SPRITE_CHANGE {
- int16 packetType;
- uint32 AID;
- uint8 type;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 val;
- uint32 val2;
- #elif PACKETVER >= 4
- uint16 val;
- uint16 val2;
- #else
- uint8 val;
- #endif
- } __attribute__((packed));
- // TODO put struct under #ifdef/#elif
- // [4144] dates unconfirmed
- struct PACKET_ZC_ADD_EXCHANGE_ITEM {
- int16 packetType;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- uint8 itemType;
- int32 amount;
- #elif PACKETVER >= 20100223
- uint16 itemId;
- uint8 itemType;
- int32 amount;
- #else
- int32 amount;
- uint16 itemId;
- #endif
- uint8 identified;
- uint8 damaged;
- #if !(PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024)
- uint8 refine;
- #endif // !(PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024)
- struct EQUIPSLOTINFO slot;
- #if PACKETVER >= 20150226
- struct ItemOptions option_data[MAX_ITEM_OPTIONS];
- #endif
- #if PACKETVER_MAIN_NUM >= 20161102 || PACKETVER_RE_NUM >= 20161026 || defined(PACKETVER_ZERO)
- uint32 location;
- uint16 look;
- #endif // PACKETVER_MAIN_NUM >= 20161102 || PACKETVER_RE_NUM >= 20161026 || defined(PACKETVER_ZERO)
- #if PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- uint8 refine;
- uint8 grade;
- #endif // PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- } __attribute__((packed));
- #if PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- DEFINE_PACKET_HEADER(ZC_ADD_EXCHANGE_ITEM, 0x0b42);
- #elif PACKETVER_MAIN_NUM >= 20161102 || PACKETVER_RE_NUM >= 20161026 || defined(PACKETVER_ZERO)
- DEFINE_PACKET_HEADER(ZC_ADD_EXCHANGE_ITEM, 0x0a96);
- #elif PACKETVER >= 20150226
- DEFINE_PACKET_HEADER(ZC_ADD_EXCHANGE_ITEM, 0x0a09);
- #elif PACKETVER >= 20100223
- DEFINE_PACKET_HEADER(ZC_ADD_EXCHANGE_ITEM, 0x080f);
- #else
- DEFINE_PACKET_HEADER(ZC_ADD_EXCHANGE_ITEM, 0x00e9);
- #endif
- struct PACKET_ZC_CASH_TIME_COUNTER {
- int16 packetType;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint32 seconds;
- } __attribute__((packed));
- struct PACKET_ZC_CASH_ITEM_DELETE {
- int16 packetType;
- uint16 index;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- } __attribute__((packed));
- #if PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_ZC_ITEM_PICKUP_PARTY {
- int16 packetType;
- uint32 AID;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint8 identified;
- uint8 damaged;
- struct EQUIPSLOTINFO slot;
- uint16 location;
- uint8 itemType;
- uint8 refine;
- uint8 grade;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ITEM_PICKUP_PARTY, 0x0b67);
- #elif PACKETVER >= 20070731
- struct PACKET_ZC_ITEM_PICKUP_PARTY {
- int16 packetType;
- uint32 AID;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint8 identified;
- uint8 damaged;
- uint8 refine;
- struct EQUIPSLOTINFO slot;
- uint16 location;
- uint8 itemType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ITEM_PICKUP_PARTY, 0x02b8);
- #endif
- struct PACKET_ZC_UPDATE_ITEM_FROM_BUYING_STORE {
- int16 packetType;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint16 amount;
- #if PACKETVER >= 20141016
- uint32 zeny;
- uint32 zenyLimit;
- uint32 charId;
- uint32 updateTime;
- #else
- uint32 zenyLimit;
- #endif
- } __attribute__((packed));
- struct PACKET_ZC_ACK_WEAPONREFINE {
- int16 packetType;
- int32 result;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- } __attribute__((packed));
- #if PACKETVER_MAIN_NUM >= 20210303 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- // PACKET_ZC_PROPERTY_HOMUN4
- struct PACKET_ZC_PROPERTY_HOMUN {
- int16 packetType;
- char name[NAME_LENGTH];
- // Bit field, bit 0 : rename_flag (1 = already renamed), bit 1 : homunc vaporized (1 = true), bit 2 : homunc dead (1 = true)
- uint8 flags;
- uint16 level;
- uint16 hunger;
- uint16 intimacy;
- uint16 atk2;
- uint16 matk;
- uint16 hit;
- uint16 crit;
- uint16 def;
- uint16 mdef;
- uint16 flee;
- uint16 amotion;
- uint32 hp;
- uint32 maxHp;
- uint32 sp;
- uint32 maxSp;
- int64 exp;
- int64 expNext;
- uint16 skillPoints;
- uint16 range;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_PROPERTY_HOMUN, 0x0ba4);
- #elif PACKETVER_MAIN_NUM >= 20200819 || PACKETVER_RE_NUM >= 20200723
- // PACKET_ZC_PROPERTY_HOMUN3
- struct PACKET_ZC_PROPERTY_HOMUN {
- int16 packetType;
- char name[NAME_LENGTH];
- // Bit field, bit 0 : rename_flag (1 = already renamed), bit 1 : homunc vaporized (1 = true), bit 2 : homunc dead (1 = true)
- uint8 flags;
- uint16 level;
- uint16 hunger;
- uint16 intimacy;
- uint16 atk2;
- uint16 matk;
- uint16 hit;
- uint16 crit;
- uint16 def;
- uint16 mdef;
- uint16 flee;
- uint16 amotion;
- uint32 hp;
- uint32 maxHp;
- uint32 sp;
- uint32 maxSp;
- uint32 exp;
- uint32 expNext;
- uint16 skillPoints;
- uint16 range;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_PROPERTY_HOMUN, 0x0b76);
- #elif PACKETVER_MAIN_NUM >= 20190619 || PACKETVER_RE_NUM >= 20190605 || PACKETVER_ZERO_NUM >= 20190626
- // PACKET_ZC_PROPERTY_HOMUN3
- struct PACKET_ZC_PROPERTY_HOMUN {
- int16 packetType;
- char name[NAME_LENGTH];
- // Bit field, bit 0 : rename_flag (1 = already renamed), bit 1 : homunc vaporized (1 = true), bit 2 : homunc dead (1 = true)
- uint8 flags;
- uint16 level;
- uint16 hunger;
- uint16 intimacy;
- uint16 atk2;
- uint16 matk;
- uint16 hit;
- uint16 crit;
- uint16 def;
- uint16 mdef;
- uint16 flee;
- uint16 amotion;
- uint32 hp;
- uint32 maxHp;
- uint16 sp;
- uint16 maxSp;
- uint32 exp;
- uint32 expNext;
- uint16 skillPoints;
- uint16 range;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_PROPERTY_HOMUN, 0x0b2f);
- #elif PACKETVER_MAIN_NUM >= 20131230 || PACKETVER_RE_NUM >= 20131230 || defined(PACKETVER_ZERO)
- // PACKET_ZC_PROPERTY_HOMUN2
- struct PACKET_ZC_PROPERTY_HOMUN {
- int16 packetType;
- char name[NAME_LENGTH];
- // Bit field, bit 0 : rename_flag (1 = already renamed), bit 1 : homunc vaporized (1 = true), bit 2 : homunc dead (1 = true)
- uint8 flags;
- uint16 level;
- uint16 hunger;
- uint16 intimacy;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint16 atk2;
- uint16 matk;
- uint16 hit;
- uint16 crit;
- uint16 def;
- uint16 mdef;
- uint16 flee;
- uint16 amotion;
- uint32 hp;
- uint32 maxHp;
- uint16 sp;
- uint16 maxSp;
- uint32 exp;
- uint32 expNext;
- uint16 skillPoints;
- uint16 range;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_PROPERTY_HOMUN, 0x09f7);
- #elif PACKETVER_MAIN_NUM >= 20101005 || PACKETVER_RE_NUM >= 20080827 || defined(PACKETVER_ZERO)
- // PACKET_ZC_PROPERTY_HOMUN1
- struct PACKET_ZC_PROPERTY_HOMUN {
- int16 packetType;
- char name[NAME_LENGTH];
- // Bit field, bit 0 : rename_flag (1 = already renamed), bit 1 : homunc vaporized (1 = true), bit 2 : homunc dead (1 = true)
- uint8 flags;
- uint16 level;
- uint16 hunger;
- uint16 intimacy;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint16 atk2;
- uint16 matk;
- uint16 hit;
- uint16 crit;
- uint16 def;
- uint16 mdef;
- uint16 flee;
- uint16 amotion;
- uint16 hp;
- uint16 maxHp;
- uint16 sp;
- uint16 maxSp;
- uint32 exp;
- uint32 expNext;
- uint16 skillPoints;
- uint16 range;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_PROPERTY_HOMUN, 0x022e);
- #endif
- struct PACKET_ZC_FAILED_TRADE_BUYING_STORE_TO_SELLER {
- int16 packetType;
- uint16 result;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- } __attribute__((packed));
- #if PACKETVER >= 20191224
- struct REPAIRITEM_INFO2 {
- int16 index;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- struct EQUIPSLOTINFO slot; // unused?
- uint8 refine; // unused?
- uint8 grade; // unused?
- } __attribute__((packed));
- #elif PACKETVER >= 20191106
- struct REPAIRITEM_INFO2 {
- int16 index;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint8 refine; // unused?
- struct EQUIPSLOTINFO slot; // unused?
- } __attribute__((packed));
- #endif // PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- struct REPAIRITEM_INFO1 {
- int16 index;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint8 refine; // unused?
- struct EQUIPSLOTINFO slot; // unused?
- } __attribute__((packed));
- #if PACKETVER >= 20191224
- struct PACKET_CZ_REQ_ITEMREPAIR2 {
- int16 packetType;
- struct REPAIRITEM_INFO2 item;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_REQ_ITEMREPAIR2, 0x0b66);
- #endif // PACKETVER >= 20191224
- struct PACKET_CZ_REQ_ITEMREPAIR1 {
- int16 packetType;
- struct REPAIRITEM_INFO1 item;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_REQ_ITEMREPAIR1, 0x01fd);
- struct PACKET_CZ_REQ_MAKINGITEM {
- int16 packetType;
- int16 type;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- } __attribute__((packed));
- struct PACKET_CZ_SSILIST_ITEM_CLICK {
- int16 packetType;
- uint32 AID;
- uint32 storeId;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- } __attribute__((packed));
- struct PACKET_ZC_ACK_SCHEDULER_CASHITEM_sub {
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint32 price;
- #ifdef ENABLE_CASHSHOP_PREVIEW_PATCH
- uint16 viewSprite;
- uint32 location;
- #endif // ENABLE_CASHSHOP_PREVIEW_PATCH
- } __attribute__((packed));
- struct PACKET_ZC_ACK_SCHEDULER_CASHITEM {
- int16 packetType;
- int16 packetLength;
- int16 count;
- int16 tabNum;
- struct PACKET_ZC_ACK_SCHEDULER_CASHITEM_sub items[];
- } __attribute__((packed));
- #if PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_ZC_PC_PURCHASE_MYITEMLIST_sub {
- uint32 price;
- int16 index;
- int16 amount;
- uint8 itemType;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint8 identified;
- uint8 damaged;
- struct EQUIPSLOTINFO slot;
- struct ItemOptions option_data[MAX_ITEM_OPTIONS];
- uint8 refine;
- uint8 grade;
- } __attribute__((packed));
- struct PACKET_ZC_PC_PURCHASE_MYITEMLIST {
- int16 packetType;
- int16 packetLength;
- uint32 AID;
- struct PACKET_ZC_PC_PURCHASE_MYITEMLIST_sub items[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_PC_PURCHASE_MYITEMLIST, 0x0b40);
- #else // PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_ZC_PC_PURCHASE_MYITEMLIST_sub {
- uint32 price;
- int16 index;
- int16 amount;
- uint8 itemType;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint8 identified;
- uint8 damaged;
- uint8 refine;
- struct EQUIPSLOTINFO slot;
- #if PACKETVER >= 20150226
- struct ItemOptions option_data[MAX_ITEM_OPTIONS];
- #endif
- } __attribute__((packed));
- struct PACKET_ZC_PC_PURCHASE_MYITEMLIST {
- int16 packetType;
- int16 packetLength;
- uint32 AID;
- struct PACKET_ZC_PC_PURCHASE_MYITEMLIST_sub items[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_PC_PURCHASE_MYITEMLIST, 0x0136);
- #endif // PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- #if PACKETVER_MAIN_NUM >= 20210203 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_ZC_PC_PURCHASE_ITEMLIST_sub {
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint32 price;
- uint32 discountPrice;
- uint8 itemType;
- uint16 viewSprite;
- uint32 location;
- } __attribute__((packed));
- struct PACKET_ZC_PC_PURCHASE_ITEMLIST {
- int16 packetType;
- int16 packetLength;
- struct PACKET_ZC_PC_PURCHASE_ITEMLIST_sub items[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_PC_PURCHASE_ITEMLIST, 0x0b77)
- #else // PACKETVER_MAIN_NUM >= 20210203
- struct PACKET_ZC_PC_PURCHASE_ITEMLIST_sub {
- uint32 price;
- uint32 discountPrice;
- uint8 itemType;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- } __attribute__((packed));
- struct PACKET_ZC_PC_PURCHASE_ITEMLIST {
- int16 packetType;
- int16 packetLength;
- struct PACKET_ZC_PC_PURCHASE_ITEMLIST_sub items[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_PC_PURCHASE_ITEMLIST, 0x00c6)
- #endif // PACKETVER_MAIN_NUM >= 20210203
- struct PACKET_CZ_PC_PURCHASE_ITEMLIST_sub {
- uint16 amount;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- } __attribute__((packed));
- struct PACKET_CZ_PC_PURCHASE_ITEMLIST {
- int16 packetType;
- int16 packetLength;
- struct PACKET_CZ_PC_PURCHASE_ITEMLIST_sub items[];
- } __attribute__((packed));
- struct PACKET_CZ_REQ_OPEN_BUYING_STORE_sub {
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint16 amount;
- uint32 price;
- } __attribute__((packed));
- struct PACKET_CZ_REQ_OPEN_BUYING_STORE {
- int16 packetType;
- int16 packetLength;
- uint32 zenyLimit;
- uint8 result;
- char storeName[MESSAGE_SIZE];
- struct PACKET_CZ_REQ_OPEN_BUYING_STORE_sub items[];
- } __attribute__((packed));
- struct PACKET_ZC_MYITEMLIST_BUYING_STORE_sub {
- uint32 price;
- uint16 amount;
- uint8 itemType;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- } __attribute__((packed));
- struct PACKET_ZC_MYITEMLIST_BUYING_STORE {
- int16 packetType;
- int16 packetLength;
- uint32 AID;
- uint32 zenyLimit;
- struct PACKET_ZC_MYITEMLIST_BUYING_STORE_sub items[];
- } __attribute__((packed));
- #if PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_ZC_PC_PURCHASE_ITEMLIST_FROMMC_sub {
- uint32 price;
- uint16 amount;
- int16 index;
- uint8 itemType;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint8 identified;
- uint8 damaged;
- struct EQUIPSLOTINFO slot;
- struct ItemOptions option_data[MAX_ITEM_OPTIONS];
- uint32 location;
- uint16 viewSprite;
- uint8 refine;
- uint8 grade;
- } __attribute__((packed));
- struct PACKET_ZC_PC_PURCHASE_ITEMLIST_FROMMC {
- int16 packetType;
- int16 packetLength;
- uint32 AID;
- uint32 venderId;
- struct PACKET_ZC_PC_PURCHASE_ITEMLIST_FROMMC_sub items[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_PC_PURCHASE_ITEMLIST_FROMMC, 0x0b3d)
- #elif PACKETVER >= 20100105
- struct PACKET_ZC_PC_PURCHASE_ITEMLIST_FROMMC_sub {
- uint32 price;
- uint16 amount;
- int16 index;
- uint8 itemType;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint8 identified;
- uint8 damaged;
- #if !(PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024)
- uint8 refine;
- #endif
- struct EQUIPSLOTINFO slot;
- #if PACKETVER >= 20150226
- struct ItemOptions option_data[MAX_ITEM_OPTIONS];
- #endif
- // [4144] date 20160921 not confirmed. Can be bigger or smaller
- #if PACKETVER >= 20160921
- uint32 location;
- uint16 viewSprite;
- #endif
- #if PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- uint8 refine;
- uint8 grade;
- #endif
- } __attribute__((packed));
- struct PACKET_ZC_PC_PURCHASE_ITEMLIST_FROMMC {
- int16 packetType;
- int16 packetLength;
- uint32 AID;
- // [4144] unconfirmed field
- uint32 venderId;
- struct PACKET_ZC_PC_PURCHASE_ITEMLIST_FROMMC_sub items[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_PC_PURCHASE_ITEMLIST_FROMMC, 0x0800)
- #else
- struct PACKET_ZC_PC_PURCHASE_ITEMLIST_FROMMC_sub {
- uint32 price;
- uint16 amount;
- int16 index;
- uint8 itemType;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint8 identified;
- uint8 damaged;
- uint8 refine;
- struct EQUIPSLOTINFO slot;
- } __attribute__((packed));
- struct PACKET_ZC_PC_PURCHASE_ITEMLIST_FROMMC {
- int16 packetType;
- int16 packetLength;
- uint32 AID;
- struct PACKET_ZC_PC_PURCHASE_ITEMLIST_FROMMC_sub items[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_PC_PURCHASE_ITEMLIST_FROMMC, 0x0133)
- #endif
- struct PACKET_ZC_ACK_ITEMLIST_BUYING_STORE_sub {
- uint32 price;
- uint16 amount;
- uint8 itemType;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- } __attribute__((packed));
- struct PACKET_ZC_ACK_ITEMLIST_BUYING_STORE {
- int16 packetType;
- int16 packetLength;
- uint32 AID;
- uint32 storeId;
- uint32 zenyLimit;
- struct PACKET_ZC_ACK_ITEMLIST_BUYING_STORE_sub items[];
- } __attribute__((packed));
- struct PACKET_CZ_REQ_TRADE_BUYING_STORE_sub {
- int16 index;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint16 amount;
- } __attribute__((packed));
- struct PACKET_CZ_REQ_TRADE_BUYING_STORE {
- int16 packetType;
- int16 packetLength;
- uint32 AID;
- uint32 storeId;
- struct PACKET_CZ_REQ_TRADE_BUYING_STORE_sub items[];
- } __attribute__((packed));
- struct PACKET_ZC_MAKABLEITEMLIST_sub {
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- uint32 material[3];
- #else
- uint16 itemId;
- uint16 material[3];
- #endif
- } __attribute__((packed));
- struct PACKET_ZC_MAKABLEITEMLIST {
- int16 packetType;
- int16 packetLength;
- struct PACKET_ZC_MAKABLEITEMLIST_sub items[];
- } __attribute__((packed));
- struct PACKET_ZC_MAKINGARROW_LIST_sub {
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- } __attribute__((packed));
- struct PACKET_ZC_MAKINGARROW_LIST {
- int16 packetType;
- int16 packetLength;
- struct PACKET_ZC_MAKINGARROW_LIST_sub items[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_MAKINGARROW_LIST, 0x01ad);
- struct PACKET_ZC_SKILL_SELECT_REQUEST {
- int16 packetType;
- int16 packetLength;
- int32 flag; //< 0 = old code compatibility; 1 = Auto Shadow Spell; same value is received in CZ_SKILL_SELECT_RESPONSE
- int16 skillIds[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_SKILL_SELECT_REQUEST, 0x0442);
- struct PACKET_CZ_SKILL_SELECT_RESPONSE {
- int16 packetType;
- int32 flag; //< currently unused, matches ZC_SKILL_SELECT_REQUEST.flag
- int16 selectedSkillId;
- } __attribute__((packed));
- #if PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- #define REPAIRITEM_INFO REPAIRITEM_INFO2
- struct PACKET_ZC_REPAIRITEMLIST {
- int16 packetType;
- int16 packetLength;
- struct REPAIRITEM_INFO items[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_REPAIRITEMLIST, 0x0b65);
- #else // PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- #define REPAIRITEM_INFO REPAIRITEM_INFO1
- struct PACKET_ZC_REPAIRITEMLIST {
- int16 packetType;
- int16 packetLength;
- struct REPAIRITEM_INFO items[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_REPAIRITEMLIST, 0x01fc);
- #endif // PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_ZC_NOTIFY_WEAPONITEMLIST_sub {
- int16 index;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint8 refine; // unused?
- struct EQUIPSLOTINFO slot; // unused?
- } __attribute__((packed));
- struct PACKET_ZC_NOTIFY_WEAPONITEMLIST {
- int16 packetType;
- int16 packetLength;
- struct PACKET_ZC_NOTIFY_WEAPONITEMLIST_sub items[];
- } __attribute__((packed));
- struct PACKET_ZC_MAKINGITEM_LIST_sub {
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- } __attribute__((packed));
- struct PACKET_ZC_MAKINGITEM_LIST {
- int16 packetType;
- int16 packetLength;
- uint16 makeItem;
- struct PACKET_ZC_MAKINGITEM_LIST_sub items[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_MAKINGITEM_LIST, 0x025a);
- struct PACKET_ZC_PC_CASH_POINT_ITEMLIST_sub {
- uint32 price;
- uint32 discountPrice;
- uint8 itemType;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- #ifdef ENABLE_OLD_CASHSHOP_PREVIEW_PATCH
- uint16 viewSprite;
- uint32 location;
- uint8 unused[6];
- #endif // ENABLE_OLD_CASHSHOP_PREVIEW_PATCH
- } __attribute__((packed));
- struct PACKET_ZC_PC_CASH_POINT_ITEMLIST {
- int16 packetType;
- int16 packetLength;
- uint32 cashPoints;
- #if PACKETVER >= 20070711
- uint32 kafraPoints;
- #endif
- struct PACKET_ZC_PC_CASH_POINT_ITEMLIST_sub items[];
- } __attribute__((packed));
- struct PACKET_CZ_PC_BUY_CASH_POINT_ITEM_sub {
- uint16 amount;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- } __attribute__((packed));
- struct PACKET_CZ_PC_BUY_CASH_POINT_ITEM {
- int16 packetType;
- #if PACKETVER >= 20101116
- int16 packetLength;
- uint32 kafraPoints;
- uint16 count;
- struct PACKET_CZ_PC_BUY_CASH_POINT_ITEM_sub items[];
- #else
- uint16 itemId;
- uint16 amount;
- #if PACKETVER >= 20070711
- uint32 kafraPoints;
- #endif
- #endif
- } __attribute__((packed));
- struct PACKET_CZ_SEARCH_STORE_INFO_item {
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- } __attribute__((packed));
- struct PACKET_CZ_SEARCH_STORE_INFO {
- int16 packetType;
- int16 packetLength;
- uint8 searchType;
- uint32 maxPrice;
- uint32 minPrice;
- uint8 itemsCount;
- uint8 cardsCount;
- struct PACKET_CZ_SEARCH_STORE_INFO_item items[]; // items[itemCount]
- /*
- struct PACKET_CZ_SEARCH_STORE_INFO_item cards[cardCount];
- */
- } __attribute__((packed));
- struct PACKET_ZC_SEARCH_STORE_INFO_FAILED {
- int16 packetType;
- uint8 reason;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_SEARCH_STORE_INFO_FAILED, 0x837);
- struct PACKET_ZC_OPEN_SEARCH_STORE_INFO {
- int16 packetType;
- uint16 effect;
- #if PACKETVER_MAIN_NUM >= 20100701 || PACKETVER_RE_NUM >= 20100701 || defined(PACKETVER_ZERO)
- uint8 remainingUses;
- #endif
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_OPEN_SEARCH_STORE_INFO, 0x83a);
- struct PACKET_ZC_SSILIST_ITEM_CLICK_ACK {
- int16 packetType;
- int16 x;
- int16 y;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_SSILIST_ITEM_CLICK_ACK, 0x83d);
- #if PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_ZC_SEARCH_STORE_INFO_ACK_sub {
- uint32 storeId;
- uint32 AID;
- char shopName[MESSAGE_SIZE];
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint8 itemType;
- uint32 price;
- uint16 amount;
- struct EQUIPSLOTINFO slot;
- struct ItemOptions option_data[MAX_ITEM_OPTIONS];
- uint8 refine;
- uint8 grade;
- } __attribute__((packed));
- struct PACKET_ZC_SEARCH_STORE_INFO_ACK {
- int16 packetType;
- int16 packetLength;
- uint8 firstPage;
- uint8 nextPage;
- uint8 usesCount;
- struct PACKET_ZC_SEARCH_STORE_INFO_ACK_sub items[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_SEARCH_STORE_INFO_ACK, 0x0b64);
- #elif PACKETVER_MAIN_NUM >= 20100817 || PACKETVER_RE_NUM >= 20100706 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_SEARCH_STORE_INFO_ACK_sub {
- uint32 storeId;
- uint32 AID;
- char shopName[MESSAGE_SIZE];
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint8 itemType;
- uint32 price;
- uint16 amount;
- uint8 refine;
- struct EQUIPSLOTINFO slot;
- #if PACKETVER >= 20150226
- struct ItemOptions option_data[MAX_ITEM_OPTIONS];
- #endif
- } __attribute__((packed));
- struct PACKET_ZC_SEARCH_STORE_INFO_ACK {
- int16 packetType;
- int16 packetLength;
- uint8 firstPage;
- uint8 nextPage;
- uint8 usesCount;
- struct PACKET_ZC_SEARCH_STORE_INFO_ACK_sub items[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_SEARCH_STORE_INFO_ACK, 0x0836);
- #endif // PACKETVER_MAIN_NUM >= 20100817 || PACKETVER_RE_NUM >= 20100706 || defined(PACKETVER_ZERO)
- /* Achievement System */
- struct ach_list_info {
- uint32 ach_id;
- uint8 completed;
- uint32 objective[MAX_ACHIEVEMENT_OBJECTIVES];
- uint32 completed_at;
- uint8 reward;
- } __attribute__((packed));
- struct packet_achievement_list {
- uint16 packet_id;
- uint16 packet_len;
- uint32 total_achievements;
- uint32 total_points;
- uint16 rank;
- uint32 current_rank_points;
- uint32 next_rank_points;
- struct ach_list_info ach[MAX_ACHIEVEMENT_DB];
- } __attribute__((packed));
- struct packet_achievement_update {
- uint16 packet_id;
- uint32 total_points;
- uint16 rank;
- uint32 current_rank_points;
- uint32 next_rank_points;
- struct ach_list_info ach;
- } __attribute__((packed));
- struct packet_achievement_reward_ack {
- uint16 packet_id;
- uint8 failed;
- uint32 ach_id;
- } __attribute__((packed));
- // Name Packet ZC_ACK_REQNAME
- struct packet_reqname_ack {
- uint16 packet_id;
- int32 gid;
- char name[NAME_LENGTH];
- } __attribute__((packed));
- // ZC_ACK_REQNAMEALL / ZC_ACK_REQNAMEALL2
- #if PACKETVER_MAIN_NUM >= 20150225 || PACKETVER_RE_NUM >= 20141126 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_ACK_REQNAMEALL {
- uint16 packet_id;
- int32 gid;
- char name[NAME_LENGTH];
- char party_name[NAME_LENGTH];
- char guild_name[NAME_LENGTH];
- char position_name[NAME_LENGTH];
- int32 title_id;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ACK_REQNAMEALL, 0x0a30);
- #else
- struct PACKET_ZC_ACK_REQNAMEALL {
- uint16 packet_id;
- int32 gid;
- char name[NAME_LENGTH];
- char party_name[NAME_LENGTH];
- char guild_name[NAME_LENGTH];
- char position_name[NAME_LENGTH];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ACK_REQNAMEALL, 0x0195);
- #endif
- #if PACKETVER_MAIN_NUM >= 20180207 || PACKETVER_RE_NUM >= 20171129 || PACKETVER_ZERO_NUM >= 20171130
- struct PACKET_ZC_ACK_REQNAMEALL_NPC {
- uint16 packet_id;
- int32 gid;
- int32 groupId;
- char name[NAME_LENGTH];
- char title[NAME_LENGTH];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ACK_REQNAMEALL_NPC, 0x0adf);
- #else
- struct PACKET_ZC_ACK_REQNAMEALL_NPC {
- uint16 packet_id;
- int32 gid;
- char name[NAME_LENGTH];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ACK_REQNAMEALL_NPC, 0x0095);
- #endif
- struct PACKET_ZC_OVERWEIGHT_PERCENT {
- int16 packetType;
- uint32 percent;
- } __attribute__((packed));
- struct PACKET_ZC_WARPLIST_sub {
- char map[MAP_NAME_LENGTH_EXT];
- } __attribute__((packed));
- struct PACKET_ZC_WARPLIST {
- int16 packetType;
- #if PACKETVER_MAIN_NUM >= 20170502 || PACKETVER_RE_NUM >= 20170419 || defined(PACKETVER_ZERO)
- int16 packetLength;
- uint16 skillId;
- struct PACKET_ZC_WARPLIST_sub maps[];
- #else
- uint16 skillId;
- struct PACKET_ZC_WARPLIST_sub maps[4];
- #endif
- } __attribute__((packed));
- struct PACKET_ZC_GROUP_ISALIVE {
- int16 packetType;
- uint32 AID;
- uint8 isDead;
- } __attribute__((packed));
- struct PACKET_ZC_GUILD_POSITION {
- int16 packetType;
- int16 packetLength;
- uint32 AID;
- char position[];
- } __attribute__((packed));
- #if PACKETVER_MAIN_NUM >= 20161214 || PACKETVER_RE_NUM >= 20161130 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_MOVE_ITEM_FAILED {
- int16 packetType;
- int16 itemIndex;
- int16 itemCount;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_MOVE_ITEM_FAILED, 0x0aa7);
- #endif // PACKETVER_MAIN_NUM >= 20161214 || PACKETVER_RE_NUM >= 20161130 || defined(PACKETVER_ZERO)
- #if PACKETVER_MAIN_NUM >= 20161019 || PACKETVER_RE_NUM >= 20160921 || defined(PACKETVER_ZERO)
- #define PACKET_ZC_ACK_BAN_GUILD PACKET_ZC_ACK_BAN_GUILD3
- #elif PACKETVER >= 20100803
- #define PACKET_ZC_ACK_BAN_GUILD PACKET_ZC_ACK_BAN_GUILD2
- #else
- #define PACKET_ZC_ACK_BAN_GUILD PACKET_ZC_ACK_BAN_GUILD1
- #endif
- struct PACKET_ZC_ACK_BAN_GUILD1 {
- int16 packetType;
- char name[NAME_LENGTH];
- char reason[40];
- char account_name[NAME_LENGTH];
- } __attribute__((packed));
- struct PACKET_ZC_ACK_BAN_GUILD2 {
- int16 packetType;
- char name[NAME_LENGTH];
- char reason[40];
- } __attribute__((packed));
- struct PACKET_ZC_ACK_BAN_GUILD3 {
- int16 packetType;
- char reason[40];
- uint32 GID;
- } __attribute__((packed));
- #if PACKETVER_MAIN_NUM >= 20161019 || PACKETVER_RE_NUM >= 20160921 || defined(PACKETVER_ZERO)
- #define PACKET_ZC_ACK_LEAVE_GUILD PACKET_ZC_ACK_LEAVE_GUILD2
- #else
- #define PACKET_ZC_ACK_LEAVE_GUILD PACKET_ZC_ACK_LEAVE_GUILD1
- #endif
- struct PACKET_ZC_ACK_LEAVE_GUILD1 {
- int16 packetType;
- char name[NAME_LENGTH];
- char reason[40];
- } __attribute__((packed));
- struct PACKET_ZC_ACK_LEAVE_GUILD2 {
- int16 packetType;
- uint32 GID;
- char reason[40];
- } __attribute__((packed));
- struct PACKET_CZ_MEMORIALDUNGEON_COMMAND {
- int16 packetType;
- int32 command;
- } __attribute__((packed));
- struct PACKET_ZC_REMOVE_EFFECT {
- int16 packetType;
- uint32 aid;
- uint32 effectId;
- } __attribute__((packed));
- #if PACKETVER >= 20160525
- struct PACKET_ZC_VIEW_CAMERAINFO {
- int16 packetType;
- int8 action;
- float range;
- float rotation;
- float latitude;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_VIEW_CAMERAINFO, 0x0a78);
- #endif
- #if PACKETVER >= 20160525
- struct PACKET_CZ_VIEW_CAMERAINFO {
- int16 packetType;
- int8 action;
- float range;
- float rotation;
- float latitude;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_VIEW_CAMERAINFO, 0x0a77);
- #endif
- #if PACKETVER_MAIN_NUM >= 20181128 || PACKETVER_RE_NUM >= 20181031
- // PACKET_ZC_AUTOSPELLLIST2
- struct PACKET_ZC_AUTOSPELLLIST {
- int16 packetType;
- int16 packetLength;
- int skills[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_AUTOSPELLLIST, 0x0afb);
- #elif PACKETVER_MAIN_NUM >= 20090406 || defined(PACKETVER_RE) || defined(PACKETVER_ZERO) || PACKETVER_SAK_NUM >= 20080618
- // PACKET_ZC_AUTOSPELLLIST1
- struct PACKET_ZC_AUTOSPELLLIST {
- int16 packetType;
- int skills[7];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_AUTOSPELLLIST, 0x01cd);
- #endif
- #if PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_ZC_CHANGE_ITEM_OPTION {
- int16 packetType;
- int16 index;
- int8 isDamaged;
- struct EQUIPSLOTINFO slot;
- struct ItemOptions option_data[MAX_ITEM_OPTIONS];
- uint8 refiningLevel;
- uint8 grade;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_CHANGE_ITEM_OPTION, 0x0b43);
- #elif PACKETVER_MAIN_NUM >= 20181017 || PACKETVER_RE_NUM >= 20181017 || PACKETVER_ZERO_NUM >= 20181024
- struct PACKET_ZC_CHANGE_ITEM_OPTION {
- int16 packetType;
- int16 index;
- int8 isDamaged;
- int16 refiningLevel;
- struct EQUIPSLOTINFO slot;
- struct ItemOptions option_data[MAX_ITEM_OPTIONS];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_CHANGE_ITEM_OPTION, 0x0b13);
- #elif PACKETVER_MAIN_NUM >= 20170726 || PACKETVER_RE_NUM >= 20170621 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_CHANGE_ITEM_OPTION {
- int16 packetType;
- int16 index;
- int16 refiningLevel;
- struct EQUIPSLOTINFO slot;
- struct ItemOptions option_data[MAX_ITEM_OPTIONS];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_CHANGE_ITEM_OPTION, 0x0ab9);
- #endif // PACKETVER_MAIN_NUM >= 20181017 || PACKETVER_RE_NUM >= 20181017 || PACKETVER_ZERO_NUM >= 20181024
- #if PACKETVER_MAIN_NUM >= 20160831 || PACKETVER_RE_NUM >= 20151118 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_UPDATE_CARDSLOT {
- int16 packetType;
- int16 wearState;
- int16 cardSlot;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- int32 itemId;
- #else
- int16 itemId;
- #endif
- int8 equipFlag;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_UPDATE_CARDSLOT, 0x0a3f);
- #endif // PACKETVER_MAIN_NUM >= 20160831 || PACKETVER_RE_NUM >= 20151118 || defined(PACKETVER_ZERO)
- #if PACKETVER_MAIN_NUM >= 20170830 || PACKETVER_RE_NUM >= 20170830 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_DEBUGMSG {
- int16 packetType;
- int16 packetLength;
- int32 color;
- char message[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_DEBUGMSG, 0x0adb);
- #endif
- #if PACKETVER_MAIN_NUM >= 20181002 || PACKETVER_RE_NUM >= 20181002 || PACKETVER_ZERO_NUM >= 20181010
- struct PACKET_CZ_USE_SKILL_START {
- int16 packetType;
- int16 skillId;
- int16 skillLv;
- uint32 targetId;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_USE_SKILL_START, 0x0b10);
- struct PACKET_CZ_USE_SKILL_END {
- int16 packetType;
- int16 skillId;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_USE_SKILL_END, 0x0b11);
- #endif
- #if PACKETVER_MAIN_NUM >= 20181219 || PACKETVER_RE_NUM >= 20181219 || PACKETVER_ZERO_NUM >= 20181212
- struct PACKET_ZC_EXTEND_BODYITEM_SIZE {
- int16 packetType;
- int16 expansionSize;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_EXTEND_BODYITEM_SIZE, 0x0b18);
- #endif
- #if PACKETVER_MAIN_NUM >= 20181219 || PACKETVER_RE_NUM >= 20181219 || PACKETVER_ZERO_NUM >= 20181212
- struct PACKET_ZC_ACK_OPEN_MSGBOX_EXTEND_BODYITEM_SIZE {
- int16 packetType;
- uint8 result;
- uint32 itemId;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ACK_OPEN_MSGBOX_EXTEND_BODYITEM_SIZE, 0x0b15);
- #endif
- #if PACKETVER_MAIN_NUM >= 20181219 || PACKETVER_RE_NUM >= 20181219 || PACKETVER_ZERO_NUM >= 20181212
- struct PACKET_ZC_ACK_EXTEND_BODYITEM_SIZE {
- int16 packetType;
- uint8 result;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ACK_EXTEND_BODYITEM_SIZE, 0x0b17);
- #endif
- #if PACKETVER_MAIN_NUM >= 20181031 || PACKETVER_RE_NUM >= 20181031 || PACKETVER_ZERO_NUM >= 20181114
- struct PACKET_CZ_REQ_OPEN_MSGBOX_EXTEND_BODYITEM_SIZE {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_REQ_OPEN_MSGBOX_EXTEND_BODYITEM_SIZE, 0x0b14);
- #endif
- #if PACKETVER_MAIN_NUM >= 20181031 || PACKETVER_RE_NUM >= 20181031 || PACKETVER_ZERO_NUM >= 20181114
- struct PACKET_CZ_REQ_EXTEND_BODYITEM_SIZE {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_REQ_EXTEND_BODYITEM_SIZE, 0x0b16);
- #endif
- #if PACKETVER_MAIN_NUM >= 20181031 || PACKETVER_RE_NUM >= 20181031 || PACKETVER_ZERO_NUM >= 20181114
- struct PACKET_CZ_CLOSE_MSGBOX_EXTEND_BODYITEM_SIZE {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_CLOSE_MSGBOX_EXTEND_BODYITEM_SIZE, 0x0b19);
- #endif
- struct PACKET_CZ_REQ_REMAINTIME {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_REQ_REMAINTIME, 0x01c0);
- struct PACKET_CZ_PARTY_CONFIG {
- int16 packetType;
- uint8 refuseInvite;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_PARTY_CONFIG, 0x02c8);
- #if PACKETVER_MAIN_NUM >= 20210203 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_ZC_NPC_BARTER_MARKET_ITEMINFO_sub {
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 nameid;
- #else
- uint16 nameid;
- #endif
- uint8 type;
- uint32 amount;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 currencyNameid;
- #else
- uint16 currencyNameid;
- #endif
- uint32 currencyAmount;
- uint32 weight;
- uint32 index;
- uint16 viewSprite;
- uint32 location;
- } __attribute__((packed));
- struct PACKET_ZC_NPC_BARTER_MARKET_ITEMINFO {
- int16 packetType;
- int16 packetLength;
- struct PACKET_ZC_NPC_BARTER_MARKET_ITEMINFO_sub list[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_NPC_BARTER_MARKET_ITEMINFO, 0x0b78);
- #elif PACKETVER_MAIN_NUM >= 20190116 || PACKETVER_RE_NUM >= 20190116 || PACKETVER_ZERO_NUM >= 20181226
- struct PACKET_ZC_NPC_BARTER_MARKET_ITEMINFO_sub {
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 nameid;
- #else
- uint16 nameid;
- #endif
- uint8 type;
- uint32 amount;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 currencyNameid;
- #else
- uint16 currencyNameid;
- #endif
- uint32 currencyAmount;
- uint32 weight;
- uint32 index;
- } __attribute__((packed));
- struct PACKET_ZC_NPC_BARTER_MARKET_ITEMINFO {
- int16 packetType;
- int16 packetLength;
- struct PACKET_ZC_NPC_BARTER_MARKET_ITEMINFO_sub list[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_NPC_BARTER_MARKET_ITEMINFO, 0x0b0e);
- #endif
- #if PACKETVER_MAIN_NUM >= 20190116 || PACKETVER_RE_NUM >= 20190116 || PACKETVER_ZERO_NUM >= 20181226
- struct PACKET_CZ_NPC_BARTER_MARKET_CLOSE {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_NPC_BARTER_MARKET_CLOSE, 0x0b12);
- #endif
- #if PACKETVER_MAIN_NUM >= 20190116 || PACKETVER_RE_NUM >= 20190116 || PACKETVER_ZERO_NUM >= 20181226
- struct PACKET_CZ_NPC_BARTER_MARKET_PURCHASE_sub {
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint32 amount;
- uint16 invIndex;
- uint32 shopIndex;
- } __attribute__((packed));
- struct PACKET_CZ_NPC_BARTER_MARKET_PURCHASE {
- int16 packetType;
- int16 packetLength;
- struct PACKET_CZ_NPC_BARTER_MARKET_PURCHASE_sub list[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_NPC_BARTER_MARKET_PURCHASE, 0x0b0f);
- #endif
- #if PACKETVER_MAIN_NUM >= 20181212 || PACKETVER_RE_NUM >= 20181212 || PACKETVER_ZERO_NUM >= 20190130
- struct PACKET_ZC_USESKILL_ACK {
- int16 packetType;
- uint32 srcId;
- uint32 dstId;
- uint16 x;
- uint16 y;
- uint16 skillId;
- uint32 element;
- uint32 delayTime;
- uint8 disposable;
- uint32 attackMT;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_USESKILL_ACK, 0x0b1a);
- #elif PACKETVER_MAIN_NUM >= 20091124 || PACKETVER_RE_NUM >= 20091124 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_USESKILL_ACK {
- int16 packetType;
- uint32 srcId;
- uint32 dstId;
- uint16 x;
- uint16 y;
- uint16 skillId;
- uint32 element;
- uint32 delayTime;
- uint8 disposable;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_USESKILL_ACK, 0x07fb);
- #elif PACKETVER_MAIN_NUM >= 20090406 || PACKETVER_SAK_NUM >= 20080618 || PACKETVER_RE_NUM >= 20080827 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_USESKILL_ACK {
- int16 packetType;
- uint32 srcId;
- uint32 dstId;
- uint16 x;
- uint16 y;
- uint16 skillId;
- uint32 element;
- uint32 delayTime;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_USESKILL_ACK, 0x013e);
- #endif
- #if PACKETVER_MAIN_NUM >= 20090406 || PACKETVER_RE_NUM >= 20090408 || PACKETVER_SAK_NUM >= 20090408 || defined(PACKETVER_ZERO)
- struct PACKET_CZ_CLIENT_VERSION {
- int16 packetType;
- uint32 clientVersion;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_CLIENT_VERSION, 0x044a);
- #endif
- #if PACKETVER_MAIN_NUM >= 20190227 || PACKETVER_RE_NUM >= 20190220 || PACKETVER_ZERO_NUM >= 20190220
- struct PACKET_CZ_PING_LIVE {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_PING_LIVE, 0x0b1c);
- #endif
- #if PACKETVER_MAIN_NUM >= 20190227 || PACKETVER_RE_NUM >= 20190220 || PACKETVER_ZERO_NUM >= 20190220
- struct PACKET_ZC_PING_LIVE {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_PING_LIVE, 0x0b1d);
- #endif
- #if PACKETVER >= 20160622
- struct PACKET_CZ_CMD_RESETCOOLTIME {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_CMD_RESETCOOLTIME, 0x0a88);
- #endif
- #if PACKETVER >= 20151104
- struct PACKET_CZ_CLOSE_UI_STYLINGSHOP {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_CLOSE_UI_STYLINGSHOP, 0x0a48);
- #endif
- #if PACKETVER_MAIN_NUM >= 20190403 || PACKETVER_RE_NUM >= 20190320 || PACKETVER_ZERO_NUM >= 20190410
- struct PACKET_ZC_NOTIFY_ACTORINIT {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_NOTIFY_ACTORINIT, 0x0b1b);
- #endif
- #if PACKETVER_MAIN_NUM >= 20070911 || defined(PACKETVER_RE) || PACKETVER_AD_NUM >= 20070911 || PACKETVER_SAK_NUM >= 20070904 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_PARTY_CONFIG {
- int16 packetType;
- uint8 denyPartyInvites;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_PARTY_CONFIG, 0x02c9);
- #endif
- struct PACKET_ZC_ROLE_CHANGE {
- int16 packetType;
- int32 flag;
- char name[NAME_LENGTH];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ROLE_CHANGE, 0x00e1);
- #if PACKETVER >= 20200902
- struct PACKET_ZC_BAN_LIST_sub {
- int char_id;
- char message[40];
- char char_name[NAME_LENGTH];
- } __attribute__((packed));
- struct PACKET_ZC_BAN_LIST {
- int16 packetType;
- uint16 packetLen;
- struct PACKET_ZC_BAN_LIST_sub chars[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_BAN_LIST, 0x0b7c);
- #elif PACKETVER_MAIN_NUM >= 20161019 || PACKETVER_RE_NUM >= 20160921 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_BAN_LIST_sub {
- int char_id;
- char message[40];
- } __attribute__((packed));
- struct PACKET_ZC_BAN_LIST {
- int16 packetType;
- uint16 packetLen;
- struct PACKET_ZC_BAN_LIST_sub chars[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_BAN_LIST, 0x0a87);
- // version unconfirmed
- #elif PACKETVER >= 20100803
- struct PACKET_ZC_BAN_LIST_sub {
- char char_name[NAME_LENGTH];
- char message[40];
- } __attribute__((packed));
- struct PACKET_ZC_BAN_LIST {
- int16 packetType;
- uint16 packetLen;
- struct PACKET_ZC_BAN_LIST_sub chars[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_BAN_LIST, 0x0163);
- #else
- struct PACKET_ZC_BAN_LIST_sub {
- char char_name[NAME_LENGTH];
- char account_name[NAME_LENGTH];
- char message[40];
- } __attribute__((packed));
- struct PACKET_ZC_BAN_LIST {
- int16 packetType;
- uint16 packetLen;
- struct PACKET_ZC_BAN_LIST_sub chars[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_BAN_LIST, 0x0163);
- #endif
- #if PACKETVER_MAIN_NUM >= 20141008 || PACKETVER_RE_NUM >= 20140903 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_ACK_CLOSE_ROULETTE {
- int16 packetType;
- uint8 result;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ACK_CLOSE_ROULETTE, 0x0a1e);
- #endif
- #if PACKETVER_MAIN_NUM >= 20120314 || PACKETVER_RE_NUM >= 20120221 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_ACK_MERGE_ITEM {
- int16 packetType;
- int16 index;
- int16 amount;
- uint8 reason;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ACK_MERGE_ITEM, 0x096f);
- #endif
- #if PACKETVER_MAIN_NUM >= 20120314 || PACKETVER_RE_NUM >= 20120221 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_MERGE_ITEM_OPEN_sub {
- int16 index;
- } __attribute__((packed));
- struct PACKET_ZC_MERGE_ITEM_OPEN {
- int16 packetType;
- uint16 packetLen;
- struct PACKET_ZC_MERGE_ITEM_OPEN_sub items[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_MERGE_ITEM_OPEN, 0x096d);
- #endif
- #if PACKETVER_MAIN_NUM >= 20101123 || PACKETVER_RE_NUM >= 20120328 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_SE_PC_BUY_CASHITEM_RESULT {
- int16 packetType;
- uint32 itemId; // unused
- uint16 result;
- uint32 cashPoints;
- uint32 kafraPoints;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_SE_PC_BUY_CASHITEM_RESULT, 0x0849);
- #endif
- #if PACKETVER_MAIN_NUM >= 20161130 || PACKETVER_RE_NUM >= 20161109 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_OPEN_REFINING_UI {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_OPEN_REFINING_UI, 0x0aa0);
- #endif
- #if PACKETVER_MAIN_NUM >= 20161005 || PACKETVER_RE_NUM >= 20161005 || defined(PACKETVER_ZERO)
- struct PACKET_CZ_REFINING_SELECT_ITEM {
- int16 packetType;
- int16 index;
- };
- DEFINE_PACKET_HEADER(CZ_REFINING_SELECT_ITEM, 0x0aa1);
- #endif
- #if PACKETVER_MAIN_NUM >= 20161130 || PACKETVER_RE_NUM >= 20161109 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_REFINING_MATERIAL_LIST_SUB {
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- int8 chance;
- int32 zeny;
- } __attribute__((packed));
- struct PACKET_ZC_REFINING_MATERIAL_LIST {
- int16 packetType;
- int16 packetLength;
- int16 itemIndex;
- int8 blacksmithBlessing;
- struct PACKET_ZC_REFINING_MATERIAL_LIST_SUB req[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_REFINING_MATERIAL_LIST, 0x0aa2);
- #endif
- #if PACKETVER_MAIN_NUM >= 20161005 || PACKETVER_RE_NUM >= 20161005 || defined(PACKETVER_ZERO)
- struct PACKET_CZ_REQ_REFINING {
- int16 packetType;
- int16 index;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- int8 blacksmithBlessing;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_REQ_REFINING, 0x0aa3);
- struct PACKET_CZ_CLOSE_REFINING_UI {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_CLOSE_REFINING_UI, 0x0aa4);
- #endif
- #if PACKETVER_MAIN_NUM >= 20170906 || PACKETVER_RE_NUM >= 20170830 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_BROADCAST_ITEMREFINING_RESULT {
- int16 packetType;
- char name[NAME_LENGTH];
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- int8 refine_level;
- int8 status;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_BROADCAST_ITEMREFINING_RESULT, 0x0ada);
- #endif
- struct PACKET_ZC_ACK_RANKING_name {
- char name[NAME_LENGTH];
- } __attribute__((packed));
- struct PACKET_ZC_ACK_RANKING_points {
- uint32 points;
- } __attribute__((packed));
- #if PACKETVER_MAIN_NUM >= 20190731 || PACKETVER_RE_NUM >= 20190703 || PACKETVER_ZERO_NUM >= 20190724
- struct PACKET_ZC_ACK_RANKING_sub {
- char name[NAME_LENGTH];
- uint32 points;
- } __attribute__((packed));
- struct PACKET_ZC_ACK_RANKING {
- int16 packetType;
- int16 rankType;
- uint32 chars[10];
- uint32 points[10];
- uint32 myPoints;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ACK_RANKING, 0x0af6);
- #elif PACKETVER_MAIN_NUM >= 20130605 || PACKETVER_RE_NUM >= 20130529 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_ACK_RANKING_sub {
- struct PACKET_ZC_ACK_RANKING_name names[10];
- struct PACKET_ZC_ACK_RANKING_points points[10];
- } __attribute__((packed));
- struct PACKET_ZC_ACK_RANKING {
- int16 packetType;
- int16 rankType;
- struct PACKET_ZC_ACK_RANKING_sub ranks;
- uint32 myPoints;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ACK_RANKING, 0x097d);
- #else
- struct PACKET_ZC_ACK_RANKING_sub {
- struct PACKET_ZC_ACK_RANKING_name names[10];
- struct PACKET_ZC_ACK_RANKING_points points[10];
- } __attribute__((packed));
- #endif
- struct PACKET_ZC_STATUS_CHANGE_ACK {
- int16 packetType;
- uint16 sp;
- uint8 ok;
- uint8 value;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_STATUS_CHANGE_ACK, 0x00bc);
- #if PACKETVER_MAIN_NUM >= 20150507 || PACKETVER_RE_NUM >= 20150429 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_EQUIPMENT_EFFECT {
- int16 packetType;
- int16 packetLength;
- uint32 aid;
- int8 status;
- uint16 effects[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_EQUIPMENT_EFFECT, 0x0a3b);
- #endif
- // [4144] this struct updated not in all packets in client
- #if PACKETVER_RE_NUM >= 20190807 || PACKETVER_ZERO_NUM >= 20190918
- struct SKILLDATA {
- uint16 id;
- int inf;
- uint16 level;
- uint16 sp;
- uint16 range2;
- uint8 upFlag;
- uint16 level2;
- } __attribute__((packed));
- #else
- struct SKILLDATA {
- uint16 id;
- int inf;
- uint16 level;
- uint16 sp;
- uint16 range2;
- char name[NAME_LENGTH];
- uint8 upFlag;
- } __attribute__((packed));
- #endif
- struct PACKET_ZC_ADD_SKILL {
- int16 packetType;
- struct SKILLDATA skill;
- } __attribute__((packed));
- #if PACKETVER_RE_NUM >= 20190807 || PACKETVER_ZERO_NUM >= 20190918
- DEFINE_PACKET_HEADER(ZC_ADD_SKILL, 0x0b31);
- #else
- DEFINE_PACKET_HEADER(ZC_ADD_SKILL, 0x0111);
- #endif
- struct PACKET_ZC_SKILLINFO_LIST {
- int16 packetType;
- int16 packetLength;
- struct SKILLDATA skills[];
- } __attribute__((packed));
- #if PACKETVER_RE_NUM >= 20190807 || PACKETVER_ZERO_NUM >= 20190918
- DEFINE_PACKET_HEADER(ZC_SKILLINFO_LIST, 0x0b32);
- #else
- DEFINE_PACKET_HEADER(ZC_SKILLINFO_LIST, 0x010f);
- #endif
- #if PACKETVER_RE_NUM >= 20190807 || PACKETVER_ZERO_NUM >= 20190918
- struct PACKET_ZC_SKILLINFO_UPDATE2 {
- int16 packetType;
- uint16 id;
- int inf;
- uint16 level;
- uint16 sp;
- uint16 range2;
- uint8 upFlag;
- uint16 level2;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_SKILLINFO_UPDATE2, 0x0b33);
- #else
- struct PACKET_ZC_SKILLINFO_UPDATE2 {
- int16 packetType;
- uint16 id;
- int inf;
- uint16 level;
- uint16 sp;
- uint16 range2;
- uint8 upFlag;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_SKILLINFO_UPDATE2, 0x07e1);
- #endif
- struct PACKET_ZC_NPC_MARKET_PURCHASE_RESULT_sub {
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 ITID;
- #else
- uint16 ITID;
- #endif
- uint16 qty;
- uint32 price;
- } __attribute__((packed));
- #if PACKETVER_MAIN_NUM >= 20190807 || PACKETVER_RE_NUM >= 20190807 || PACKETVER_ZERO_NUM >= 20190814
- struct PACKET_ZC_NPC_MARKET_PURCHASE_RESULT {
- int16 PacketType;
- int16 PacketLength;
- uint16 result;
- struct PACKET_ZC_NPC_MARKET_PURCHASE_RESULT_sub list[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_NPC_MARKET_PURCHASE_RESULT, 0x0b4e);
- #elif PACKETVER_MAIN_NUM >= 20131120 || PACKETVER_RE_NUM >= 20130911 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_NPC_MARKET_PURCHASE_RESULT {
- int16 PacketType;
- int16 PacketLength;
- uint8 result;
- struct PACKET_ZC_NPC_MARKET_PURCHASE_RESULT_sub list[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_NPC_MARKET_PURCHASE_RESULT, 0x09d7);
- #endif
- struct PACKET_ZC_TALKBOX_CHATCONTENTS {
- int16 PacketType;
- uint32 aid;
- char message[TALKBOX_MESSAGE_SIZE];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_TALKBOX_CHATCONTENTS, 0x0191);
- #if PACKETVER_MAIN_NUM >= 20190731 || PACKETVER_RE_NUM >= 20190717 || PACKETVER_ZERO_NUM >= 20190814
- struct PACKET_ZC_GUILD_AGIT_INFO {
- int16 packetType;
- int16 packetLength;
- int8 castle_list[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_GUILD_AGIT_INFO, 0x0b27);
- #endif
- #if PACKETVER_MAIN_NUM >= 20190522 || PACKETVER_RE_NUM >= 20190522 || PACKETVER_ZERO_NUM >= 20190515
- struct PACKET_CZ_REQ_MOVE_GUILD_AGIT {
- int16 packetType;
- int8 castle_id;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_REQ_MOVE_GUILD_AGIT, 0x0b28);
- #endif
- #if PACKETVER_MAIN_NUM >= 20190731 || PACKETVER_RE_NUM >= 20190717 || PACKETVER_ZERO_NUM >= 20190814
- struct PACKET_ZC_REQ_ACK_MOVE_GUILD_AGIT {
- int16 packetType;
- int16 result;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_REQ_ACK_MOVE_GUILD_AGIT, 0x0b2e);
- #endif
- #if PACKETVER_MAIN_NUM >= 20190731 || PACKETVER_RE_NUM >= 20190717 || PACKETVER_ZERO_NUM >= 20190814
- struct PACKET_ZC_REQ_ACK_AGIT_INVESTMENT {
- int16 packetType;
- int8 castle_id;
- int32 economy;
- int32 defense;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_REQ_ACK_AGIT_INVESTMENT, 0x0b2d);
- #endif
- #if PACKETVER_MAIN_NUM >= 20190522 || PACKETVER_RE_NUM >= 20190522 || PACKETVER_ZERO_NUM >= 20190515
- struct PACKET_CZ_REQ_AGIT_INVESTMENT {
- int16 packetType;
- int8 castle_id;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_REQ_AGIT_INVESTMENT, 0x0b2c);
- #endif
- #if PACKETVER_MAIN_NUM >= 20160601 || PACKETVER_RE_NUM >= 20160525 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_RANDOM_COMBINE_ITEM_UI_OPEN {
- int16 packetType;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- int32 itemId;
- #else
- int16 itemId;
- #endif
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_RANDOM_COMBINE_ITEM_UI_OPEN, 0x0a4e);
- #endif // PACKETVER_MAIN_NUM >= 20160601 || PACKETVER_RE_NUM >= 20160525 || defined(PACKETVER_ZERO)
- #if PACKETVER_MAIN_NUM >= 20160504 || PACKETVER_RE_NUM >= 20160504 || defined(PACKETVER_ZERO)
- struct PACKET_CZ_RANDOM_COMBINE_ITEM_UI_CLOSE {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_RANDOM_COMBINE_ITEM_UI_CLOSE, 0x0a70);
- #endif // PACKETVER_MAIN_NUM >= 20160504 || PACKETVER_RE_NUM >= 20160504 || defined(PACKETVER_ZERO)
- #if PACKETVER >= 20160302
- struct PACKET_CZ_REQ_RANDOM_COMBINE_ITEM_sub {
- int16 index;
- int16 count;
- } __attribute__((packed));
- struct PACKET_CZ_REQ_RANDOM_COMBINE_ITEM {
- int16 packetType;
- int16 packetLength;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- int32 itemId;
- #else
- int16 itemId;
- #endif
- struct PACKET_CZ_REQ_RANDOM_COMBINE_ITEM_sub items[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_REQ_RANDOM_COMBINE_ITEM, 0x0a4f);
- #endif // PACKETVER >= 20160302
- #if PACKETVER_MAIN_NUM >= 20160601 || PACKETVER_RE_NUM >= 20160525 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_ACK_RANDOM_COMBINE_ITEM {
- int16 packetType;
- int16 result;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ACK_RANDOM_COMBINE_ITEM, 0x0a50);
- #endif // PACKETVER_MAIN_NUM >= 20160601 || PACKETVER_RE_NUM >= 20160525 || defined(PACKETVER_ZERO)
- #if PACKETVER_MAIN_NUM >= 20190703 || PACKETVER_RE_NUM >= 20190703 || PACKETVER_ZERO_NUM >= 20190709
- struct PACKET_CZ_UNINSTALLATION {
- int16 PacketType;
- uint8 InstallationKind;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_UNINSTALLATION, 0x0b35);
- #endif
- // in 3 clients from same version
- #if PACKETVER >= 20191127
- struct PACKET_ZC_NOTIFY_EFFECT3 {
- int16 packetType;
- uint32 aid;
- uint32 effectId;
- uint64 num;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_NOTIFY_EFFECT3, 0x0b69);
- #elif PACKETVER_MAIN_NUM >= 20060911 || PACKETVER_AD_NUM >= 20060911 || PACKETVER_SAK_NUM >= 20060911 || defined(PACKETVER_RE) || defined(PACKETVER_ZERO)
- struct PACKET_ZC_NOTIFY_EFFECT3 {
- int16 packetType;
- uint32 aid;
- uint32 effectId;
- uint32 num;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_NOTIFY_EFFECT3, 0x0284);
- #endif
- #if PACKETVER >= 20100824
- struct PACKET_CZ_SE_CASHSHOP_OPEN1 {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_SE_CASHSHOP_OPEN1, 0x0844);
- #endif
- #if PACKETVER >= 20191224
- struct PACKET_CZ_SE_CASHSHOP_OPEN2 {
- int16 packetType;
- uint32 tab;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_SE_CASHSHOP_OPEN2, 0x0b6d);
- #endif
- #if PACKETVER >= 20190724
- struct PACKET_CZ_GET_ACCOUNT_LIMTIED_SALE_LIST {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_GET_ACCOUNT_LIMTIED_SALE_LIST, 0x0b4c);
- #endif
- #if PACKETVER_MAIN_NUM >= 20200129 || PACKETVER_RE_NUM >= 20200205 || PACKETVER_ZERO_NUM >= 20191224
- struct PACKET_ZC_SE_CASHSHOP_OPEN {
- int16 packetType;
- uint32 cashPoints;
- uint32 kafraPoints;
- uint32 tab;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_SE_CASHSHOP_OPEN, 0x0b6e);
- #elif PACKETVER >= 20140730
- struct PACKET_ZC_SE_CASHSHOP_OPEN {
- int16 packetType;
- uint32 cashPoints;
- uint32 kafraPoints;
- uint32 tab;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_SE_CASHSHOP_OPEN, 0x0a2b);
- #elif PACKETVER_MAIN_NUM >= 20101123 || PACKETVER_RE_NUM >= 20120328 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_SE_CASHSHOP_OPEN {
- int16 packetType;
- uint32 cashPoints;
- uint32 kafraPoints;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_SE_CASHSHOP_OPEN, 0x0845);
- #endif
- #if PACKETVER_MAIN_NUM >= 20190904 || PACKETVER_RE_NUM >= 20190904 || PACKETVER_ZERO_NUM >= 20190828
- struct PACKET_CZ_NPC_EXPANDED_BARTER_MARKET_CLOSE {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_NPC_EXPANDED_BARTER_MARKET_CLOSE, 0x0b58);
- #endif
- #if PACKETVER_MAIN_NUM >= 20210203 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_ZC_NPC_EXPANDED_BARTER_MARKET_ITEMINFO_sub2 {
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 nameid;
- #else
- uint16 nameid;
- #endif
- uint16 refine_level;
- uint32 amount;
- uint16 type;
- } __attribute__((packed));
- struct PACKET_ZC_NPC_EXPANDED_BARTER_MARKET_ITEMINFO_sub {
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 nameid;
- #else
- uint16 nameid;
- #endif
- uint16 type;
- uint32 amount;
- uint32 weight;
- uint32 index;
- uint32 zeny;
- uint16 viewSprite;
- uint32 location;
- uint32 currency_count;
- // Workaround: this should be currencies[], but compilers do not support multiple layers of incomplete types. See error C2233
- struct PACKET_ZC_NPC_EXPANDED_BARTER_MARKET_ITEMINFO_sub2 currencies[1];
- } __attribute__((packed));
- struct PACKET_ZC_NPC_EXPANDED_BARTER_MARKET_ITEMINFO {
- int16 packetType;
- int16 packetLength;
- int32 items_count;
- struct PACKET_ZC_NPC_EXPANDED_BARTER_MARKET_ITEMINFO_sub items[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_NPC_EXPANDED_BARTER_MARKET_ITEMINFO, 0x0b79);
- #elif PACKETVER_MAIN_NUM >= 20191120 || PACKETVER_RE_NUM >= 20191106 || PACKETVER_ZERO_NUM >= 20191127
- struct PACKET_ZC_NPC_EXPANDED_BARTER_MARKET_ITEMINFO_sub2 {
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 nameid;
- #else
- uint16 nameid;
- #endif
- uint16 refine_level;
- uint32 amount;
- uint16 type;
- } __attribute__((packed));
- struct PACKET_ZC_NPC_EXPANDED_BARTER_MARKET_ITEMINFO_sub {
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 nameid;
- #else
- uint16 nameid;
- #endif
- uint16 type;
- uint32 amount;
- uint32 weight;
- uint32 index;
- uint32 zeny;
- uint32 currency_count;
- // Workaround: this should be currencies[], but compilers do not support multiple layers of incomplete types. See error C2233
- struct PACKET_ZC_NPC_EXPANDED_BARTER_MARKET_ITEMINFO_sub2 currencies[1];
- } __attribute__((packed));
- struct PACKET_ZC_NPC_EXPANDED_BARTER_MARKET_ITEMINFO {
- int16 packetType;
- int16 packetLength;
- int32 items_count;
- struct PACKET_ZC_NPC_EXPANDED_BARTER_MARKET_ITEMINFO_sub items[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_NPC_EXPANDED_BARTER_MARKET_ITEMINFO, 0x0b56);
- #endif // PACKETVER_MAIN_NUM >= 20191120 || PACKETVER_RE_NUM >= 20191106 || PACKETVER_ZERO_NUM >= 20191127
- #if PACKETVER_MAIN_NUM >= 20190904 || PACKETVER_RE_NUM >= 20190904 || PACKETVER_ZERO_NUM >= 20190828
- struct PACKET_CZ_NPC_EXPANDED_BARTER_MARKET_PURCHASE_sub {
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint32 shopIndex;
- uint32 amount;
- } __attribute__((packed));
- struct PACKET_CZ_NPC_EXPANDED_BARTER_MARKET_PURCHASE {
- int16 packetType;
- int16 packetLength;
- struct PACKET_CZ_NPC_EXPANDED_BARTER_MARKET_PURCHASE_sub list[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_NPC_EXPANDED_BARTER_MARKET_PURCHASE, 0x0b57);
- #endif
- #if PACKETVER >= 7
- struct PACKET_ZC_STATE_CHANGE {
- int16 packetType;
- uint32 AID;
- int16 bodyState;
- int16 healthState;
- int32 effectState;
- int8 isPKModeON;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_STATE_CHANGE, 0x0229);
- #else
- struct PACKET_ZC_STATE_CHANGE {
- int16 PacketType;
- uint32 AID;
- int16 bodyState;
- int16 healthState;
- int16 effectState;
- int8 isPKModeON;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_STATE_CHANGE, 0x0119);
- #endif
- struct PACKET_ZC_AUTORUN_SKILL {
- int16 packetType;
- uint16 skill_id;
- uint32 skill_type;
- uint16 skill_lv;
- uint16 skill_sp;
- uint16 skill_range;
- char skill_name[NAME_LENGTH];
- char up_flag;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_AUTORUN_SKILL, 0x0147);
- #if PACKETVER_MAIN_NUM >= 20170726 || PACKETVER_RE_NUM >= 20170621 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_RANDOM_UPGRADE_ITEM_UI_OPEN {
- int16 packetType;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_RANDOM_UPGRADE_ITEM_UI_OPEN, 0x0ab4);
- struct PACKET_ZC_ACK_RANDOM_UPGRADE_ITEM {
- int16 packetType;
- uint16 result;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ACK_RANDOM_UPGRADE_ITEM, 0x0ab7);
- #endif // PACKETVER_MAIN_NUM >= 20170726 || PACKETVER_RE_NUM >= 20170621 || defined(PACKETVER_ZERO)
- #if PACKETVER_MAIN_NUM >= 20170111 || PACKETVER_RE_NUM >= 20170111 || defined(PACKETVER_ZERO)
- struct PACKET_CZ_RANDOM_UPGRADE_ITEM_UI_CLOSE {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_RANDOM_UPGRADE_ITEM_UI_CLOSE, 0x0ab5);
- struct PACKET_CZ_REQ_RANDOM_UPGRADE_ITEM {
- int16 packetType;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint16 index;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_REQ_RANDOM_UPGRADE_ITEM, 0x0ab6);
- #endif // PACKETVER_MAIN_NUM >= 20170111 || PACKETVER_RE_NUM >= 20170111 || defined(PACKETVER_ZERO)
- #if PACKETVER_MAIN_NUM >= 20120503 || PACKETVER_RE_NUM >= 20120502 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_PERSONAL_INFOMATION_SUB {
- int8 type;
- int32 exp;
- int32 death;
- int32 drop;
- } __attribute__((packed));
- struct PACKET_ZC_PERSONAL_INFOMATION {
- int16 packetType;
- int16 length;
- int32 total_exp;
- int32 total_death;
- int32 total_drop;
- struct PACKET_ZC_PERSONAL_INFOMATION_SUB details[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_PERSONAL_INFOMATION, 0x097b);
- #elif PACKETVER_MAIN_NUM >= 20110627 || PACKETVER_RE_NUM >= 20110628
- struct PACKET_ZC_PERSONAL_INFOMATION_SUB {
- int8 type;
- int16 exp;
- int16 death;
- int16 drop;
- } __attribute__((packed));
- struct PACKET_ZC_PERSONAL_INFOMATION {
- int16 packetType;
- int16 length;
- int16 total_exp;
- int16 total_death;
- int16 total_drop;
- struct PACKET_ZC_PERSONAL_INFOMATION_SUB details[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_PERSONAL_INFOMATION, 0x08cb);
- #endif // PACKETVER_MAIN_NUM >= 20110627 || PACKETVER_RE_NUM >= 20110628
- struct PACKET_CZ_REQUEST_ACTNPC {
- int16 packetType;
- uint32 GID;
- uint32 targetGID;
- int8 action;
- } __attribute__((packed));
- #if PACKETVER < 3
- struct PACKET_ZC_NOTIFY_SKILL {
- int16 PacketType;
- uint16 SKID;
- uint32 AID;
- uint32 targetID;
- uint32 startTime;
- int32 attackMT;
- int32 attackedMT;
- int16 damage;
- int16 level;
- int16 count;
- int8 action;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_NOTIFY_SKILL, 0x0114);
- #else
- struct PACKET_ZC_NOTIFY_SKILL {
- int16 PacketType;
- uint16 SKID;
- uint32 AID;
- uint32 targetID;
- uint32 startTime;
- int32 attackMT;
- int32 attackedMT;
- int32 damage;
- int16 level;
- int16 count;
- int8 action;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_NOTIFY_SKILL, 0x01de);
- #endif
- #if PACKETVER_MAIN_NUM >= 20130731 || PACKETVER_RE_NUM >= 20130724 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_USE_SKILL {
- int16 PacketType;
- uint16 SKID;
- int32 level;
- uint32 targetAID;
- uint32 srcAID;
- int8 result;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_USE_SKILL, 0x09cb);
- #else
- struct PACKET_ZC_USE_SKILL {
- int16 PacketType;
- uint16 SKID;
- int16 level;
- uint32 targetAID;
- uint32 srcAID;
- int8 result;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_USE_SKILL, 0x011a);
- #endif
- struct PACKET_ZC_NOTIFY_GROUNDSKILL {
- int16 PacketType;
- uint16 SKID;
- uint32 AID;
- int16 level;
- int16 xPos;
- int16 yPos;
- uint32 startTime;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_NOTIFY_GROUNDSKILL, 0x0117);
- #if PACKETVER_MAIN_NUM >= 20081112 || PACKETVER_RE_NUM >= 20081111 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_SKILL_POSTDELAY {
- int16 PacketType;
- uint16 SKID;
- uint32 DelayTM;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_SKILL_POSTDELAY, 0x043d);
- #endif
- struct PACKET_ZC_NOTIFY_SKILL_POSITION {
- int16 PacketType;
- uint16 SKID;
- uint32 AID;
- uint32 targetID;
- uint32 startTime;
- int32 attackMT;
- int32 attackedMT;
- int16 xPos;
- int16 yPos;
- int16 damage;
- int16 level;
- int16 count;
- int8 action;
- };
- DEFINE_PACKET_HEADER(ZC_NOTIFY_SKILL_POSITION, 0x0115);
- #if PACKETVER_MAIN_NUM >= 20130731 || PACKETVER_RE_NUM >= 20130707 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_C_MARKERINFO {
- int16 PacketType;
- uint32 AID;
- int16 xPos;
- int16 yPos;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_C_MARKERINFO, 0x09c1);
- #endif
- #if PACKETVER >= 20200902
- struct GUILD_MEMBER_INFO {
- uint32 AID;
- uint32 GID;
- int16 head;
- int16 headPalette;
- int16 sex;
- int16 job;
- int16 level;
- int32 contributionExp;
- int32 currentState;
- int32 positionID;
- uint32 lastLoginTime;
- char char_name[NAME_LENGTH];
- } __attribute__((packed));
- struct PACKET_ZC_MEMBERMGR_INFO {
- int16 PacketType;
- int16 packetLength;
- struct GUILD_MEMBER_INFO guildMemberInfo[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_MEMBERMGR_INFO, 0x0b7d);
- #elif PACKETVER_MAIN_NUM >= 20161214 || PACKETVER_RE_NUM >= 20161130 || defined(PACKETVER_ZERO)
- struct GUILD_MEMBER_INFO {
- uint32 AID;
- uint32 GID;
- int16 head;
- int16 headPalette;
- int16 sex;
- int16 job;
- int16 level;
- int32 contributionExp;
- int32 currentState;
- int32 positionID;
- uint32 lastLoginTime;
- } __attribute__((packed));
- struct PACKET_ZC_MEMBERMGR_INFO {
- int16 PacketType;
- int16 packetLength;
- struct GUILD_MEMBER_INFO guildMemberInfo[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_MEMBERMGR_INFO, 0x0aa5);
- #else // false: PACKETVER_MAIN_NUM >= 20161214 || PACKETVER_RE_NUM >= 20161130 || defined(PACKETVER_ZERO)
- struct GUILD_MEMBER_INFO {
- uint32 AID;
- uint32 GID;
- int16 head;
- int16 headPalette;
- int16 sex;
- int16 job;
- int16 level;
- int32 contributionExp;
- int32 currentState;
- int32 positionID;
- char intro[50];
- char char_name[NAME_LENGTH];
- } __attribute__((packed));
- struct PACKET_ZC_MEMBERMGR_INFO {
- int16 PacketType;
- int16 packetLength;
- struct GUILD_MEMBER_INFO guildMemberInfo[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_MEMBERMGR_INFO, 0x0154);
- #endif
- #if PACKETVER >= 20200902
- struct PACKET_ZC_GUILD_INFO {
- int16 PacketType;
- int GDID;
- int level;
- int userNum;
- int maxUserNum;
- int userAverageLevel;
- int exp;
- int maxExp;
- int point;
- int honor;
- int virtue;
- int emblemVersion;
- char guildname[NAME_LENGTH];
- char manageLand[MAP_NAME_LENGTH_EXT];
- int zeny;
- int masterGID;
- char masterName[NAME_LENGTH];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_GUILD_INFO, 0x0b7b);
- #elif PACKETVER_MAIN_NUM >= 20161019 || PACKETVER_RE_NUM >= 20160921 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_GUILD_INFO {
- int16 PacketType;
- int GDID;
- int level;
- int userNum;
- int maxUserNum;
- int userAverageLevel;
- int exp;
- int maxExp;
- int point;
- int honor;
- int virtue;
- int emblemVersion;
- char guildname[NAME_LENGTH];
- char manageLand[MAP_NAME_LENGTH_EXT];
- int zeny;
- int masterGID;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_GUILD_INFO, 0x0a84);
- #else
- struct PACKET_ZC_GUILD_INFO {
- int16 PacketType;
- int GDID;
- int level;
- int userNum;
- int maxUserNum;
- int userAverageLevel;
- int exp;
- int maxExp;
- int point;
- int honor;
- int virtue;
- int emblemVersion;
- char guildname[NAME_LENGTH];
- char masterName[NAME_LENGTH];
- char manageLand[MAP_NAME_LENGTH_EXT];
- int zeny;
- } __attribute__((packed));
- //0x150; [4144] this is packet for older versions?
- DEFINE_PACKET_HEADER(ZC_GUILD_INFO, 0x01b6);
- #endif
- struct PACKET_ZC_POSITION_ID_NAME_INFO {
- int16 PacketType;
- int16 PacketLength;
- struct {
- int positionID;
- char posName[NAME_LENGTH];
- } posInfo[MAX_GUILDPOSITION];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_POSITION_ID_NAME_INFO, 0x0166);
- struct PACKET_ZC_POSITION_INFO {
- int16 PacketType;
- int16 PacketLength;
- struct {
- int positionID;
- int right;
- int ranking;
- int payRate;
- } posInfo[MAX_GUILDPOSITION];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_POSITION_INFO, 0x0160);
- struct GUILD_SKILLDATA {
- uint16 id;
- int inf;
- uint16 level;
- uint16 sp;
- uint16 range2;
- char name[NAME_LENGTH];
- uint8 upFlag;
- } __attribute__((packed));
- struct PACKET_ZC_GUILD_SKILLINFO {
- int16 PacketType;
- int16 PacketLength;
- int16 skillPoint;
- struct GUILD_SKILLDATA skillInfo[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_GUILD_SKILLINFO, 0x0162);
- struct RELATED_GUILD_INFO {
- int relation;
- int GDID;
- char guildname[NAME_LENGTH];
- } __attribute__((packed));
- struct PACKET_ZC_MYGUILD_BASIC_INFO {
- int16 PacketType;
- int16 PacketLength;
- struct RELATED_GUILD_INFO rgInfo[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_MYGUILD_BASIC_INFO, 0x014c);
- #if PACKETVER >= 20160316
- struct PACKET_CZ_REQ_UPLOAD_MACRO_DETECTOR {
- int16 PacketType;
- char answer[16];
- uint16 imageSize;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_REQ_UPLOAD_MACRO_DETECTOR, 0x0a52);
- #endif
- #if PACKETVER >= 20160330
- struct PACKET_ZC_ACK_UPLOAD_MACRO_DETECTOR {
- int16 PacketType;
- char captchaKey[4];
- int captchaFlag;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ACK_UPLOAD_MACRO_DETECTOR, 0x0a53);
- #endif
- #if PACKETVER >= 20160316
- struct PACKET_CZ_UPLOAD_MACRO_DETECTOR_CAPTCHA {
- int16 PacketType;
- int16 PacketLength;
- char captchaKey[4];
- char imageData[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_UPLOAD_MACRO_DETECTOR_CAPTCHA, 0x0a54);
- #endif
- #if PACKETVER >= 20160330
- struct PACKET_ZC_COMPLETE_UPLOAD_MACRO_DETECTOR_CAPTCHA {
- int16 PacketType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_COMPLETE_UPLOAD_MACRO_DETECTOR_CAPTCHA, 0x0a55);
- #endif
- #if PACKETVER >= 20160316
- struct PACKET_CZ_REQ_APPLY_MACRO_DETECTOR {
- int16 PacketType;
- uint32 AID;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_REQ_APPLY_MACRO_DETECTOR, 0x0a56);
- #endif
- #if PACKETVER >= 20160330
- struct PACKET_ZC_ACK_APPLY_MACRO_DETECTOR {
- int16 PacketType;
- int status;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ACK_APPLY_MACRO_DETECTOR, 0x0a57);
- #endif
- #if PACKETVER >= 20160330
- struct PACKET_ZC_APPLY_MACRO_DETECTOR {
- int16 PacketType;
- uint16 imageSize;
- char captchaKey[4];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_APPLY_MACRO_DETECTOR, 0x0a58);
- #endif
- #if PACKETVER >= 20160330
- struct PACKET_ZC_APPLY_MACRO_DETECTOR_CAPTCHA {
- int16 PacketType;
- int16 PacketLength;
- char captchaKey[4];
- char imageData[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_APPLY_MACRO_DETECTOR_CAPTCHA, 0x0a59);
- #endif
- #if PACKETVER >= 20160316
- struct PACKET_CZ_COMPLETE_APPLY_MACRO_DETECTOR_CAPTCHA {
- int16 PacketType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_COMPLETE_APPLY_MACRO_DETECTOR_CAPTCHA, 0x0a5a);
- #endif
- #if PACKETVER >= 20160330
- struct PACKET_ZC_REQ_ANSWER_MACRO_DETECTOR {
- int16 PacketType;
- uint8 retryCount;
- int timeout;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_REQ_ANSWER_MACRO_DETECTOR, 0x0a5b);
- #endif
- #if PACKETVER >= 20160316
- struct PACKET_CZ_ACK_ANSWER_MACRO_DETECTOR {
- int16 PacketType;
- char answer[16];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_ACK_ANSWER_MACRO_DETECTOR, 0x0a5c);
- #endif
- #if PACKETVER >= 20160330
- struct PACKET_ZC_CLOSE_MACRO_DETECTOR {
- int16 PacketType;
- int status;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_CLOSE_MACRO_DETECTOR, 0x0a5d);
- #endif
- #if PACKETVER >= 20160323
- struct PACKET_CZ_REQ_PREVIEW_MACRO_DETECTOR {
- int16 PacketType;
- int captchaID;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_REQ_PREVIEW_MACRO_DETECTOR, 0x0a69);
- #endif
- #if PACKETVER >= 20160330
- struct PACKET_ZC_ACK_PREVIEW_MACRO_DETECTOR {
- int16 PacketType;
- int captchaFlag;
- uint16 imageSize;
- char captchaKey[4];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ACK_PREVIEW_MACRO_DETECTOR, 0x0a6a);
- #endif
- #if PACKETVER >= 20160330
- struct PACKET_ZC_PREVIEW_MACRO_DETECTOR_CAPTCHA {
- int16 PacketType;
- int16 PacketLength;
- char captchaKey[4];
- char imageData[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_PREVIEW_MACRO_DETECTOR_CAPTCHA, 0x0a6b);
- #endif
- #if PACKETVER >= 20160330
- struct PACKET_CZ_REQ_PLAYER_AID_IN_RANGE {
- int16 PacketType;
- int16 xPos;
- int16 yPos;
- int8 RadiusRange;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_REQ_PLAYER_AID_IN_RANGE, 0x0a6c);
- #endif
- #if PACKETVER >= 20160330
- struct PACKET_ZC_ACK_PLAYER_AID_IN_RANGE {
- int16 PacketType;
- int16 PacketLength;
- uint32 AID[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ACK_PLAYER_AID_IN_RANGE, 0x0a6d);
- #endif
- struct PACKET_ZC_ACK_MAKE_GROUP {
- int16 PacketType;
- int8 result;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ACK_MAKE_GROUP, 0x00fa);
- struct PACKET_ZC_PARTY_JOIN_REQ {
- int16 PacketType;
- int GRID;
- char groupName[NAME_LENGTH];
- } __attribute__((packed));
- #if PACKETVER < 20070821
- DEFINE_PACKET_HEADER(ZC_PARTY_JOIN_REQ, 0x00fe);
- #else
- DEFINE_PACKET_HEADER(ZC_PARTY_JOIN_REQ, 0x02c6);
- #endif
- struct PACKET_ZC_PARTY_JOIN_REQ_ACK {
- int16 PacketType;
- char characterName[NAME_LENGTH];
- int result;
- } __attribute__((packed));
- #if PACKETVER < 20070821
- DEFINE_PACKET_HEADER(ZC_PARTY_JOIN_REQ_ACK, 0x00fd);
- #else
- DEFINE_PACKET_HEADER(ZC_PARTY_JOIN_REQ_ACK, 0x02c5);
- #endif
- struct PACKET_ZC_NOTIFY_CHAT_PARTY {
- int16 PacketType;
- int16 PacketLength;
- int AID;
- char chatMsg[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_NOTIFY_CHAT_PARTY, 0x0109);
- struct PACKET_ZC_NOTIFY_POSITION_TO_GROUPM {
- int16 PacketType;
- int AID;
- int16 xPos;
- int16 yPos;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_NOTIFY_POSITION_TO_GROUPM, 0x0107);
- #if PACKETVER_ZERO_NUM >= 20210504
- struct PACKET_ZC_NOTIFY_HP_TO_GROUPM {
- int16 PacketType;
- uint32 AID;
- int hp;
- int maxhp;
- int sp;
- int maxsp;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_NOTIFY_HP_TO_GROUPM, 0x0bab);
- #elif PACKETVER >= 20100119
- struct PACKET_ZC_NOTIFY_HP_TO_GROUPM {
- int16 PacketType;
- uint32 AID;
- int hp;
- int maxhp;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_NOTIFY_HP_TO_GROUPM, 0x080e);
- #else // PACKETVER >= 20100119
- struct PACKET_ZC_NOTIFY_HP_TO_GROUPM {
- int16 PacketType;
- uint32 AID;
- int16 hp;
- int16 maxhp;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_NOTIFY_HP_TO_GROUPM, 0x0106);
- #endif // PACKETVER >= 20100119
- #if PACKETVER_MAIN_NUM >= 20170502 || PACKETVER_RE_NUM >= 20170419 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_NOTIFY_MEMBERINFO_TO_GROUPM {
- int16 PacketType;
- int AID;
- int16 job;
- int16 level;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_NOTIFY_MEMBERINFO_TO_GROUPM, 0x0abd);
- #endif
- struct PACKET_ZC_DELETE_MEMBER_FROM_GROUP {
- int16 PacketType;
- int AID;
- char characterName[NAME_LENGTH];
- int8 result;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_DELETE_MEMBER_FROM_GROUP, 0x0105);
- #if PACKETVER_MAIN_NUM >= 20230906
- struct PACKET_CZ_REQ_TAKEOFF_EQUIP_ALL {
- int16 PacketType;
- uint32 location;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_REQ_TAKEOFF_EQUIP_ALL, 0x0bf5);
- #elif PACKETVER_MAIN_NUM >= 20210818 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20210818
- struct PACKET_CZ_REQ_TAKEOFF_EQUIP_ALL {
- int16 PacketType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_REQ_TAKEOFF_EQUIP_ALL, 0x0bad);
- #endif // PACKETVER_MAIN_NUM >= 20210818 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20210818
- #if PACKETVER_MAIN_NUM >= 20210818 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_ZC_ACK_TAKEOFF_EQUIP_ALL {
- int16 PacketType;
- uint8 result;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ACK_TAKEOFF_EQUIP_ALL, 0x0bae);
- #endif // PACKETVER_MAIN_NUM >= 20210818 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- #if PACKETVER_ZERO_NUM >= 20210504
- struct PACKET_ZC_BATTLEFIELD_NOTIFY_HP {
- int16 PacketType;
- uint32 AID;
- int hp;
- int maxhp;
- int sp;
- int maxsp;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_BATTLEFIELD_NOTIFY_HP, 0x0baa);
- #elif PACKETVER >= 20140312
- struct PACKET_ZC_BATTLEFIELD_NOTIFY_HP {
- int16 PacketType;
- uint32 AID;
- int hp;
- int maxhp;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_BATTLEFIELD_NOTIFY_HP, 0x0a0e);
- #elif PACKETVER >= 20071009
- struct PACKET_ZC_BATTLEFIELD_NOTIFY_HP {
- int16 PacketType;
- uint32 AID;
- char name[NAME_LENGTH];
- int16 hp;
- int16 maxhp;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_BATTLEFIELD_NOTIFY_HP, 0x02e0);
- #endif // PACKETVER >= 20071009
- #if PACKETVER_ZERO_NUM >= 20210721
- struct PACKET_ZC_QUEST_DIALOG {
- int16 PacketType;
- int16 PacketLength;
- uint32 NpcID;
- char message[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_QUEST_DIALOG, 0x0ba6);
- #endif // PACKETVER_ZERO_NUM >= 20210721
- #if PACKETVER_ZERO_NUM >= 20210721
- struct PACKET_ZC_MONOLOG_DIALOG {
- int16 PacketType;
- int16 PacketLength;
- uint32 NpcID;
- char message[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_MONOLOG_DIALOG, 0x0ba9);
- #endif // PACKETVER_ZERO_NUM >= 20210721
- #if PACKETVER_ZERO_NUM >= 20210721
- struct PACKET_ZC_QUEST_DIALOG_MENU_LIST {
- int16 PacketType;
- int16 PacketLength;
- uint32 NpcID;
- char message[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_QUEST_DIALOG_MENU_LIST, 0x0ba7);
- #endif // PACKETVER_ZERO_NUM >= 20210721
- #if PACKETVER_MAIN_NUM >= 20210317 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20210317
- struct PACKET_CZ_CHOOSE_MENU_ZERO {
- int16 PacketType;
- uint32 NpcID;
- uint8 menuIndex;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_CHOOSE_MENU_ZERO, 0x0ba8);
- #endif // PACKETVER_MAIN_NUM >= 20210317 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20210317
- #if PACKETVER_MAIN_NUM >= 20210203 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_ZC_DIALOG_TEXT_ALIGN {
- int16 PacketType;
- uint8 align;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_DIALOG_TEXT_ALIGN, 0x0ba1);
- #endif // PACKETVER_MAIN_NUM >= 20210203 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- #if PACKETVER_MAIN_NUM >= 20191016 || PACKETVER_RE_NUM >= 20191016 || PACKETVER_ZERO_NUM >= 20191008
- struct PACKET_CZ_GRADE_ENCHANT_SELECT_EQUIPMENT {
- int16 PacketType;
- int16 index;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_GRADE_ENCHANT_SELECT_EQUIPMENT, 0x0b59);
- #endif
- #if PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- struct GRADE_ENCHANT_BLESSING {
- int32 id;
- int32 amount;
- int32 max_blessing;
- int32 bonus;
- } __attribute__((packed));
- struct GRADE_ENCHANT_MATERIAL {
- int32 nameid;
- int32 amount;
- int32 price;
- int32 downgrade;
- int8 breakable;
- } __attribute__((packed));
- struct PACKET_ZC_GRADE_ENCHANT_MATERIAL_LIST {
- int16 PacketType;
- int16 PacketLength;
- int16 index;
- int32 success_chance;
- struct GRADE_ENCHANT_BLESSING blessing_info;
- int32 protect_itemid; // used only for PACKETVER_RE_NUM >= 20200723 && PACKETVER_RE_NUM <= 20200819
- int32 protect_amount; // used only for PACKETVER_RE_NUM >= 20200723 && PACKETVER_RE_NUM <= 20200819
- struct GRADE_ENCHANT_MATERIAL material_info[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_GRADE_ENCHANT_MATERIAL_LIST, 0x0b5a);
- #endif
- #if PACKETVER_MAIN_NUM >= 20191016 || PACKETVER_RE_NUM >= 20191016 || PACKETVER_ZERO_NUM >= 20191008
- struct PACKET_CZ_GRADE_ENCHANT_REQUEST {
- int16 PacketType;
- int16 index;
- int material_index;
- int8 blessing_flag;
- int blessing_amount;
- int8 protect_flag; // used only for PACKETVER_RE_NUM >= 20200723 && PACKETVER_RE_NUM <= 20200819
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_GRADE_ENCHANT_REQUEST, 0x0b5b);
- #endif
- #if PACKETVER_MAIN_NUM >= 20191016 || PACKETVER_RE_NUM >= 20191016 || PACKETVER_ZERO_NUM >= 20191008
- struct PACKET_CZ_GRADE_ENCHANT_CLOSE_UI {
- int16 PacketType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_GRADE_ENCHANT_CLOSE_UI, 0x0b5c);
- #endif
- #if PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_ZC_GRADE_ENCHANT_ACK {
- int16 PacketType;
- int16 index;
- int16 grade;
- int result;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_GRADE_ENCHANT_ACK, 0x0b5d);
- #endif
- #if PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_ZC_GRADE_ENCHANT_BROADCAST_RESULT {
- int16 packetType;
- char name[NAME_LENGTH];
- uint32 itemId;
- int16 grade;
- int8 status;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_GRADE_ENCHANT_BROADCAST_RESULT, 0x0b5e);
- #endif
- struct PACKET_ZC_SHOW_IMAGE {
- int16 packetType;
- char image[64];
- uint8 type;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_SHOW_IMAGE, 0x01b3)
- #if PACKETVER_MAIN_NUM >= 20131204 || PACKETVER_RE_NUM >= 20131120 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_WHISPER {
- int16 PacketType;
- int16 PacketLength;
- uint32 senderGID;
- char sender[NAME_LENGTH];
- uint8 isAdmin;
- char message[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_WHISPER, 0x09de)
- // [4144] unconfirmed version
- #elif PACKETVER >= 20091104
- struct PACKET_ZC_WHISPER {
- int16 PacketType;
- int16 PacketLength;
- char sender[NAME_LENGTH];
- int32 isAdmin;
- char message[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_WHISPER, 0x0097)
- #else // PACKETVER_MAIN_NUM >= 20131204 || PACKETVER_RE_NUM >= 20131120 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_WHISPER {
- int16 PacketType;
- int16 PacketLength;
- char sender[NAME_LENGTH];
- char message[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_WHISPER, 0x0097)
- #endif // PACKETVER_MAIN_NUM >= 20131204 || PACKETVER_RE_NUM >= 20131120 || defined(PACKETVER_ZERO)
- #if PACKETVER_MAIN_NUM >= 20220216 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_ZC_UPDATE_GDID {
- int16 PacketType;
- uint32 guildId;
- int emblemVersion;
- uint32 mode;
- uint8 isMaster;
- int32 interSid;
- char guildName[NAME_LENGTH];
- uint32 masterGID;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_UPDATE_GDID, 0x02f7)
- #else // PACKETVER_MAIN_NUM >= 20220216 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_ZC_UPDATE_GDID {
- int16 PacketType;
- uint32 guildId;
- int emblemVersion;
- uint32 mode;
- uint8 isMaster;
- int32 interSid;
- char guildName[NAME_LENGTH];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_UPDATE_GDID, 0x016c)
- #endif // PACKETVER_MAIN_NUM >= 20220216 || PACKETVER_ZERO_NUM >= 20221024
- #if PACKETVER_MAIN_NUM >= 20220216 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_CZ_APPROXIMATE_ACTOR {
- int16 PacketType;
- uint32 masterGID;
- uint16 unused1;
- uint8 unused2;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_APPROXIMATE_ACTOR, 0x0bb0)
- #endif // PACKETVER_MAIN_NUM >= 20220216 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_CZ_CONTACTNPC {
- int16 PacketType;
- uint32 AID;
- uint8 type;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_CONTACTNPC, 0x0090)
- struct PACKET_ZC_ATTACK_FAILURE_FOR_DISTANCE {
- int16 PacketType;
- uint32 targetAID;
- int16 targetXPos;
- int16 targetYPos;
- int16 xPos;
- int16 yPos;
- int16 currentAttRange;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ATTACK_FAILURE_FOR_DISTANCE, 0x0139)
- struct PACKET_ZC_START_CAPTURE {
- int16 PacketType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_START_CAPTURE, 0x019e)
- struct PACKET_ZC_TRYCAPTURE_MONSTER {
- int16 PacketType;
- int8 result;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_TRYCAPTURE_MONSTER, 0x01a0)
- struct PACKET_ZC_PROPERTY_PET {
- int16 PacketType;
- char szName[NAME_LENGTH];
- int8 bModified;
- int16 nLevel;
- int16 nFullness;
- int16 nRelationship;
- int16 ITID;
- #if PACKETVER >= 20081126
- int16 job;
- #endif
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_PROPERTY_PET, 0x01a2)
- struct PACKET_ZC_CHANGESTATE_PET {
- int16 PacketType;
- int8 type;
- int GID;
- int data;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_CHANGESTATE_PET, 0x01a4)
- struct PACKET_ZC_SPIRITS {
- int16 PacketType;
- uint32 AID;
- int16 num;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_SPIRITS, 0x01d0)
- struct PACKET_ZC_SPIRITS2 {
- int16 PacketType;
- uint32 AID;
- int16 num;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_SPIRITS2, 0x01e1)
- #if PACKETVER_MAIN_NUM >= 20200414 || PACKETVER_RE_NUM >= 20200723 || PACKETVER_ZERO_NUM >= 20200506
- struct PACKET_ZC_SOULENERGY {
- int16 PacketType;
- uint32 AID;
- uint16 num;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_SOULENERGY, 0x0b73)
- #endif
- struct PACKET_ZC_SAY_DIALOG {
- int16 PacketType;
- int16 PacketLength;
- uint32 NpcID;
- char message[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_SAY_DIALOG, 0x00b4)
- #if PACKETVER_MAIN_NUM >= 20220504
- struct PACKET_ZC_SAY_DIALOG2 {
- int16 PacketType;
- int16 PacketLength;
- uint32 NpcID;
- uint8 type;
- char message[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_SAY_DIALOG2, 0x0972)
- #else // PACKETVER_MAIN_NUM >= 20220504
- struct PACKET_ZC_SAY_DIALOG2 {
- int16 PacketType;
- int16 PacketLength;
- uint32 NpcID;
- char message[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_SAY_DIALOG2, 0x00b4)
- #endif // PACKETVER_MAIN_NUM >= 20220504
- struct PACKET_ZC_WAIT_DIALOG {
- int16 PacketType;
- uint32 NpcID;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_WAIT_DIALOG, 0x00b5)
- #if PACKETVER_MAIN_NUM >= 20220504
- struct PACKET_ZC_WAIT_DIALOG2 {
- int16 PacketType;
- uint32 NpcID;
- uint8 type;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_WAIT_DIALOG2, 0x0973)
- #else // PACKETVER_MAIN_NUM >= 20220504
- struct PACKET_ZC_WAIT_DIALOG2 {
- int16 PacketType;
- uint32 NpcID;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_WAIT_DIALOG2, 0x00b5)
- #endif // PACKETVER_MAIN_NUM >= 20220504
- #if PACKETVER_MAIN_NUM >= 20220504
- struct PACKET_ZC_DIALOG_WINDOW_SIZE {
- int16 PacketType;
- int height;
- int width;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_DIALOG_WINDOW_SIZE, 0x0ba2)
- #endif // PACKETVER_MAIN_NUM >= 20220504
- #if PACKETVER_MAIN_NUM >= 20220504
- struct PACKET_ZC_DIALOG_WINDOW_POS {
- int16 PacketType;
- int x;
- int y;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_DIALOG_WINDOW_POS, 0x0ba3)
- #endif // PACKETVER_MAIN_NUM >= 20220504
- #if PACKETVER_MAIN_NUM >= 20220504
- struct PACKET_ZC_DIALOG_WINDOW_POS2 {
- int16 PacketType;
- int x;
- int y;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_DIALOG_WINDOW_POS2, 0x0bb5)
- #endif // PACKETVER_MAIN_NUM >= 20220504
- #if PACKETVER_MAIN_NUM >= 20220504
- struct PACKET_ZC_PLAY_NPC_BGM {
- int16 PacketType;
- int16 PacketLength;
- uint8 playType;
- char bgm[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_PLAY_NPC_BGM, 0x0b8c)
- #elif PACKETVER >= 20091201
- struct PACKET_ZC_PLAY_NPC_BGM {
- int16 PacketType;
- char bgm[NAME_LENGTH];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_PLAY_NPC_BGM, 0x07fe)
- #endif // PACKETVER >= 20091201
- struct PACKET_CZ_MOVE_ITEM_FROM_BODY_TO_CART {
- int16 PacketType;
- int16 index;
- int count;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_MOVE_ITEM_FROM_BODY_TO_CART, 0x0126)
- struct PACKET_ZC_SOUND {
- int16 PacketType;
- char name[NAME_LENGTH];
- uint8 act;
- uint32 term;
- uint32 AID;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_SOUND, 0x01d3)
- #if PACKETVER >= 20100420
- struct PACKET_ZC_BUYING_STORE_ENTRY {
- int16 packetType;
- uint32 makerAID;
- char storeName[MESSAGE_SIZE];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_BUYING_STORE_ENTRY, 0x0814);
- #endif
- struct PACKET_ZC_STORE_ENTRY {
- int16 packetType;
- uint32 makerAID;
- char storeName[MESSAGE_SIZE];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_STORE_ENTRY, 0x0131);
- struct CZ_PURCHASE_ITEM_FROMMC {
- int16 count;
- int16 index;
- } __attribute__((packed));
- struct PACKET_CZ_PC_PURCHASE_ITEMLIST_FROMMC {
- int16 packetType;
- int16 packetLength;
- uint32 AID;
- struct CZ_PURCHASE_ITEM_FROMMC list[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_PC_PURCHASE_ITEMLIST_FROMMC, 0x0134);
- struct PACKET_CZ_PC_PURCHASE_ITEMLIST_FROMMC2 {
- int16 packetType;
- int16 packetLength;
- uint32 AID;
- uint32 UniqueID;
- struct CZ_PURCHASE_ITEM_FROMMC list[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_PC_PURCHASE_ITEMLIST_FROMMC2, 0x0801);
- #if PACKETVER >= 20100309
- struct PACKET_ZC_DISAPPEAR_BUYING_STORE_ENTRY {
- int16 packetType;
- uint32 makerAID;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_DISAPPEAR_BUYING_STORE_ENTRY, 0x0816);
- #endif
- #if PACKETVER_MAIN_NUM >= 20201118 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_ZC_OPEN_REFORM_UI {
- int16 PacketType;
- int32 ITID;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_OPEN_REFORM_UI, 0x0b8f);
- #endif // PACKETVER_MAIN_NUM >= 20201118 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- #if PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_CZ_CLOSE_REFORM_UI {
- int16 PacketType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_CLOSE_REFORM_UI, 0x0b90);
- #endif // PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- #if PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_CZ_ITEM_REFORM {
- int16 PacketType;
- int32 ITID;
- int16 index;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_ITEM_REFORM, 0x0b91);
- #endif // PACKETVER_MAIN_NUM >= 20200916 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- #if PACKETVER_MAIN_NUM >= 20201118 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_ZC_ITEM_REFORM_ACK {
- int16 PacketType;
- int16 index;
- int8 result;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ITEM_REFORM_ACK, 0x0b92);
- #endif // PACKETVER_MAIN_NUM >= 20201118 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- #if PACKETVER_MAIN_NUM >= 20220216 || PACKETVER_ZERO_NUM >= 20220316
- struct PACKET_CZ_USE_PACKAGEITEM {
- int16 PacketType;
- uint16 index;
- uint32 AID;
- uint32 itemID;
- uint32 BoxIndex;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_USE_PACKAGEITEM, 0x0baf)
- #endif // PACKETVER_MAIN_NUM >= 20220216 || PACKETVER_ZERO_NUM >= 20220316
- #if PACKETVER_MAIN_NUM >= 20201118 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_CZ_REQUEST_RANDOM_ENCHANT {
- int16 PacketType;
- int64 enchant_group;
- int16 index;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_REQUEST_RANDOM_ENCHANT, 0x0b9b);
- #endif // PACKETVER_MAIN_NUM >= 20201118 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- #if PACKETVER_MAIN_NUM >= 20201118 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_CZ_REQUEST_PERFECT_ENCHANT {
- int16 PacketType;
- int64 enchant_group;
- int16 index;
- uint32 ITID;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_REQUEST_PERFECT_ENCHANT, 0x0b9c);
- #endif // PACKETVER_MAIN_NUM >= 20201118 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- #if PACKETVER_MAIN_NUM >= 20201118 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_CZ_REQUEST_UPGRADE_ENCHANT {
- int16 PacketType;
- int64 enchant_group;
- int16 index;
- int16 slot;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_REQUEST_UPGRADE_ENCHANT, 0x0b9d);
- #endif // PACKETVER_MAIN_NUM >= 20201118 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- #if PACKETVER_MAIN_NUM >= 20201118 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_CZ_REQUEST_RESET_ENCHANT {
- int16 PacketType;
- int64 enchant_group;
- int16 index;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_REQUEST_RESET_ENCHANT, 0x0b9e);
- #endif // PACKETVER_MAIN_NUM >= 20201118 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- #if PACKETVER_MAIN_NUM >= 20210203 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_ZC_RESPONSE_ENCHANT {
- int16 PacketType;
- int32 msgId;
- uint32 ITID;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_RESPONSE_ENCHANT, 0x0b9f);
- #endif // PACKETVER_MAIN_NUM >= 20201118 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- #if PACKETVER_MAIN_NUM >= 20201118 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- struct PACKET_CZ_CLOSE_UI_ENCHANT {
- int16 PacketType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_CLOSE_UI_ENCHANT, 0x0ba0);
- #endif // PACKETVER_MAIN_NUM >= 20201118 || PACKETVER_RE_NUM >= 20211103 || PACKETVER_ZERO_NUM >= 20221024
- #if PACKETVER_MAIN_NUM >= 20221005
- struct PACKET_ZC_SPECIALPOPUP {
- int16 PacketType;
- int32 ppId;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_SPECIALPOPUP, 0x0bbe);
- #endif // PACKETVER_MAIN_NUM >= 20221005
- #if PACKETVER >= 20140611
- struct PACKET_ZC_GOLDPCCAFE_POINT {
- // Note: 2014-04-30 has 1 byte less, but those packets are only functional after 2014-06-11Ragexe
- uint16 PacketType;
- int8 isActive; //< 1 = yes, 0 = no
- int8 mode;
- int32 point;
- int32 playedTime;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_GOLDPCCAFE_POINT , 0x0a15);
- #endif // PACKETVER >= 20140611
- #if PACKETVER >= 20140430
- struct PACKET_CZ_DYNAMICNPC_CREATE_REQUEST {
- uint16 PacketType;
- char name[NAME_LENGTH];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_DYNAMICNPC_CREATE_REQUEST, 0x0a16);
- #endif // PACKETVER >= 20140430
- #if PACKETVER_MAIN_NUM >= 20140430 || PACKETVER_RE_NUM >= 20140430 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_DYNAMICNPC_CREATE_RESULT {
- uint16 PacketType;
- uint32 result; // enum dynamicnpc_create_result
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_DYNAMICNPC_CREATE_RESULT , 0x0a17);
- #endif // PACKETVER_MAIN_NUM >= 20140430 || PACKETVER_RE_NUM >= 20140430 || defined(PACKETVER_ZERO)
- struct PACKET_CZ_REQ_GUILD_EMBLEM_IMG1 {
- int16 packetType;
- int32 guild_id;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_REQ_GUILD_EMBLEM_IMG1, 0x0151);
- #if PACKETVER >= 20190724
- struct PACKET_CZ_REQ_GUILD_EMBLEM_IMG3 {
- int16 packetType;
- int32 guild_id;
- int32 emblem_id;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_REQ_GUILD_EMBLEM_IMG3, 0x0b46);
- #endif // PACKETVER >= 20190724
- #if PACKETVER_MAIN_NUM >= 20190619 || PACKETVER_RE_NUM >= 20190605 || PACKETVER_ZERO_NUM >= 20190626
- struct PACKET_CZ_REQ_GUILD_EMBLEM_IMG2 {
- int16 packetType;
- int32 guild_id;
- int32 emblem_id;
- int32 unused;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_REQ_GUILD_EMBLEM_IMG2, 0x0b1e);
- #elif PACKETVER_MAIN_NUM >= 20190227 || PACKETVER_RE_NUM >= 20190227 || PACKETVER_ZERO_NUM >= 20190313
- struct PACKET_CZ_REQ_GUILD_EMBLEM_IMG2 {
- int16 packetType;
- int32 guild_id;
- int32 emblem_id;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_REQ_GUILD_EMBLEM_IMG2, 0x0b1e);
- #endif // PACKETVER_MAIN_NUM >= 20190619 || PACKETVER_RE_NUM >= 20190605 || PACKETVER_ZERO_NUM >= 20190626
- #if PACKETVER_MAIN_NUM >= 20190807 || PACKETVER_RE_NUM >= 20190731 || PACKETVER_ZERO_NUM >= 20190814
- struct PACKET_ZC_CHANGE_GUILD {
- int16 packetType;
- int32 guild_id;
- uint32 emblem_id;
- uint32 AID;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_CHANGE_GUILD, 0x0b47);
- // 20190619 main exists in first versions, then removed
- // 20190605 re first versions with other packet size
- #elif PACKETVER_MAIN_NUM >= 20190703 || PACKETVER_RE_NUM >= 20190605 || PACKETVER_ZERO_NUM >= 20190709
- struct PACKET_ZC_CHANGE_GUILD {
- int16 packetType;
- int32 guild_id;
- uint32 emblem_id;
- uint32 AID;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_CHANGE_GUILD, 0x0b1f);
- #else // PACKETVER_MAIN_NUM >= 20190807 || PACKETVER_RE_NUM >= 20190731 || PACKETVER_ZERO_NUM >= 20190814
- struct PACKET_ZC_CHANGE_GUILD {
- int16 packetType;
- uint32 AID;
- int32 guild_id;
- uint16 emblem_id;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_CHANGE_GUILD, 0x01b4);
- #endif // PACKETVER_MAIN_NUM >= 20190807 || PACKETVER_RE_NUM >= 20190731 || PACKETVER_ZERO_NUM >= 20190814
- #if PACKETVER_MAIN_NUM >= 20190821 || PACKETVER_RE_NUM >= 20190807 || PACKETVER_ZERO_NUM >= 20190710
- enum ZC_GUILD_EMBLEM_TYPE {
- ZC_GUILD_EMBLEM_TYPE_CLEAR = 0,
- ZC_GUILD_EMBLEM_TYPE_ADD = 1,
- ZC_GUILD_EMBLEM_TYPE_COMPLETE = 2,
- };
- struct PACKET_ZC_GUILD_EMBLEM_IMG {
- int16 packetType;
- int16 packetLength;
- uint16 result;
- int32 guild_id;
- uint32 emblem_id;
- char emblem_data[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_GUILD_EMBLEM_IMG, 0x0b36);
- #else // PACKETVER_MAIN_NUM >= 20190821 || PACKETVER_RE_NUM >= 20190807 || PACKETVER_ZERO_NUM >= 20190710
- struct PACKET_ZC_GUILD_EMBLEM_IMG {
- int16 packetType;
- int16 packetLength;
- int32 guild_id;
- uint32 emblem_id;
- char emblem_data[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_GUILD_EMBLEM_IMG, 0x0152);
- #endif // PACKETVER_MAIN_NUM >= 20190821 || PACKETVER_RE_NUM >= 20190807 || PACKETVER_ZERO_NUM >= 20190710
- #if PACKETVER_MAIN_NUM >= 20171213 || PACKETVER_RE_NUM >= 20171213 || PACKETVER_ZERO_NUM >= 20171214
- struct PACKET_CZ_ADVENTURER_AGENCY_JOIN_REQ {
- int16 packetType;
- int GID;
- int AID;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_ADVENTURER_AGENCY_JOIN_REQ, 0x0ae6);
- #endif // PACKETVER_MAIN_NUM >= 20171213 || PACKETVER_RE_NUM >= 20171213 || PACKETVER_ZERO_NUM >= 20171214
- #if PACKETVER_MAIN_NUM >= 20191218 || PACKETVER_RE_NUM >= 20191211 || PACKETVER_ZERO_NUM >= 20191224
- struct PACKET_ZC_ADVENTURER_AGENCY_JOIN_RESULT {
- int16 packetType;
- char player_name[NAME_LENGTH];
- char party_name[NAME_LENGTH];
- int AID;
- int result;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ADVENTURER_AGENCY_JOIN_RESULT, 0x0afa);
- #endif // PACKETVER_MAIN_NUM >= 20191218 || PACKETVER_RE_NUM >= 20191211 || PACKETVER_ZERO_NUM >= 20191224
- #if PACKETVER_MAIN_NUM >= 20191218 || PACKETVER_RE_NUM >= 20191211 || PACKETVER_ZERO_NUM >= 20191224
- struct PACKET_ZC_ADVENTURER_AGENCY_JOIN_REQ {
- int16 packetType;
- int GRID;
- int AID;
- char groupName[NAME_LENGTH];
- int16 level;
- int16 job;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ADVENTURER_AGENCY_JOIN_REQ, 0x0ae7);
- #endif // PACKETVER_MAIN_NUM >= 20191218 || PACKETVER_RE_NUM >= 20191211 || PACKETVER_ZERO_NUM >= 20191224
- #if PACKETVER_MAIN_NUM >= 20191218 || PACKETVER_RE_NUM >= 20191211 || PACKETVER_ZERO_NUM >= 20191224
- struct PACKET_CZ_ADVENTURER_AGENCY_JOIN_RESULT {
- int16 packetType;
- int GRID;
- int AID;
- int8 result;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_ADVENTURER_AGENCY_JOIN_RESULT, 0x0af8);
- #endif // PACKETVER_MAIN_NUM >= 20191218 || PACKETVER_RE_NUM >= 20191211 || PACKETVER_ZERO_NUM >= 20191224
- #if !defined(sun) && (!defined(__NETBSD__) || __NetBSD_Version__ >= 600000000) // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute
- #pragma pack(pop)
- #endif // not NetBSD < 6 / Solaris
- #endif /* MAP_PACKETS_STRUCT_HPP */
|