diff options
Diffstat (limited to 'npc/003-0/mainquest.txt')
-rw-r--r-- | npc/003-0/mainquest.txt | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/npc/003-0/mainquest.txt b/npc/003-0/mainquest.txt index f392732e0..db737a704 100644 --- a/npc/003-0/mainquest.txt +++ b/npc/003-0/mainquest.txt @@ -19,8 +19,35 @@ OnInit: end; OnInstanceInit: - if (is_night()) - debugmes "ERROR creating professor at 49, 24"; + if (is_night()) { + .@n$=instance_npcname("Professor#003-0"); + enablenpc .@n$; + } + end; +} + +003-0,49,24,4 script Professor#003-0 NPC_PLAYER,{ + studenttalk(); + end; + +OnInit: + .@ini=true; +OnInstanceInit: + if (.@ini) + .@npcId = getnpcid(.name$); + else + .@npcId = getnpcid(instance_npcname(.name$)); + + setunitdata(.@npcId, UDT_HEADTOP, GraduationCap); + setunitdata(.@npcId, UDT_HEADMIDDLE, GraduationRobe); // TODO: Bathrobe + setunitdata(.@npcId, UDT_HEADBOTTOM, Slippers); // Hey hey! + setunitdata(.@npcId, UDT_WEAPON, CottonGloves); + setunitdata(.@npcId, UDT_HAIRSTYLE, 2); + setunitdata(.@npcId, UDT_HAIRCOLOR, 4); + + .sex=G_MALE; + .distance=5; + disablenpc .name$; end; } |