[ITEMDEF i_train_npc]
ID=i_deed
Name=Trainings NPC
type=t_script
on=@create
color=0455
attr=04
on=@dclick
SERV.NEWNPC c_train_npc
NEW.TITLE <SRC.Name>s NPC
NEW.P <SRC.P>
REMOVE
return 1
[CHARDEF c_train_npc]
ID=c_man
Name=Trainings NPC
CAN=MT_RUN
DAM=0,1
ARMOR=255
ON=@Create
color=0455
MAXHITS=32000
STR=1
DEX=100
INT=1
FENCING 1000
PARRYING=1000
MAGERY=0
MAGICRESISTANCE=0
TACTICS=1000
Swordsmanship=1000
Archery=1000
Macefighting=1000
NPC=brain_monster
FAME=0
KARMA=0
ON=@NPCRestock
ITEMNEWBIE=i_train_npc_dagger
on=@gethit
HITPOINTS=32000
return 0
on=@hit
SRC.HITPOINTS=<SRC.STR>
return 0
[ITEMDEF i_train_npc_dagger]
ID=i_dagger
Name=NPC Dagger
weight=0,1
DAM=2
on=@create
HITPOINTS=-1
color=0455
on=@DAMAGE
HITPOINTS=-1
[itemdef i_trainmace]
id=i_mace
Name=Trainings Mace
dam=10
weight=0,1
on=@create
color=0664
hitpoints=-1
on=@equip
SRC.EVENTS +e_train_waffe
on=@unequip
SRC.EVENTS -e_train_waffe
on=@dclick
menu m_train
return 1
on=@damage
HITPOINTS=-1
[itemdef i_trainsword]
id=i_sword_viking
Name=Trainings Schwert
dam=10
weight=0,1
on=@create
color=0664
hitpoints=-1
on=@equip
SRC.EVENTS +e_train_waffe
on=@unequip
SRC.EVENTS -e_train_waffe
on=@dclick
menu m_train
return 1
on=@damage
HITPOINTS=-1
[itemdef i_traindagger]
id=i_dagger
Name=Trainings Dolch
dam=10
weight=0,1
on=@create
color=0664
hitpoints=-1
on=@equip
SRC.EVENTS +e_train_waffe
on=@unequip
SRC.EVENTS -e_train_waffe
on=@dclick
menu m_train
return 1
on=@damage
HITPOINTS=-1
[itemdef i_trainbow]
id=i_bow
Name=Trainings Bogen
dam=10
weight=0,1
TDATA3=
on=@damage
HITPOINTS=-1
on=@create
color=0664
hitpoints=-1
on=@equip
SRC.EVENTS +e_train_waffe
on=@unequip
SRC.EVENTS -e_train_waffe
on=@dclick
menu m_train
return 1
//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
//
// Menu
//
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
//
[menu M_TRAIN]
Welchen Skill moechtest du trainieren?
on=0 Macefighting
remove
src.newitem i_trainmace
src.act.equip
on=0 Swordsmanship
remove
src.newitem i_trainsword
src.act.equip
on=0 Fencing
remove
src.newitem i_traindagger
src.act.equip
on=0 Archery
remove
src.newitem i_trainbow
src.act.equip
[EVENTS e_train_waffe]
on=@hit
SRC.HITPOINTS=<SRC.STR>
[EOF]
Vieleicht kann der Cruxx ja was mit anfangen ^^
tree