diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/items/arcmage.txt | 29 | ||||
-rw-r--r-- | npc/scripts.conf | 1 |
2 files changed, 30 insertions, 0 deletions
diff --git a/npc/items/arcmage.txt b/npc/items/arcmage.txt new file mode 100644 index 000000000..06d69f367 --- /dev/null +++ b/npc/items/arcmage.txt @@ -0,0 +1,29 @@ +// TMW-2 script. +// Author: +// Jesusalva +// Description: +// Card boxsets, shout out for arcmage.org + +// Create a random card, with rares +function script MakeRandomArcmageCard { + array_push(.@arcmagecards, NatureCard); + array_push(.@arcmagecards, NinjaCard); + array_push(.@arcmagecards, MageCard); + array_push(.@arcmagecards, DruidCard); + array_push(.@arcmagecards, ClericCard); + array_push(.@arcmagecards, KnightCard); + array_push(.@arcmagecards, HeroCard); + array_push(.@arcmagecards, NecromancerCard); + + .@r=rand(0,10000); + // 5% chances of a rare card + if (.@r < 500) { + array_push(.@arcmagecards, SpeedCard); + array_push(.@arcmagecards, ReflectCard); + array_push(.@arcmagecards, PowerCard); + array_push(.@arcmagecards, WallCard); + } + getitem any_of(.@arcmagecards), 1; + return; +} + diff --git a/npc/scripts.conf b/npc/scripts.conf index 9226cd345..3c2abaae8 100644 --- a/npc/scripts.conf +++ b/npc/scripts.conf @@ -69,6 +69,7 @@ // Item functions "npc/items/alcohol.txt", +"npc/items/arcmage.txt", "npc/items/books.txt", "npc/items/croconut.txt", "npc/items/emptybox.txt", |