Page 1 of 1

A Few Problems

Posted: Fri Jul 07, 2006 6:57 pm
by Daroth
Alright, i've had people testing a few things, and here is what i'm trying to do:
:arrow: Take off the dexterity minus when wearing armor
:arrow: Allow mages to cast spells while wearing staves
:arrow: Make the best armor equiped while being able to cast bone armor (Leather, studded leather, bone armor. No metal armors)
:arrow: Allow players to drink potions while holding a weapon
:arrow: When a player has a stack of potions, and goes to drink them, it uses the entire stack instead of just 1 potion, I'm trying to fix this.

Well, that's about all i've ran into now. Also, I should have mentioned that I'm a huge noob when it comes to scripts and the like :wink:
I'm not asking for a full explination of what to do, just maybe what file to take a look at, and which part of that file.

Thanks in advance.

Re: A Few Problems

Posted: Sat Jul 08, 2006 10:59 am
by drath
Daroth wrote:Alright, i've had people testing a few things, and here is what i'm trying to do:
:arrow: Take off the dexterity minus when wearing armor
:arrow: Allow mages to cast spells while wearing staves
:arrow: Make the best armor equiped while being able to cast bone armor (Leather, studded leather, bone armor. No metal armors)
:arrow: Allow players to drink potions while holding a weapon
:arrow: When a player has a stack of potions, and goes to drink them, it uses the entire stack instead of just 1 potion, I'm trying to fix this.
All this stuff is very very simple to edit. Perhaps you should have just looked around?

1) Look in itemdesc.cfg in the combat folder and remove the dexpenalty cprop on platemail.
2) I believe this is also in the same file, controlled by a cprop.
3) Ditto.
4) This is in drinkpotion.inc, it's documented where the code is to do this function, so just comment everything you don't need.
5) Instead of DestroyItem, use SubtractItem in the drinkpotion.inc include aswell.