-
-
Notifications
You must be signed in to change notification settings - Fork 650
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
626fe58
commit cb87226
Showing
1 changed file
with
114 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
local sendBytes = TalkAction("/testByte") | ||
|
||
function sendBytes.onSay(player, words, param) | ||
local msg = NetworkMessage() | ||
|
||
msg:addByte(0xC3) | ||
msg:addU32(10750) | ||
msg:addByte(0x01) -- Header | ||
msg:addByte(0x0E) -- Body | ||
|
||
msg:sendToPlayer(player) | ||
return true | ||
end | ||
|
||
sendBytes:separator(" ") | ||
sendBytes:groupType("god") | ||
sendBytes:register() | ||
|
||
----- Header bytes ----- | ||
-- 0x01 = Bid | ||
----- Body bytes ----- | ||
-- 0x01 = Internal Server Error | ||
-- 0x02 = Different Worlds | ||
-- 0x03 = Rookgaard | ||
-- 0x04 = Didnt pay the rent | ||
-- 0x05 = Premium Account | ||
-- 0x06 = Guildhall error | ||
-- 0x07 = One bid per account | ||
-- 0x08 = House not auctioned | ||
-- 0x09 = Auction already ended | ||
-- 0x0A = Bid higher than highest | ||
-- 0x0B = Already have a bid opened | ||
-- 0x0C = Account house limit | ||
-- 0x0D = World house limit | ||
-- 0x0E = Account guildhall limit | ||
-- 0x0F = Account guildhall limit | ||
-- 0x10 = Bid site while player online | ||
-- 0x11 = Doesnt have enough money | ||
-- 0x12 = Bid while transfer | ||
-- 0x13 = Account is frozen | ||
-- 0x14 = Renovation | ||
-- 0x15 = Guild doesnt have enough money | ||
-- 0x16 = Wait for house transfer | ||
-- 0x17 = Char on baazar | ||
-- 0x18 = Internal error | ||
|
||
----- Header bytes ----- | ||
-- 0x01, 0x00 = Bid Successful | ||
----- Body bytes ----- | ||
-- 0x00 = Holding highest bid | ||
-- 0x01 = Not holding highest bid | ||
|
||
----- Header bytes ----- | ||
-- 0x02 = Move out | ||
-- 0x03 = Transfer | ||
-- 0x04 = Cancel move out | ||
-- 0x05 = Cancel transfer | ||
----- Body bytes ----- | ||
-- 0x00 = Initiate | ||
-- 0x01 = Incorrect Password | ||
-- 0x02 = Not the owner | ||
-- 0x03 = Guildhall not the leader | ||
-- 0x04 = Character does not exist | ||
-- 0x05 = Different World | ||
-- 0x06 = Cannot rent | ||
-- 0x07 = Not premium account | ||
-- 0x08 = Guildhall transfer to leader | ||
-- 0x09 = Guildhall limit (1) | ||
-- 0x0A = | ||
-- 0x0B = | ||
-- 0x0C = | ||
-- 0x0D = | ||
-- 0x0E = | ||
-- 0x0F = | ||
-- 0x10 = Transfer Rookgaard | ||
-- 0x11 = Date in the past | ||
-- 0x12 = Within 30 days | ||
-- 0x13 = Already own this house | ||
-- 0x14 = Guildhall transfer to resigning leader | ||
-- 0x15 = Internal error | ||
-- 0x16 = Processing delete | ||
-- 0x17 = Rule violation | ||
-- 0x18 = Frozen account | ||
-- 0x19 = Transfer one house at time | ||
-- 0x20 = Internal error | ||
|
||
----- Header bytes ----- | ||
-- 0x06 = Accept transfer | ||
----- Body bytes ----- | ||
-- 0x00 = Success | ||
-- 0x01 = Incorrect Password | ||
-- 0x02 = Not new owner | ||
-- 0x03 = Already a bid | ||
-- 0x04 = Two transfer | ||
-- 0x05 = Not the leader | ||
-- 0x06 = Banished | ||
-- 0x07 = Already accepted | ||
-- 0x08 = Character in Rookgaard | ||
-- 0x09 = Not premium account | ||
-- 0x0A = | ||
-- 0x0B = | ||
-- 0x0C = | ||
-- 0x0D = | ||
-- 0x0E = | ||
-- 0x0F = | ||
-- 0x10 = Renovation | ||
-- 0x11 = Rule violation | ||
-- 0x12 = Char on baazar | ||
-- 0x13 = Internal error | ||
|
||
----- Header bytes ----- | ||
-- 0x07 = Reject transfer | ||
----- Body bytes ----- | ||
-- 0x00 = Success |