diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-06-29 15:46:17 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-06-29 15:46:30 -0300 |
commit | 329559c9c953e5154f670aa470293cf595743e34 (patch) | |
tree | afc3a1539cd35c02f806adcc1f4929d432d88993 /npc/009-2/ryan.txt | |
parent | e9ce05a396a1669eea9673725a33eb8098d34214 (diff) | |
download | serverdata-329559c9c953e5154f670aa470293cf595743e34.tar.gz serverdata-329559c9c953e5154f670aa470293cf595743e34.tar.bz2 serverdata-329559c9c953e5154f670aa470293cf595743e34.tar.xz serverdata-329559c9c953e5154f670aa470293cf595743e34.zip |
Tonori Delight Alpha
Diffstat (limited to 'npc/009-2/ryan.txt')
-rw-r--r-- | npc/009-2/ryan.txt | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/npc/009-2/ryan.txt b/npc/009-2/ryan.txt new file mode 100644 index 000000000..3b6807381 --- /dev/null +++ b/npc/009-2/ryan.txt @@ -0,0 +1,66 @@ +// TMW-2 Script. +// Author: +// Saulc +// Jesusalva +// Notes: +// Buys Tonori Delight + +009-2,29,57,0 script Ryan NPC_PLAYER,{ + .@q=getq(HalinarzoQuest_LifeDelight); + .@a=(.@q**2)+(.@q*5)+20; + // Maximum: 10'520 Delights + if (.@q > 100) goto L_Complete; + mesn; + mesq l("Ah, I just wanted @@... Yummy, lovely @@...", getitemlink(TonoriDelight), getitemlink(TonoriDelight)); + next; + mesn; + mesq l("If you bring me @@ @@, I'll give you a reward!", .@a, getitemlink(TonoriDelight)); + next; + select + rif(countitem(TonoriDelight > .@a), l("I have everything!")), + l("Ah, not now..."); + mes ""; + if (@menu == 2) + close; + + inventoryplace ChefHat, 1; + + delitem TonoriDelight, .@a; + getexp rand(.@a, .@a*2), 0; + Zeny=Zeny+.@a*21; + setq HalinarzoQuest_LifeDelight, .@q+1; + mesn; + mesq l("Hmmm... Yummy!"); + + // Landmark rewards + // PS. 20 = 520 Delights + .@q=getq(HalinarzoQuest_LifeDelight); + if (.@q == 20) { + getitem ChefHat, 1; + next; + mesn; + mesq l("Ah, you really deserve this @@. Good job!", getitemlink(ChefHat)); + } + + close; + +L_Complete: + mesn; + mesq l("Thanks for the help! Yummy!"); + close; + +OnInit: + .@npcId = getnpcid(0, .name$); + setunitdata(.@npcId, UDT_HEADTOP, ChefHat); + setunitdata(.@npcId, UDT_HEADMIDDLE, SilkRobe); + setunitdata(.@npcId, UDT_HEADBOTTOM, CottonTrousers); + setunitdata(.@npcId, UDT_WEAPON, AssassinBoots); + setunitdata(.@npcId, UDT_HAIRSTYLE, 26); + setunitdata(.@npcId, UDT_HAIRCOLOR, 2); + + .sex = G_MALE; + .distance = 4; + npcsit; + end; +} + |