From 78752307faa10446be0126f523e87ca84c891487 Mon Sep 17 00:00:00 2001 From: John Cote Date: Sun, 17 Nov 2019 17:10:47 -0500 Subject: [PATCH] etc: fix dc files --- etc/otp.dc | 19 ++++++++++--------- etc/toon.dc | 5 +++-- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/etc/otp.dc b/etc/otp.dc index f856f68..aed8554 100755 --- a/etc/otp.dc +++ b/etc/otp.dc @@ -220,7 +220,7 @@ dclass AvatarHandle : TalkPath_whisper { dclass DistributedAvatar : DistributedSmoothNode, TalkPath_owner, TalkPath_whisper { string DcObjectType db; - setName(string) required broadcast db airecv; + setName(string = "Avatar") required broadcast db airecv; friendsNotify(int32, int8) ownrecv airecv clsend; checkAvOnShard(uint32) clsend airecv; confirmAvOnShard(uint32, int8); @@ -233,7 +233,7 @@ struct FriendEntry { dclass DistributedPlayer : DistributedAvatar { arrivedOnDistrict(uint32) ownrecv ram; - setAccountName(string) required ownrecv db; + setAccountName(string = "") required ownrecv db; setWhisperFrom(uint32, string(0-256), uint32) ownrecv clsend; setWhisperWLFrom(uint32, string(0-256), uint32) ownrecv clsend; setWhisperSCFrom(uint32, uint16) ownrecv clsend; @@ -244,15 +244,15 @@ dclass DistributedPlayer : DistributedAvatar { setWhitelistChatFlags(uint8) broadcast ownrecv ram airecv; setSC(uint16) broadcast ownsend airecv; setSCCustom(uint16) broadcast ownsend airecv; - setFriendsList(FriendEntry[]) ownrecv required db airecv; + setFriendsList(FriendEntry[] = []) ownrecv required db airecv; setDISLname(string) broadcast ownrecv ram; - setDISLid(uint32) broadcast ownrecv ram db airecv required; + setDISLid(uint32 = 0) broadcast ownrecv ram db airecv required; OwningAccount(uint32); - WishName(string) db ram; - WishNameState(string) db ram; - setPreviousAccess(uint8) required db airecv; - setAccess(uint8) broadcast ownrecv required ram airecv; - setAsGM(bool) required ram broadcast ownrecv airecv; + WishName(string = "") db ram; + WishNameState(string = "LOCKED") db ram; + setPreviousAccess(uint8 = 0) required db airecv; + setAccess(uint8 = 2) broadcast ownrecv required ram airecv; + setAsGM(bool = 0) required ram broadcast ownrecv airecv; }; dclass MagicWordManager : DistributedObject { @@ -545,3 +545,4 @@ dclass AstronLoginManager : DistributedObject { requestRemoveAvatar(uint32) clsend; requestPlayAvatar(uint32) clsend; }; + diff --git a/etc/toon.dc b/etc/toon.dc index df18e0b..7f2de10 100755 --- a/etc/toon.dc +++ b/etc/toon.dc @@ -456,7 +456,7 @@ dclass DistributedToon : DistributedPlayer { setMaxCarry(uint8 = 20) required ownrecv db; setTrackAccess(uint16[] = [0, 0, 0, 0, 1, 1, 0]) required broadcast ownrecv db; setTrackProgress(int8 = -1, uint32 = 0) required ownrecv db; - setTrackBonusLevel(int8[] = [-1 * 7]) required broadcast ownrecv db; + setTrackBonusLevel(int8[] = [-1, -1, -1, -1, -1, -1, -1]) required broadcast ownrecv db; setInventory(blob = [0 * 7, 0 * 7, 0 * 7, 0 * 7, 1, 0 * 6, 1, 0 * 6, 0 * 7]) required ownrecv db; setMaxNPCFriends(uint16 = 16) required ownrecv db; setNPCFriendsDict(FriendEntry[]) required ownrecv db; @@ -486,7 +486,7 @@ dclass DistributedToon : DistributedPlayer { setTunnelOut(int16, int16/10, int16/10, int16/10, int16/10, int16/100, int32/100) ownsend broadcast; setAnimState(char [0-1024], int16/1000, int16) broadcast ram ownsend airecv; setEmoteState(int16, int16/1000, int16) broadcast ram ownsend; - setEmoteAccess(uint8[] = [1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]) required ownrecv db; + setEmoteAccess(uint8[] = [1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]) required ownrecv db; setCustomMessages(uint16[] = []) required ownrecv db; setSleepAutoReply(uint32) broadcast clsend ownrecv; setResistanceMessages(pair16 [] = []) required ownrecv db; @@ -3269,3 +3269,4 @@ dclass DistributedTrashcanZeroMgr : DistributedPhaseEventMgr { dclass DistributedSillyMeterMgr : DistributedPhaseEventMgr { }; +