C# Class OpenNos.GameObject.Character

Inheritance: OpenNos.Data.CharacterDTO, IGameObject
显示文件 Open project: OpenNos/OpenNos Class Usage Examples

Public Methods

Method Description
AddBlacklisted ( long characterId ) : void
AddFriend ( long characterId ) : void
ChangeClass ( ClassType characterClass ) : void
ChangeSex ( ) : void
Character ( ) : System
CharacterLife ( ) : void
CloseExchangeOrTrade ( ) : void
CloseShop ( bool closedByCharacter = false ) : void
Dance ( ) : void
DeepCopy ( ) : Character
DeleteBlacklisted ( long characterId ) : void
DeleteFriend ( long characterId ) : void
DeleteItem ( InventoryType type, short slot ) : void
DeleteItemByItemInstanceId ( System.Guid id ) : void
DeleteTimeout ( ) : void
Dispose ( ) : void

Make the character moveable also from Teleport, ..

GenerateAt ( ) : string
GenerateBlinit ( ) : string
GenerateCInfo ( ) : string
GenerateCMap ( ) : string
GenerateCMode ( ) : string
GenerateCond ( ) : string
GenerateDamage ( MapMonster monsterToAttack, Skill skill, int &hitmode ) : ushort
GenerateDelay ( int delay, int type, string argument ) : string
GenerateDialog ( string dialog ) : string
GenerateDignity ( NpcMonster monsterinfo ) : void
GenerateDir ( ) : string
GenerateDroppedItem ( ) : List
GenerateEInfo ( WearableInstance item ) : string
GenerateEff ( int effectid, byte effecttype = 1 ) : EffectPacket
GenerateEq ( ) : string
GenerateEqListForPacket ( ) : string
GenerateEqRareUpgradeForPacket ( ) : string
GenerateEquipment ( ) : string
GenerateExts ( ) : string
GenerateFaction ( ) : string
GenerateFamilyMember ( Group group ) : string
GenerateFd ( ) : string
GenerateFinfo ( ) : string
GenerateFinit ( ) : string
GenerateGender ( ) : string
GenerateGet ( long id ) : string
GenerateGold ( ) : string
GenerateGp ( ) : List
GenerateGp ( PortalDTO portal ) : string
GenerateGuri ( byte type, byte argument, int value ) : string
GenerateIn ( ) : string
GenerateIn2 ( ) : List
GenerateIn3 ( ) : List
GenerateInbox ( byte type, byte value ) : string
GenerateInfo ( string message ) : string
GenerateInventoryAdd ( short vnum, int amount, InventoryType type, short slot, sbyte rare, short color, byte upgrade, byte upgrade2 ) : string
GenerateInvisible ( ) : string
GenerateKillBonus ( MapMonster monsterToAttack ) : void
GenerateLev ( ) : string
GenerateMapOut ( ) : string
GenerateModal ( string message, int type ) : string
GenerateMsg ( string message, int type ) : string
GenerateMv ( ) : MovePacket
GenerateNPCShopOnMap ( ) : List
GenerateOut ( ) : string
GeneratePairy ( ) : string
GenerateParcel ( MailDTO mail ) : string
GeneratePidx ( bool isLeaveGroup = false ) : string
GeneratePinit ( ) : string
GeneratePlayerFlag ( long pflag ) : string
GeneratePlayerShopOnMap ( ) : List
GeneratePost ( MailDTO mail, byte type ) : string
GeneratePostMessage ( MailDTO mailDTO, byte type ) : string
GeneratePslInfo ( SpecialistInstance inventoryItem, int type ) : string
GenerateQuicklist ( ) : string[]
GenerateRc ( int characterHealth ) : string
GenerateReqInfo ( ) : string
GenerateRest ( ) : string
GenerateRevive ( ) : string
GenerateRp ( int mapid, int x, int y, string parametter ) : string
GenerateSay ( string message, int type ) : string
GenerateScal ( ) : string
GenerateShop ( string shopname ) : string
GenerateShopEnd ( ) : string
GenerateShopMemo ( int type, string message ) : string
GenerateShopOnMap ( ) : IEnumerable
GenerateSki ( ) : string
GenerateSlInfo ( SpecialistInstance inventoryItem, int type ) : string
GenerateSpPoint ( ) : string
GenerateSpk ( object message, int v ) : string
GenerateStat ( ) : string
GenerateStatInfo ( ) : string
GenerateTit ( ) : string
GenerateTp ( ) : string
GenerateVb ( ) : string[]
GenerateXp ( NpcMonster monsterinfo, bool isMonsterOwner ) : void
GetCP ( ) : int
GetDamage ( int damage ) : int
GetDignityIco ( ) : int
GetJXP ( NpcMonster monster, Group group ) : int
GetXP ( NpcMonster monster, Group group ) : long
GiftAdd ( short itemVNum, byte amount ) : void
HPLoad ( ) : double
HealthHPLoad ( ) : int
HealthMPLoad ( ) : int
Initialize ( ) : void
IsBlockedByCharacter ( long characterId ) : bool
IsBlockingCharacter ( long characterId ) : bool
IsFriendOfCharacter ( long characterId ) : bool
IsFriendlistFull ( ) : bool
IsInRange ( int xCoordinate, int yCoordinate ) : bool

Checks if the current character is in range of the given position

IsInRange ( int xCoordinate, int yCoordinate, int range ) : bool

Checks if the current character is in range of the given position

IsMuted ( ) : bool
JobXPLoad ( ) : double
LearnAdventurerSkill ( ) : void
LearnSPSkill ( ) : void
LoadInventory ( ) : void
LoadQuicklists ( ) : void
LoadSentMail ( ) : void
LoadSkills ( ) : void
LoadSpeed ( ) : void
MPLoad ( ) : double
NotifyRarifyResult ( sbyte rare ) : void
RefreshMail ( ) : void
RemoveVehicle ( ) : void
Rest ( ) : void
SPXPLoad ( ) : double
Save ( ) : void
SendGift ( long id, short vnum, byte amount, sbyte rare, byte upgrade, bool isNosmall ) : void
SetRespawnPoint ( short mapId, short mapX, short mapY ) : void
SetReturnPoint ( short mapId, short mapX, short mapY ) : void
Update ( ) : bool
WeaponLoaded ( CharacterSkill ski ) : bool
XPLoad ( ) : double

Private Methods

Method Description
GeneratePacket ( string content ) : string
GenerateStartupInventory ( ) : void
GenerateStatChar ( ) : string
GetGold ( MapMonster mapMonster ) : int
GetReputIco ( ) : int
HeroXPLoad ( ) : object
RefreshValidity ( ) : void
SetSession ( ClientSession clientSession ) : void

Method Details

AddBlacklisted() public method

public AddBlacklisted ( long characterId ) : void
characterId long
return void

AddFriend() public method

public AddFriend ( long characterId ) : void
characterId long
return void

ChangeClass() public method

public ChangeClass ( ClassType characterClass ) : void
characterClass ClassType
return void

ChangeSex() public method

public ChangeSex ( ) : void
return void

Character() public method

public Character ( ) : System
return System

CharacterLife() public method

public CharacterLife ( ) : void
return void

CloseExchangeOrTrade() public method

public CloseExchangeOrTrade ( ) : void
return void

CloseShop() public method

public CloseShop ( bool closedByCharacter = false ) : void
closedByCharacter bool
return void

Dance() public method

public Dance ( ) : void
return void

DeepCopy() public method

public DeepCopy ( ) : Character
return Character

DeleteBlacklisted() public method

public DeleteBlacklisted ( long characterId ) : void
characterId long
return void

DeleteFriend() public method

public DeleteFriend ( long characterId ) : void
characterId long
return void

DeleteItem() public method

public DeleteItem ( InventoryType type, short slot ) : void
type InventoryType
slot short
return void

DeleteItemByItemInstanceId() public method

public DeleteItemByItemInstanceId ( System.Guid id ) : void
id System.Guid
return void

DeleteTimeout() public method

public DeleteTimeout ( ) : void
return void

Dispose() public method

Make the character moveable also from Teleport, ..
public Dispose ( ) : void
return void

GenerateAt() public method

public GenerateAt ( ) : string
return string

GenerateBlinit() public method

public GenerateBlinit ( ) : string
return string

GenerateCInfo() public method

public GenerateCInfo ( ) : string
return string

GenerateCMap() public method

public GenerateCMap ( ) : string
return string

GenerateCMode() public method

public GenerateCMode ( ) : string
return string

GenerateCond() public method

public GenerateCond ( ) : string
return string

GenerateDamage() public method

public GenerateDamage ( MapMonster monsterToAttack, Skill skill, int &hitmode ) : ushort
monsterToAttack MapMonster
skill Skill
hitmode int
return ushort

GenerateDelay() public method

public GenerateDelay ( int delay, int type, string argument ) : string
delay int
type int
argument string
return string

GenerateDialog() public method

public GenerateDialog ( string dialog ) : string
dialog string
return string

GenerateDignity() public method

public GenerateDignity ( NpcMonster monsterinfo ) : void
monsterinfo NpcMonster
return void

GenerateDir() public method

public GenerateDir ( ) : string
return string

GenerateDroppedItem() public method

public GenerateDroppedItem ( ) : List
return List

GenerateEInfo() public method

public GenerateEInfo ( WearableInstance item ) : string
item WearableInstance
return string

GenerateEff() public method

public GenerateEff ( int effectid, byte effecttype = 1 ) : EffectPacket
effectid int
effecttype byte
return EffectPacket

GenerateEq() public method

public GenerateEq ( ) : string
return string

GenerateEqListForPacket() public method

public GenerateEqListForPacket ( ) : string
return string

GenerateEqRareUpgradeForPacket() public method

public GenerateEqRareUpgradeForPacket ( ) : string
return string

GenerateEquipment() public method

public GenerateEquipment ( ) : string
return string

GenerateExts() public method

public GenerateExts ( ) : string
return string

GenerateFaction() public method

public GenerateFaction ( ) : string
return string

GenerateFamilyMember() public method

public GenerateFamilyMember ( Group group ) : string
group Group
return string

GenerateFd() public method

public GenerateFd ( ) : string
return string

GenerateFinfo() public method

public GenerateFinfo ( ) : string
return string

GenerateFinit() public method

public GenerateFinit ( ) : string
return string

GenerateGender() public method

public GenerateGender ( ) : string
return string

GenerateGet() public method

public GenerateGet ( long id ) : string
id long
return string

GenerateGold() public method

public GenerateGold ( ) : string
return string

GenerateGp() public method

public GenerateGp ( ) : List
return List

GenerateGp() public method

public GenerateGp ( PortalDTO portal ) : string
portal OpenNos.Data.PortalDTO
return string

GenerateGuri() public method

public GenerateGuri ( byte type, byte argument, int value ) : string
type byte
argument byte
value int
return string

GenerateIn() public method

public GenerateIn ( ) : string
return string

GenerateIn2() public method

public GenerateIn2 ( ) : List
return List

GenerateIn3() public method

public GenerateIn3 ( ) : List
return List

GenerateInbox() public method

public GenerateInbox ( byte type, byte value ) : string
type byte
value byte
return string

GenerateInfo() public method

public GenerateInfo ( string message ) : string
message string
return string

GenerateInventoryAdd() public method

public GenerateInventoryAdd ( short vnum, int amount, InventoryType type, short slot, sbyte rare, short color, byte upgrade, byte upgrade2 ) : string
vnum short
amount int
type InventoryType
slot short
rare sbyte
color short
upgrade byte
upgrade2 byte
return string

GenerateInvisible() public method

public GenerateInvisible ( ) : string
return string

GenerateKillBonus() public method

public GenerateKillBonus ( MapMonster monsterToAttack ) : void
monsterToAttack MapMonster
return void

GenerateLev() public method

public GenerateLev ( ) : string
return string

GenerateMapOut() public method

public GenerateMapOut ( ) : string
return string

GenerateModal() public method

public GenerateModal ( string message, int type ) : string
message string
type int
return string

GenerateMsg() public method

public GenerateMsg ( string message, int type ) : string
message string
type int
return string

GenerateMv() public method

public GenerateMv ( ) : MovePacket
return MovePacket

GenerateNPCShopOnMap() public method

public GenerateNPCShopOnMap ( ) : List
return List

GenerateOut() public method

public GenerateOut ( ) : string
return string

GeneratePairy() public method

public GeneratePairy ( ) : string
return string

GenerateParcel() public method

public GenerateParcel ( MailDTO mail ) : string
mail OpenNos.Data.MailDTO
return string

GeneratePidx() public method

public GeneratePidx ( bool isLeaveGroup = false ) : string
isLeaveGroup bool
return string

GeneratePinit() public method

public GeneratePinit ( ) : string
return string

GeneratePlayerFlag() public method

public GeneratePlayerFlag ( long pflag ) : string
pflag long
return string

GeneratePlayerShopOnMap() public method

public GeneratePlayerShopOnMap ( ) : List
return List

GeneratePost() public method

public GeneratePost ( MailDTO mail, byte type ) : string
mail OpenNos.Data.MailDTO
type byte
return string

GeneratePostMessage() public method

public GeneratePostMessage ( MailDTO mailDTO, byte type ) : string
mailDTO OpenNos.Data.MailDTO
type byte
return string

GeneratePslInfo() public method

public GeneratePslInfo ( SpecialistInstance inventoryItem, int type ) : string
inventoryItem SpecialistInstance
type int
return string

GenerateQuicklist() public method

public GenerateQuicklist ( ) : string[]
return string[]

GenerateRc() public method

public GenerateRc ( int characterHealth ) : string
characterHealth int
return string

GenerateReqInfo() public method

public GenerateReqInfo ( ) : string
return string

GenerateRest() public method

public GenerateRest ( ) : string
return string

GenerateRevive() public method

public GenerateRevive ( ) : string
return string

GenerateRp() public method

public GenerateRp ( int mapid, int x, int y, string parametter ) : string
mapid int
x int
y int
parametter string
return string

GenerateSay() public method

public GenerateSay ( string message, int type ) : string
message string
type int
return string

GenerateScal() public method

public GenerateScal ( ) : string
return string

GenerateShop() public method

public GenerateShop ( string shopname ) : string
shopname string
return string

GenerateShopEnd() public method

public GenerateShopEnd ( ) : string
return string

GenerateShopMemo() public method

public GenerateShopMemo ( int type, string message ) : string
type int
message string
return string

GenerateShopOnMap() public method

public GenerateShopOnMap ( ) : IEnumerable
return IEnumerable

GenerateSki() public method

public GenerateSki ( ) : string
return string

GenerateSlInfo() public method

public GenerateSlInfo ( SpecialistInstance inventoryItem, int type ) : string
inventoryItem SpecialistInstance
type int
return string

GenerateSpPoint() public method

public GenerateSpPoint ( ) : string
return string

GenerateSpk() public method

public GenerateSpk ( object message, int v ) : string
message object
v int
return string

GenerateStat() public method

public GenerateStat ( ) : string
return string

GenerateStatInfo() public method

public GenerateStatInfo ( ) : string
return string

GenerateTit() public method

public GenerateTit ( ) : string
return string

GenerateTp() public method

public GenerateTp ( ) : string
return string

GenerateVb() public method

public GenerateVb ( ) : string[]
return string[]

GenerateXp() public method

public GenerateXp ( NpcMonster monsterinfo, bool isMonsterOwner ) : void
monsterinfo NpcMonster
isMonsterOwner bool
return void

GetCP() public method

public GetCP ( ) : int
return int

GetDamage() public method

public GetDamage ( int damage ) : int
damage int
return int

GetDignityIco() public method

public GetDignityIco ( ) : int
return int

GetJXP() public method

public GetJXP ( NpcMonster monster, Group group ) : int
monster NpcMonster
group Group
return int

GetXP() public method

public GetXP ( NpcMonster monster, Group group ) : long
monster NpcMonster
group Group
return long

GiftAdd() public method

public GiftAdd ( short itemVNum, byte amount ) : void
itemVNum short
amount byte
return void

HPLoad() public method

public HPLoad ( ) : double
return double

HealthHPLoad() public method

public HealthHPLoad ( ) : int
return int

HealthMPLoad() public method

public HealthMPLoad ( ) : int
return int

Initialize() public method

public Initialize ( ) : void
return void

IsBlockedByCharacter() public method

public IsBlockedByCharacter ( long characterId ) : bool
characterId long
return bool

IsBlockingCharacter() public method

public IsBlockingCharacter ( long characterId ) : bool
characterId long
return bool

IsFriendOfCharacter() public method

public IsFriendOfCharacter ( long characterId ) : bool
characterId long
return bool

IsFriendlistFull() public method

public IsFriendlistFull ( ) : bool
return bool

IsInRange() public method

Checks if the current character is in range of the given position
public IsInRange ( int xCoordinate, int yCoordinate ) : bool
xCoordinate int The x coordinate of the object to check.
yCoordinate int The y coordinate of the object to check.
return bool

IsInRange() public method

Checks if the current character is in range of the given position
public IsInRange ( int xCoordinate, int yCoordinate, int range ) : bool
xCoordinate int The x coordinate of the object to check.
yCoordinate int The y coordinate of the object to check.
range int The range of the coordinates to be maximal distanced.
return bool

IsMuted() public method

public IsMuted ( ) : bool
return bool

JobXPLoad() public method

public JobXPLoad ( ) : double
return double

LearnAdventurerSkill() public method

public LearnAdventurerSkill ( ) : void
return void

LearnSPSkill() public method

public LearnSPSkill ( ) : void
return void

LoadInventory() public method

public LoadInventory ( ) : void
return void

LoadQuicklists() public method

public LoadQuicklists ( ) : void
return void

LoadSentMail() public method

public LoadSentMail ( ) : void
return void

LoadSkills() public method

public LoadSkills ( ) : void
return void

LoadSpeed() public method

public LoadSpeed ( ) : void
return void

MPLoad() public method

public MPLoad ( ) : double
return double

NotifyRarifyResult() public method

public NotifyRarifyResult ( sbyte rare ) : void
rare sbyte
return void

RefreshMail() public method

public RefreshMail ( ) : void
return void

RemoveVehicle() public method

public RemoveVehicle ( ) : void
return void

Rest() public method

public Rest ( ) : void
return void

SPXPLoad() public method

public SPXPLoad ( ) : double
return double

Save() public method

public Save ( ) : void
return void

SendGift() public method

public SendGift ( long id, short vnum, byte amount, sbyte rare, byte upgrade, bool isNosmall ) : void
id long
vnum short
amount byte
rare sbyte
upgrade byte
isNosmall bool
return void

SetRespawnPoint() public method

public SetRespawnPoint ( short mapId, short mapX, short mapY ) : void
mapId short
mapX short
mapY short
return void

SetReturnPoint() public method

public SetReturnPoint ( short mapId, short mapX, short mapY ) : void
mapId short
mapX short
mapY short
return void

Update() public method

public Update ( ) : bool
return bool

WeaponLoaded() public method

public WeaponLoaded ( CharacterSkill ski ) : bool
ski CharacterSkill
return bool

XPLoad() public method

public XPLoad ( ) : double
return double