diff options
Diffstat (limited to 'npc/024-4/solana.txt')
-rw-r--r-- | npc/024-4/solana.txt | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/npc/024-4/solana.txt b/npc/024-4/solana.txt new file mode 100644 index 000000000..5f87766f3 --- /dev/null +++ b/npc/024-4/solana.txt @@ -0,0 +1,47 @@ +// TMW2 scripts. +// Authors: +// Jesusalva +// Description: +// Random shops + +024-4,28,23,0 script Solana NPC_ELF_F,{ + npcshopattach(.name$); + shop .name$; + close; + +OnInit: + .@npcId = getnpcid(.name$); + setunitdata(.@npcId, UDT_HEADTOP, NPCEyes); + setunitdata(.@npcId, UDT_HEADMIDDLE, any(LightPlatemail, ForestArmor, AssassinChest)); + setunitdata(.@npcId, UDT_HEADBOTTOM, any(RaidTrousers, JeansChaps, AssassinPants, ChainmailSkirt)); + setunitdata(.@npcId, UDT_WEAPON, BansheeBow); + setunitdata(.@npcId, UDT_HAIRSTYLE, rand2(5,15)); + setunitdata(.@npcId, UDT_HAIRCOLOR, rand2(2,10)); + + .sex = G_FEMALE; + .distance = 4; + sleep(SHOPWAIT); + tradertype(NST_MARKET); + + sellitem ForestBow, -1, 1; + sellitem ElficBow, -1, 1; + end; + +OnClock1250: +OnClock0112: + restoreshopitem ForestBow, 1; + restoreshopitem ElficBow, 1; + end; + +// Pay your taxes! +OnBuyItem: + debugmes("Purchase confirmed"); + PurchaseTaxes(); + end; + +OnSellItem: + debugmes("Sale confirmed"); + SaleTaxes(); + end; +} + |