diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-07-15 13:21:10 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-07-15 13:21:10 -0300 |
commit | 99769dd446ad9458bdaa3daa573228e77f2472f1 (patch) | |
tree | a3befd693e7c9ff1ee917266e86c6b6c857a3e33 | |
parent | 7e575457d04da544550e368b1d78e59be5dcb8cf (diff) | |
download | serverdata-99769dd446ad9458bdaa3daa573228e77f2472f1.tar.gz serverdata-99769dd446ad9458bdaa3daa573228e77f2472f1.tar.bz2 serverdata-99769dd446ad9458bdaa3daa573228e77f2472f1.tar.xz serverdata-99769dd446ad9458bdaa3daa573228e77f2472f1.zip |
Arcmage boxset contains these rare cards (not dropped anywhere though, and cards cannot be used)
-rw-r--r-- | db/re/item_db.conf | 36 | ||||
-rw-r--r-- | npc/items/arcmage.txt | 29 | ||||
-rw-r--r-- | npc/scripts.conf | 1 |
3 files changed, 54 insertions, 12 deletions
diff --git a/db/re/item_db.conf b/db/re/item_db.conf index b0550c03c..2265923e6 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -11832,9 +11832,9 @@ item_db: ( AegisName: "SpeedCard" Name: "Speed Card" Type: "IT_CARD" - Buy: 50 - Sell: 25 - Weight: 4 + Buy: 500 + Sell: 250 + Weight: 8 Loc: 2097151 Script: <" bonus bSpeedAddRate, 1; @@ -11846,9 +11846,9 @@ item_db: ( AegisName: "ReflectCard" Name: "Reflect Card" Type: "IT_CARD" - Buy: 50 - Sell: 25 - Weight: 4 + Buy: 500 + Sell: 250 + Weight: 8 Loc: 2097151 Script: <" bonus bShortWeaponDamageReturn, 1; @@ -11860,9 +11860,9 @@ item_db: ( AegisName: "PowerCard" Name: "Power Card" Type: "IT_CARD" - Buy: 50 - Sell: 25 - Weight: 4 + Buy: 500 + Sell: 250 + Weight: 8 Loc: 2097151 Script: <" bonus bAtk, 25; @@ -11874,9 +11874,9 @@ item_db: ( AegisName: "WallCard" Name: "Wall Card" Type: "IT_CARD" - Buy: 50 - Sell: 25 - Weight: 4 + Buy: 500 + Sell: 250 + Weight: 8 Loc: 2097151 Script: <" bonus bDef2, 25; @@ -12916,6 +12916,18 @@ item_db: ( callfunc("MakeRandomBlueprint"); "> }, +{ + Id: 7471 + AegisName: "ArcmageBoxset" + Name: "Arcmage Boxset" + Type: "IT_USABLE" + Buy: 1150 + Sell: 300 + Weight: 40 + Script: <" + callfunc("MakeRandomArcmageCard"); + "> +}, // Mercenary boxsets and cards 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", |