Register for your free account! | Forgot your password?

You last visited: Today at 10:11

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

Advertisement



How would this work?

Discussion on How would this work? within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2006
Posts: 93
Received Thanks: 9
How would this work?

I want to make a npc to restart my points if they have first reborn or second reborn. Not sure how if this is even close to right >< i know I need to set how many points you get per a level just don't know how or were?
I just want a hint or nudge as to were to look to find a way to make this possible.

############################################

Make npc Then teach it to speak
Code:
if (CurrentNPC == 9000)
{
SendPacket(General.MyPackets.NPCSay("Hello, would you like to restart your stats for the price of a dragonball?"));
SendPacket(General.MyPackets.NPCLink("Yes please", 1));
SendPacket(General.MyPackets.NPCLink("No thanks,not yet.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
This is were I get lost at ><

Code:
if (CurrentNPC == 9000)
{
if (Control == 1)
if (MyChar.InventoryContains(dbcode, 1))
{
if (MyChar.RBCount > 1)
{
MyChar.RemoveItem(MyChar.ItemNext(dbcode));
}
MyClient.SendPacket(General.MyPackets.Vital((long)UID, 135, Level));
MyClient.SendPacket(General.MyPackets.Vital((long)UID, 0, Str));
MyClient.SendPacket(General.MyPackets.Vital((long)UID, 0, Agi)); 
MyClient.SendPacket(General.MyPackets.Vital((long)UID, 0, Vit));  
MyClient.SendPacket(General.MyPackets.Vital((long)UID, 0, Spi)); 
MyClient.SendPacket(General.MyPackets.Vital((long)UID, 1, CurHP));

}
}
Valkmax is offline  
Old 11/05/2008, 06:36   #2
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 912
Make a variable, say StatPointsRB;
StatPointsRB = MyChar.Str + MyChar.Agi + MyChar.Spi + MyChar.Vit; (etc)

Then, make StatPoints = StatPointsRB, send the packets and yeah.
kinshi88 is offline  
Thanks
1 User
Old 11/05/2008, 15:33   #3
 
elite*gold: 0
Join Date: Aug 2006
Posts: 93
Received Thanks: 9
Thanks for the help
Valkmax is offline  
Old 11/05/2008, 19:41   #4
 
~jochemke~'s Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 259
Received Thanks: 64
goodluck with it
i hope it works for ya

to kinshi tnx for ur help it helped me to xD
~jochemke~ is offline  
Old 11/05/2008, 21:12   #5
 
elite*gold: 0
Join Date: Aug 2006
Posts: 93
Received Thanks: 9
I have no coding experience at all but I am trying =)
Valkmax is offline  
Reply


Similar Threads Similar Threads
how to make DSEEG work with dragonica (THQ/ICE) work for vista 32 bit users
10/16/2010 - Dragonica - 4 Replies
ok after 3 hours of messing around with dragonica i found a way to make it work with DSEEG for those who got the memory edit error firstly within the 1 minture the game is open with dseeg remove all hotkeys and delete all bot settings and click save leave the patcher.exe filepath as it is, select THQ and close everything, make sure that you set DSEEG to run as admin from the compatibility tab in properties. now delete engine.ini from both c: drive and the dragonica release folder ...
[Release] ReXIGNation (Anti-Xigncode+CRC Bypass) spam here work/no work
07/19/2010 - Dekaron - 9 Replies
F>Y>I the bypass still work for me reinstall the game and run the bypasss with Cheat engine only, no winhex or any other way will make you DC right away when log in, am a vista user and i testes 3 different way and only CE work now hope this help u guy :mofo:
opk hacks work 09-01-2010 work slot
01/14/2010 - WarRock Hacks, Bots, Cheats & Exploits - 26 Replies
http://i47.tinypic.com/211j4g5.jpg virüs total Virustotal. MD5: abc818059ccbd0f5b1f10dc507e6a43a Heuristic.BehavesLike.Win32.CodeInjection.P W32/Heuristic-KPP!Eldorado W32/Heuristic-KPP!Eldorado link vakitharcama09ocak.zip ... at uploaded.to - Free File Hosting, Free Image Hosting, Free Music Hosting, Free Video Hosting, ...



All times are GMT +2. The time now is 10:11.


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