Full Version : Exp Gaining weapons and armor
xmlspawner >>Scripting Support >>Exp Gaining weapons and armor
<< Prev | Next >>
Odee- 09-10-2006
I've been thinking about scripting items that gain experience when used...just don't have a place to start.
What I want to do is have the items gain experience and become more powerful as they progress. I would want the maximum experience to be 2000 points, and the lowest 0. To start off, they item will gain experience faster than when it hits the higher point areas.
I would like to base the system off of the creatures hitpoints. So if a player kills a mongbat with about 20 hitpoints, s/he will only gain 1 point. If a player kills a boss, the player will gain 20 points, etc etc.
Every 200 experience points, the item will gain either +1% damage increase, swing speed increase, hit chance increase, defense chance increase, damage bonus increase (fire, cold, etc) OR for shields will gain a few resist points or defense chance increase.
I also want to base everything off of skills... Fencing / Swords will gain certain attributes (warrior based) and Macing skills will gain certain att's (mage based).
I would also like to have certain shields gain experience, but switching over to the amount of damage BLOCKED. The script would 1) have to check for the players Parrying skill (minimum of 50 needed) 2) have to be a bit more speedy for lesser-skilled players 3) have to check for amount of damage blocked and give experience accordingly.
But the catch is, once the weapon/shield is so high up (like 500+) gaining starts slowing down.
Could somone explain to me how to do this or maybe direct me to an already-made experience gaining item so I can learn from it? Thanks a bunch!
-~- Odee -~-
Xarlon- 09-12-2006
The shard I staff on has an item called the Sword of Evolution that does exactly what you were saying. I assume our shard owner found the script on the RunUO.com forums, but I might be wrong.
I'll see if I can locate it, and I'll post a new reply with a link when I do.
Xarlon- 09-12-2006
I think this is it... Our shard owner isn't online so I'm not 100% sure.
http://www.runuo.com/forums/showthread.php?t=55190
Odee- 09-12-2006
Thanks dude. This will help A LOT.
Allmight- 09-12-2006
You also have this item leveling system...
http://www.runuo.com/forums/showthread.php?t=74303
I think there is another item leveling system as well. Just do a search.
EDIT: Whoops. Wrong link. That one only grades items into Levels for easy spotting of good items. Will dig up the real link for you.
Allmight- 09-12-2006
Here you go...
Levelable Items System 3.0
http://www.runuo.com/forums/showthread.php?t=71859