diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-12-15 04:00:21 -0200 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-12-15 04:00:21 -0200 |
commit | 2d53be4b771aec1c91da67897b16d5b5d0b8c230 (patch) | |
tree | be35b19a9045572a8d029066ae9c7d1fa871c8f4 /npc/019-4-1/model.c | |
parent | 54710b25d4b858bd7e17dac69ecd583438fc36c4 (diff) | |
download | serverdata-2d53be4b771aec1c91da67897b16d5b5d0b8c230.tar.gz serverdata-2d53be4b771aec1c91da67897b16d5b5d0b8c230.tar.bz2 serverdata-2d53be4b771aec1c91da67897b16d5b5d0b8c230.tar.xz serverdata-2d53be4b771aec1c91da67897b16d5b5d0b8c230.zip |
This is how Christmas 2018 (and all successors) are supposed to go.
Simple, yet elegant.
Diffstat (limited to 'npc/019-4-1/model.c')
-rw-r--r-- | npc/019-4-1/model.c | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/npc/019-4-1/model.c b/npc/019-4-1/model.c new file mode 100644 index 000000000..53fff5983 --- /dev/null +++ b/npc/019-4-1/model.c @@ -0,0 +1,45 @@ +// TMW2/LoF scripts. +// Authors: +// TMW-LoF Team +// Jesusalva +// Description: +// Permanently repeatable quest, without any special limit + +017-3,68,87,0 script Model NPC_PLAYER,{ + mesn; + mesq l("This room is too dark. I want to brighten it up."); + next; + .@price=(getiteminfo(CaveSnakeLamp, ITEMINFO_SELLPRICE)*11/10)*5; + mesn; + mesq l("I am willing to pay @@ GP for each 5 @@ you bring me!", .@price, getitemlink(CaveSnakeLamp)); + next; + select + rif(countitem(CaveSnakeLamp) >= 5, l("Here they are!")), + l("Not now..."); + mes ""; + if (@menu == 1) { + delitem CaveSnakeLamp, 5; + Zeny=Zeny+.@price; + getexp (.@price/rand(2,3)), 5; + mesn; + mesq l("Many, many thanks!"); + next; + } + mesn; + mesq l("Too bad these lamps wear off after a while... I am making stocks of them now!"); + close; + +OnInit: + .@npcId = getnpcid(0, .name$); + setunitdata(.@npcId, UDT_HEADTOP, FancyHat); + setunitdata(.@npcId, UDT_HEADMIDDLE, CreasedShirt); + setunitdata(.@npcId, UDT_HEADBOTTOM, NPCEyes); + setunitdata(.@npcId, UDT_WEAPON, JeansShorts); + setunitdata(.@npcId, UDT_HAIRSTYLE, 2); + setunitdata(.@npcId, UDT_HAIRCOLOR, 4); + + .sex=G_MALE; + .distance=5; + end; +} + |