mirror of
https://github.com/SphereServer/Source-X
synced 2026-08-13 10:23:05 -04:00
- Fixed: WEIGHTREDUCTION not working correctly for items inside a container (Issue #289). - Fixed: Retrieving a value from an unexistant LIST did not return -1; overwriting a LIST element generated an exception (Issue #290). - Fixed: Profiler and worldsave message showing incorrect times (Issue #296). - Fixed: Client listing showing the number of the online clients at the end of the list, instead of the top. - Added: Doc file "Porting from 0.55 to 0.56.txt" (the content was posted years ago by XuN on the forum). Changed GetPreciseSysTimeNano to GetPreciseSysTimeMicro, nanoseconds timer isn't so precise and it isn't even worth it. Disabled DEBUGF_EXP log message when the delta exp is == 0. Added class GlobalInitializer to initialize some global variables and do pre-server startup sanity checks and function calls. Moved GetTimeMinDesc function from spheresvr.cpp to a static method of CServerTime. Removed unused bFull parameter from CObjBase::CallPersonalTrigger.
386 lines
No EOL
13 KiB
HTML
386 lines
No EOL
13 KiB
HTML
<html><head><Title>Supported Packets</title></head><body>
|
|
<h1>Packets</h1>
|
|
<ul>
|
|
<li><a href=#cts>Client --> Server</a>
|
|
<li><a href=#stc>Server --> Client</a>
|
|
<li><a href=#gc>God Client Packets</a>
|
|
<li><A href=#unk>Unknown Packets</a>
|
|
</ul>
|
|
|
|
<p><b>[C]</b> means supported by the regular Core
|
|
<p><b>[A]</b> means supported by the alternate core.
|
|
|
|
<hr>
|
|
|
|
<h2><a name=cts>Client --> Server</a></h2>
|
|
<ul>
|
|
<li>00: Acct - Create Character :
|
|
<ul><li><b>[A]</b> sendCreateCharacter(String name, String password, boolean isFemale, byte str, byte dex, byte intel, byte skill1,
|
|
byte skill1value, byte skill2, byte skill2value, byte skill3, byte skill3value, short skinColor, short hairStyle,
|
|
short hairColor, short facialHair, short facialHairColor, short startLocation, short slot)</ul>
|
|
<li>01: Disconnect Notification :
|
|
<ul><li>sendReturnToMainMenu()</ul>
|
|
<ul>
|
|
<li>Note: Sent when the user chooses to return to the main menu from the character select menu.
|
|
<li>Note: Since the character select menu no longer has a main menu button, this message is no longer sent.
|
|
</ul>
|
|
<li>02: Move Request :
|
|
<ul><li><b>[A]</b> sendMoveRequest(byte direction, boolean running)</ul>
|
|
|
|
<!--<ul>
|
|
<li>Supported without fastwalk prevention key. This means our clientversion must show as old.
|
|
</ul>-->
|
|
<li>03: Talk Request :
|
|
<ul><li><b>[A]</b> sendTalkRequest(String s, byte speechType, short color, short font)</ul>
|
|
<li>05: Attack Request :
|
|
<ul><li><b>[A]</b> sendAttackRequest(int uidToAttack)</ul>
|
|
<li>06: Use Item :
|
|
<ul><li><b>[A]</b> sendUseItem(int uid)</ul>
|
|
<li>07: Pick Up Item :
|
|
<ul><li><b>[A]</b> sendPickUpItem(int uid, int amount)</ul>
|
|
<li>08: Drop Item :
|
|
<ul><li><b>[A]</b> sendDropItem(int uid, short xLoc, short yLoc, byte zLoc, int containerToMoveInto)</ul>
|
|
<li>09: Single Click :
|
|
<ul><li><b>[A]</b> sendSingleClick(int uid)</ul>
|
|
<li>012: Request Skill/Action/Magic Usage :
|
|
<ul>
|
|
<li><b>[A]</b> sendUseSkill(byte skillToUse)
|
|
<li><b>[A]</b> sendCastSpell(byte spellToCast)
|
|
<li><b>[A]</b> sendPerformAction(String action)
|
|
</ul>
|
|
<li>013: Drop Item on Character :
|
|
<ul><li><b>[A]</b> sendDropOnCharacter(int itemUid, byte layer, int targetUid)</ul>
|
|
<li>034: Get Status
|
|
<li>03a: Set Skill Lock
|
|
<li>03b: Buy Items
|
|
<li>056: Map Message (Plot course, etc)
|
|
<li>05d: Select Char to Play :
|
|
<ul><li><b>[A]</b> sendLoginChar(int charSelection, String charname)</ul>
|
|
<li>066: Write to Book
|
|
<li>06c: Targetting command :
|
|
<ul>
|
|
<li><b>[A]</b> sendCancelTargetting()
|
|
<li><b>[A]</b> sendTargetGround(short x, short y, byte z)
|
|
<li><b>[A]</b> sendTarget(int uid)
|
|
<li><b>[A]</b> sendTargetSelf()
|
|
</ul>
|
|
<li>06f: Secure Trading
|
|
<li>072: Request War Mode change
|
|
<li>073: Ping-Pong : sendPing(char pingNum)
|
|
<li>074: Rename something
|
|
<li>07d: Menu Response
|
|
<li>080: Prelogin - Connect to Login Server :
|
|
<ul><li><b>[A]</b> sendInitialLogin(String username, String password)</ul>
|
|
<li>083: Acct - Delete Character
|
|
<li>091: Login to Game Server :
|
|
<ul><li><b>[A]</b> sendLoginRequest(byte[] enckey, String username, String password)</ul>
|
|
<li>095: Dye Window
|
|
<li>09b: Page a GM
|
|
<li>09f: Shop sell reply
|
|
<li>0a0: Shard selected :
|
|
<ul><li><b>[A]</b> sendShardChosen(short shardNum)</ul>
|
|
<li>0a4: Hardware info
|
|
<li>0a7: Request Tooltip
|
|
<li>0ac: Gumpish string response
|
|
<li>0ad: Unicode Speech
|
|
<li>0b1: Gump Response
|
|
<li>0b6: Help Request
|
|
<li>0b8: Request/Update Char Profile
|
|
<li>0bd: Client Version string
|
|
<li>0be: UOAssist Version string?
|
|
<li>0bf: Extended Command:
|
|
<ul>
|
|
<li>0bb.04: Close Generic Gump
|
|
<li>0bb.05: Unknown
|
|
<li>0bb.06: Party System:
|
|
<ul>
|
|
<li>0bb.06.01: Add party member
|
|
<li>0bb.06.02: Remove party member
|
|
<li>0bb.06.03: Message to one party member
|
|
<li>0bb.06.04: Message to all party members
|
|
<li>0bb.06.06: Party can/cannot loot me
|
|
<li>0bb.06.08: Accept party invitation
|
|
<li>0bb.06.09: Decline party invitation
|
|
</ul>
|
|
<li>0bb.0b: Client Language
|
|
<li>0bb.0d: Request Popup Menu
|
|
<li>0bb.0f: Popup Entry Selection
|
|
|
|
</ul>
|
|
<li>0c8: Update Range Change
|
|
<li>0d1: Logout Status
|
|
<li>0f0: Custom Client Packet
|
|
|
|
</ul>
|
|
<hr>
|
|
|
|
<h2><a name=stc>Server --> Client</a></h2>
|
|
<ul>
|
|
<li>011: Stat Window Info :
|
|
<ul>
|
|
<li><b>[A]</b> updateStatusBar(int playerId, String playerName, short currentHP, short maxHP, boolean canChangeName, boolean isFemale, short str, short dex, short intel, short currentStam, short maxStam, short currentMana, short maxMana, int gold, short armor, short weight)
|
|
<li><b>[A]</b> updateHPBar(int playerId, String playerName, short currentHP, short maxHP, boolean canChangeName)
|
|
</ul>
|
|
<li>01a: Item on Ground Information :
|
|
<ul><li><b>[A]</b> drawObject(int itemId)</ul>
|
|
<li>01b: <b>[A]</b> Login Confirm and Initial Player Information :
|
|
<ul><li><b>[A]</b> drawObject(int playerId)</ul>
|
|
<li>01c: Text :
|
|
<ul><li><b>[A]</b> showSpeech(int itemId, short model, byte type, short textColor, short font, String name, String message)</ul>
|
|
<li>01d: Forget about object :
|
|
<ul><li><b>[A]</b> eraseThing(int uid)</ul>
|
|
<li>020: Our Char has been moved :
|
|
<ul><li><b>[A]</b> drawGamePlayer(int creatureId, short bodyType, short skinColor, short xLoc, short yLoc, byte zLoc, byte direction)</ul>
|
|
<li>021: Move Request Rejected
|
|
<li>022: Move Request Accepted :
|
|
<ul><li><b>[A]</b> moveRequestAccepted(byte direction, boolean running)</ul>
|
|
<li>023: Item Dragged
|
|
<li>024: Open Container Gump :
|
|
<ul><li><b>[A]</b> drawContainer(int containerUid, short modelGump)</ul>
|
|
<li>025: Add Object to Container :
|
|
<ul><li><b>[A]</b> addToContainer(DataObject obj, DataObject container)</ul>
|
|
<li>026: You've been kicked (This isn't used anymore)
|
|
<li>027: Cannot pick up item
|
|
<li>028: Unable to drop item
|
|
<li>029: Object was dropped OK
|
|
<li>02b: God Mode is on/off
|
|
<li>02c: Resurrection Menu Choice (No longer exists)
|
|
<li>02e: Equip Item :
|
|
<ul><li><b>[A]</b> equipItem(DataObject charEquipping, DataObject item)</ul>
|
|
<li>02f: Swing in fight :
|
|
<ul><li><b>[A]</b> fightGoingOn(byte unknown, int attackerUID, int attackedUID)</ul>
|
|
<li>030: Permission to attack granted
|
|
<li>031: Attack Ended
|
|
<li>033: Pause/Resume Client :
|
|
<ul>
|
|
<li><b>[A]</b> pauseClient()
|
|
<li><b>[A]</b> resumeClient()
|
|
</ul>
|
|
<li>03a: Update Skills
|
|
<li>03c: Add Objects to object (Items in container) :
|
|
<ul><li><b>[A]</b> drawContainerContents(DataObject container)</ul>
|
|
<li>04e: Personal Light Level (Modifies the standard light level) :
|
|
<ul><li><b>[A]</b> setPersonalLightLevel(byte light)</ul>
|
|
<li>04f: Light Level (The standard one) :
|
|
<ul><li><b>[A]</b> setGlobalLightLevel(byte light)</ul>
|
|
<li>053: Login Rejected
|
|
<li>054: Play Sound :
|
|
<ul><li><b>[A]</b> playSound(byte mode, short soundNumber, short unknown, short xLoc, short yLoc, short zLoc)</ul>
|
|
<li>055: Login Complete :
|
|
<ul><li><b>[A]</b> loginGame()</ul>
|
|
<li>05b: Set Game Time
|
|
<ul><li><b>[A]</b> gameTime(byte hour, byte minute, byte second)</ul>
|
|
<li>065: Set Weather :
|
|
<ul>
|
|
<li><b>[A]</b> setWeatherDry(byte density);
|
|
<li><b>[A]</b> setWeatherRain(byte density);
|
|
<li><b>[A]</b> setWeatherSnow(byte density);
|
|
<li><b>[A]</b> setWeatherStorm(byte density);
|
|
<li><b>[A]</b> setWeatherCloudy(byte density);
|
|
<li><b>[A]</b> setTemperature(byte temperature);
|
|
</ul>
|
|
<li>066: Show Book
|
|
<li>06c: Targetting command
|
|
<ul><li><b>[A]</b> showTargetCursor(boolean targettingGround)</ul>
|
|
<li>06d: Play MIDI :
|
|
<ul><li><b>[A]</b> playMidi(short midiName)</ul>
|
|
<li>06e: Character Animation :
|
|
<ul><li><b>[A]</b> charAnim(int charUid, short anim, byte direction, short repeat, boolean forward,
|
|
boolean repeatFlag, byte frameDelay)</ul>
|
|
<li>06f: Secure Trading
|
|
<li>070: Graphical Effect :
|
|
<ul><li><b>[A]</b> graphicalEffect(byte directionType, int characterId, int targetId, short firstFrameModel,
|
|
short xLoc, short yLoc, byte zLoc, short targetXLoc, short targetYLoc, byte animationSpeed,
|
|
byte duration, short unknown, boolean adjustDirectionDuringAnimation, boolean explodeOnImpact)</ul>
|
|
<li>071: Message Board
|
|
<li>072: War Mode state :
|
|
<ul><li><b>[A]</b> setWarMode(boolean inWarMode)</ul>
|
|
<li>073: Ping-Pong
|
|
<li>074: Shop Data
|
|
<li>076: Server Change
|
|
<li>077: Update Char :
|
|
<ul><li><b>[A]</b> drawObject(int charId)</ul>
|
|
<li>078: Add Object :
|
|
<ul><li><b>[A]</b> drawObject(int itemId)</ul>
|
|
<li>07c: Menu
|
|
<li>081: Login OK
|
|
<li>082: Bad Login :
|
|
<ul><li><b>[A]</b> loginFailed(String reason)</ul>
|
|
<li>086: Show all chars (Sent after char delete)
|
|
<li>088: Display Paperdoll
|
|
<li>089: Corpse Clothing
|
|
<li>08c: Login to whatever server.
|
|
<li>090: Open course (map) gump.
|
|
<li>093: Book header (title page, etc)
|
|
<li>099: Multi placement view
|
|
<li>09a: No-gump text entry prompt
|
|
<li>09e: Shop sell list
|
|
<li>0a1: Update maxHP/HP :
|
|
<ul><li><b>[A]</b> updateHits(int playerId, short currentHP, short maxHP)</ul>
|
|
<li>0a2: Update maxMana/mana :
|
|
<ul><li><b>[A]</b> updateMana(int playerId, short currentMana, short maxMana)</ul>
|
|
<li>0a3: Update maxStam/stam :
|
|
<ul><li><b>[A]</b> updateStam(int playerId, short currentStam, short maxStam)</ul>
|
|
<li>0a5: Launch web browser
|
|
<li>0a6: Show Scroll :
|
|
<ul>
|
|
<li><b>[A]</b> showTips(short tipNumber, String text)
|
|
<li><b>[A]</b> showNotice(String text)
|
|
<li><b>[A]</b> showScrollWindow(byte flag, String text)
|
|
</ul>
|
|
<li>0a8: List of shards
|
|
<li>0a9: Char list and cities list :
|
|
<ul><li><b>[A]</b> showCharList(String[] charName, byte[] locIndex,String[] genName,String[] exactName)</ul>
|
|
<li>0aa: You are attacking this guy
|
|
<li>0ab: Gumpish string query
|
|
<li>0ae: Unicode Text :
|
|
<ul><li><b>[A]</b> showSpeech(int itemId, short model, byte type, short textColor, short font, String name, String message)</ul>
|
|
<li>0af: Death anim :
|
|
<ul><li><b>[A]</b> death(int charUID, int corpseUID, int unknown)</ul>
|
|
<li>0b0: <b></b> Show Gump :
|
|
<ul><li><b>[A]</b> showGenericGump(int dialogID, int gumpID, int x, int y, String[] commands, String[] lines)</ul>
|
|
<li>0b7: Help/Tip Data
|
|
<li>0b8: Char Profile
|
|
<li>0b9: Feature Enable (Chat/LBR) :
|
|
<ul><li><b>[A]</b> enableFeatures(short flag)</ul>
|
|
<li>0ba: Quest Arrow
|
|
<li>0bc: Season/mouse pointer :
|
|
<ul>
|
|
<li><b>[A]</b> setSeason(byte season)
|
|
<li><b>[A]</b> setMousePointer(byte mousePointer)
|
|
</ul>
|
|
<li>0bf: Extended Command :
|
|
<ul>
|
|
<li>0bf.01: Init Fast Walk Prevention Key
|
|
<li>0bb.02: Add key to Fast Walk Stack
|
|
<li>0bb.06: Party System:
|
|
<ul>
|
|
<li>0bb.06.01: Add party member
|
|
<li>0bb.06.02: Remove party member
|
|
<li>0bb.06.03: Message to one party member
|
|
<li>0bb.06.04: Message to all party members
|
|
</ul>
|
|
<li>0bb.08: Set cursor hue/map (0 normal 1 gold 2 UO3D place)
|
|
<li>0bb.0c: Closed Gump Status
|
|
<li>0bb.0e: Display Popup Menu
|
|
<li>0bb.012: Enable map diff files
|
|
|
|
</ul>
|
|
</ul>
|
|
<li>0c0: Hued Effect
|
|
<li>0c1: Display CliLoc Message
|
|
<li>0c7: Particle Effect
|
|
<li>0d1: Logout Status
|
|
<hr>
|
|
|
|
<h2><a name=gc>God Client Packets</a></h2>
|
|
<ul>
|
|
<li>04: God-Client: God Mode Toggle
|
|
<li>0a: Edit statics and dynamics
|
|
<li>0b: Edit Area
|
|
<li>0c: Alter Tiledata
|
|
<li>0d: Alter NPC Data
|
|
<li>0e: Edit Template Data
|
|
<li>010: Modify Hues
|
|
<li>014: Change Z of Item
|
|
<li>015: Follow Character
|
|
<li>016: Request Script Names
|
|
<li>017: Modify Script
|
|
<li>018: Add Script
|
|
<li>019: Modify NPC Speech Data
|
|
<li>032: Hack Mover
|
|
<li>09c: GM Page Response
|
|
|
|
|
|
</ul>
|
|
|
|
<hr>
|
|
|
|
<h2><A name=unk>Unknown Packets</a></h2>
|
|
<ul>
|
|
<li>0f: Paperdoll?
|
|
<li>01e: Control Animation
|
|
<li>01f: Cause Explosion
|
|
<li>02a: "Blood Mode"
|
|
<li>02c: I want to res/stay a ghost (No longer exists)
|
|
<li>02d: "Health"
|
|
<li>035: "Resource Type"
|
|
<li>036: "Resource Tile Data"
|
|
<li>037: "Move Object"
|
|
<li>038: "Follow Move"
|
|
<li>039: "Groups"
|
|
<li>03d: "Ship"
|
|
<li>03e: "Version Retrieval"
|
|
<li>03f: "Update Object Chunk"
|
|
<li>040: "Update Terrain Chunk"
|
|
<li>041: "Update Tile Data"
|
|
<li>042: "Update Art"
|
|
<li>043: "Update Anim"
|
|
<li>044: "Update Hues"
|
|
<li>045: "Ver OK"
|
|
<li>046: "New Art"
|
|
<li>047: "New Terr"
|
|
<li>048: "New Anim"
|
|
<li>049: "New Hues"
|
|
<li>04a: "Destroy Art"
|
|
<li>04b: "Check Ver"
|
|
<li>04c: "Modify Script Names"
|
|
<li>04d: "Edit Script File"
|
|
<li>050: "Bulletin Board Header"
|
|
<li>051: "Board Msg"
|
|
<li>052: "Post Msg"
|
|
<li>057: Update Regions
|
|
<li>058: Add New Region
|
|
<li>059: New FX
|
|
<li>05a: Update FX
|
|
<li>05c: "Restart Ver"
|
|
<li>05e: Server List
|
|
<li>05f: Add Server
|
|
<li>060: Remove Server
|
|
<li>061: Destroy Static
|
|
<li>062: Move Static
|
|
<li>063: Load Area
|
|
<li>064: Load Area Request
|
|
<li>067: "Simped"
|
|
<li>068: "Script LS Attach"
|
|
<li>069: "Friends"
|
|
<li>06a: "Friend Notify"
|
|
<li>06b: "Key Use"
|
|
<li>079: "Resource Query"
|
|
<li>07a: "Resource Data"
|
|
<li>07b: "Sequence"
|
|
<li>07e: "God View Query"
|
|
<li>07f: "God View Data"
|
|
<li>084: "Chg Char Pwd"
|
|
<li>085: "Chg Char Result"
|
|
<li>087: "Send Resources"
|
|
<li>08a: "Trigger Edit"
|
|
<li>08b: "Display Sign"
|
|
<li>08d: "Unused3"
|
|
<li>08e: "Move Character"
|
|
<li>08f: "Unused4"
|
|
<li>092: "Update Multi"
|
|
<li>094: "Alter Skill"
|
|
<li>096: "Game Cent Mon"
|
|
<li>097: "Player Move"
|
|
<li>098: "MOB name"
|
|
<li>09d: "GM Single"
|
|
<li>0b2: "Chat Message"
|
|
<li>0b5: "Open chat window"
|
|
<li>0bb: Ultima Messenger
|
|
<li>0c2: "Text Entry Unicode"
|
|
<li>0c3: "GQ Request"
|
|
<li>0c4: "Semi Visible"
|
|
<li>0c5: "Invalid Map"
|
|
<li>0c6: "Invalid Map Enable"
|
|
<li>0c9: "Trip Time"
|
|
<li>0ca: "UTrip Time"
|
|
<li>0cb: "GQ Count"
|
|
<li>0ca: "Text ID Plus String"
|
|
<li>0d0: "Configuration File"
|
|
</ul>
|
|
|
|
<hr>
|
|
|
|
|
|
</html> |