Emme
Member
Hello, I've started to customize my Uo for playng solo and sometimes with my friends.
I am new in this, but little by little I am learning new things and going ahead on the project.
Now I am in a dead point because I need few more things to change and i really don't know how to do. Make lots of ties like I've done for other things i've changed has only caused crashes
so I've renounced to do it triyng by myself and I am looking for someone kind and patient who can helps me. Any kind of help will be appreciated. Thank you!
Here the things i still have to script and that i am not able to do by myself.
1) I wanted to change damage done in PVP from the one done in PVM, so I've tried to customize for example magic arrow with a line like this:
It worked well, but when i've done the same things with fireball, the server crashes on second cast of it.
So I've tought that is better recode the main spell and the base weapon script with a code that make *2 dmg against not player mobiles, but I don't know how to do it well. Maybe someone can help me?
2) I would like to do a combat system based on the fact that "An Ort"(dispell) works for remove bless stats (blessed with potion or spells) and curse stat (clumsy weaken and or feeblemind) form a player, and blessing spells has no effect on cursed target (without anorting him before). Same things for curse spells that has no effect on blessed target
3) I've setted that can prepare a spell running, but i don't know how to introduce a spellfail check if you move after the spell is prepared and you have to take the target
4) I've successfully changed the healing time with my code, but i wanted to make a different bandage time when player is damaged from mobiles instead of player. But I've no idea on what doesn't work
5) can't go out form boat because (i think) the character has got low Z when i try to land. I don't know how to fix it, but I've tried anyway to add a label in the tillerman gump that teleport the character where you point the mouse, but I've done a disaster.
6) tried to do a player command that show the coordinate of the charter, but i've had a bad experience with point2d command...
My boat, melee and spell system are basically the default one from Servuo
Thank you for all the support, help and suggestions you can give to me.
I am new in this, but little by little I am learning new things and going ahead on the project.
Now I am in a dead point because I need few more things to change and i really don't know how to do. Make lots of ties like I've done for other things i've changed has only caused crashes
so I've renounced to do it triyng by myself and I am looking for someone kind and patient who can helps me. Any kind of help will be appreciated. Thank you!
Here the things i still have to script and that i am not able to do by myself.
1) I wanted to change damage done in PVP from the one done in PVM, so I've tried to customize for example magic arrow with a line like this:
Magic arrow modified string:
if (target is PlayerMobile)
{
damage = Utility.Random(2, 4);
if (CheckResisted((PlayerMobile)target))
{
damage *= 0.75;
((PlayerMobile)target).SendLocalizedMessage(501783); // You feel yourself resisting magical energy.
}
damage *= GetDamageScalar((PlayerMobile)target);
}
else if (target is BaseCreature)
{
damage = 8;
}
It worked well, but when i've done the same things with fireball, the server crashes on second cast of it.
So I've tought that is better recode the main spell and the base weapon script with a code that make *2 dmg against not player mobiles, but I don't know how to do it well. Maybe someone can help me?
2) I would like to do a combat system based on the fact that "An Ort"(dispell) works for remove bless stats (blessed with potion or spells) and curse stat (clumsy weaken and or feeblemind) form a player, and blessing spells has no effect on cursed target (without anorting him before). Same things for curse spells that has no effect on blessed target
3) I've setted that can prepare a spell running, but i don't know how to introduce a spellfail check if you move after the spell is prepared and you have to take the target
4) I've successfully changed the healing time with my code, but i wanted to make a different bandage time when player is damaged from mobiles instead of player. But I've no idea on what doesn't work
Healing time dex based:
public static TimeSpan GetDelay(Mobile healer, Mobile patient, bool dead, SkillName skill)
{
var resDelay = dead ? 5.0 : 0.0;
var dex = healer.Dex;
var ritardo = 100 - dex;
if (ritardo < 1) ritardo = 1;
ritardo = ritardo / 4;
double seconds;
if (healer == patient)
{
if (Core.AOS && Mobile Attacker is PlayerMobile)
{
seconds = ritardo + 6;
}
else if (Mbile Attacker is BaseCreature)
{
seconds = 4;
}
}
}
5) can't go out form boat because (i think) the character has got low Z when i try to land. I don't know how to fix it, but I've tried anyway to add a label in the tillerman gump that teleport the character where you point the mouse, but I've done a disaster.
6) tried to do a player command that show the coordinate of the charter, but i've had a bad experience with point2d command...
My boat, melee and spell system are basically the default one from Servuo
Thank you for all the support, help and suggestions you can give to me.