Register for your free account! | Forgot your password?

You last visited: Today at 10:39

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[REL] UnknownMan for the 5156 source

Discussion on [REL] UnknownMan for the 5156 source within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old 12/22/2009, 23:08   #31
 
.Ryu's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 583
Received Thanks: 119
Quote:
Originally Posted by ImmuneOne View Post
Not gonna repeat myself, do as you like.
I allready thanked you
.Ryu is offline  
Old 12/22/2009, 23:21   #32
 
ramix's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
ImmuneOne can u hlp me please

idk why i need 100% to use unknownman :S can u hlp me with this please?
ramix is offline  
Old 12/22/2009, 23:40   #33
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
Quote:
Originally Posted by ramix View Post
ImmuneOne can u hlp me please

idk why i need 100% to use unknownman :S can u hlp me with this please?
Be more specific, what do you need hundred percent of?
ImmuneOne is offline  
Old 12/23/2009, 10:00   #34
 
ramix's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
iam saying u only can active the unknownman when you have 100% exp or more if u have 99% u cant use the unknownman :S
ramix is offline  
Old 12/23/2009, 14:23   #35
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
That's just impossible, but okay if you don't have 99 percent of exp what does it say? And at what option does that appear? Please post that one here then.
ImmuneOne is offline  
Old 12/23/2009, 15:52   #36
 
ramix's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
is say that

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);
ramix is offline  
Old 12/24/2009, 01:09   #37
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
Oh, thanks for noticing. I've corrected it now.
Just use the npc on the main post again.
ImmuneOne is offline  
Old 12/24/2009, 12:45   #38
 
ramix's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
ty now works

only une more question how i can put to use unknownman 1 time for day??? can u help me??
ramix is offline  
Old 12/24/2009, 15:02   #39
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
Quote:
Originally Posted by ramix View Post
ty now works

only une more question how i can put to use unknownman 1 time for day??? can u help me??
Add a definition at character.cs which called
Code:
        public bool DBExpUsedToday = false;
Then at the npc, at control 2 you replace it by
Code:
                                    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);
                                        }
                                    }
Then just do a check at the main call like this:
Code:
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]
}
Then you simply save it into the character file and at the same time you set it to load it.
ImmuneOne is offline  
Old 12/25/2009, 09:24   #40
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
@Alive
So with the DBExpUsed, you're pretty much going to have to go to the character create, character load, character creation, anything that has to with writing to the char file and add a save for it into them.
Arcо is offline  
Old 12/25/2009, 15:35   #41
 
ramix's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
bro not work :S ppl can user more two times for a day :S
ramix is offline  
Old 12/25/2009, 16:29   #42
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
Quote:
Originally Posted by ramix View Post
bro not work :S ppl can user more two times for a day :S
If it doesn't work you simply didn't implement it right.
ImmuneOne is offline  
Old 12/25/2009, 19:10   #43
 
ramix's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
i do all u put in post :S
ramix is offline  
Old 01/23/2010, 23:35   #44
 
elite*gold: 0
Join Date: Aug 2005
Posts: 96
Received Thanks: 25
Thanks for this release ImmuneOne, after changing it up to work in 6165, I have 2 errors stil and cannot figure out what I should change it to...if you or someone else could help me it would be much appreciated.

Code:
                    #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
HardNotTo is offline  
Old 01/24/2010, 01:06   #45
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
Are you sure you put the void functions in the correct place?
ImmuneOne is offline  
Reply


Similar Threads Similar Threads
[Request]I need UnknownMan
09/04/2009 - CO2 Private Server - 1 Replies
Guys i need This Unknownman Npc...Binary 65 plz :(:(
[Help] UnknownMan source code
02/26/2009 - CO2 Private Server - 7 Replies
plss help me guys i need some npc source code like unknownman in the Market... thanks a lot.....



All times are GMT +1. The time now is 10:42.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.