[EVENTS e_newtrain_contextmenu]
ON=@ContextMenuRequest
if (<NPC> >= brain_human) &&  (<NPC> <= brain_thief)
	IF (<ARGN> == 1)
	ARGN=2
	ELSE
		FOR 0 52
			IF (<I.<SERV.SKILL.<LOCAL._FOR>.KEY>> > <SRC.<SERV.SKILL.<LOCAL._FOR>.KEY>>)
			SRC.AddContextEntry <EVAL 1000+<LOCAL._FOR>>,<EVAL <DEF.TRAIN_SKILL_<dLOCAL._FOR>>>
			ENDIF
		ENDFOR
	ENDIF
ENDIF

ON=@ContextMenuSelect
IF (<ARGN> >= 1000)
TRAIN <SERV.SKILL.<EVAL <ARGN1>-1000>.KEY>
ENDIF

[DIALOG D_ZERAR_SKILL]
25,50
src.closealldialogs
src.ctag.skillparazerar=<ARGS>

PAGE 0
resizepic 25 10 420 200 5054
gumppictiled 33 20 401 181 2624
checkertrans 33 20 401 181

dhtmlgump 40 48 387 100 1 1 Are you sure you want to set your skill level to 0?

button 100 172 4005 4007 1 0 1
xmfhtmlgumpcolor 135 172 120 20 1046362 0 0 32767
button 275 172 4005 4007 1 0 0
xmfhtmlgumpcolor 310 172 120 20 1046363 0 0 32767

dhtmlgump 40 20 260 20 0 0 <DEF.BFONT_WHITE>Forget Skill
xmfhtmlgumpcolor 310 20 120 20 <EVAL 1044060+<src.ctag0.skillparazerar>> 0 0 32767

[DIALOG D_ZERAR_SKILL BUTTON]
ON=1
IF (<SRC.SKILLTOTAL> >= 720.0)
SRC.UNEQUIPALL
TRY SRC.<SERV.SKILL.<SRC.dCTAG0.SKILLPARAZERAR>.KEY>=0.0
SRC.EFFECT 3,i_fx_sparkle,16,20
SRC.SOUND 0243
ELSE
SRC.SYSMESSAGE @,3,1 You must have 720.0 or more Skill points.
ENDIF

[EOF]