ID:174739
Jul 23 2003, 3:51 am
|
|
how do i give and equip items on an npc?
|
In response to FranquiBoy
|
|
my code for equipping my chars is
obj var equipped = 0 weapons var MinDamage = 1 MaxDamage = 1 TheDelay = 0 verb equip_weapon() set category = "weapons" set src in usr if(usr.weapon == null) usr << "You equip the [src]." usr.Min_Damage += MinDamage usr.Max_Damage += MaxDamage usr.Attack_Delay += TheDelay suffix = "(Wielded)" usr.weapon = src src.equipped = 1 else usr << "You may only have one weapon equipped!" |
In response to Polaris139
|
|
mob |
In response to SSChicken
|
|
Alternatively, move the above code into mob/Chicken/New() to have them automatically equip the items.
|
Same way you equip a player character