// ##############################################################################################################################
// #
// #    SPHERE by : Menasoft ©1997-2000
// #    HomePage: http://www.sphereserver.com
// #
// #    This file is copyright Jons Collasius alias 496®, Lady Aglarthiel
// #    This file may not be used or distributed in whole or in part, in any format
// #    without express written permission from Jons Collasius.
// #
// #    ShardOwner @ Terra Mystica - Traene des Phoenix ( TM-TDP )
// #    Contact:  mailto:webmaster@metastasis.de
// #    HomePage: http://www.ultimaonline-freeshard.com | http://www.ultimaonline-freeshard.org
// #              http://www.ultimaonline-freeshard.net | http://www.ultimaonline-freeshard.de
// #              http://www.freeshard.org
// #    Boards:   http://www.vBulletin.ultimaonline-freeshard.com
// #
// ##############################################################################################################################
VERSION=0.54

[EVENTS e_player]
ON=@LOGIN
 KILLS=<EVAL 0<TAG.KILLCOUNT>>
 IF !((STRMATCH(<clientver>,2.0.0)) || (STRMATCH(<clientver>,2.0.3)))
   SYSMESSAGE=You are not using Client 2.0.3, you will be disconnected
 ELSE
   SYSMESSAGE=This Server ist powered by Terra Mystica
   SYSMESSAGE=www.ultimaonline-freeshard.com
 ENDIF

ON=@LOGOUT
 TAG.KILLCOUNT=<KILLS>

ON=@CLICK
// <--- no npc should have this event --->
 IF (<NPC>)
   EVENTS-e_player
 ENDIF

ON=@DCLICK
 RETURN 0

ON=@SKILLSTART
 IF ((<FLAGS> & statf_freeze) || (<FLAGS> & statf_stone))
   SYSMESSAGE You can't do much in your current state
   ACTION=-1
   RETURN 1
 ENDIF

 IF (<FIXACTION>==SKILL_PROVOCATION)
   IF (<f_e_player_skillstart_provocation>)
     ACTION=-1
     RETURN 1
   ENDIF
 ELSEIF (<FIXACTION>==SKILL_TAMING)
   IF (<f_e_player_skillstart_taming>)
     ACTION=-1
     RETURN 1
   ENDIF
 ENDIF

ON=@HitTry
 IF ( <SRC.UID> == <UID> )
   FLAGS=<FLAGS>&~statf_war
   DAMAGE=<EVAL (<STR>/2>)>
   RETURN 1
 ENDIF

ON=@itemDROPON_ground
 ACT.UPDATEX

ON=@itemPICKUP_PACK
 IF (<ACTION> != -1)
   SYSMESSAGE=You are using an skill, you cant't pick that up.
   ACT.BOUNCE
   RETURN 1
 ENDIF
 ACT.UPDATEX

ON=@HIT
 TAG.HIT_ACT = <ACT>
 ACT = <findlayer(layer_hand1).uid>
 IF ( 0<ACT.UID> == 0 )
   ACT = <findlayer(layer_hand2).uid>
 ENDIF
 IF ( <ACT.UID> == 0 )
   IF (<wrestling> < 5.0)
     RETURN 1
   ENDIF
 ELSEIF ( <ACT.type> == t_weapon_mace_smith )
   IF (<macefighting> < 5.0)
     RETURN 1
   ENDIF
 ELSEIF ( <ACT.type> == t_weapon_mace_sharp )
   IF (<macefighting> < 5.0)
     RETURN 1
   ENDIF
 ELSEIF ( <ACT.type> == t_weapon_mace_staff )
   IF (<macefighting> < 5.0)
     RETURN 1
   ENDIF
 ELSEIF ( <ACT.type> == t_weapon_mace_crook )
   IF (<macefighting> < 5.0)
     RETURN 1
   ENDIF
 ELSEIF ( <ACT.type> == t_weapon_mace_pick )
   IF (<macefighting> < 5.0)
     RETURN 1
   ENDIF
 ELSEIF ( <ACT.type> == t_weapon_sword )
   IF (<swordsmanship> < 5.0)
     RETURN 1
   ENDIF
 ELSEIF ( <ACT.type> == t_weapon_axe )
   IF (<swordsmanship> < 5.0)
     RETURN 1
   ENDIF
 ELSEIF ( <ACT.type> == t_weapon_fence )
   IF (<fencing> < 5.0)
     RETURN 1
   ENDIF
 ELSEIF ( <ACT.type> == t_weapon_bow )
   IF (<archery> < 5.0)
     RETURN 1
   ENDIF
 ELSEIF ( <ACT.type> == t_weapon_xbow )
   IF (<archery> < 5.0)
     RETURN 1
   ENDIF
 ENDIF
 ACT = <TAG.HIT_ACT>

[EOF]