diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-05-18 01:00:40 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-05-18 01:00:40 -0300 |
commit | 9682c3cb93e31ed276f3d790812acb91d2850106 (patch) | |
tree | 379cb3976354c8f22572f241fe054eae6f19b511 /npc/024-5 | |
parent | 68ca62ec5e0dd3baa5c18f83ceae3086043134e7 (diff) | |
download | serverdata-9682c3cb93e31ed276f3d790812acb91d2850106.tar.gz serverdata-9682c3cb93e31ed276f3d790812acb91d2850106.tar.bz2 serverdata-9682c3cb93e31ed276f3d790812acb91d2850106.tar.xz serverdata-9682c3cb93e31ed276f3d790812acb91d2850106.zip |
Several weapons and armors are now sold in shops! \o/
Diffstat (limited to 'npc/024-5')
-rw-r--r-- | npc/024-5/_import.txt | 1 | ||||
-rw-r--r-- | npc/024-5/rychell.txt | 57 |
2 files changed, 58 insertions, 0 deletions
diff --git a/npc/024-5/_import.txt b/npc/024-5/_import.txt index a0a3f3320..4d9bb3cbe 100644 --- a/npc/024-5/_import.txt +++ b/npc/024-5/_import.txt @@ -1,4 +1,5 @@ // Map 024-5: Frostia Indoors // This file is generated automatically. All manually added changes will be removed when running the Converter. "npc/024-5/_warps.txt", +"npc/024-5/rychell.txt", "npc/024-5/saevel.txt", diff --git a/npc/024-5/rychell.txt b/npc/024-5/rychell.txt new file mode 100644 index 000000000..ac6ba5670 --- /dev/null +++ b/npc/024-5/rychell.txt @@ -0,0 +1,57 @@ +// TMW2 scripts. +// Authors: +// Jesusalva +// Description: +// Random shops + +024-5,33,23,0 script Rychell NPC_ELF,{ + npcshopattach(.name$); + shop .name$; + close; + +OnInit: + .@npcId = getnpcid(.name$); + setunitdata(.@npcId, UDT_HEADTOP, NPCEyes); + setunitdata(.@npcId, UDT_HEADMIDDLE, any(Chainmail, LightPlatemail, CopperArmor, AssassinChest)); + setunitdata(.@npcId, UDT_HEADBOTTOM, any(RaidTrousers, LeatherTrousers, JeansChaps, BromenalPants, AssassinPants, ChainmailSkirt)); + setunitdata(.@npcId, UDT_WEAPON, BlueKnightShield); + setunitdata(.@npcId, UDT_HAIRSTYLE, rand2(5,15)); + setunitdata(.@npcId, UDT_HAIRCOLOR, rand2(2,10)); + + .sex = G_MALE; + .distance = 4; + sleep(SHOPWAIT); + tradertype(NST_MARKET); + + sellitem BritShield, -1, 1; + sellitem Chainmail, -1, 1; + //sellitem CopperArmor, -1, 1; + sellitem SilkPants, -1, 1; + sellitem ChainmailSkirt, -1, 1; + sellitem BromenalGloves, -1, 1; + sellitem BromenalHelmet, -1, 1; + end; + +OnClock1251: +OnClock0113: + restoreshopitem BritShield, 1; + restoreshopitem Chainmail, 1; + //restoreshopitem CopperArmor, 1; + restoreshopitem SilkPants, 1; + restoreshopitem ChainmailSkirt, 1; + restoreshopitem BromenalGloves, 1; + restoreshopitem BromenalHelmet, 1; + end; + +// Pay your taxes! +OnBuyItem: + debugmes("Purchase confirmed"); + PurchaseTaxes(); + end; + +OnSellItem: + debugmes("Sale confirmed"); + SaleTaxes(); + end; +} + |