mirror of
https://github.com/Jusctsch5/ironsphererpg.git
synced 2026-07-10 22:14:39 +00:00
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.
This commit is contained in:
parent
e2125ed325
commit
58d3c60755
1 changed files with 6 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue