diff options
Diffstat (limited to 'npc/008-2-6/donald.txt')
-rw-r--r-- | npc/008-2-6/donald.txt | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/npc/008-2-6/donald.txt b/npc/008-2-6/donald.txt new file mode 100644 index 00000000..5c75896e --- /dev/null +++ b/npc/008-2-6/donald.txt @@ -0,0 +1,39 @@ +// The Mana World scripts. +// Author: +// Micksha +// Description: +// Alan's Apprentice. + +008-2-6,29,27,0 script Donald NPC_YOUNG_MAN_APPRENTICE,{ + if (shopcount(TrainingArrow) <= 0 && shopcount(IronArrow) <= 0) { + speech + l("Good day."), + l("Sorry, we are sold out for today."), + l("Come back later."); + + } else { + speech + l("Good day."), + l("We got new supplies of arrows!"); + + next; + + closeclientdialog; + shop .name$; + } + + close; + +OnInit: + .distance = 4; + tradertype(NST_MARKET); + + sellitem TrainingArrow, -1, 20000+rand2(5000); + sellitem IronArrow, -1, 20000+rand2(5000); + end; + +OnClock0002: + restoreshopitem TrainingArrow, 20000+rand2(5000); + restoreshopitem IronArrow, 20000+rand2(5000); + end; +} |