[Help] Get 1DMG with lucky time

12/29/2008 14:23 Kital82#1
Hi, i can't make the code to get only 1dmg when we have luckytime.
I made double damage, Xp circle refilled, droping mets or dbs but can't make that 1dmg working =/

I'm using that into Character.cs
I made public bool lucky etc ...
Quote:
if (Lucky == true && Other.ChanceSuccess(6.9))
{

MyClient.SendPacket(General.MyPackets.SendMsg(MyCl ient.MessageId, "System", Name, "You got lucky, and were immunitate of the domage of the hit!", 2005));
MyClient.SendPacket(General.MyPackets.String(UID, 10, "LuckyGuy"));
}
12/29/2008 14:30 _Emme_#2
Try at the calculate damage thing in LOTF, either atktype 21 or 25. Above where it calculate the damage, just do:

if (Lucky == false)
CalculateDamage
else
if (Other.ChanceSuccess(6.9))
{
Damage = 1;
SendMsg
}
12/29/2008 14:36 Kital82#3
Quote:
Originally Posted by EmmeTheCoder View Post
Try at the calculate damage thing in LOTF, either atktype 21 or 25. Above where it calculate the damage, just do:

if (Lucky == false)
CalculateDamage
else
if (Other.ChanceSuccess(6.9))
{
Damage = 1;
SendMsg
}
Thanks i'll try


EDIT: ( No double post :P )

I just made that, i'm going to see it works.

Quote:
if (Lucky == true && Other.ChanceSuccess(6.9))
{
Damage = 1;
MyClient.SendPacket(General.MyPackets.SendMsg(MyCl ient.MessageId, "System", Name, "You got lucky, and were immunitate of the domage of the hit!", 2005));
MyClient.SendPacket(General.MyPackets.String(UID, 10, "LuckyGuy"));
}