ItemDesc:
Code: Select all
Weapon 0x13PB
{
//MainStuff
Name poisonbow
Desc poison bow
VendorBuysFor 1999
color 373
graphic 5042
//WeaponInfo
Speed 30
Attribute Archery
Anim 0x12
Damage 9d9+8
HitSound 0x235
MissSound 0x239
ProjectileAnim 0xf42
ProjectileType 0xf3f
ProjectileSound 0x235
MinRange 0
MaxRange 30
MaxHP 100
//Booleans
Projectile 1
TwoHanded 1
//Scripts
DestroyScript onDestroy
HitScript PoisonBow
OnHitScript PoisonBow
//Custom Values
strrequired 60
mindam 26
maxdam 87
}
Code: Select all
use uo;
use os;
include ":magery:spells";
include ":attributes:attributes";
include ":timedScripts:timedScripts";
program PoisonBow(attacker, defender, weapon, armor, basedamage, rawdamage)
var mobile := attacker;
var targ := defender;
if ( !MS_MobileCheck(mobile, targ) )
return 0;
endif
// Duration: (3 + (Magery * 0.4)) seconds
var duration := CInt(3 + AP_GetSkill(mobile, MAGERY) * 0.4);
var poison_level := 5;
TS_StartTimer(targ, "DefaultPoison", duration, poison_level, mobile);
return 1;
endprogram