Register for your free account! | Forgot your password?

You last visited: Today at 09:22

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

Advertisement



[RELEASE]DBZone for [VIP]

Discussion on [RELEASE]DBZone for [VIP] within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2006
Posts: 297
Received Thanks: 58
Exclamation [RELEASE]DBZone for [VIP]

hello all,
Ive created a new [status] for servers who u can give/sell on ure site..
Obvious for 5165, but for the record: 5165 SOurce!!!
+ also a new [VIP] Zone(also entereble for gm/pm) where they can hunt Db/ DragonballScrolls...(If Status==[VIP] & if (GC.MyChar.Level >=129)

Legenda:
green= Edittable of youre choice
Red= Editable if already taken

How to start:

I am going 2 teach u how to add [VIP] to a players name.
Then u go to:
Step 1:NewestCoServer.exe(to open server lol)
Step 2: Typ: /accounts
step 4: In the box that pops up u press: Search for accounts
step 5: click the arrow down (^ but opposite side)
step 6: search for his/her account name.
step 7: in the box: Status u add: [VIP]
step 8: Press Save

Nice now youre player is a [VIP].
NOw here are the codes so he can even enter somewhere, where [VIP] is needed.

@ NpcDialog.Cs Search for:

Code:
default:
                                {
This is Totally Below in NPCDialog.cs

Above that add:
Code:
 #region DragonballZone
                            case [COLOR="red"]666[/COLOR]:
                                {

                                    if (Control == 0)
                                    {
                                            GC.AddSend(Packets.NPCSay("Hey if you are a [VIP], and level [COLOR="Lime"]130[/COLOR] i can teleport you to DragonBal Area? It will only cost you 20000 Cps."));
                                            GC.AddSend(Packets.NPCLink("Yeah Lets make Dragonballs", 1));
                                            GC.AddSend(Packets.NPCLink("Let me Buy [VIP] status for only 5$ a week, www.crankco.nl.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                    }
                                    if (GC.AuthInfo.Status == "[GM]" || GC.AuthInfo.Status == "[PM]" || GC.AuthInfo.Status == "[VIP]")
                                    if (GC.MyChar.CPs >= [COLOR="lime"]20000[/COLOR])
                                    if (GC.MyChar.Level >=[COLOR="lime"]129[/COLOR])
                                      
                                    if (Control == 1)
                                    {
                                        GC.MyChar.CPs -= [COLOR="lime"]20000[/COLOR];
                                        GC.MyChar.Teleport(4021, 263, 64);
                                    }

                                    if (GC.AuthInfo.Status == "")
                                    {
                                        GC.AddSend(Packets.NPCSay("You are not a GM, PM, ADM, VIP"));
                                        GC.AddSend(Packets.NPCSay("You can purchase this at http://www.cranko.nl"));
                                        GC.AddSend(Packets.NPCSay(" Contact Crank, ore just purchase via site."));
                                        GC.AddSend(Packets.NPCSay("VIP will cost u 5$ a week with many advantages"));
                                        GC.AddSend(Packets.NPCLink("goto www.crankco.nl!.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }    
                                    if (GC.MyChar.CPs <= [COLOR="lime"]20000[/COLOR])
                                        {
                                            GC.AddSend(Packets.NPCSay("You Not have 20k cps"));
                                            GC.AddSend(Packets.NPCLink("Oh ok, i will go hunt.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    if (GC.MyChar.Level <= [COLOR="lime"]129[/COLOR])
                                        {
                                            GC.AddSend(Packets.NPCSay("You Not have level 130"));
                                            GC.AddSend(Packets.NPCLink("Oh i will go level up.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    
                                    break;
                                } 
#endregion
Below DBZone npc add(teleporter back):
Code:
#region back from DBZone Teleporater
                            case [COLOR="red"]6666[/COLOR]:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Hey i can Teleport you back to twincity for 100 silver."));
                                        GC.AddSend(Packets.NPCLink("Yes please Teleport me", 1));
                                        GC.AddSend(Packets.NPCLink("Just passing by.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (GC.MyChar.Silvers >= [COLOR="lime"]100[/COLOR])
                                    {
                                        GC.MyChar.Silvers -= [COLOR="lime"]100[/COLOR];
                                        if (Control == 1) GC.MyChar.Teleport([COLOR="lime"]1002, 500, 305[/COLOR]);
                                    }
                                    else
                                    {
                                        GC.AddSend(Packets.NPCSay("I said [COLOR="lime"]100[/COLOR] CPS! If you don't have that, don't bother me."));
                                        GC.AddSend(Packets.NPCLink("I see.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    break;
                                }
                            #endregion

Then go to Mob.cs and find:
Code:
else if (MyMath.ChanceSuccess(DropRates.CPBackpack))
Below that void(below the WHOLE CODE, so below the last } )
Put:
Code:
if (Loc.Map == 4021)
                    {
                        if (Name == "Talon")
                        {
                            if (MyMath.ChanceSuccess([COLOR="lime"]3.5[/COLOR]))
                            {
                                DI2.Info.ID = 720028;
                                DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
                                DI2.Info.CurDur = DI2.Info.MaxDur;
                            }
                        }
                    }
                    if (Loc.Map == 4021)
                    {
                        if (Name == "Talon")
                        {
                            if (MyMath.ChanceSuccess([COLOR="lime"]10.5[/COLOR]))
                            {
                                DI2.Info.ID = 1088000;
                                DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
                                DI2.Info.CurDur = DI2.Info.MaxDur;
                            }
                        }
                    }
                    if (Loc.Map == 4021)
                    {
                        if (Name == "Syren")
                        {
                            if (MyMath.ChanceSuccess([COLOR="lime"]10.5[/COLOR]))
                            {
                                DI2.Info.ID = 1088000;
                                DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
                                DI2.Info.CurDur = DI2.Info.MaxDur;
                            }
                        }
                    }
                    if (Loc.Map == 4021)
                    {
                        if (Name == "Syren")
                        {
                            if (MyMath.ChanceSuccess([COLOR="Lime"]5.5[/COLOR]))
                            {
                                DI2.Info.ID = 720028;
                                DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
                                DI2.Info.CurDur = DI2.Info.MaxDur;
                            }
                        }
                    }
then add the spawns:
Go to youre C:/OldCoDb/MobSpawns.Txt
add:
Code:
[COLOR="Red"]91[/COLOR] 250 4021 199 391 445 335
[COLOR="red"]91[/COLOR] 25 4021 262 68 262 195
[COLOR="red"]91[/COLOR] 10 4021 267 203 280 334
[COLOR="red"]91[/COLOR] 10 4021 280 334 286 479
[COLOR="red"]93[/COLOR] 30 4021 262 68 262 195
[COLOR="red"]93[/COLOR] 50 4021 267 203 280 334
[COLOR="red"]93[/COLOR] 100 4021 280 334 286 479
[COLOR="red"]93[/COLOR] 200 4021 199 391 445 335
If u didnt add Syren/Talon in MobINfos:
(C:/OldCODB/MobInfos.txt)
add:
Code:
[COLOR="red"]91[/COLOR] Talon 1 254 250 65535 3700 86 0 15550 15650 10 86 2 True 2 500 5000 1000 12 False
[COLOR="red"]93[/COLOR] Syren 1 254 255 65535 3800 79 0 20000 23500 10 80 2 True 2 1000 10000 1000 12 False
( 91 and 93 are the Mob number, if they already exist, take another 1, but dont forget to also change it in youre MobSpawns, just watch the RED colored numbers, and u will know what i mean.)

Final: Add the Npc, To: C:/OldCoDB/NPCs
add:
Code:
[COLOR="red"]666[/COLOR] 6120 2 13 1002 445 444
[COLOR="red"]6666[/COLOR] 9800 2 13 4021 253 56
(666 and 6666 also a random number, if already in use, make it other wise, Dont forget to also change the number in NPCDialog.cs)

Here are some screenshots, of my NPc and itemdrops..





#Problem Fixed + editted the text
(Ty 2 Andrea)


Done
To be honest this is my 1st release/usefull post ever ..
Hope u all like it..

All credits are going to MY side, because i invented this and ive never seen this release before ..
pintser is offline  
Thanks
8 Users
Old 03/21/2010, 00:38   #2
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
Not bad
hunterman01 is offline  
Old 03/21/2010, 00:44   #3
 
elite*gold: 0
Join Date: May 2006
Posts: 297
Received Thanks: 58
Thanks
pintser is offline  
Old 03/21/2010, 00:52   #4
 
elite*gold: 0
Join Date: Aug 2009
Posts: 930
Received Thanks: 448
nice job
.Guru is offline  
Thanks
1 User
Old 03/21/2010, 00:59   #5
 
elite*gold: 0
Join Date: May 2006
Posts: 297
Received Thanks: 58
pintser is offline  
Old 03/21/2010, 01:03   #6
 
elite*gold: 0
Join Date: Feb 2010
Posts: 492
Received Thanks: 222
We cannot help if the error is in deutch of something
Paralyzer[GM] is offline  
Thanks
1 User
Old 03/21/2010, 02:31   #7
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
it dutch and means : Objectreference isnt set to anything. NULL EXEP.
~Yuki~ is offline  
Thanks
1 User
Old 03/21/2010, 03:55   #8
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
oh basically go to that definition its probably something like...

Code:
string bob;

can change to...

string bob = "";
or

Code:
uint16 VIP;

to

uint16 VIP = 0;
PeTe Ninja is offline  
Thanks
1 User
Old 03/21/2010, 09:05   #9
 
elite*gold: 0
Join Date: May 2006
Posts: 297
Received Thanks: 58
Quote:
Originally Posted by PeTe Ninja View Post
oh basically go to that definition its probably something like...

Code:
string bob;

can change to...

string bob = "";
or

Code:
uint16 VIP;

to

uint16 VIP = 0;
i dont have both in my source Xd..
@pete: isnt it a problem in DropAnItem.cs.. i need to add something ore so??
@yuki: Ty yuki for translation..
@any 1, isnt it possible to change language of console for 2 seconds to see the spam in english Xd...
pintser is offline  
Old 03/21/2010, 16:50   #10
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
go to the line and post it here.
PeTe Ninja is offline  
Thanks
1 User
Old 03/21/2010, 20:41   #11
 
elite*gold: 0
Join Date: May 2006
Posts: 297
Received Thanks: 58
the line was added, but alerady fixed thanks 4 andrea!!!
pintser is offline  
Old 03/22/2010, 04:55   #12
 
ftp4life's Avatar
 
elite*gold: 0
Join Date: Mar 2007
Posts: 130
Received Thanks: 9
hey i did EVERYTHING you said to do but im getting an error when trying to click the npc it wont let me get in is there something i am doing wrong
ftp4life is offline  
Old 03/22/2010, 18:39   #13
 
elite*gold: 0
Join Date: May 2006
Posts: 297
Received Thanks: 58
Quote:
Originally Posted by ftp4life View Post
hey i did EVERYTHING you said to do but im getting an error when trying to click the npc it wont let me get in is there something i am doing wrong
U have made youre char: [VIP] Ore [GM] Ore [PM] ?

what error do u get???
im not a psykick Xd..
make screenshot/ Printscreen.. and show us..
ore explain the problem
pintser is offline  
Old 03/23/2010, 02:55   #14
 
ftp4life's Avatar
 
elite*gold: 0
Join Date: Mar 2007
Posts: 130
Received Thanks: 9
This is a screent shot of it

i have added everything in the right place
Attached Images
File Type: jpg 106972385.jpg (302.0 KB, 36 views)
ftp4life is offline  
Old 03/23/2010, 23:42   #15
 
elite*gold: 0
Join Date: May 2006
Posts: 297
Received Thanks: 58
u didnt use the right Case 666 in NPc Dialog..
ore put it in wrong place...
pintser is offline  
Reply

Tags
5165 source, db, dragonball, fix, source




All times are GMT +1. The time now is 09:25.


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.