4Botters


 
Go Back   4Botters" I am A Bad Ass Botter " > Online Games > Conquer Online Sections > Conquer Bots > Conquer Private Servers

Conquer Private Servers Post guides , scripts , advertise , anything related to Conquer Private Servers !

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-08-2010, 09:05 PM
Noob
 
Join Date: Oct 2009
Posts: 9
Thanks: 2
Thanked 0 Times in 0 Posts
Smile How to do this???

Heya guys
I've got a question....
I almost made a quest like monster hunter but
how can I make the NPC only gives the prize if the char has killed like 30 mobs???
Reply With Quote
Google Adsense
  #2 (permalink)  
Old 02-09-2010, 12:44 PM
Closo's Avatar
Moderator
 
Join Date: Nov 2009
Location: In C# :D
Posts: 993
Thanks: 252
Thanked 373 Times in 151 Posts
Default Re: How to do this???

change if monster hunt= 300 change 300 to 30 lol
__________________
DarkLife Server Progress:

Jobs : 100%
New NPCS : 50%
Mobs: 100%
Jobs Quests: 10%
Client: 50%
New System: 20%


-----------------------------------------------------
Check all my work Sorry you can't view links because you are not registered. [ Click here to register ]
Reply With Quote
  #3 (permalink)  
Old 02-09-2010, 08:18 PM
killersub's Avatar
A Botter
 
Join Date: Dec 2009
Posts: 214
Thanks: 33
Thanked 80 Times in 26 Posts
Default Re: How to do this???

Quote:
Originally Posted by omom248 Sorry you can't view links because you are not registered. [ Click here to register ]
change if monster hunt= 300 change 300 to 30 lol
what he said but modified...

go to Character.cs and create a new variable called:
Quote:
public int MonsterHunt = 0;
and in the NPC for example insert in the new text: "if (GC.MyChar.MonsterHunt = 30)"...

I took my time to create u dis simple one...Credits goes to me if you use this...hope u learn from dis one ^^.

Code:
#region MonsterHunt
                            case 35567:
                                {
                                    if (Control == 0)
                                    if (GC.MyChar.MonsterHunt = 30)
                                   {
                                        GC.AddSend(Packets.NPCSay("I see you have killed 30 monsters, you will now get 30,000 CPs according to the kills!"));
                                        GC.AddSend(Packets.NPCSay("I want the prize!, 1"));
                                        GC.AddSend(Packets.NPCLink("Okay!", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    if (Control == 1)
                                    {
                                    if (GC.MyChar.CPs >= 30000)
                                {
                                    GC.MyChar.CPs += 30000)
                                   GC.AddSend(Packets.NPCSay("Here is your reward young one! enjoy it!, 255"));
                                    GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                    GC.AddSend(Packets.NPCFinish());
                                }
                                   else
                                        {
                                            GC.AddSend(Packets.NPCSay("You have not yet killed 30 monsters to claim your prize!"));
                                            GC.AddSend(Packets.NPCLink("I see.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                  }
                               break;
                           }
                    #endregion
well Hope I helped you yet again XD...+thanks if I helped rememba! ^_0 If u get errors from dis den tell me...
Reply With Quote
The Following User Says Thank You to killersub For This Useful Post:
Virapha (02-10-2010)
  #4 (permalink)  
Old 02-10-2010, 02:35 PM
Noob
 
Join Date: Oct 2009
Posts: 9
Thanks: 2
Thanked 0 Times in 0 Posts
Default Re: How to do this???

Thanked but where I put monster ID xD???
Reply With Quote
  #5 (permalink)  
Old 02-10-2010, 04:34 PM
Closo's Avatar
Moderator
 
Join Date: Nov 2009
Location: In C# :D
Posts: 993
Thanks: 252
Thanked 373 Times in 151 Posts
Default Re: How to do this???

ya u can edit it xD
__________________
DarkLife Server Progress:

Jobs : 100%
New NPCS : 50%
Mobs: 100%
Jobs Quests: 10%
Client: 50%
New System: 20%


-----------------------------------------------------
Check all my work Sorry you can't view links because you are not registered. [ Click here to register ]
Reply With Quote
  #6 (permalink)  
Old 02-10-2010, 08:58 PM
killersub's Avatar
A Botter
 
Join Date: Dec 2009
Posts: 214
Thanks: 33
Thanked 80 Times in 26 Posts
Default Re: How to do this???

Quote:
Originally Posted by Virapha Sorry you can't view links because you are not registered. [ Click here to register ]
Thanked but where I put monster ID xD???
To implement the NPC ID, you simply go to ur OldCODB folder and open up the NPCs.txt file and find a new npc u added or add a new one...

Quote:
case 35567:
as I stated in my above post that beside "case" is the NPC ID which you put "FIRST" when you create a new NPC spawn...now I'll show u how to create a new NPC spawn in ur NPCs.txt...:

first open it up...and then go to the bottom of the file and enter in a blank space and put this(example):

Quote:
35567 2480 2 0 1002 427 378
NOW, notice the numbers...what do they mean?

"35567"-means a random NPC ID you gave/have given the NPC you made
"2480"-is the NPC Type which is basically what the NPC will look like...
"2"-is the NPC flags...1 is for shop and 2 is for a normal npc...
"0"-is the NPC direction, meaning where the NPC is facing(there's more...)
"1002"-is the Map(ID) where the NPC will be put...find all the Map IDs here:[Only registered and activated users can see links. Sorry you can't view links because you are not registered. [ Click here to register ]]
"427,378"-are the X-coordinates and Y-coordinates of what spot the NPC will get placed in...

anyways I hoped you understood dis lol...I know it's difficult but I bet you can understand it A.S.A.P. goodluck!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


Translate This Page


All times are GMT. The time now is 09:49 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.