begin drachenbogen_A_AirForge_sheathe
if (OnActivate == 1)
if (GetLevel < 5 )
MessageBox "Ihr seid nicht würdig, diese Ausrüstung zu tragen."
endif
endif
Short DoOnce
If ( player->getitemcount "drachenbogen" ==0 )
if ( player->getitemcount "1Elipsen" >=1 )
player->removeitem "1Elipsen",1
endif
if ( player->getitemcount "2elipsen" >=1 )
Player->removeitem "2elipsen", 1
endif
return
endif
If ( Player -> HasItemEquipped "drachenbogen" )
If ( Player -> GetWeaponDrawn )
If ( DoOnce == 0 )
player->removeitem "1Elipsen",1
player->additem "2elipsen", 1
player-> equip "2elipsen", 1
set DoOnce to 1
endif
elseif ( DoOnce == 1 )
player-> removeitem "2elipsen", 1
player->additem "1Elipsen", 1
player->equip "1Elipsen",1
set DoOnce to 0
endif
endif
endif
Float timer
Short OnPCEquip
Short arrowCount
If ( MenuMode == 1 )
Return
Endif
If ( OnPCEquip == 0 )
return
endif
If (timer < .5)
Set timer to (timer + GetSecondsPassed)
return
else
Set timer to 0
Endif
Set arrowCount to ( player -> GetItemCount, "drachenpfeil" )
If ( OnPCEquip == 1 )
If ( arrowCount <= 0 )
if ( player->getmagicka >= 8 )
player->additem "drachenpfeil" 15
player->Equip, "drachenpfeil" 15
player->modcurrentmagicka -8
endif
else
if ( player -> HasItemEquipped "drachenpfeil" )
return
endif
player->Equip, "drachenpfeil" 15
endif
endif
End