|
||
|
|||||||
| Custom Script Release Archive This is a pre-script database archive of what our users had released. |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Novice
|
I know all you veterans out there will think this is a shoty script but hey im new to all of this i had a hard time finding a trainer so i tried to put 1 together and it works just drop into your custom folder and go you will have to set it so that it cant walk but that should be all you need to do im not sure what line of code i need to make it so that it cant walk as defualt or what i need to do in the script to make the wep have no duability so i just made it with 1000 self repair any ideas on improving this will be of great use thank you and enjoy if you need it
![]() I have updated my trainer, and added A few more weapons. The trainer now cant walk as default. The weapons do no damage, speed is at 80, they are blessed, and they have no durability so they dont break. Please let me know what you think of them.
__________________
life sucks thats why we have UO ;) :eek: Last edited by timothyisreal; 05-28-2006 at 09:08 AM. |
|
|
|
|
#2 (permalink) |
|
Forum Expert
Join Date: Oct 2004
Location: Chesterton, IN
Age: 29
Posts: 288
|
To get the trainer so he can't walk, add the following code in the Constructor for the Trainer:
Code:
CantWalk = true; Code:
public override void OnHit(Mobile attacker, Mobile defender)
{
base.OnHit(attacker, defender);
//Reset the hit points of the item
Hits = MaxHits;
}
|
|
|
|
|
#3 (permalink) |
|
Forum Expert
Join Date: Oct 2004
Location: Chesterton, IN
Age: 29
Posts: 288
|
I guess I forgot to mention...I do believe in order to gain skill, that you must do damage....
If this is the case, and I'll continue looking to find out, you should set the damage of the practice weapon to the min and max of 1. *edit* OK, just tested, you don't have to do damage to gain skill...though, that is the way it is implemented on OSI, and may or may not be changed in runuo at some point. Just something to think about. ![]() *edit* Last edited by wieganka; 05-15-2006 at 11:04 AM. |
|
|
|
|
#4 (permalink) |
|
Forum Novice
|
im glad that someone posted back to me it is my first try at a script thank you for telling me how to fix it but i wont be able to do it for a bit my comp cought a nasty cold and i have to redo all of my work from scratch but i will put your info to good use thank you again
__________________
life sucks thats why we have UO ;) :eek: |
|
|
|
|
#6 (permalink) | |
|
Forum Novice
|
Quote:
thanks for the boost of confidence i will be redoing it and post a new one once i get everything back together on my comp again ![]()
__________________
life sucks thats why we have UO ;) :eek: |
|
|
|
|
|
#7 (permalink) |
|
Forum Expert
|
Sorry, no comment on the script, still have to try it out.
But could you please use punctuation and breaks in your description? It is really hard to understand. I had to read it twice to get the sense. Thanks a lot for your understanding :-) Liacs
__________________
;)My C# Bookshelf (carpented by Soultaker);) BTW: Please ask questions in the adequat forum and not on a private message! Otherwise nobody can learn from it!
|
|
|
|
|
#8 (permalink) | |
|
Forum Novice
|
Quote:
sorry about all that, I never was any good in my typing classes. ![]()
__________________
life sucks thats why we have UO ;) :eek: |
|
|
|
|
|
#10 (permalink) |
|
Forum Expert
Join Date: Oct 2004
Location: Chesterton, IN
Age: 29
Posts: 288
|
I've just begun to look at your changes....
One thing that I would change is the following: In trainer.cs: Don't set the Str and Hits to 999999. If you want to stop the guy from dying, add this: Code:
publicvirtualvoid Damage( int amount, Mobile from )
{
}
Oh, and since they cannot be killed by any means...setting their Fame and Karma I don't think is necessary at all. Also, you should remove PackGold(0, 0). I'll keep looking for more suggestions. |
|
|
|
|
#11 (permalink) |
|
Forum Expert
Join Date: Oct 2004
Location: Chesterton, IN
Age: 29
Posts: 288
|
Some other suggestions:
I see that on some of the weapons you have a Min and Max damage set to somehting like 10/12, but in others, you have it set to 0/0...is this intended? Also, you have the durability set to 0/0 on all of them, which means that once the item looses 1 durability, it will be destroyed...you should add in the override I pointed out on top to stop that from happening...also, you would have to set the durability back to normal (ie, leave it at it's default settings). I'll keep looking for more. |
|
|
|
|
#12 (permalink) | |
|
Forum Novice
|
Quote:
![]() Stupid me i just saw your previous message. Ill give that code a try and see if it works on keeping him alive, thanks for the info. I just tryed out that code you said would work, it dont seem to be helping. Maybe if you redo it and post it here for me , I might have missed something.
__________________
life sucks thats why we have UO ;) :eek: Last edited by timothyisreal; 05-18-2006 at 03:52 PM. |
|
|
|
|
|
#13 (permalink) |
|
Forum Expert
Join Date: Oct 2004
Location: Chesterton, IN
Age: 29
Posts: 288
|
Wow, lol, yeah, my code post got whacked when I pasted it in...that, and I forgot to change something...what you needed to add was this:
Code:
public override void Damage(int amount, Mobile from)
{
}
|
|
|
|
|
#14 (permalink) | |
|
Forum Novice
|
Quote:
I just gave it a try it worked great. If you know a way to make the bow need no bolts in your pack to shoot them, that would be great, but please try it first to make sure it works ty.
__________________
life sucks thats why we have UO ;) :eek: |
|
|
|
|
|
#15 (permalink) |
|
Forum Expert
Join Date: Oct 2004
Location: Chesterton, IN
Age: 29
Posts: 288
|
To remove the need for ammo, add the following to each of the ranged weapons you want it to affect:
Code:
public override bool OnFired(Mobile attacker, Mobile defender)
{
attacker.MovingEffect(defender, EffectID, 18, 1, false, false);
return true;
}
public override void OnMiss(Mobile attacker, mobile defender)
{
}
Last edited by wieganka; 05-18-2006 at 05:46 PM. |
|
|
|
|
#16 (permalink) | |
|
Forum Novice
|
Quote:
That did the trick ty. I think these are some nice practice weapons now. I reposted the new updated ones if you want to give them a try. Anyone else that whats to give them a try feel free. The traing bow no longer needs bolts to fire. ![]()
__________________
life sucks thats why we have UO ;) :eek: |
|
|
|
|
|
#17 (permalink) |
|
Forum Expert
Join Date: Sep 2005
Location: UK
Age: 29
Posts: 781
|
hi thee. i liked this so much. i made you a pack. its all you added but a vendor as well. i havent tested it, due to not being at home. but you just add the trainer and trainervendor. i look forward from hearing from you. and shelds./ lol
lol i still cant get attachments to work right. ![]() ive updated this. so you should be able to get it. and ive moded this again. try it out. thanks ------ i've looked thought it and it seems fine now. TrainerVenWeps.zip http://www.runuo.com/forums/attachme...1&d=1148172089
__________________
*+ MW Admin Naturescorpse +* Last edited by WonderlandADnc; 05-20-2006 at 09:41 PM. |
|
|
|
|
#18 (permalink) | |
|
Forum Novice
|
Quote:
thank you for the kind words, and the vendor
__________________
life sucks thats why we have UO ;) :eek: |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|