Jpstafe
Well-Known Member
- Joined
- Aug 8, 2011
- Messages
- 581
- Reaction score
- 78
Hello otland community, I'm trying to balance the rarity system, the items are giving too many attributes, an example of them, in magic level+ sometimes it gives item magic level +3, and it seems to me that that would break the game, because A knight with a complete set of +3 magic level would easily roll sd, and I don't want that to happen... I have reviewed the script, and where it says Magic level I put everyone +1 at most but the change does not apply. what should I do?


config.lua:


config.lua:
LUA:
US_ITEM_TYPES = {
ALL = 1,
WEAPON_MELEE = 2,
WEAPON_DISTANCE = 4,
WEAPON_WAND = 8,
SHIELD = 16,
HELMET = 32,
ARMOR = 64,
LEGS = 128,
BOOTS = 256,
RING = 512,
NECKLACE = 1024,
WEAPON_ANY = 14
}
US_UNIQUES = {
[1] = {
name = "Flame Spirit",
attributes = {
1, -- Max HP
2, -- Melee Skills
10, -- Life Steal
25 -- Flame Strike on Attack
},
minLevel = 35, -- Required Item Level to become Unique
chance = 80, -- % chance to roll this unique
itemType = US_ITEM_TYPES.WEAPON_MELEE -- Can be rolled only for items like Swords, Axes and Clubs
},
[2] = {
name = "Ice Spirit",
attributes = {
2, -- Max MP
1, -- Magic Level
22, -- Ice Strike on Attack
29 -- Regenerate Mana on Kill
},
minLevel = 70, -- Required Item Level to become Unique
chance = 80, -- % chance to roll this unique
itemType = US_ITEM_TYPES.WEAPON_WAND + US_ITEM_TYPES.RING + US_ITEM_TYPES.NECKLACE -- Can be rolled only for items like Wands, Rods, Rings, Necklaces
},
[3] = {
name = "Terra Spirit",
attributes = {
1, -- Max HP
2, -- Max MP
1, -- Magic Level
24 -- Terra Strike on Attack
},
minLevel = 70, -- Required Item Level to become Unique
chance = 80, -- % chance to roll this unique
itemType = US_ITEM_TYPES.WEAPON_WAND + US_ITEM_TYPES.RING + US_ITEM_TYPES.NECKLACE -- Can be rolled only for items like Wands, Rods, Rings, Necklaces
},
[4] = {
name = "Blessed",
attributes = {
12, -- physical protection
17, -- elemental protection
33, -- increased healing
5 -- experience
},
minLevel = 45, -- Required Item Level to become Unique
chance = 80, -- % chance to roll this unique
itemType = US_ITEM_TYPES.SHIELD -- Can be rolled only for items like Wands, Rods, Rings, Necklaces
},
[5] = {
name = "Plunderer",
attributes = {
2, -- Max MP
1, -- Magic Level
25, -- extra gold
5 -- experience
},
minLevel = 30, -- Required Item Level to become Unique
chance = 80, -- % chance to roll this unique
itemType = US_ITEM_TYPES.RING + US_ITEM_TYPES.NECKLACE -- Can be rolled only for items like Wands, Rods, Rings, Necklaces
},
[6] = {
name = "Reinforced",
attributes = {
1, -- max hp
4, -- melee skills
10, -- physical damage
25 -- double
},
minLevel = 35, -- Required Item Level to become Unique
chance = 80, -- % chance to roll this unique
itemType = US_ITEM_TYPES.WEAPON_MELEE -- Can be rolled only for items like Swords, Axes and Clubs
},
[7] = {
name = "Weaponized",
attributes = {
5, -- distance
8, --phys+
30, --hp++
32 -- healing
},
minLevel = 35, -- Required Item Level to become Unique
chance = 80, -- % chance to roll this unique
itemType = US_ITEM_TYPES.WEAPON_DISTANCE -- Can be rolled only for items like Swords, Axes and Clubs
}
}
Attachments
-
config.lua36.2 KB · Views: 6 · VirusTotal