home » builders » builder's lessons » weapon spells
Weapon spells
Weapons can be affected by a spell. There are 4 weapon spell flags. Each one is different in the amount of times that the spell will trigger on the weapons.
APPLY_WEAPONSPELL | The spell works when the weapon hits 100% of the time. |
APPLY_WEAPONSPELL_ONE | The spell works when the weapon hits 10% of the time. |
APPLY_WEAPONSPELL_TWO | The spell works when the weapon hits 25% of the time. |
APPLY_WEAPONSPELL_FIVE | The spell works when the weapon hits 50% of the time. |
The possible spells that could be included on a weapon are listed in the table below:
SPELL_NONE -1 |
SPELL_ACETUM_PRIMUS 1 |
SPELL_ACID_ARROW 2 |
SPELL_ACID_BLAST 3 |
SPELL_ACID_BREATH 4 |
SPELL_ALERTNESS 5 |
SPELL_ANIMATE_DEAD 6 |
SPELL_ANIMATE_OBJECT 7 |
SPELL_ANTIMAGIC_SHELL 8 |
SPELL_ARMOR 9 |
SPELL_ASTRAL_WALK 10 |
SPELL_BARKSKIN 11 |
SPELL_BLAZEBANE 12 |
SPELL_BLESS 13 |
SPELL_BLINDNESS 14 |
SPELL_BLOOD_OF_CYRIC 15 |
SPELL_BURNING_HANDS 16 |
SPELL_CALL_LIGHTNING 17 |
SPELL_CAUSE_CRITICAL 18 |
SPELL_CAUSE_LIGHT 19 |
SPELL_CAUSE_SERIOUS 20 |
SPELL_CLAIRVOYANCE 21 |
SPELL_CHANGE_SEX 22 |
SPELL_CHAIN_LIGHTNING 23 |
SPELL_CHARGED_BEACON 24 |
SPELL_CHARIOT_OF_THE_SUN 25 |
SPELL_CHARM_PERSON 26 |
SPELL_CHILL_TOUCH 27 |
SPELL_COLOR_SPRAY 28 |
SPELL_CONE_OF_COLD 29 |
SPELL_CONJURE_ELEMENTAL 30 |
SPELL_CONTINUAL_LIGHT 31 |
SPELL_CONTROL_WEATHER 32 |
SPELL_CREATE_FOOD 33 |
SPELL_CREATE_SPRING 34 |
SPELL_CREATE_SYMBOL 35 |
SPELL_CREATE_WATER 36 |
SPELL_CURE_BLINDNESS 37 |
SPELL_CURE_CRITICAL 38 |
SPELL_CURE_LIGHT 39 |
SPELL_CURE_POISON 40 |
SPELL_CURE_SERIOUS 41 |
SPELL_CURSE 42 |
SPELL_DETECT_BURIED 43 |
SPELL_DETECT_EVIL 44 |
SPELL_DETECT_HIDDEN 45 |
SPELL_DETECT_INVIS 46 |
SPELL_DETECT_MAGIC 47 |
SPELL_DETECT_POISON 48 |
SPELL_DISJUNCTION 49 |
SPELL_DISPEL_EVIL 51 |
SPELL_DISPEL_MAGIC 52 |
SPELL_DIVINITY 53 |
SPELL_DISINTEGRATE 54 |
SPELL_DRAGONSKIN 55 |
SPELL_DREAM 56 |
SPELL_EARTHQUAKE 57 |
SPELL_ENCHANT_WEAPON 58 |
SPELL_ENERGY_DRAIN 59 |
SPELL_FAERIE_FIRE 60 |
SPELL_FAERIE_FOG 61 |
SPELL_FARHEAL 62 |
SPELL_FATIGUE 63 |
SPELL_FEEBLEMIND 64 |
SPELL_FIND_FAMILIAR 65 |
SPELL_FIND_TRAPS 66 |
SPELL_FIREBALL 67 |
SPELL_FIRE_BREATH 68 |
SPELL_FLAME_ARROW 69 |
SPELL_FIRESHIELD 70 |
SPELL_FLAME_JAWS 71 |
SPELL_FLAMESTRIKE 72 |
SPELL_FLY 73 |
SPELL_FRIENDS 74 |
SPELL_FROST_BREATH 75 |
SPELL_FUMBLE 76 |
SPELL_GAS_BREATH 77 |
SPELL_GATE 78 |
SPELL_GOOD_FORTUNE 79 |
SPELL_HAND_OF_CHAOS 80 |
SPELL_HARM 81 |
SPELL_HEAL 82 |
SPELL_HOLY_SANCTITY 83 |
SPELL_ICESHIELD 84 |
SPELL_ICE_STORM 85 |
SPELL_IDENTIFY 86 |
SPELL_ILL_FORTUNE 87 |
SPELL_ILMATERS_BLESSING 88 |
SPELL_INFRAVISION 89 |
SPELL_INVIS 90 |
SPELL_KNOCK 91 |
SPELL_KNOW_ALIGNMENT 92 |
SPELL_LEVITATE 93 |
SPELL_LIGHTNING_BOLT 94 |
SPELL_LIGHTNING_BREATH 95 |
SPELL_LOCATE_OBJECT 96 |
SPELL_MAGIC_MIRROR 97 |
SPELL_MAGIC_MISSILE 98 |
SPELL_MAGNETIC_THRUST 99 |
SPELL_MASS_INVIS 100 |
SPELL_MIND_WRACK 101 |
SPELL_MIND_WRENCH 102 |
SPELL_MINOR_GLOBE 103 |
SPELL_MNEMONIC_ENHANCER 104 |
SPELL_MONSTER_SUMMON 105 |
SPELL_MOONBEAM 106 |
SPELL_NULL_SPHERE 107 |
SPELL_PASS_DOOR 108 |
SPELL_PHOENIX_CLAW 109 |
SPELL_PASS_PLANT 110 |
SPELL_POISON 111 |
SPELL_POLYMORPH 112 |
SPELL_POSSESS 113 |
SPELL_PRODUCE_FLAME 114 |
SPELL_PROTECTION 115 |
SPELL_QUANTUM_SPIKE 116 |
SPELL_RAINBOW_PATTERN 117 |
SPELL_RAZORBAIT 118 |
SPELL_RECHARGE 119 |
SPELL_REGENERATE 120 |
SPELL_RESIST_COLD 121 |
SPELL_RESIST_ELECTRICITY 122 |
SPELL_RESIST_FIRE 123 |
SPELL_REFRESH 124 |
SPELL_REMOVE_CURSE 125 |
SPELL_REMOVE_INVIS 126 |
SPELL_REMOVE_TRAP 127 |
SPELL_RESILIENCE 128 |
SPELL_RESTORATION 129 |
SPELL_RESTORE_MANA 130 |
SPELL_REVIVE 131 |
SPELL_SAGACITY 132 |
SPELL_SANCTUARY 133 |
SPELL_SCORCHING_SURGE 134 |
SPELL_SHADOW_WALK 135 |
SPELL_SHADOW_FIST 136 |
SPELL_SHADOW_FUNNEL 137 |
SPELL_SHADOW_DOOR 138 |
SPELL_SHIELD 139 |
SPELL_SHOCKING_GRASP 140 |
SPELL_SHOCKSHIELD 141 |
SPELL_SLEEP 142 |
SPELL_SLINK 143 |
SPELL_SPECTRAL_FIST 144 |
SPELL_SPECTRAL_HAND 145 |
SPELL_SPECTRAL_LIGHTNING 146 |
SPELL_SONIC_RESONANCE 147 |
SPELL_STRENGTH 148 |
SPELL_SUNRAY 149 |
SPELL_STONE_SKIN 150 |
SPELL_SULFUROUS_SPRAY 151 |
SPELL_SUMMON 152 |
SPELL_SWORDBAIT 153 |
SPELL_TELEPORT 154 |
SPELL_TOUCH_OF_JUSTICE 155 |
SPELL_TRANSPORT 156 |
SPELL_TROLLISH_VIGOR 157 |
SPELL_TRUE_SIGHT 158 |
SPELL_VALIANCE 159 |
SPELL_VAMPIRIC_TOUCH 160 |
SPELL_VENTRILOQUISM 161 |
SPELL_WARHORSE 162 |
SPELL_WATER_BREATHING 163 |
SPELL_WEAKEN 164 |
SPELL_WIND_WALK 165 |
SPELL_WINTER_MIST 166 |
SPELL_WITCH_LIGHT 167 |
SPELL_WORD_OF_RECALL 168 |
SPELL_WRAITHFORM 169 |
SPELL_WRATH_OF_DOMINUS 170 |
SPELL_WEB 171 |
SPELL_TURN_UNDEAD 172 |
SPELL_SENTRY_OF_HELM 173 |
SPELL_WATER_TO_WINE 174 |
SPELL_RAISE_DEAD 175 |
SPELL_RESURRECTION 176 |
SPELL_HOLD_PERSON 177 |
SPELL_SILENCE 178 |
SPELL_ENTANGLE 179 |
SPELL_COMPREHEND_LANGUAGE 180 |
SPELL_MIND_SHIELD 181 |
SPELL_STONE_WALK 182 |
SPELL_ENCHANT_ARMOR 183 |
SPELL_HEROISM 184 |
SPELL_SHADOW_CONJURATION 185 |
SPELL_MIRROR_IMAGE 186 |
SPELL_DELAYED_BLAST_FIREBALL 187 |
SPELL_MENDING 188 |
SPELL_NON_DETECTION 189 |
SPELL_FREEDOM 190 |
SPELL_CHARM_MONSTER 191 |
SPELL_HOLD_MONSTER 192 |
SPELL_CONTROL_UNDEAD 193 |
SPELL_ACIDSHIELD 194 |
SPELL_CREATE_OBJECT 195 |
SPELL_FEAR 196 |
SPELL_ETHEREAL_FLYER 197 |
SPELL_RESERVED_FOR_FUTURE 198 |
SPELL_PHANTASMAL_KILLER 199 |
SPELL_SPEAK_WITH_DEAD 200 |
SPELL_FLOATING_DISC 201 |
Below is a sample weapon that uses the weapon spell code. In general you should only use the lesser rates of success weapon spell applies.
#QQ17 large halberd gluttony~ {70}a large halberd~ {70}A large halberd lies on the ground here.~ ~ ITEM_TYPE_WEAPON FLAG_MAGIC CAN_WEAR_TAKE|CAN_WEAR_HOLD QUALITY_SUPERIOR MATERIAL_STEEL COND_PERFECT SIZE_LARGE 0 0 0 WEAPON_TYPE_HALBERD 0 0 A APPLY_WEAPONSPELL_ONE SPELL_CREATE_FOOD E halberd large~ There is an unusual rune on the handle of the halberd. ~