Official Pawn forums Forum Index
  
Armor type

 
Post new topic   Reply to topic    Official Pawn forums Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
Vordak



Joined: 13 Aug 2008
Posts: 33

PostPosted: Mon Aug 18, 2008 1:11 pm    Post subject: Armor type Reply with quote

I want an armor type option.. and assign a value of -999 to leather, mail, plate, and shield for my mage :) This would really be useful in more effectively sorting thru items
Back to top
View user's profileSend private message
Vordak



Joined: 13 Aug 2008
Posts: 33

PostPosted: Mon Aug 25, 2008 3:36 am    Post subject: Reply with quote

I figured it out, yay!

crack open the Localization.lua file, add lines as follows:

right after the "{"Weapon types"}," paragraph of code (about line 106), add this:

{"Armor types"},
{"Cloth", "IsCloth", "Points to be assigned if the item is cloth."},
{"Leather", "IsLeather", "Points to be assigned if the item is Leather."},
{"Mail", "IsMail", "Points to be assigned if the item is mail."},
{"Plate", "IsPlate", "Points to be assigned if the item is plate."},
{"Shield", "IsShield", "Points to be assigned if the item is a shield."},


at the very end, add these lines into the Regex paragraph (about line 709, depending if you've edited the file before):

{"^Cloth$", "IsCloth", 1, PawnMultipleStatsFixed},
{"^Leather$", "IsLeather", 1, PawnMultipleStatsFixed},
{"^Mail$", "IsMail", 1, PawnMultipleStatsFixed},
{"^Plate$", "IsPlate", 1, PawnMultipleStatsFixed},
{"^Shield$", "IsShield", 1, PawnMultipleStatsFixed},


Enjoy :)
Back to top
View user's profileSend private message
Display posts from previous:   
Post new topic   Reply to topic    Official Pawn forums Forum Index -> Feature Requests All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum