Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 08:41

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

Advertisement



[Help] With my rb script.

Discussion on [Help] With my rb script. within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2008
Posts: 240
Received Thanks: 10
[Help] With my rb script.

Okay here's my rb script and i can't figure out wtf is wrong i have the npc and stuff right but like i click on it and say ima trojan etc and nothing happens i dosn't go to a diff control and i can't figure out why not well here it is.

Code:
if (CurrentNPC == 127)
                            {
                                SendPacket(General.MyPackets.NPCSay("Hello. Intresed in getting reborned? If you are an WaterTao,you can get reborned at 110,else you can get reborned after 120. Intresed in getting reborned?"));
                                SendPacket(General.MyPackets.NPCLink("Yeah,im intresed,I am an Trojan.", 1));
                                SendPacket(General.MyPackets.NPCLink("Yeah,im intresed,I am an Taoist.", 2));
                                SendPacket(General.MyPackets.NPCLink("Yeah,im intresed,I am an Water Taoist.", 3));
                                SendPacket(General.MyPackets.NPCLink("Yeah,im intresed,I am an Archer.", 4));
                                SendPacket(General.MyPackets.NPCLink("Yeah,im intresed,I am an Warrior.", 5));
                                SendPacket(General.MyPackets.NPCLink("Not intresed,thanks anyways.", 255));
                                SendPacket(General.MyPackets.NPCSetFace(30));
                                SendPacket(General.MyPackets.NPCFinish());
                            }
Code:
if (CurrentNPC == 127)
                            {
                                if (Control == 1)
                                {
                                    SendPacket(General.MyPackets.NPCSay("What would you like to get reborned into? Remember that your earlier skills don't save."));
                                    SendPacket(General.MyPackets.NPCLink("Trojan", 2));
                                    SendPacket(General.MyPackets.NPCLink("Warrior", 3));
                                    SendPacket(General.MyPackets.NPCLink("Archer", 4));
                                    SendPacket(General.MyPackets.NPCLink("Fire Taoist", 5));
                                    SendPacket(General.MyPackets.NPCLink("WaterTaoist", 6));
                                    SendPacket(General.MyPackets.NPCLink("Let me think it over.", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                                if (Control == 2)
                                {
                                    if (MyChar.InventoryContains(721259, 1))
                                    {
                                        MyChar.RemoveItem(MyChar.ItemNext(721259));
                                        MyChar.ReBorn(11);
                                    }
                                }
                                if (Control == 3)
                                {

                                    if (MyChar.InventoryContains(721259, 1))
                                    {
                                        MyChar.RemoveItem(MyChar.ItemNext(721259));
                                        MyChar.ReBorn(21);
                                    }
                                }
                                if (Control == 4)
                                {

                                    if (MyChar.InventoryContains(721259, 1))
                                    {
                                        MyChar.RemoveItem(MyChar.ItemNext(721259));
                                        MyChar.ReBorn(41);
                                    }
                                }
                                if (Control == 5)
                                {

                                    if (MyChar.InventoryContains(721259, 1))
                                    {
                                        MyChar.RemoveItem(MyChar.ItemNext(721259));
                                        MyChar.ReBorn(101);
                                    }

                                }
                            }
I would really be thankful if you help
Bottingpunk is offline  
Old 09/15/2008, 22:51   #2
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
If you already have control 1-6, you can't use them AGAIN, the server can't tell which is which, if you're doing it like that(LOTF source).
tao4229 is offline  
Old 09/15/2008, 23:00   #3
 
elite*gold: 0
Join Date: Feb 2008
Posts: 240
Received Thanks: 10
Quote:
Originally Posted by tao4229 View Post
If you already have control 1-6, you can't use them AGAIN, the server can't tell which is which, if you're doing it like that(LOTF source).
So ... thank you for your fast response any idea how i should do it
Bottingpunk is offline  
Old 09/15/2008, 23:14   #4
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
Well that's all I see wrong with it right now, TBH I barely code/script NPCs, I leave the annoying work to my other server coder.

To fix that in the middle of control 1 just change the end of NPCSay(the number) to a number greater than 6-7 or whatever you ended on and go from there.
tao4229 is offline  
Old 09/16/2008, 03:17   #5
 
LetterX's Avatar
 
elite*gold: 20
Join Date: May 2007
Posts: 1,125
Received Thanks: 332
Code:
if (CurrentNPC == 127)
                            {
                                SendPacket(General.MyPackets.NPCSay("Hello. Would you like to reborn?"));
                                SendPacket(General.MyPackets.NPCSay("The Price is you must be 110+ for Waters and 120+ for all other classes "));
                                SendPacket(General.MyPackets.NPCSay("and you must give me a Celestial Stone."));
                                SendPacket(General.MyPackets.NPCLink("Yes", 1));
                                SendPacket(General.MyPackets.NPCLink("No", 255));
                                SendPacket(General.MyPackets.NPCSetFace(30));
                                SendPacket(General.MyPackets.NPCFinish());
                            }
That is the first part for you.
LetterX is offline  
Reply


Similar Threads Similar Threads
L2Walker script: Solo rebuff/restock/return script
08/08/2012 - Lin2 Exploits, Hacks, Bots, Tools & Macros - 63 Replies
Hello! I've been reading alot and not really contributing so i'll start off here with a very well working script im using to bot my SK outside ivory tower in oren. I've tried to structure the code so it easily can be modified for another level of character, town, and hunting spot. The script is made for CT2 Retail, mainly to get advantage of the newbie buffs (which now lasts all the way until level 62) Change log: Update 2008-09-01 Version 1.14 -Download
[suche] d2nt level rush script 1-25 / follow script
06/23/2010 - Diablo 2 Programming - 5 Replies
moin erstmal sry falls es da doch schon was passendes zu gab - hab schonmal gesucht aber nur alte sachen gefunden oder eben antworten in richtung "geht so schnell dafür braucht man keinen bot" ^^ mein problem besteht darin dass ich für lvl 1 bis 20 immer x stunden brauche - trist geht ja noch halberwegs aber mit tombruns such ich mich immer dusselig ^^ - bzw cows sind noch schlimmer (dafür geht das cow-script für d2nt ausm bluebird zumindest halberwegs) die frage ist jetz die - giebt...



All times are GMT +1. The time now is 08:41.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.