From 99769dd446ad9458bdaa3daa573228e77f2472f1 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 15 Jul 2019 13:21:10 -0300 Subject: Arcmage boxset contains these rare cards (not dropped anywhere though, and cards cannot be used) --- npc/items/arcmage.txt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 npc/items/arcmage.txt (limited to 'npc/items') 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; +} + -- cgit v1.2.3-60-g2f50