From 58d3c60755b25ecda848936fc6d3559757e8d7a4 Mon Sep 17 00:00:00 2001 From: John Schumacher Date: Sat, 21 May 2016 12:51:39 -0500 Subject: [PATCH] T2RPG: Add Skill requirements for all weapons Add skill requirements to go with the required skill. None of this works with armor yet. Not sure why, but it's something that'll have to be looked at. --- scripts/rpgitems.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/rpgitems.cs b/scripts/rpgitems.cs index ee8837f..fe324d6 100644 --- a/scripts/rpgitems.cs +++ b/scripts/rpgitems.cs @@ -5425,19 +5425,21 @@ function RPGGame::InventoryListOnSelect(%game, %client, %itemid) if ($SkillType[%game.GetItem(%client, %itemId)]) { %info[5] = "Skill Type: " @ $SkillDesc[$SkillType[%game.GetItem(%client, %itemId)]]; + %info[6] = "Skill Requirement: " @ GetWord($skillRestriction[%item], 1); } else { %info[5] = " "; + %info[6] = " "; } - %info[6] = "Amount: " @ %game.getitemCount(%client, %item, %prefix, %suffix); + %info[7] = "Amount: " @ %game.getitemCount(%client, %item, %prefix, %suffix); if(%client.data.equipped[%itemid]) - %info[7] = "Equipped: Yes"; + %info[8] = "Equipped: Yes"; else - %info[7] = "Equipped: No"; + %info[8] = "Equipped: No"; - commandToClient(%client, 'InventoryListOnSelect', %info[1], %info[2], %info[3], %info[4], %info[5], %info[6], %info[7]); + commandToClient(%client, 'InventoryListOnSelect', %info[1], %info[2], %info[3], %info[4], %info[5], %info[6], %info[7], %info[8]); } } function RPGGame::ShapeBasecycleWeapon(%game, %this, %data)