# Version 6: SCHOLAR VS. ALCHEMIST (Weapons: Book of the Apocolypse & Axe)
# A mod by DoubleDagR with the help of Jousting.tbm(unknown author?)
# Special thanks also goes to MrPoptart & NewbLuck
# Ragnarok Online is trademark of Gravity Interactive
# Known Bug: Attacks aimed at the hand of the other side of the shield may sometimes follow through.
gamerule
engagedistance 1000
engageheight 30
matchframes 100
turnframes 10
dojotype 1
dojosize 512

blood
	color 0 0 1
body stomach 
	force 0 11 1
body breast
	force 0 11 1
body chest
	force 0 11 1
body groin
	force 0 11 1
body r_pecs
	force 0 11 1
body l_pecs
	force 0 11 1
body r_thigh
	force 0 11 1
body l_thigh
	force 0 11 1
body l_leg
	force 0 11 00
body r_leg
	force 0 11 00
joint r_wrist
	axis 0 1 0
	range 0.1 -1.45
joint l_elbow
	range 1.9 0.05
joint l_wrist
	axis 0 0 1
	range 0.5 -1.45

env_obj 1
    shape box
    pos 2.5 4.8125 2.25
    color 0.4 0.4 0.4 1.1
    rot 0 0 0
    sides 0.0625 0.8125 0.8125
    material steel
    mass 0.001
    flag 0
#END 1

env_obj 2
    shape box
    pos 2.5 4.8125 1.845
    color 0.4 0.4 0.4 1.1
    rot 45 0 0
    sides 0.0625 0.5745 0.5745
    material steel
    mass 0.001
    flag 0
#END 2

env_obj 3
    shape box
    pos -0.5 -5 2.25
    color 0.4 0.4 0.4 1.1
    rot 0 0 0
    sides 0.0625 0.8125 0.8125
    material steel
    mass 0.001
    flag 0
#END 3

env_obj 4
    shape box
    pos -0.5 -5 1.845
    color 0.4 0.4 0.4 1.1
    rot 45 0 0
    sides 0.0625 0.5745 0.5745
    material steel
    mass 0.001
    flag 0
#END 4

env_obj 5
    shape box
    pos -0.5 4.875 2.9375
    color 0.2 0 -0.1 1
    rot 0 0 0
    sides 0.375 0.125 1
    material wood
    mass 0.0001
    flag 0
#END 5

env_obj 6
    shape box
    pos -0.9375 4.875 2.9375
    color -0.1 0 -0.1 1
    rot 0 0 0
    sides 0.5 0.125 1
    material wood
    mass 0.0001
    flag 6
#END 6

env_obj 7
    shape cylinder
    pos 2.375 -5.0625 2.8125
    color 0.5 0.5 0.5 1
    rot 0 0 0
    sides 0.0625 0.75 0.0625
    material steel
    mass 0.001
    flag 0
#END 7

env_obj 8
    shape box
    pos 2.375 -5.0625 3.4375
    color 0.5 0.5 0.5 1
    rot 0 0 0
    sides 0.6875 0.0625 0.5
    material steel
    mass 0.001
    flag 6
#END 8

env_obj_joint 1 1 2

	pos 2.5 4.8125 1.875
	axis 1 0 0
	range 0 0
	#strength 10

	velocity 0

	visible 0
	mass 0.0001

env_obj_joint 2 3 4

	pos -0.5 -5 1.875
	axis 1 0 0
	range 0 0
	#strength 10

	velocity 0

	visible 0
	mass 0.0001

env_obj_joint 3 5 6

	pos -0.7 4.875 2.9375
	axis 0 1 0
	range 0 0
	#strength 10

	velocity 0

	visible 0
	mass 0.0001

env_obj_joint 4 7 8

	pos 2.375 -5.0625 3
	axis 0 0 1
	range 0 0
	#strength 10

	velocity 0

	visible 0
	mass 0.0001