|
Who is |
| void | Refresh () |
| | Refreshes the item.
|
| SI32 | getName (char *itemname) |
| const char * | getRealItemName () |
| | gets the real name of an item (removing #'s)
|
| AmxEvent * | amxevents [ALLITEMEVENTS] |
| SI32 | hp |
| | Number of hit points an item has.
|
| SI32 | maxhp |
| | Max number of hit points an item can have.
|
Look |
| SI16 | animid () |
| SI08 | isFieldSpellItem () |
| LOGICAL | IsCorpse () |
| LOGICAL | IsSpellScroll () |
| | predefined spells
|
| LOGICAL | IsSpellScroll72 () |
| | includes the scrolls with a variable name
|
| LOGICAL | IsTree () |
| | this is used in AxeTarget()
|
| LOGICAL | IsTree2 () |
| | this is used in SwordTarget() to give kindling.
|
| LOGICAL | IsInstrument () |
| LOGICAL | IsAxe () |
| LOGICAL | IsSword () |
| LOGICAL | IsSwordType () |
| LOGICAL | IsMace1H () |
| LOGICAL | IsMace2H () |
| LOGICAL | IsMaceType () |
| LOGICAL | IsFencing1H () |
| LOGICAL | IsFencing2H () |
| LOGICAL | IsFencingType () |
| LOGICAL | IsBow () |
| LOGICAL | IsCrossbow () |
| LOGICAL | IsHeavyCrossbow () |
| LOGICAL | IsBowType () |
| LOGICAL | IsArrow () |
| LOGICAL | IsBolt () |
| LOGICAL | IsStave () |
| LOGICAL | IsSpecialMace () |
| LOGICAL | IsChaosOrOrderShield () |
| LOGICAL | IsShield () |
| LOGICAL | IsLog () |
| LOGICAL | IsShaft () |
| LOGICAL | IsBoard () |
| LOGICAL | IsFeather () |
| LOGICAL | IsCutLeather () |
| LOGICAL | IsHide () |
| LOGICAL | IsBoltOfCloth () |
| LOGICAL | IsCutCloth () |
| LOGICAL | IsCloth () |
| LOGICAL | IsChest () |
| LOGICAL | IsForge () |
| LOGICAL | IsAnvil () |
| LOGICAL | IsCookingPlace () |
| LOGICAL | IsDagger () |
| LOGICAL | IsFish () |
| LOGICAL | IsFishWater () |
| LOGICAL | IsSign () |
| LOGICAL | IsBrassSign () |
| LOGICAL | IsWoodenSign () |
| LOGICAL | IsGuildSign () |
| LOGICAL | IsTradeSign () |
| LOGICAL | IsBankSign () |
| LOGICAL | IsTheatreSign () |
| LOGICAL | IsHouse () |
| LOGICAL | isSpawner () |
| | Tells if an item is a dynamic spawner.
|
| void | animSetId (SI16 id) |
| | elcabesa animation
|
| UI08 | animid1 |
| | elcabesa animation
|
| UI08 | animid2 |
| | elcabesa animation
|
| LOGICAL | useAnimId |
| SI08 | layer |
| | Layer if equipped on paperdoll.
|
| SI08 | oldlayer |
| | Old layer - used for bouncing bugfix - AntiChrist.
|
| SI08 | scriptlayer |
| | Luxor, for scripted setted Layer.
|
| SI08 | magic |
| | 0=Default as stored in client, 1=Always movable, 2=Never movable, 3=Owner movable.
|
| SI08 | visible |
| | 0=Normally Visible, 1=Owner & GM Visible, 2=GM Visible
|
| SI16 | dir |
Container |
| SI32 | getContSerial (LOGICAL old=0) const |
| BYTE | getContSerialByte (UI32 nByte, LOGICAL old=false) const |
| const cObject * | getContainer () const |
| void | setCont (P_OBJECT obj) |
| void | setContSerial (SI32 serial, LOGICAL old=false, LOGICAL update=true) |
| | set the serial of the item's container
|
| void | setContSerialByte (UI32 nByte, BYTE value, LOGICAL old=false) |
| const LOGICAL | isContainer () const |
| | check if item is a container
|
| const LOGICAL | isSecureContainer () const |
| void | SetRandPosInCont (P_ITEM pCont) |
| bool | ContainerPileItem (P_ITEM pItem) |
| | try to find an item in the container to stack with
|
| LOGICAL | AddItem (P_ITEM pItem, short xx=-1, short yy=-1) |
| | Add item to container.
|
| SI32 | DeleteAmountByID (int amount, unsigned int scriptID) |
| SI16 | getContGump () |
| void | putInto (P_ITEM pi) |
| SI32 | secureIt |
| Serial | contserial |
| Serial | oldcontserial |
Amount |
| SI32 | ReduceAmount (const SI16 amount) |
| SI32 | IncreaseAmount (const SI16 amount) |
| | increase the amount of piled items
|
| void | setAmount (const UI16 amt) |
| | set the amount of piled items
|
| SI32 | DeleteAmount (int amount, short id, short color=-1) |
| | delete a determined amount of an item with determined color
|
| const SI32 | CountItems (short ID=-1, short col=-1, LOGICAL bAddAmounts=true) const |
| const SI32 | CountItemsByID (unsigned int scriptID, LOGICAL bAddAmounts) const |
| const SI32 | CountItemsByType (unsigned int type, LOGICAL bAddAmounts) const |
| UI16 | amount |
| | Amount of items in pile.
|
| UI16 | amount2 |
| | Used to track things like number of yards left in a roll of cloth.
|
Weight |
| R32 | getWeight () |
| | the weight of the single item
|
| const R32 | getWeightActual () |
| UI32 | weight |
weapon and armour related |
| weapon, armour, wear related stuff
- Author:
-
Xan & Luxor (mostly)
|
| Skill | getCombatSkill () |
| | gets the combat skill of an item
|
| UI32 | att |
| | Item attack.
|
| UI32 | def |
| | Item defense.
|
| Skill | fightskill |
| | skill used by item
|
| SI32 | reqskill [2] |
| | required skill by item
|
| DamageType | damagetype |
| | for different damage types system
|
| DamageType | auxdamagetype |
| | Additional damage :].
|
| SI32 | auxdamage |
| | Additional damage :].
|
| SI32 | lodamage |
| | Minimum Damage weapon inflicts.
|
| SI32 | hidamage |
| | Maximum damage weapon inflicts.
|
| SI32 | wpsk |
| | The skill needed to use the item -> Seems not to work for the moment, usless.
|
| SI32 | spd |
| | The speed of the weapon.
|
| SI32 | itmhand |
| | ITEMHAND system - AntiChrist.
|
| SI32 | resists [MAX_RESISTANCE_INDEX] |
| | for resists system
|
| SI32 | st |
| | The strength needed to equip the item.
|
| SI32 | st2 |
| | The strength the item gives.
|
| SI32 | dx |
| | The dexterity needed to equip the item.
|
| SI32 | dx2 |
| | The dexterity the item gives.
|
| SI32 | in |
| | The intelligence needed to equip the item.
|
| SI32 | in2 |
| | The intelligence the item gives.
|
| PoisonType | poisoned |
| | type of poison that poisoned item
|
| UI32 | ammo |
| | Ammo used (firing weapon).
|
| UI32 | ammoFx |
| | Flying ammo animation (firing weapon).
|
Magic Related |
| SI32 | countSpellsInSpellBook () |
| | counts the spells in a spellbook
|
| LOGICAL | containsSpell (magic::SpellId spellnumber) |
| | returns if or not a spellbook contains a spell
|
| UI32 | gatetime |
| SI32 | gatenumber |
| SI08 | offspell |
Public Methods |
| cItem & | operator= (cItem &b) |
| | Redefinition of = operator for cItem class.
|
| | cItem (SERIAL serial) |
| | the weight of the item ( * number of piled item if there are )
|
| | ~cItem () |
| void | explode (NXWSOCKET s) |
| const SI32 | getSound () const |
| void | setSound (UI16 newSound) |
| UI32 | getType () |
| void | setType (UI32 newType) |
| LOGICAL | doDecay () |
| | execute decay on the item
|
| const LOGICAL | canDecay () const |
| void | setDecay (const LOGICAL on=true) |
| const void | setDecayTime (const TIMERVAL delay=uiCurrentTime+((&server_data)->decaytimer *MY_CLOCKS_PER_SEC)) |
| const TIMERVAL | getDecayTime () const |
| const LOGICAL | isNewbie () const |
| void | setNewbie (const LOGICAL on=true) |
| const LOGICAL | isDispellable () const |
| void | setDispellable (const LOGICAL on=true) |
| bool | PileItem (P_ITEM pItem) |
| | Pile two items.
|
| P_ITEM | getOutMostCont (short rec=50) |
| | Get the out most container.
|
| P_CHAR | getPackOwner () |
| | Get the owner of this pack ( automatic recurse for out most pack ).
|
| UI32 | distFrom (P_CHAR pc) |
| | Get item's distance from the given char.
|
| UI32 | distFrom (P_ITEM pi) |
| | Get item's distance from the given item.
|
| virtual void | Delete () |
| | deletes the item
|
|
| const LOGICAL | isInWorld () const |
| void | MoveTo (Location newloc) |
| void | MoveTo (SI32 x, SI32 y, SI32 z) |
|
| void | SetMultiSerial (SI32 mulser) |
Static Public Methods |
| void | archive () |
| void | safeoldsave () |
Public Attributes |
| UI08 | more1 |
| UI08 | more2 |
| UI08 | more3 |
| UI08 | more4 |
| SI08 | moreb1 |
| SI08 | moreb2 |
| SI08 | moreb3 |
| SI08 | moreb4 |
| UI32 | morex |
| UI32 | morey |
| UI32 | morez |
| SI08 | doordir |
| LOGICAL | dooropen |
| SI32 | itemSoundEffect |
| LOGICAL | dye |
| | Reserved: Can item be dyed by dye kit.
|
| SI08 | priv |
| | Bit 0, decay off/on. Bit 1, newbie item off/on. Bit 2 Dispellable.
|
| LOGICAL | pileable |
|
| LOGICAL | corpse |
| | Is item a corpse.
|
| string | murderer |
| | char's name who kille the char (forensic ev.)
|
| SI32 | murdertime |
| | when the people has been killed
|
|
|
| SI32 | smelt |
| | for item smelting
|
| SI32 | rank |
| | for rank system, this value is the LEVEL of the item from 1 to 10.
|
| std::string | creator |
| | Store the name of the player made this item.
|
| SI32 | good |
| | Store type of GOODs to trade system! (Plz not set as UNSIGNED).
|
| SI32 | rndvaluerate |
| | Store the value calculated base on RANDOMVALUE in region.scp.
|
| SI32 | madewith |
| | Store the skills used to make this item.
|
| std::string | vendorDescription |
|
| SI32 | value |
| | Price shopkeeper sells item at.
|
| SI32 | restock |
| | Number up to which shopkeeper should restock this item.
|
|
| SI32 | trigger |
| | Trigger number that item activates.
|
| SI32 | trigtype |
| | Type of trigger.
|
| SI32 | tuses |
| | Number of uses for trigger.
|
|
| UI32 | type |
| | For things that do special things on doubleclicking.
|
| UI32 | type2 |
| SI32 | carve |
| | for new carve system
|
| LOGICAL | incognito |
| | for items under incognito effect
|
| SI32 | wipe |
| | Should this item be wiped with the /wipe command.
|
| UI32 | time_unused |
| | used for house decay and possibly for more in future, gets saved
|
| UI32 | timeused_last |
| | helper attribute for time_unused, doesnt get saved
|
Private Attributes |
| TIMERVAL | decaytime |