GetAmount | ||
---|---|---|
Prototype | short GetAmount( int trgItem ); | |
Purpose | Returns the amount of trgItem | |
Example of Usage | amt = GetAmount( srcItem ); |
GetContainer | ||
---|---|---|
Prototype | long GetContainer( int trgItem ); | |
Purpose | Returns the serial of the container of trgItem | |
Example of Usage | cSerial = GetContainer( srcItem ); |
SetAmount | ||
---|---|---|
Prototype | SetAmount( trgItem, trgAmount ); | |
Purpose | Sets trgItem's amount value to trgAmount | |
Example of Usage | SetAmount( trgItem, 10 ); |
SetContainer | ||
---|---|---|
Prototype | SetContainer( trgItem, newContSerial ); | |
Purpose | Sets the trgItem's container SERIAL to newContSerial | |
Example of Usage | SetContainer( trgItem, GetSerial( srcChar, 0 ) ); |
GetType | ||
---|---|---|
Prototype | int GetType( trgItem ); | |
Purpose | Returns type of trgItem | |
Example of Usage | iType = GetType( srcItem ); |
SetType | ||
---|---|---|
Prototype | SetType( trgItem, trgType ); | |
Purpose | Sets trgItem's type to trgType | |
Example of Usage | SetType( srcItem, 1 ); |
GetMore | ||
---|---|---|
Prototype | int GetMore( trgItem ); | |
Purpose | Returns MORE value of trgItem | |
Example of Usage | iMore = GetMore( srcItem ); |
GetMoreX | ||
---|---|---|
Prototype | int GetMoreX( trgItem ); | |
Purpose | Returns MOREX value of trgItem | |
Example of Usage | iMore = GetMoreX( srcItem ); |
GetMoreY | ||
---|---|---|
Prototype | int GetMoreY( trgItem ); | |
Purpose | Returns MOREY value of trgItem | |
Example of Usage | iMore = GetMoreY( srcItem ); |
GetMoreZ | ||
---|---|---|
Prototype | int GetMoreZ( trgItem ); | |
Purpose | Returns MOREZ value of trgItem | |
Example of Usage | iMore = GetMoreZ( srcItem ); |
SetMore | ||
---|---|---|
Prototype | SetMore( trgItem, newMore ); | |
Purpose | Sets trgItem's more value to newMore | |
Example of Usage | SetMore( doorItem, GetMore( key ) ); |
SetMoreX | ||
---|---|---|
Prototype | SetMoreX( trgItem, newMore ); | |
Purpose | Sets trgItem's morex value to newMore | |
Example of Usage | SetMoreX( doorItem, GetMore( key ) ); |
SetMoreY | ||
---|---|---|
Prototype | SetMoreY( trgItem, newMore ); | |
Purpose | Sets trgItem's moreY value to newMore | |
Example of Usage | SetMoreY( doorItem, GetMore( key ) ); |
SetMoreZ | ||
---|---|---|
Prototype | SetMoreZ( trgItem, newMore ); | |
Purpose | Sets trgItem's morez value to newMore | |
Example of Usage | SetMoreZ( doorItem, GetMore( key ) ); |
GetMovable | ||
---|---|---|
Prototype | int GetMovable( trgItem ); | |
Purpose | Returns movability of an item | |
Example of Usage | var iMov = GetMovable( srcItem ); |
SetMovable | ||
---|---|---|
Prototype | SetMovable( trgItem, newMove ); | |
Purpose | Sets the trgItem's movable property to newMove | |
Example of Usage | SetMovable( srcItem, 3 ); |
GetAtt | ||
---|---|---|
Prototype | int GetAtt( trgItem ); | |
Purpose | Returns attack value of an item, random between lo and hi damage | |
Example of Usage | var iAttack = GetAtt( srcItem ); |
SetAtt | ||
---|---|---|
Prototype | SetAtt( trgItem, loDamage, hiDamage ); | |
Purpose | Sets the low and high damage inflicted by trgItem | |
Example of Usage | SetAtt( srcItem, 0, 10 ); |
GetDef | ||
---|---|---|
Prototype | int GetDef( trgItem ); | |
Purpose | Returns defense value of an item | |
Example of Usage | var iDef = GetDef( srcItem ); |
SetDef | ||
---|---|---|
Prototype | SetDef( trgItem, defValue ); | |
Purpose | Sets trgItem's def value to defValue | |
Example of Usage | SetDef( srcItem, 10 ); |
GlowItem | ||
---|---|---|
Prototype | ||
Purpose | ||
Example of Usage |
GetResourceCount | ||
---|---|---|
Prototype | GetResourceCount( player, itemID, itemColour ); | |
Purpose | Returns a count of how many items with id itemID and colour itemColour player has | |
Example of Usage | var ingotAmt = GetResourceCount( player, 0x1BF2, 0 ); |
UseResource | ||
---|---|---|
Prototype | UseResource( player, itemID, itemColour, amount ); | |
Purpose | Deletes amount number of items with id itemID and colour itemColour on player | |
Example of Usage | UseResource( player, 0x1BF2, 0, 5 ); |
FindItemOnLayer | ||
---|---|---|
Prototype | int FindItemOnLayer( player, tLayer ); | |
Purpose | Finds the item that player has on layer tLayer. | |
Notes | A return value of -1 indicates there was no item at that particular layer. A common list of layers follow 0x01 - Single-Hand item/weapon 0x02 - Two-Hand item/weapon (including Shield) 0x03 - Foot Covering/Armor 0x04 - Leg Covering (including Pants, Shorts, Bone/Chain/Ring legs) 0x05 - Chest Clothing/Female Chest Armor 0x06 - Head Covering/Armor 0x07 - Hand Covering/Armor 0x08 - Ring 0x09 - N/A (not used) 0x0A - Neck Covering/Armor 0x0B - Hair 0x0C - Waist (Half-Apron) 0x0D - Torso (inner)(Chest Armor) 0x0E - Bracelet 0x0F - N/A (no info) 0x10 - Facial Hair 0x11 - Torso (Middle)(Surcoat, Tunic, Full Apron, Sash) 0x12 - Earrings 0x13 - Arm Covering/Armor 0x14 - Back (Cloak) 0x15 - BackPack 0x16 - Torso (outer)(Robe) 0x17 - Legs (outer)(Skirt/Kilt) 0x18 - Legs (inner)(Leg Armor) 0x19 - Mount (Horse, Ostard, etc.) 0x1A - NPC Buy Restock Container 0x1B - NPC Buy No Restock Container 0x1C - NPC Sell Container 0x1D - Bank Box | |
Example of Usage | var iLeftHand = FindItemOnLayer( pTalking, 1 ); // finds the item in the left hand of pTalking |
GetLayer | ||
---|---|---|
Prototype | GetLayer( iToCheck ); | |
Purpose | Returns the layer attribute of the item iToCheck | |
Example of Usage | var iLayer = GetLayer( iStolen ); |
SetLayer | ||
---|---|---|
Prototype | SetLayer( iToCheck, iLayer ); | |
Purpose | Sets the layer attribute of the item iToCheck to iLayer | |
Example of Usage | var iLayer = GetLayer( iStolen ); |
FirstItemInCont | ||
---|---|---|
Prototype | int FirstItemInCont( iToScan ); | |
Purpose | Returns a handle to the first item in the container. If it's -1, then there is no items. | |
Example of Usage | var iStuff; |
NextItemInCont | ||
---|---|---|
Prototype | int NextItemInCont( iToCheck ); | |
Purpose | Returns the next item found in the container | |
Example of Usage | SEE ABOVE FUNCTION |
FinishedItemInCont | ||
---|---|---|
Prototype | bool FinishedItemInCont( iToCheck ); | |
Purpose | Returns true if there are no more items left to look through | |
Example of Usage | SEE ABOVE FUNCTION |