1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931 |
- // 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 >= 20150226
- cartaddType = 0xa0b,
- #elif PACKETVER >= 5
- cartaddType = 0x1c5,
- #else
- cartaddType = 0x124,
- #endif
- #if PACKETVER >= 20150226
- storageaddType = 0xa0a,
- #elif PACKETVER >= 5
- storageaddType = 0x1c4,
- #else
- storageaddType = 0xf4,
- #endif
- #if PACKETVER >= 20150226
- tradeaddType = 0xa09,
- #elif PACKETVER >= 20100223
- tradeaddType = 0x80f,
- #else
- tradeaddType = 0x0e9,
- #endif
- #if PACKETVER < 20061218
- additemType = 0x0a0,
- #elif PACKETVER < 20071002
- additemType = 0x29a,
- #elif PACKETVER < 20120925
- additemType = 0x2d4,
- #elif PACKETVER < 20150226
- additemType = 0x990,
- #elif PACKETVER < 20160921
- additemType = 0xa0c,
- #else
- additemType = 0xa37,
- #endif
- #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_RE_NUM >= 20180912 || PACKETVER_ZERO_NUM >= 20180919 || PACKETVER_MAIN_NUM >= 20181002
- 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_RE_NUM >= 20180829 || PACKETVER_ZERO_NUM >= 20180919 || PACKETVER_MAIN_NUM >= 20181002
- 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_RE_NUM >= 20180829 || PACKETVER_ZERO_NUM >= 20180919 || PACKETVER_MAIN_NUM >= 20181002
- 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
- #if PACKETVER < 20100105
- vendinglistType = 0x133,
- #else
- vendinglistType = 0x800,
- #endif
- openvendingType = 0x136,
- #if PACKETVER >= 20120925
- equipitemType = 0x998,
- #else
- equipitemType = 0xa9,
- #endif
- #if PACKETVER >= 20120925
- equipitemackType = 0x999,
- #else
- equipitemackType = 0xaa,
- #endif
- #if PACKETVER >= 20120925
- unequipitemackType = 0x99a,
- #else
- unequipitemackType = 0xac,
- #endif
- #if PACKETVER_MAIN_NUM >= 20180801 || PACKETVER_RE_NUM >= 20180801 || PACKETVER_ZERO_NUM >= 20180808
- viewequipackType = 0xb03,
- #elif PACKETVER >= 20150226
- viewequipackType = 0xa2d,
- #elif PACKETVER >= 20120925
- viewequipackType = 0x997,
- // [4144] not supported due other packets/structs not updated
- //#elif (PACKETVER_MAIN_NUM >= 20111207) || (PACKETVER_RE_NUM >= 20111122)
- // viewequipackType = 0x906,
- #elif PACKETVER >= 20101124
- viewequipackType = 0x859,
- #else
- viewequipackType = 0x2d7,
- #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,
- rodexread = 0x09EB,
- rodexwriteresult = 0x09ED,
- rodexnextpage = 0x09F0,
- rodexgetzeny = 0x09F2,
- rodexgetitem = 0x09F4,
- rodexdelete = 0x09F6,
- rodexadditem = 0x0A05,
- rodexremoveitem = 0x0A07,
- rodexopenwrite = 0x0A12,
- #if PACKETVER < 20160601
- rodexmailList = 0x09F0,
- #elif PACKETVER < 20170419
- rodexmailList = 0x0A7D,
- #else // PACKETVER >= 20170419
- rodexmailList = 0x0Ac2,
- #endif
- #if PACKETVER < 20160316
- rodexcheckplayer = 0x0A14,
- #else // PACKETVER >= 20160316
- rodexcheckplayer = 0x0A51,
- #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 >= 20171122
- openUiType = 0xAE2,
- #elif PACKETVER >= 20150128
- openUiType = 0xA38,
- #endif
- #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 !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
- /**
- * 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));
- 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
- uint8 RefiningLevel;
- 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 >= 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));
- struct packet_additem {
- 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;
- uint8 refiningLevel;
- 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
- } __attribute__((packed));
- 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));
- /* made possible thanks to Yommy!! */
- struct packet_package_item_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];
- int8 unknown; // probably unused
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 BoxItemID;
- #else
- uint16 BoxItemID;
- #endif
- } __attribute__((packed));
- /* 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));
- struct packet_equipitem_ack {
- int16 PacketType;
- uint16 index;
- #if PACKETVER >= 20120925
- uint32 wearLocation;
- #else
- uint16 wearLocation;
- #endif
- #if PACKETVER >= 20100629
- uint16 wItemSpriteNumber;
- #endif
- uint8 result;
- } __attribute__((packed));
- struct packet_unequipitem_ack {
- int16 PacketType;
- uint16 index;
- #if PACKETVER >= 20120925
- uint32 wearLocation;
- #else
- uint16 wearLocation;
- #endif
- uint8 result;
- } __attribute__((packed));
- struct packet_viewequip_ack {
- int16 PacketType;
- int16 PacketLength;
- char characterName[NAME_LENGTH];
- int16 job;
- int16 head;
- int16 accessory;
- int16 accessory2;
- int16 accessory3;
- #if PACKETVER >= 20101124
- int16 robe;
- #endif
- int16 headpalette;
- int16 bodypalette;
- #if PACKETVER_MAIN_NUM >= 20180801 || PACKETVER_RE_NUM >= 20180801 || PACKETVER_ZERO_NUM >= 20180808
- int16 body2;
- #endif
- uint8 sex;
- // [4144] need remove MAX_INVENTORY from here
- struct EQUIPITEM_INFO list[MAX_INVENTORY];
- } __attribute__((packed));
- 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));
- struct packet_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_npc_market_purchase {
- int16 PacketType;
- int16 PacketLength;
- struct packet_npc_market_purchase_sub list[];
- } __attribute__((packed));
- #if 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));
- struct PACKET_ZC_ADD_ITEM_TO_MAIL {
- 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));
- struct mail_item {
- 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 optionData[MAX_ITEM_OPTIONS];
- } __attribute__((packed));
- 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));
- struct PACKET_CZ_CHECKNAME {
- int16 PacketType;
- char Name[24];
- } __attribute__((packed));
- struct PACKET_ZC_CHECKNAME {
- int16 PacketType;
- int32 CharId;
- int16 Class;
- int16 BaseLevel;
- #if PACKETVER >= 20160316
- char Name[24];
- #endif
- } __attribute__((packed));
- 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));
- struct PACKET_ZC_READ_MAIL {
- int16 PacketType;
- int16 PacketLength;
- int8 opentype;
- int64 MailID;
- int16 TextcontentsLength;
- int64 zeny;
- int8 ItemCnt;
- } __attribute__((packed));
- 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));
- struct PACKET_ZC_OPEN_UI {
- int16 PacketType;
- int8 UIType;
- #if PACKETVER >= 20171122
- int32 data;
- #endif
- } __attribute__((packed));
- 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));
- 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
- #if PACKETVER >= 5
- uint8 itemType;
- #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_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));
- 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
- #if PACKETVER >= 5
- uint8 itemType;
- #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_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));
- 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;
- uint8 refine;
- struct EQUIPSLOTINFO slot;
- #if PACKETVER >= 20150226
- struct ItemOptions option_data[MAX_ITEM_OPTIONS];
- #endif
- } __attribute__((packed));
- 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));
- 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));
- 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 >= 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));
- struct PACKET_CZ_REQ_ITEMREPAIR {
- int16 packetType;
- int16 index;
- #if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
- uint32 itemId;
- #else
- uint16 itemId;
- #endif
- uint8 refine;
- struct EQUIPSLOTINFO slot;
- } __attribute__((packed));
- 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;
- } __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));
- 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));
- 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));
- 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));
- 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;
- #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
- } __attribute__((packed));
- struct PACKET_ZC_PC_PURCHASE_ITEMLIST_FROMMC {
- int16 packetType;
- int16 packetLength;
- uint32 AID;
- #if PACKETVER >= 20100105
- uint32 venderId;
- #endif
- struct PACKET_ZC_PC_PURCHASE_ITEMLIST_FROMMC_sub items[];
- } __attribute__((packed));
- 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_REPAIRITEMLIST_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_REPAIRITEMLIST {
- int16 packetType;
- int16 packetLength;
- struct PACKET_ZC_REPAIRITEMLIST_sub items[];
- } __attribute__((packed));
- 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
- } __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_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));
- /* 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_REQNAME_TITLE {
- uint16 packet_id;
- int32 gid;
- int32 groupId;
- char name[NAME_LENGTH];
- char title[NAME_LENGTH];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ACK_REQNAME_TITLE, 0x0adf);
- #else
- struct PACKET_ZC_ACK_REQNAME_TITLE {
- uint16 packet_id;
- int32 gid;
- char name[NAME_LENGTH];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ACK_REQNAME_TITLE, 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));
- struct PACKET_ZC_INVENTORY_MOVE_FAILED {
- int16 packetType;
- int16 index;
- int16 unknown;
- } __attribute__((packed));
- #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_CAMERA_INFO {
- int16 packetType;
- int8 action;
- float range;
- float rotation;
- float latitude;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_CAMERA_INFO, 0x0a78);
- #endif
- #if PACKETVER >= 20160525
- struct PACKET_CZ_CAMERA_INFO {
- int16 packetType;
- int8 action;
- float range;
- float rotation;
- float latitude;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_CAMERA_INFO, 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 >= 20170726 || PACKETVER_RE_NUM >= 20170621 || defined(PACKETVER_ZERO)
- #if 0 && (PACKETVER_MAIN_NUM >= 20181017 || PACKETVER_RE_NUM >= 20181017 || PACKETVER_ZERO_NUM >= 20181024 )
- struct PACKET_ZC_ITEM_PREVIEW {
- int16 packetType;
- int16 index;
- int8 isDamaged;
- int16 refiningLevel;
- struct EQUIPSLOTINFO slot;
- struct ItemOptions option_data[MAX_ITEM_OPTIONS];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ITEM_PREVIEW, 0x0b13);
- #else // PACKETVER_MAIN_NUM >= 20181017 || PACKETVER_RE_NUM >= 20181017 || PACKETVER_ZERO_NUM >= 20181024
- struct PACKET_ZC_ITEM_PREVIEW {
- int16 packetType;
- int16 index;
- int16 refiningLevel;
- struct EQUIPSLOTINFO slot;
- struct ItemOptions option_data[MAX_ITEM_OPTIONS];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ITEM_PREVIEW, 0x0ab9);
- #endif // PACKETVER_MAIN_NUM >= 20181017 || PACKETVER_RE_NUM >= 20181017 || PACKETVER_ZERO_NUM >= 20181024
- #endif // PACKETVER_MAIN_NUM >= 20170726 || PACKETVER_RE_NUM >= 20170621 || defined(PACKETVER_ZERO)
- #if PACKETVER_MAIN_NUM >= 20160831 || PACKETVER_RE_NUM >= 20151118 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_ENCHANT_EQUIPMENT {
- 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_ENCHANT_EQUIPMENT, 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_SERVICE_MESSAGE_COLOR {
- int16 packetType;
- int16 packetLength;
- int32 color;
- char message[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_SERVICE_MESSAGE_COLOR, 0x0adb);
- #endif
- #if PACKETVER_MAIN_NUM >= 20181002 || PACKETVER_RE_NUM >= 20181002 || PACKETVER_ZERO_NUM >= 20181010
- struct PACKET_CZ_START_USE_SKILL {
- int16 packetType;
- int16 skillId;
- int16 skillLv;
- uint32 targetId;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_START_USE_SKILL, 0x0b10);
- struct PACKET_CZ_STOP_USE_SKILL {
- int16 packetType;
- int16 skillId;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_STOP_USE_SKILL, 0x0b11);
- #endif
- #if PACKETVER_MAIN_NUM >= 20181219 || PACKETVER_RE_NUM >= 20181219 || PACKETVER_ZERO_NUM >= 20181212
- struct PACKET_ZC_INVENTORY_EXPANSION_INFO {
- int16 packetType;
- int16 expansionSize;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_INVENTORY_EXPANSION_INFO, 0x0b18);
- #endif
- #if PACKETVER_MAIN_NUM >= 20181219 || PACKETVER_RE_NUM >= 20181219 || PACKETVER_ZERO_NUM >= 20181212
- struct PACKET_ZC_ACK_INVENTORY_EXPAND {
- int16 packetType;
- uint8 result;
- uint32 itemId;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ACK_INVENTORY_EXPAND, 0x0b15);
- #endif
- #if PACKETVER_MAIN_NUM >= 20181219 || PACKETVER_RE_NUM >= 20181219 || PACKETVER_ZERO_NUM >= 20181212
- struct PACKET_ZC_ACK_INVENTORY_EXPAND_RESULT {
- int16 packetType;
- uint8 result;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_ACK_INVENTORY_EXPAND_RESULT, 0x0b17);
- #endif
- #if PACKETVER_MAIN_NUM >= 20181031 || PACKETVER_RE_NUM >= 20181031 || PACKETVER_ZERO_NUM >= 20181114
- struct PACKET_CZ_INVENTORY_EXPAND {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_INVENTORY_EXPAND, 0x0b14);
- #endif
- #if PACKETVER_MAIN_NUM >= 20181031 || PACKETVER_RE_NUM >= 20181031 || PACKETVER_ZERO_NUM >= 20181114
- struct PACKET_CZ_INVENTORY_EXPAND_CONFIRMED {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_INVENTORY_EXPAND_CONFIRMED, 0x0b16);
- #endif
- #if PACKETVER_MAIN_NUM >= 20181031 || PACKETVER_RE_NUM >= 20181031 || PACKETVER_ZERO_NUM >= 20181114
- struct PACKET_CZ_INVENTORY_EXPAND_REJECTED {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_INVENTORY_EXPAND_REJECTED, 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 >= 20190116 || PACKETVER_RE_NUM >= 20190116 || PACKETVER_ZERO_NUM >= 20181226
- struct PACKET_ZC_NPC_BARTER_OPEN_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_OPEN {
- int16 packetType;
- int16 packetLength;
- struct PACKET_ZC_NPC_BARTER_OPEN_sub list[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_NPC_BARTER_OPEN, 0x0b0e);
- #endif
- #if PACKETVER_MAIN_NUM >= 20190116 || PACKETVER_RE_NUM >= 20190116 || PACKETVER_ZERO_NUM >= 20181226
- struct PACKET_CZ_NPC_BARTER_CLOSE {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_NPC_BARTER_CLOSE, 0x0b12);
- #endif
- #if PACKETVER_MAIN_NUM >= 20190116 || PACKETVER_RE_NUM >= 20190116 || PACKETVER_ZERO_NUM >= 20181226
- struct PACKET_CZ_NPC_BARTER_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_PURCHASE {
- int16 packetType;
- int16 packetLength;
- struct PACKET_CZ_NPC_BARTER_PURCHASE_sub list[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_NPC_BARTER_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 unknown;
- } __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 {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_PING, 0x0b1c);
- #endif
- #if PACKETVER_MAIN_NUM >= 20190227 || PACKETVER_RE_NUM >= 20190220 || PACKETVER_ZERO_NUM >= 20190220
- struct PACKET_ZC_PING {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_PING, 0x0b1d);
- #endif
- #if PACKETVER >= 20160622
- struct PACKET_CZ_COOLDOWN_RESET {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_COOLDOWN_RESET, 0x0a88);
- #endif
- #if PACKETVER >= 20151104
- struct PACKET_CZ_STYLE_CLOSE {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_STYLE_CLOSE, 0x0a48);
- #endif
- #if PACKETVER_MAIN_NUM >= 20190403 || PACKETVER_RE_NUM >= 20190320 || PACKETVER_ZERO_NUM >= 20190410
- struct PACKET_ZC_LOAD_CONFIRM {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_LOAD_CONFIRM, 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_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_REFINE_OPEN_WINDOW {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_REFINE_OPEN_WINDOW, 0x0aa0);
- #endif
- #if PACKETVER_MAIN_NUM >= 20161005 || PACKETVER_RE_NUM >= 20161005 || defined(PACKETVER_ZERO)
- struct PACKET_CZ_REFINE_ADD_ITEM {
- int16 packetType;
- int16 index;
- };
- DEFINE_PACKET_HEADER(CZ_REFINE_ADD_ITEM, 0x0aa1);
- #endif
- #if PACKETVER_MAIN_NUM >= 20161130 || PACKETVER_RE_NUM >= 20161109 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_REFINE_ADD_ITEM_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_REFINE_ADD_ITEM {
- int16 packetType;
- int16 packtLength;
- int16 itemIndex;
- int8 blacksmithBlessing;
- struct PACKET_ZC_REFINE_ADD_ITEM_SUB req[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_REFINE_ADD_ITEM, 0x0aa2);
- #endif
- #if PACKETVER_MAIN_NUM >= 20161005 || PACKETVER_RE_NUM >= 20161005 || defined(PACKETVER_ZERO)
- struct PACKET_CZ_REFINE_ITEM_REQUEST {
- 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_REFINE_ITEM_REQUEST, 0x0aa3);
- struct PACKET_CZ_REFINE_WINDOW_CLOSE {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_REFINE_WINDOW_CLOSE, 0x0aa4);
- #endif
- #if PACKETVER_MAIN_NUM >= 20170906 || PACKETVER_RE_NUM >= 20170830 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_REFINE_STATUS {
- 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_REFINE_STATUS, 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_HAT_EFFECT {
- int16 packetType;
- int16 packetLength;
- uint32 aid;
- int8 status;
- uint16 effects[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_HAT_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_CASTLE_LIST {
- int16 packetType;
- int16 packetLength;
- int8 castle_list[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_GUILD_CASTLE_LIST, 0x0b27);
- #endif
- #if PACKETVER_MAIN_NUM >= 20190522 || PACKETVER_RE_NUM >= 20190522 || PACKETVER_ZERO_NUM >= 20190515
- struct PACKET_CZ_CASTLE_TELEPORT_REQUEST {
- int16 packetType;
- int8 castle_id;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_CASTLE_TELEPORT_REQUEST, 0x0b28);
- #endif
- #if PACKETVER_MAIN_NUM >= 20190731 || PACKETVER_RE_NUM >= 20190717 || PACKETVER_ZERO_NUM >= 20190814
- struct PACKET_ZC_CASTLE_TELEPORT_RESPONSE {
- int16 packetType;
- int16 result;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_CASTLE_TELEPORT_RESPONSE, 0x0b2e);
- #endif
- #if PACKETVER_MAIN_NUM >= 20190731 || PACKETVER_RE_NUM >= 20190717 || PACKETVER_ZERO_NUM >= 20190814
- struct PACKET_ZC_CASTLE_INFO {
- int16 packetType;
- int8 castle_id;
- int32 economy;
- int32 defense;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_CASTLE_INFO, 0x0b2d);
- #endif
- #if PACKETVER_MAIN_NUM >= 20190522 || PACKETVER_RE_NUM >= 20190522 || PACKETVER_ZERO_NUM >= 20190515
- struct PACKET_CZ_CASTLE_INFO_REQUEST {
- int16 packetType;
- int8 castle_id;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_CASTLE_INFO_REQUEST, 0x0b2c);
- #endif
- #if PACKETVER_MAIN_NUM >= 20160601 || PACKETVER_RE_NUM >= 20160525 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_LAPINEDDUKDDAK_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_LAPINEDDUKDDAK_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_LAPINEDDUKDDAK_CLOSE {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_LAPINEDDUKDDAK_CLOSE, 0x0a70);
- #endif // PACKETVER_MAIN_NUM >= 20160504 || PACKETVER_RE_NUM >= 20160504 || defined(PACKETVER_ZERO)
- #if PACKETVER >= 20160302
- struct PACKET_CZ_LAPINEDDUKDDAK_ACK_sub {
- int16 index;
- int16 count;
- } __attribute__((packed));
- struct PACKET_CZ_LAPINEDDUKDDAK_ACK {
- 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_LAPINEDDUKDDAK_ACK_sub items[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_LAPINEDDUKDDAK_ACK, 0x0a4f);
- #endif // PACKETVER >= 20160302
- #if PACKETVER_MAIN_NUM >= 20160601 || PACKETVER_RE_NUM >= 20160525 || defined(PACKETVER_ZERO)
- struct PACKET_ZC_LAPINEDDUKDDAK_RESULT {
- int16 packetType;
- int16 result;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_LAPINEDDUKDDAK_RESULT, 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_REQ_MOUNTOFF {
- int16 packetType;
- uint8 action;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_REQ_MOUNTOFF, 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_SE_CASHSHOP_LIMITED_REQ {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_SE_CASHSHOP_LIMITED_REQ, 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);
- // for ragexeRE in some version this packet unused [4144]
- #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_CLOSE {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_NPC_EXPANDED_BARTER_CLOSE, 0x0b58);
- #endif
- #if PACKETVER_MAIN_NUM >= 20191120 || PACKETVER_RE_NUM >= 20191106 || PACKETVER_ZERO_NUM >= 20191127
- struct PACKET_ZC_NPC_EXPANDED_BARTER_OPEN_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_OPEN_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;
- #if defined(_MSC_VER)
- // Workaround for fix Visual Studio bug (error C2233). Here should be currencies[]
- struct PACKET_ZC_NPC_EXPANDED_BARTER_OPEN_sub2 currencies[1];
- #else
- struct PACKET_ZC_NPC_EXPANDED_BARTER_OPEN_sub2 currencies[];
- #endif
- } __attribute__((packed));
- struct PACKET_ZC_NPC_EXPANDED_BARTER_OPEN {
- int16 packetType;
- int16 packetLength;
- int32 items_count;
- struct PACKET_ZC_NPC_EXPANDED_BARTER_OPEN_sub items[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_NPC_EXPANDED_BARTER_OPEN, 0x0b56);
- #endif
- #if PACKETVER_MAIN_NUM >= 20190904 || PACKETVER_RE_NUM >= 20190904 || PACKETVER_ZERO_NUM >= 20190828
- struct PACKET_CZ_NPC_EXPANDED_BARTER_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_PURCHASE {
- int16 packetType;
- int16 packetLength;
- struct PACKET_CZ_NPC_EXPANDED_BARTER_PURCHASE_sub list[];
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_NPC_EXPANDED_BARTER_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_LAPINEUPGRADE_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_LAPINEUPGRADE_OPEN, 0x0ab4);
- struct PACKET_ZC_LAPINEUPGRADE_RESULT {
- int16 packetType;
- uint16 result;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(ZC_LAPINEUPGRADE_RESULT, 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_LAPINEUPGRADE_CLOSE {
- int16 packetType;
- } __attribute__((packed));
- DEFINE_PACKET_HEADER(CZ_LAPINEUPGRADE_CLOSE, 0x0ab5);
- struct PACKET_CZ_LAPINEUPGRADE_MAKE_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_LAPINEUPGRADE_MAKE_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);
- #endif // PACKETVER_MAIN_NUM >= 20120503 || PACKETVER_RE_NUM >= 20120502 || defined(PACKETVER_ZERO)
- #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 */
|