[DEFNAME MOONSTONES_SPECIAL_DEFS]
moonstone_p0 5952,320  //new moon
moonstone_p1 5134,2627 //waxing crescent
moonstone_p2 6128,2546,42 //First quarter
moonstone_p3 5611,3518,38 //Waxing gibbous
moonstone_p4 4645,3652,100 //Full moon
moonstone_p5 2946,2184,32 //Waning gibbous
moonstone_p6 2186,1991 //Third quarter
moonstone_p7 1505,361,2 //Waning crescent

moonstone_color0 029c
moonstone_color1 0240
moonstone_color2 026f
moonstone_color3 02ec
moonstone_color4 02e2
moonstone_color5 03ae
moonstone_color6 0215
moonstone_color7 01ec

[ITEMDEF i_moonstone]
ID=i_reag_sulfur_ash
NAME=Moonstone
TYPE=T_NORMAL
VALUE=10000

ON=@Create
MORE1=<R999999>
COLOR=03d7

ON=@Dclick
IF (<TOPOBJ.UID>==<SRC>)
IF (<COLOR>==03d7)
local.moon=<EVAL ((<serv.time>%840)*8)/840>
color=<def.moonstone_color<dlocal.moon>>
SERV.NEWITEM=i_moongate_blue
NEW.EVENTS=T_MOONSTONE_GATE
NEW.P=<SRC.P>
NEW.LINK=<SRC>
NEW.MOREP=<def.moonstone_p<dlocal.moon>>
NEW.ATTR |= attr_decay
NEW.TIMER=60
ENDIF
ENDIF
RETURN 1

[TYPEDEF T_MOONSTONE_GATE]
ON=@Step
IF (<LINK.ISINPARTY>)
IF (!(<LINK.PARTY.ISSAMEPARTYOF <SRC>>))
RETURN 1
ENDIF
ELIF (<LINK>!=<SRC>)
IF (!(<ARGN1>))
SRC.SYSMESSAGE @946,3,1 You can't enter this moongate.
ENDIF
ENDIF

[ITEMDEF i_newmoon_sword]
ID=i_sword_viking
NAME=New Moon Sword
TEVENTS=T_PROPRIEDADES
TEVENTS=t_aos_weapon
TAG.DOOMARTIFACT=84
TAG.DAMINCREASE=27
TAG.LIFELEECH=10
TAG.SWINGINCREASE=20

CATEGORY=Moonstones
SUBSECTION=Artefatos
DESCRIPTION=New Moon Sword

ON=@Create
COLOR=20
HITPOINTS=255

ON=@Equip
SRC.MAXHITS += 7

ON=@UneQuip
SRC.MAXHITS -= 7

ON=@ClientTooltip
SRC.ADDCLILOC 1061078,6
SRC.ADDCLILOC 1060431,7

[ITEMDEF i_firstquarter_mace]
ID=i_mace_war
NAME=First Quarter Moon Mace
SKILL=Macefighting
CATEGORY=Moonstones
SUBSECTION=Artefatos
DESCRIPTION=First Quarter Mace
TAG.DOOMARTIFACT=84
TAG.DAMINCREASE=25
TAG.LIFELEECH=10
TAG.SWINGINCREASE=30
TEVENTS=T_PROPRIEDADES
TEVENTS=T_ORB_CLILOC

ON=@Create
TAG.ORB.EFEITO=01000
COLOR=88
HITPOINTS=255

ON=@Equip
SRC.MODSTR += 10
SRC.MAXSTAM += 10

ON=@UneQuip
SRC.MODSTR -= 10
SRC.MAXSTAM -= 10

ON=@ClientTooltip
SRC.ADDCLILOC 1061078,11
SRC.ADDCLILOC 1060484,10
SRC.ADDCLILOC 1060485,10

[ITEMDEF i_fullmoon_kryss]
ID=i_kryss
NAME=Full Moon Kryss
SKILL=Macefighting
//DAM=11,16
CATEGORY=Moonstones
SUBSECTION=Artefatos
DESCRIPTION=First Quarter Mace
TAG.DOOMARTIFACT=84
TAG.DAMINCREASE=35
TAG.LIFELEECH=10
TAG.SWINGINCREASE=10
//SPEED=40
TEVENTS=T_PROPRIEDADES
TEVENTS=T_ORB_CLILOC

ON=@Create
TAG.ORB.EFEITO=010
COLOR=36
HITPOINTS=255

ON=@Equip
SRC.MODDEX += 10
SRC.MAXHITS += 10

ON=@UneQuip
SRC.MODDEX -= 10
SRC.MAXHITS -= 10

ON=@ClientTooltip
SRC.ADDCLILOC 1061078,11
SRC.ADDCLILOC 1060409,10
SRC.ADDCLILOC 1060431,10

[EOF]