|
|
|
|
|
Buff Resolutions
Buffs are affects on mobiles, and objects that provide bonuses and
penalties to the respective mobile. Object buffs are generally applied to
the mobile wearing the object (this is generally the case but not always).
The list below indicates valid resolutions and their descriptions. Each
description is prefixed with either [G] gettable,
[S] settable, or [G,S] gettable and
settable. Resolutions are case sensitive. |
General Information
|
General buff fields for working with buff (spell/skill/other
affect) information.
|
@buff->uniqueId
| [G] The unique ID of the buff.
|
@buff->masterId
| [G,S] The ID of a master for the buff. This
should be the uniqueId of another buff to which this buff is
bound. If the master buff is removed then all buffs for which it
is the master will also be removed. Additionally buffs with a
master do not show in the user score.
|
@buff->owner
| [G] The owner of the buff (may be a mobile or an object).
|
@buff->label
| [G,S] An identifier label for the buff allowing it to be retrieved
with %buffGetByLabel()
|
@buff->typeId
| [G,S] The integer type ID of the buff. It is better to use the
name of the type (see @buff->type).
|
@buff->type
| [G,S] The type of the buff (what it affects). Any of the following
may be assigned:
age, applyAffect, applyAffect2, applyEatSpell, applyHitsRegen,
applyHitsUpkeep, applyHurtArcana, applyHurtStealth, applyImmunity,
applyManaRegen, applyManaUpkeep, applyMaterial, applyMovesRegen,
applyMoveUpkeep, applyPairedWeapon, applyRent, applyResistance,
applySusceptibility, applyTimer, armour, castSpell, charisma,
class, constitution, damroll, dexterity, experience, gender, gold,
height, hitpoints, hitroll, intelligence, level, mana, moves,
nightVision, noStacking, saveVsAll, saveVsBreath, saveVsParalysis,
saveVsPetrification, saveVsPrayer, saveVsRod, saveVsSpell, size,
skill, skillQuality, strength, striking, visibility,
weaponDamroll, weaponHitroll, weaponSpell, weight, wisdom,
|
@buff->typeExtra
| [G,S] When the buff is of type applyEatSpell, skill, skillQuality,
or weaponSpell, then this field will be set to the associated
skill/spell. Currently names are not supported. If you need this,
bug me to complete it :)
|
@buff->duration
| [G,S] The duration in seconds that the buff should last. A
duration of 0 if infinite (objects usually have infinite buffs).
|
@buff->skillId
| [G,S] The source skill/spell ID for the buff. This is used
internally to determine when a skill/spell is already in effect.
Additionally it is the skill/spell shown in the player's score
sheet. It is better to use the name of the skill or spell (See
@buff->skill)
|
@buff->skill
| [G,S] The source skill/spell name for the buff. This is used
internally to determine when a skill/spell is already in effect.
Additionally it is the skill/spell shown in the player's score
sheet.
|
@buff->level
| [G,S] The level of the buff. This affects it's power
(if applicable) and it's ability to resist being dispelled (if applicable).
|
@buff->quality
| [G,S] The quality of the buff. This affects it's power (if
applicable) and it's ability to resist being dispelled (if
applicable).
|
@buff->modifier
| [G,S] The amount by which the buff modifies the associated type
field. For instance a type of "strength" and a modifier of "3"
would increase the user's strength by 3 points.
|
@buff->description
| [G,S] An optional field which allows immortals to track the source
of a buff. If this is set then when an immortal stat's the player
or object then they can see from whence the buff was applied. This
is mostly useful for anonymouse buffs applied to players/mobiles.
It is not necessary to set this, if you do not then an automatic
value will be assigned indicating the script, trigger, and line
number where it was assigned.
|
@buff->weightLevel
| [G,S] Setting this field allows the buff to have its modifier
weighted according to the set level and the associated player's
level. For instance, setting this to 40 means that players of
level 40 and above get the full effect of the modifier, whereas
players of lower level get a weighted modifier based on their
level. Note that you must also enable @buff->flags->isWeighted for
this to work.
|
@buff->weightMinimum
| [G,S] This places a lower bound on the weighted value of a buff's
modifier. This works in conjunction with @buff->weightLevel. Note
that you must also enable @buff->flags->isWeighted for this to work.
| |
Flags
|
Flags are boolean values that enable or disable features for the
buff. To set a flag you can assign the value 1, to disable a flag
you can assign the value 0.
|
@buff->flags->antimagic
| [G,S] Antimagic status.
|
@buff->flags->blind
| [G,S] Blindness status.
|
@buff->flags->charm
| [G,S] Charm status. This may not be limited to
mobile under the influence of charm person / charm monster.
|
@buff->flags->chillTouch
| [G,S] Chill touch status.
|
@buff->flags->circle
| [G,S] Deprecated. DON'T USE.
|
@buff->flags->comprehension
| [G,S] Comprehension status.
|
@buff->flags->cursed
| [G,S] Cursed status.
|
@buff->flags->deadlyPoison
| [G,S] Deadly poison status.
|
@buff->flags->deathsDoor
| [G,S] Death's door status.
|
@buff->flags->depravity
| [G,S] Depravity status.
|
@buff->flags->detectAura
| [G,S] Detect aura status.
|
@buff->flags->detectInvisible
| [G,S] Detect invisible status.
|
@buff->flags->detectMagic
| [G,S] Detect magic status.
|
@buff->flags->dominated
| [G,S] Dominated status. This is usually applied
for befriended animals, and possibly in other cases.
|
@buff->flags->fear
| [G,S] Fear status.
|
@buff->flags->feebleMind
| [G,S] Feeble mind status.
|
@buff->flags->feignDeath
| [G,S] Feigning death status.
|
@buff->flags->fieryVortex
| [G,S] Fiery vortex status.
|
@buff->flags->fistsOfFury
| [G,S] Fists of fury status.
|
@buff->flags->follow
| [G,S] Deprecated. DO NOT USE.
|
@buff->flags->footParalysis
| [G,S] Foot paralysis status. When enabled the
player cannot travel.
|
@buff->flags->fly
| [G,S] Flying status.
|
@buff->flags->group
| [G,S] Group status -- DON'T USE.
|
@buff->flags->handParalysis
| [G,S] Hand paralysis. When enabled the player
cannot use their hands.
|
@buff->flags->hide
| [G,S] Hidden status.
|
@buff->flags->hitsRegenDouble
| [G,S] Double hitpoints regen status.
|
@buff->flags->hitsRegenHalf
| [G,S] Half hitpoints regen status.
|
@buff->flags->infravision
| [G,S] Infravision status.
|
@buff->flags->insanity
| [G,S] Insanity status.
|
@buff->flags->invisible
| [G,S] Invisibility status.
|
@buff->flags->invulnerability
| [G,S] Invulnerability status.
|
@buff->flags->isWeighted
| [G,S] Weighted buff status.
|
@buff->flags->lichTouch
| [G,S] Lich touch status.
|
@buff->flags->manaRegenDouble
| [G,S] Double mana regen status.
|
@buff->flags->manaRegenHalf
| [G,S] Half mana regen status.
|
@buff->flags->manaShield
| [G,S] Mana shield status.
|
@buff->flags->movesRegenDouble
| [G,S] Double moves regen status.
|
@buff->flags->movesRegenHalf
| [G,S] Half moves regen status.
|
@buff->flags->movesImpaired
| [G,S] Movement impaired status. This does not
appear to be supported.
|
@buff->flags->paralysis
| [G,S] Paralysis status. A combination of foot and
hand paralysis.
|
@buff->flags->parry
| [G,S] Parry status.
|
@buff->flags->poison
| [G,S] Poison status.
|
@buff->flags->protectionFromEvil
| [G,S] Protection from evil status.
|
@buff->flags->purgeOnEnter
| [G,S] Causes the buff to be purged when the
player enters the game. This is useful if a permanent buff is add
for which a removal mechanism may fail. For instance, the "walk in
darkness" spell provides double regeneration while the player is
in the dark zone, and the affect is removed when the player
leaves. However, if the player is auto rented then the player
never actually leaves. This ensures when they re-enter the game,
the buff is removed.
|
@buff->flags->regenerate
| [G,S] Regenerate status.
|
@buff->flags->sanctuary
| [G,S] Sanctuary status.
|
@buff->flags->senseLife
| [G,S] Sense life status.
|
@buff->flags->shide
| [G,S] Shidden status.
|
@buff->flags->shockingGrasp
| [G,S] Shocking grasp status.
|
@buff->flags->sickness
| [G,S] Sickness status.
|
@buff->flags->silence
| [G,S] Silenced status.
|
@buff->flags->sleep
| [G,S] Magical sleep status.
|
@buff->flags->snare
| [G,S] Deprecated. DO NOT USE.
|
@buff->flags->sneak
| [G,S] Sneaking status.
|
@buff->flags->summoned
| [G,S] Creature is a summoned creature. Summoned
is in the sense that corrupt / dispel evil will do double damage.
This is not related to the summon spell.
|
@buff->flags->sweeping
| [G,S] Deprecated. DO NOT USE.
|
@buff->flags->vampireDaywalk
| [G,S] Daywalk for vampires status.
|
@buff->flags->vampirism
| [G,S] Vampirism status.
|
@buff->flags->waterBreath
| [G,S] Water breath status.
|
@buff->flags->waterWalk
| [G,S] Water walk status.
| |
|
|
|
|
|
|
|