Quote:
Text("You can only draw energy from Drasgonballs once per day. Bring two", GC);
Text(" Dragonballs to me, and then I will help you to transfer the energy containing", GC);
Text("in DBs to your body.So you can make use of the energy to level up instantly", GC);
Text("from Level " + GC.MyChar.Level + " to Level " + NextLevel + "(0%)", GC);
Add a definition at character.cs which calledQuote:
ty now works ;)
only une more question how i can put to use unknownman 1 time for day??? can u help me??
public bool DBExpUsedToday = false;
if (Control == 2)
{
if (GC.MyChar.InventoryContains(722185, 1))
{
if (GC.MyChar.InventoryContains(1088000, 1))
{
GC.MyChar.DBExpUsedToday = true;
GC.MyChar.RemoveItem(GC.MyChar.NextItem(1088000));
GC.MyChar.RemoveItem(GC.MyChar.NextItem(722185));
GiveExp(GC, ExpToGive);
Database.SaveCharacter(GC.MyChar, GC.MyChar.Name);
}
else { Text("Sorry, i can't level you up without my dragonball.", GC); Link("Oh, sorry.", 255, GC); }
}
else
{
Text("How dare you deceive me? You don't have any DrunkCelestial with you at all!", GC);
Text("You are wasting my time. I don't want you to say one more word. Get away!", GC);
Link("Sorry.", 255, GC);
End(GC);
}
}
if (GC.MyChar.DBExpUsedToday)
{
Text("You can't draw more then two dragonballs in a day", GC);
Link("I see.", 255, GC);
}
else
{
[B]//Text to be called if he didn't use the exp for today[/B]
}
#region UnknownMan
case 300006:
{
int ExpToGive = (int)Math.Floor(600000 * (1 + ((GC.MyChar.Level - 1) * 0.1)) * 2);
int NextLevel = GC.MyChar.Level;
if (Control == 0)
{
if (GC.MyChar.Level > 130)
{
GC.AddSend(Packets.NPCSay("You already reached level 130. I can't level you anymore."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("Hey, young man. Nice to meet you again. Do you bring any good wine for"));
GC.AddSend(Packets.NPCSay("me? Sigh, the only wine that I'm missing is DrunkCelestial produced by the"));
GC.AddSend(Packets.NPCSay("Flying with Moon Restaurant. If i have chance to savor it again, I won't mind"));
GC.AddSend(Packets.NPCSay(" helping you drawing energy from the powerful DragonBall to increase your\n experience"));
GC.AddSend(Packets.NPCLink("Here is a bottle of DrunkCelestial", 1));
GC.AddSend(Packets.NPCLink("Sorry. I forgot to bring it.", 255));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 1)
{
if ([COLOR="Red"]NeededExp[/COLOR](GC.MyChar.Level) <= GC.MyChar.Experience)
{
GC.AddSend(Packets.NPCSay("You can only draw energy from Dragonballs once per day. Bring two"));
GC.AddSend(Packets.NPCSay(" Dragonballs to me, and then I will help you to transfer the energy containing"));
GC.AddSend(Packets.NPCSay("in DBs to your body.So you can make use of the energy to level up instantly"));
GC.AddSend(Packets.NPCSay("from Level " + GC.MyChar.Level + " to Level " + GC.MyChar.Level + " (" + ExpToGive % 10 + "%)"));
GC.AddSend(Packets.NPCLink("Let's get started!", 2));
GC.AddSend(Packets.NPCLink("Thanks. I see.", 255));
GC.AddSend(Packets.NPCFinish());
}
else
{
NextLevel++;
GC.AddSend(Packets.NPCSay("You can only draw energy from Drasgonballs once per day. Bring two"));
GC.AddSend(Packets.NPCSay(" Dragonballs to me, and then I will help you to transfer the energy containing"));
GC.AddSend(Packets.NPCSay("in DBs to your body.So you can make use of the energy to level up instantly"));
GC.AddSend(Packets.NPCSay("from Level " + GC.MyChar.Level + " to Level " + NextLevel + "(0%)"));
GC.AddSend(Packets.NPCLink("Let's get started!", 2));
GC.AddSend(Packets.NPCLink("Thanks. I see.", 255));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 2)
{
if (GC.MyChar.InventoryContains(722185, 1))
{
if (GC.MyChar.InventoryContains(1088000, 1))
{
GC.MyChar.RemoveItem(GC.MyChar.NextItem(1088000));
GC.MyChar.RemoveItem(GC.MyChar.NextItem(722185));
[COLOR="red"]GiveExp[/COLOR](GC, ExpToGive);
}
else { GC.AddSend(Packets.NPCSay("Sorry, i can't level you up without my dragonball."));
GC.AddSend(Packets.NPCLink("Oh, sorry.", 255));
}
}
else
{
GC.AddSend(Packets.NPCSay("How dare you deceive me? You don't have any DrunkCelestial with you at all!"));
GC.AddSend(Packets.NPCSay("You are wasting my time. I don't want you to say one more word. Get away!"));
GC.AddSend(Packets.NPCLink("Sorry.", 255));
GC.AddSend(Packets.NPCFinish());
}
}
break;
}
#endregion