C# Class SagaMap.MapClient

Afficher le fichier Open project: Willyham/SagaRO2 Class Usage Examples

Méthodes publiques

Свойство Type Description
Char SagaDB.Actors.ActorPC
Party Party.Party
Pc PC
RewardChoice List
RewardFunc Delegate
TradeItems byte>.Dictionary
TradeMoney int
initialized bool
lastHeartbeat long
map Map
state SESSION_STATE

Méthodes publiques

Méthode Description
CheckWeaponEXP ( ) : void
Disconnect ( ) : void
MapClient ( Socket mSock, Packet>.Dictionary mCommandTable, uint session ) : System
MapClient ( uint session ) : System
OnCorpseCleared ( Packets p ) : void
OnDeleteItem ( SagaMap p ) : void
OnDisconnect ( ) : void
OnDiveDown ( ) : void

The character is going underwater, activate the oxygen task.

OnDiveUp ( ) : void
OnDropSelect ( SagaMap p ) : void
OnGetAttribute ( SagaMap p ) : void
OnGetCancel ( SagaMap p ) : void
OnGetHateInfo ( SagaMap p ) : void
OnHeartbeat ( Packets p ) : void
OnItemToggle ( SagaMap p ) : void
OnJobChange ( Packets p ) : void

Call the job change method from the PC class. Pc.OnJobChange

OnJobChangeCosts ( SagaMap p ) : void
OnLeaveNPC ( Packets p ) : void
OnLogout ( SagaMap p ) : void
OnMarketBuyItem ( Packets p ) : void
OnMarketDeleteItem ( Packets p ) : void
OnMarketGetComment ( Packets p ) : void
OnMarketGetMessage ( Packets p ) : void
OnMarketOwnItem ( Packets p ) : void
OnMarketRegister ( Packets p ) : void
OnMarketSearch ( Packets p ) : void
OnMarketUpdateComment ( Packets p ) : void
OnMoveItem ( SagaMap p ) : void
OnMoveWeapon ( SagaMap p ) : void
OnNPCChat ( Npc npc ) : void
OnNPCChat ( Packets p ) : void
OnNPCDropList ( SagaMap p ) : void
OnNPCMenu ( Packets p ) : void
OnNPCShopBuy ( SagaMap p ) : void
OnNPCShopSell ( SagaMap p ) : void
OnPartyAccept ( SagaMap p ) : void
OnPartyInvite ( SagaMap p ) : void

Will be called if a player sends a party invite packet

OnPartyInviteCancel ( SagaMap p ) : void
OnPartyKick ( SagaMap p ) : void
OnPartyMode ( SagaMap p ) : void
OnPartyQuit ( SagaMap p ) : void
OnPersonalRequest ( Packets p ) : void
OnQuestCompleted ( Packets p ) : void
OnQuestConfirm ( Packets p ) : void
OnQuestConfirmCancel ( Packets p ) : void
OnQuestRewardChoice ( Packets p ) : void
OnRemoveSpecialSkill ( Packets p ) : void
OnRepaireEquip ( Packets p ) : void
OnSelectButton ( SagaMap p ) : void
OnSendChangeState ( SagaMap p ) : void

Update the state of the client and send to all other actors

OnSendChat ( SagaMap p ) : void

Receive the chat from the client, check if its an AtCommand (GM command). Send the output to all the clients in the area.

OnSendDemandMapID ( SagaMap p ) : void

Receive the packet from the client that demands for the mapid.

OnSendFall ( Packets p ) : void

Receive the fall from the client. Damage the client for an 8th of the units fallen? Send the client the result of the fall.

OnSendGUID ( SagaMap p ) : void
OnSendHomePoint ( SagaMap p ) : void

If the client is dead, send back to the home point. If the type is 1, send back to a save point at the Cattleya's co=ords. Remove some durability from the items as a dying penalty.

OnSendIdentity ( SagaMap p ) : void

Receive the identity of the client.

OnSendJump ( SagaMap p ) : void

Receive the client jumping. If the client was sitting, remove the Regeneration bonus. Broardcast the jump to all actors.

OnSendKey ( SagaMap p ) : void
OnSendMapLoaded ( SagaMap p ) : void

Get a packet from the client indicated it's done loading.

OnSendMoveStart ( SagaMap p ) : void

Receive the movement vector from the client. Standard running speed is 500, or 250 for running backwards.

OnSendMoveStop ( SagaMap p ) : void

Receive the signal that a character stopped moving.

OnSendUsePortal ( SagaMap p ) : void

Receive a portal usage from the client, check the portal in the PortalManager Raise a warning if the portal isn't found. PortalManager.GetPortal

OnSendWhisper ( SagaMap p ) : void

Receive the whisper from the client. Check if the recipient is online from the MapClientManager Send a whisper to the other player.

OnSendYaw ( SagaMap p ) : void

Receive the yaw from the client when the user rotates the screen. Should be used to calculate the direction to the monster for attacking

OnSetSpecialSkill ( Packets p ) : void
OnSkillAddSpecial ( SagaMap p ) : void
OnSkillCast ( Packets p ) : void
OnSkillCastCancel ( Packets p ) : void
OnSkillToggle ( Packets p ) : void
OnSortInvList ( SagaMap p ) : void
OnStatUpdate ( SagaMap p ) : void

Receive the stat update from the client. The input is checked in the PC class to make sure the client doesn't try and add points they don't have. Send all the updates to the client. Pc.OnStatUpdate

OnSupplyExchange ( Packets p ) : void
OnSupplySelect ( Packets p ) : void
OnTrade ( SagaMap p ) : void
OnTradeCancel ( SagaMap p ) : void
OnTradeConfirm ( SagaMap p ) : void
OnTradeItem ( SagaMap p ) : void
OnTradeListConfirm ( SagaMap p ) : void
OnTradeMoney ( SagaMap p ) : void
OnTradeOther ( SagaMap p ) : void
OnUseDye ( SagaMap p ) : void
OnUseMap ( Packets p ) : void
OnUseOffensiveSkill ( Packets p ) : void
OnUsePromiseStone ( byte map, float x, float y, float z ) : void
OnWantQuestGroupList ( SagaMap p ) : void

07 01 Receive the quest group list from the client.

OnWantSetSpeciality ( Packets p ) : void
OnWarp ( Packets p ) : void
OnWeaponAuge ( SagaMap p ) : void
OnWeaponSwitch ( SagaMap p ) : void
OnWeaponUpgrade ( Packets p ) : void
OxygenTakeDamage ( ) : void

When oxygen runs out, damage the char for 10% of health per second.

RequestHeartbeat ( ) : void
ResetTradeItems ( byte type ) : void
ResetTradeStatus ( byte type ) : void
SendBattleStatus ( ) : void

Update the Battle Status in client's equipment window

SendCharStatus ( ushort visiblefield ) : void

Send all the status to the client. Send: Job, EXP, HP/SP, LC/LP and basic info on all other party members

SendEquipList ( ) : void

Get a list of the equipment (which is equiped, not just the items).

SendExtStats ( ) : void

Send the stats to the client TODO: Add stat bonuses for jobs.

SendInventoryList ( ) : void

Get a list of the inventory items and send it to the client.

SendMaxInvSlots ( ) : void

Send invetory slot count. Default value 254

SendMessage ( string from, string text ) : void

Send a message to the client

SendMessage ( string from, string text, Packets type ) : void

Send a message to the client

SendPartyInviteResult ( Packets result ) : void
SendQuestInfo ( ) : void

Send the Quest information of a client

SendShortcutsList ( ) : void

Send a shortcut list to the client aka 'Quick Page'.

SendSkillEffect ( uint addition, SkillEffects effect, uint amount ) : void
SendSkillList ( ) : void

Send the skill list to the client. Skills sorted by Battle, Living and Special.

SendTradeResult ( TradeResults result ) : void
SendTradeStatus ( uint targetid, TradeResults status ) : void
SendTradeStatusOther ( uint targetid, TradeResults status ) : void
SendWeaponList ( ) : void

Send a list of weapons currently in use

SendZeny ( ) : void

Update the Zeny of the client. One value for Zeny and Rufi. '12000' = 1 Zeni 2000 Rufi.

ToString ( ) : string
UpdateSkillEXP ( uint id, uint exp ) : void

Add EXP to a skill and update the client.

UpdateWeaponInfo ( Packets type, uint value ) : void

Make an update to the weapon

Private Methods

Méthode Description
CheckMarketItemValid ( List list ) : void

check if a marketplace item is still valid

Method Details

CheckWeaponEXP() public méthode

public CheckWeaponEXP ( ) : void
Résultat void

Disconnect() public méthode

public Disconnect ( ) : void
Résultat void

MapClient() public méthode

public MapClient ( Socket mSock, Packet>.Dictionary mCommandTable, uint session ) : System
mSock Socket
mCommandTable Packet>.Dictionary
session uint
Résultat System

MapClient() public méthode

public MapClient ( uint session ) : System
session uint
Résultat System

OnCorpseCleared() public méthode

public OnCorpseCleared ( Packets p ) : void
p Packets
Résultat void

OnDeleteItem() public méthode

public OnDeleteItem ( SagaMap p ) : void
p SagaMap
Résultat void

OnDisconnect() public méthode

public OnDisconnect ( ) : void
Résultat void

OnDiveDown() public méthode

The character is going underwater, activate the oxygen task.
public OnDiveDown ( ) : void
Résultat void

OnDiveUp() public méthode

public OnDiveUp ( ) : void
Résultat void

OnDropSelect() public méthode

public OnDropSelect ( SagaMap p ) : void
p SagaMap
Résultat void

OnGetAttribute() public méthode

public OnGetAttribute ( SagaMap p ) : void
p SagaMap
Résultat void

OnGetCancel() public méthode

public OnGetCancel ( SagaMap p ) : void
p SagaMap
Résultat void

OnGetHateInfo() public méthode

public OnGetHateInfo ( SagaMap p ) : void
p SagaMap
Résultat void

OnHeartbeat() public méthode

public OnHeartbeat ( Packets p ) : void
p Packets
Résultat void

OnItemToggle() public méthode

public OnItemToggle ( SagaMap p ) : void
p SagaMap
Résultat void

OnJobChange() public méthode

Call the job change method from the PC class. Pc.OnJobChange
public OnJobChange ( Packets p ) : void
p Packets
Résultat void

OnJobChangeCosts() public méthode

public OnJobChangeCosts ( SagaMap p ) : void
p SagaMap
Résultat void

OnLeaveNPC() public méthode

public OnLeaveNPC ( Packets p ) : void
p Packets
Résultat void

OnLogout() public méthode

public OnLogout ( SagaMap p ) : void
p SagaMap
Résultat void

OnMarketBuyItem() public méthode

public OnMarketBuyItem ( Packets p ) : void
p Packets
Résultat void

OnMarketDeleteItem() public méthode

public OnMarketDeleteItem ( Packets p ) : void
p Packets
Résultat void

OnMarketGetComment() public méthode

public OnMarketGetComment ( Packets p ) : void
p Packets
Résultat void

OnMarketGetMessage() public méthode

public OnMarketGetMessage ( Packets p ) : void
p Packets
Résultat void

OnMarketOwnItem() public méthode

public OnMarketOwnItem ( Packets p ) : void
p Packets
Résultat void

OnMarketRegister() public méthode

public OnMarketRegister ( Packets p ) : void
p Packets
Résultat void

OnMarketSearch() public méthode

public OnMarketSearch ( Packets p ) : void
p Packets
Résultat void

OnMarketUpdateComment() public méthode

public OnMarketUpdateComment ( Packets p ) : void
p Packets
Résultat void

OnMoveItem() public méthode

public OnMoveItem ( SagaMap p ) : void
p SagaMap
Résultat void

OnMoveWeapon() public méthode

public OnMoveWeapon ( SagaMap p ) : void
p SagaMap
Résultat void

OnNPCChat() public méthode

public OnNPCChat ( Npc npc ) : void
npc Npc
Résultat void

OnNPCChat() public méthode

public OnNPCChat ( Packets p ) : void
p Packets
Résultat void

OnNPCDropList() public méthode

public OnNPCDropList ( SagaMap p ) : void
p SagaMap
Résultat void

OnNPCMenu() public méthode

public OnNPCMenu ( Packets p ) : void
p Packets
Résultat void

OnNPCShopBuy() public méthode

public OnNPCShopBuy ( SagaMap p ) : void
p SagaMap
Résultat void

OnNPCShopSell() public méthode

public OnNPCShopSell ( SagaMap p ) : void
p SagaMap
Résultat void

OnPartyAccept() public méthode

public OnPartyAccept ( SagaMap p ) : void
p SagaMap
Résultat void

OnPartyInvite() public méthode

Will be called if a player sends a party invite packet
public OnPartyInvite ( SagaMap p ) : void
p SagaMap packet instance containing the to be invited player's name
Résultat void

OnPartyInviteCancel() public méthode

public OnPartyInviteCancel ( SagaMap p ) : void
p SagaMap
Résultat void

OnPartyKick() public méthode

public OnPartyKick ( SagaMap p ) : void
p SagaMap
Résultat void

OnPartyMode() public méthode

public OnPartyMode ( SagaMap p ) : void
p SagaMap
Résultat void

OnPartyQuit() public méthode

public OnPartyQuit ( SagaMap p ) : void
p SagaMap
Résultat void

OnPersonalRequest() public méthode

public OnPersonalRequest ( Packets p ) : void
p Packets
Résultat void

OnQuestCompleted() public méthode

public OnQuestCompleted ( Packets p ) : void
p Packets
Résultat void

OnQuestConfirm() public méthode

public OnQuestConfirm ( Packets p ) : void
p Packets
Résultat void

OnQuestConfirmCancel() public méthode

public OnQuestConfirmCancel ( Packets p ) : void
p Packets
Résultat void

OnQuestRewardChoice() public méthode

public OnQuestRewardChoice ( Packets p ) : void
p Packets
Résultat void

OnRemoveSpecialSkill() public méthode

public OnRemoveSpecialSkill ( Packets p ) : void
p Packets
Résultat void

OnRepaireEquip() public méthode

public OnRepaireEquip ( Packets p ) : void
p Packets
Résultat void

OnSelectButton() public méthode

public OnSelectButton ( SagaMap p ) : void
p SagaMap
Résultat void

OnSendChangeState() public méthode

Update the state of the client and send to all other actors
public OnSendChangeState ( SagaMap p ) : void
p SagaMap
Résultat void

OnSendChat() public méthode

Receive the chat from the client, check if its an AtCommand (GM command). Send the output to all the clients in the area.
public OnSendChat ( SagaMap p ) : void
p SagaMap
Résultat void

OnSendDemandMapID() public méthode

Receive the packet from the client that demands for the mapid.
public OnSendDemandMapID ( SagaMap p ) : void
p SagaMap
Résultat void

OnSendFall() public méthode

Receive the fall from the client. Damage the client for an 8th of the units fallen? Send the client the result of the fall.
public OnSendFall ( Packets p ) : void
p Packets
Résultat void

OnSendGUID() public méthode

public OnSendGUID ( SagaMap p ) : void
p SagaMap
Résultat void

OnSendHomePoint() public méthode

If the client is dead, send back to the home point. If the type is 1, send back to a save point at the Cattleya's co=ords. Remove some durability from the items as a dying penalty.
public OnSendHomePoint ( SagaMap p ) : void
p SagaMap
Résultat void

OnSendIdentity() public méthode

Receive the identity of the client.
public OnSendIdentity ( SagaMap p ) : void
p SagaMap
Résultat void

OnSendJump() public méthode

Receive the client jumping. If the client was sitting, remove the Regeneration bonus. Broardcast the jump to all actors.
public OnSendJump ( SagaMap p ) : void
p SagaMap
Résultat void

OnSendKey() public méthode

public OnSendKey ( SagaMap p ) : void
p SagaMap
Résultat void

OnSendMapLoaded() public méthode

Get a packet from the client indicated it's done loading.
public OnSendMapLoaded ( SagaMap p ) : void
p SagaMap
Résultat void

OnSendMoveStart() public méthode

Receive the movement vector from the client. Standard running speed is 500, or 250 for running backwards.
public OnSendMoveStart ( SagaMap p ) : void
p SagaMap
Résultat void

OnSendMoveStop() public méthode

Receive the signal that a character stopped moving.
public OnSendMoveStop ( SagaMap p ) : void
p SagaMap
Résultat void

OnSendUsePortal() public méthode

Receive a portal usage from the client, check the portal in the PortalManager Raise a warning if the portal isn't found. PortalManager.GetPortal
public OnSendUsePortal ( SagaMap p ) : void
p SagaMap
Résultat void

OnSendWhisper() public méthode

Receive the whisper from the client. Check if the recipient is online from the MapClientManager Send a whisper to the other player.
public OnSendWhisper ( SagaMap p ) : void
p SagaMap
Résultat void

OnSendYaw() public méthode

Receive the yaw from the client when the user rotates the screen. Should be used to calculate the direction to the monster for attacking
public OnSendYaw ( SagaMap p ) : void
p SagaMap
Résultat void

OnSetSpecialSkill() public méthode

public OnSetSpecialSkill ( Packets p ) : void
p Packets
Résultat void

OnSkillAddSpecial() public méthode

public OnSkillAddSpecial ( SagaMap p ) : void
p SagaMap
Résultat void

OnSkillCast() public méthode

public OnSkillCast ( Packets p ) : void
p Packets
Résultat void

OnSkillCastCancel() public méthode

public OnSkillCastCancel ( Packets p ) : void
p Packets
Résultat void

OnSkillToggle() public méthode

public OnSkillToggle ( Packets p ) : void
p Packets
Résultat void

OnSortInvList() public méthode

public OnSortInvList ( SagaMap p ) : void
p SagaMap
Résultat void

OnStatUpdate() public méthode

Receive the stat update from the client. The input is checked in the PC class to make sure the client doesn't try and add points they don't have. Send all the updates to the client. Pc.OnStatUpdate
public OnStatUpdate ( SagaMap p ) : void
p SagaMap
Résultat void

OnSupplyExchange() public méthode

public OnSupplyExchange ( Packets p ) : void
p Packets
Résultat void

OnSupplySelect() public méthode

public OnSupplySelect ( Packets p ) : void
p Packets
Résultat void

OnTrade() public méthode

public OnTrade ( SagaMap p ) : void
p SagaMap
Résultat void

OnTradeCancel() public méthode

public OnTradeCancel ( SagaMap p ) : void
p SagaMap
Résultat void

OnTradeConfirm() public méthode

public OnTradeConfirm ( SagaMap p ) : void
p SagaMap
Résultat void

OnTradeItem() public méthode

public OnTradeItem ( SagaMap p ) : void
p SagaMap
Résultat void

OnTradeListConfirm() public méthode

public OnTradeListConfirm ( SagaMap p ) : void
p SagaMap
Résultat void

OnTradeMoney() public méthode

public OnTradeMoney ( SagaMap p ) : void
p SagaMap
Résultat void

OnTradeOther() public méthode

public OnTradeOther ( SagaMap p ) : void
p SagaMap
Résultat void

OnUseDye() public méthode

public OnUseDye ( SagaMap p ) : void
p SagaMap
Résultat void

OnUseMap() public méthode

public OnUseMap ( Packets p ) : void
p Packets
Résultat void

OnUseOffensiveSkill() public méthode

public OnUseOffensiveSkill ( Packets p ) : void
p Packets
Résultat void

OnUsePromiseStone() public méthode

public OnUsePromiseStone ( byte map, float x, float y, float z ) : void
map byte
x float
y float
z float
Résultat void

OnWantQuestGroupList() public méthode

07 01 Receive the quest group list from the client.
public OnWantQuestGroupList ( SagaMap p ) : void
p SagaMap
Résultat void

OnWantSetSpeciality() public méthode

public OnWantSetSpeciality ( Packets p ) : void
p Packets
Résultat void

OnWarp() public méthode

public OnWarp ( Packets p ) : void
p Packets
Résultat void

OnWeaponAuge() public méthode

public OnWeaponAuge ( SagaMap p ) : void
p SagaMap
Résultat void

OnWeaponSwitch() public méthode

public OnWeaponSwitch ( SagaMap p ) : void
p SagaMap
Résultat void

OnWeaponUpgrade() public méthode

public OnWeaponUpgrade ( Packets p ) : void
p Packets
Résultat void

OxygenTakeDamage() public méthode

When oxygen runs out, damage the char for 10% of health per second.
public OxygenTakeDamage ( ) : void
Résultat void

RequestHeartbeat() public méthode

public RequestHeartbeat ( ) : void
Résultat void

ResetTradeItems() public méthode

public ResetTradeItems ( byte type ) : void
type byte
Résultat void

ResetTradeStatus() public méthode

public ResetTradeStatus ( byte type ) : void
type byte
Résultat void

SendBattleStatus() public méthode

Update the Battle Status in client's equipment window
public SendBattleStatus ( ) : void
Résultat void

SendCharStatus() public méthode

Send all the status to the client. Send: Job, EXP, HP/SP, LC/LP and basic info on all other party members
public SendCharStatus ( ushort visiblefield ) : void
visiblefield ushort 0 for none, 4 for jexp, 32 for cexp, 36 for both
Résultat void

SendEquipList() public méthode

Get a list of the equipment (which is equiped, not just the items).
public SendEquipList ( ) : void
Résultat void

SendExtStats() public méthode

Send the stats to the client TODO: Add stat bonuses for jobs.
public SendExtStats ( ) : void
Résultat void

SendInventoryList() public méthode

Get a list of the inventory items and send it to the client.
public SendInventoryList ( ) : void
Résultat void

SendMaxInvSlots() public méthode

Send invetory slot count. Default value 254
public SendMaxInvSlots ( ) : void
Résultat void

SendMessage() public méthode

Send a message to the client
public SendMessage ( string from, string text ) : void
from string Who to display the message from
text string The text to send to the client
Résultat void

SendMessage() public méthode

Send a message to the client
public SendMessage ( string from, string text, Packets type ) : void
from string Who to display the message from
text string The text to send to the client
type Packets Type: NORMAL, PARTY, YELL, SYSTEM_MESSAGE, CHANEL, SYSTEM_MESSAGE_RED
Résultat void

SendPartyInviteResult() public méthode

public SendPartyInviteResult ( Packets result ) : void
result Packets
Résultat void

SendQuestInfo() public méthode

Send the Quest information of a client
public SendQuestInfo ( ) : void
Résultat void

SendShortcutsList() public méthode

Send a shortcut list to the client aka 'Quick Page'.
public SendShortcutsList ( ) : void
Résultat void

SendSkillEffect() public méthode

public SendSkillEffect ( uint addition, SkillEffects effect, uint amount ) : void
addition uint
effect SkillEffects
amount uint
Résultat void

SendSkillList() public méthode

Send the skill list to the client. Skills sorted by Battle, Living and Special.
public SendSkillList ( ) : void
Résultat void

SendTradeResult() public méthode

public SendTradeResult ( TradeResults result ) : void
result TradeResults
Résultat void

SendTradeStatus() public méthode

public SendTradeStatus ( uint targetid, TradeResults status ) : void
targetid uint
status TradeResults
Résultat void

SendTradeStatusOther() public méthode

public SendTradeStatusOther ( uint targetid, TradeResults status ) : void
targetid uint
status TradeResults
Résultat void

SendWeaponList() public méthode

Send a list of weapons currently in use
public SendWeaponList ( ) : void
Résultat void

SendZeny() public méthode

Update the Zeny of the client. One value for Zeny and Rufi. '12000' = 1 Zeni 2000 Rufi.
public SendZeny ( ) : void
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

UpdateSkillEXP() public méthode

Add EXP to a skill and update the client.
public UpdateSkillEXP ( uint id, uint exp ) : void
id uint Skill Id to update
exp uint Ammount of EXP
Résultat void

UpdateWeaponInfo() public méthode

Make an update to the weapon
public UpdateWeaponInfo ( Packets type, uint value ) : void
type Packets Level, EXP, Durability
value uint value to add
Résultat void

Property Details

Char public_oe property

The ActorPC associated with this session.
public ActorPC,SagaDB.Actors Char
Résultat SagaDB.Actors.ActorPC

Party public_oe property

public Party.Party Party
Résultat Party.Party

Pc public_oe property

public PC Pc
Résultat PC

RewardChoice public_oe property

public List RewardChoice
Résultat List

RewardFunc public_oe property

public Delegate RewardFunc
Résultat Delegate

TradeItems public_oe property

public Dictionary TradeItems
Résultat byte>.Dictionary

TradeMoney public_oe property

public int TradeMoney
Résultat int

initialized public_oe property

public bool initialized
Résultat bool

lastHeartbeat public_oe property

The time of the last heartbeat answer from the client.
public long lastHeartbeat
Résultat long

map public_oe property

The Map associated with this session.
public Map map
Résultat Map

state public_oe property

public SESSION_STATE state
Résultat SESSION_STATE