Register for your free account! | Forgot your password?

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

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

Advertisement



[Help]NPC that give profs (20)and str,agi,str,etc

Discussion on [Help]NPC that give profs (20)and str,agi,str,etc within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2008
Posts: 24
Received Thanks: 1
Question [Help]NPC that give profs (20)and str,agi,str,etc

hello
i need some help
i made NPC that give free items +12
and NPC that give all important Skill (fixed)
so
i need to know how to do NPS that give prof
i tried to make it
i used this code
Quote:
MyChar.Profs.Add(420, 20);
but it's don't work
then i tried that code
Quote:
General.MyPackets.Prof(420, 20, 0);
not work too
so wat i can do
that's first

if some one know how to do NPC give 600 Str,agi ,etc
it will be helpful
i think it's hard work but I trust in this site
spiderfady is offline  
Old 03/27/2009, 04:29   #2
 
elite*gold: 0
Join Date: Mar 2009
Posts: 75
Received Thanks: 10
seriously typing bigger just hurts my eyes next time make font lower...

umm thats not how you send packets.. lol check out the /prof command
GoaT pLz is offline  
Old 03/27/2009, 04:29   #3
 
elite*gold: 0
Join Date: Mar 2009
Posts: 75
Received Thanks: 10
seriously typing bigger just hurts my eyes next time make font lower...

umm thats not how you send packets.. lol check out the /prof command
GoaT pLz is offline  
Old 03/27/2009, 16:25   #4
 
elite*gold: 0
Join Date: Jun 2008
Posts: 24
Received Thanks: 1
Quote:
Originally Posted by GoaT pLz View Post
seriously typing bigger just hurts my eyes next time make font lower...

umm thats not how you send packets.. lol check out the /prof command
not that!!!!!! LoL
spiderfady is offline  
Old 03/27/2009, 16:41   #5
 
L1nk1n*P4rK's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 303
Received Thanks: 39
I'm so happy to see again someone who ask a LOTF script!
Becouse you do the "Major Step" I will help you!


Code:
SendPacket(General.MyPackets.Prof.Add([COLOR="Red"]450[/COLOR], [COLOR="DarkOrange"]0[/COLOR]));
MyChar.Save();
or

Code:
SendPacket(General.MyPackets.Prof([COLOR="Red"]450[/COLOR], [COLOR="DarkOrange"]0[/COLOR]));
MyChar.Save();
Depend on your LOTF version.


Legend:
/////-Prof ID
/////-Prof Exp

#UpDate
For All Who Want To Learn!
1.Why I use SendPacket and no MyChar or General?

Becouse you talk to a NPC and the expresions MyChar and General affect you directly, and for a NPC is wrong!.You can use this 2 expresions ONLY when you code a Command or when you are useing (MyChar) to define something.

2.So what is so special at SendPacket?

SendPacket is an expresion which send information to some packet's!
To take for example the Case: 74 (the login case) if you scroll down you will find this:
Code:
 [COLOR="Red"]                                       SendPacket[/COLOR](General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Welcome to ShadowCo [Ver 3.1]", [COLOR="#0000ff"]2011[/COLOR]));
                                        [COLOR="#ff0000"]SendPacket[/COLOR](General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Please Reffer Us To Your Friends!", [COLOR="#0000ff"]2000[/COLOR]));
                                        [COLOR="#ff0000"]SendPacket[/COLOR](General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Exp Rate: " + DataBase.ExpRate + "x.", [COLOR="#0000ff"]2000[/COLOR]));
                                        [COLOR="#ff0000"]SendPacket[/COLOR](General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Prof Rate: " + DataBase.ProfExpRate + "x.", [COLOR="#0000ff"]2000[/COLOR]));
                                        [COLOR="#ff0000"]SendPacket[/COLOR](General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Players Online: " + World.AllChars.Count, [COLOR="Blue"]2005[/COLOR]));
Now If you Read carefull you will see at the end of each line the expresion SendPacket is sending a MSG to the ChatPacket's with the specified ID (2000,2005,2011)
Now to end this short tutorial SendPacket is sending the prof ID and Exp to DB and that will save it with the expresion MyChar.Save();
#UpDate
L1nk1n*P4rK is offline  
Old 03/27/2009, 17:05   #6
 
L1nk1n*P4rK's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 303
Received Thanks: 39
#Update
L1nk1n*P4rK is offline  
Old 03/27/2009, 18:37   #7
 
elite*gold: 0
Join Date: Jun 2008
Posts: 24
Received Thanks: 1
Quote:
Originally Posted by L1nk1n*P4rK View Post
I'm so happy to see again someone who ask a LOTF script!
Becouse you do the "Major Step" I will help you!


Code:
SendPacket(General.MyPackets.Prof.Add([COLOR="Red"]450[/COLOR], [COLOR="DarkOrange"]0[/COLOR]));
MyChar.Save();
or

Code:
SendPacket(General.MyPackets.Prof([COLOR="Red"]450[/COLOR], [COLOR="DarkOrange"]0[/COLOR]));
MyChar.Save();
Depend on your LOTF version.


Legend:
/////-Prof ID
/////-Prof Exp

#UpDate
For All Who Want To Learn!
1.Why I use SendPacket and no MyChar or General?

Becouse you talk to a NPC and the expresions MyChar and General affect you directly, and for a NPC is wrong!.You can use this 2 expresions ONLY when you code a Command or when you are useing (MyChar) to define something.

2.So what is so special at SendPacket?

SendPacket is an expresion which send information to some packet's!
To take for example the Case: 74 (the login case) if you scroll down you will find this:
Code:
 [COLOR="Red"]                                       SendPacket[/COLOR](General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Welcome to ShadowCo [Ver 3.1]", [COLOR="#0000ff"]2011[/COLOR]));
                                        [COLOR="#ff0000"]SendPacket[/COLOR](General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Please Reffer Us To Your Friends!", [COLOR="#0000ff"]2000[/COLOR]));
                                        [COLOR="#ff0000"]SendPacket[/COLOR](General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Exp Rate: " + DataBase.ExpRate + "x.", [COLOR="#0000ff"]2000[/COLOR]));
                                        [COLOR="#ff0000"]SendPacket[/COLOR](General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Prof Rate: " + DataBase.ProfExpRate + "x.", [COLOR="#0000ff"]2000[/COLOR]));
                                        [COLOR="#ff0000"]SendPacket[/COLOR](General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Players Online: " + World.AllChars.Count, [COLOR="Blue"]2005[/COLOR]));
Now If you Read carefull you will see at the end of each line the expresion SendPacket is sending a MSG to the ChatPacket's with the specified ID (2000,2005,2011)
Now to end this short tutorial SendPacket is sending the prof ID and Exp to DB and that will save it with the expresion MyChar.Save();
#UpDate
thx man i will try it
thank u very much
spiderfady is offline  
Old 03/27/2009, 18:38   #8
 
L1nk1n*P4rK's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 303
Received Thanks: 39
No problem, you are welcome.
You should read my mini tutorial to understand more thing's :P
L1nk1n*P4rK is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Proper Profs (COEmu v2 5095)
04/17/2010 - CO2 Private Server - 2 Replies
I do NOT want to use an npc for profs, I want profs to work just like in the real CO, but my coder is not sure how to make it work without an npc. Any help?
anyone give mi 2 points i will give him lv 70
10/10/2009 - Dekaron Private Server - 11 Replies
anyone give mi 2 points i will give him Summoner lv 70 all i need get thees information anyone help Disconnected from the server http://img49.imageshack.us/img49/6514/27688435.jp g http://img79.imageshack.us/img79/9425/53824501.jp g http://img156.imageshack.us/img156/6789/11497879. jpg http://img99.imageshack.us/img99/2345/72003365.jp g http://img266.imageshack.us/img266/9427/42777688. jpg
to any1 who can give a well working uce il give u the autopot address
08/27/2009 - 12Sky2 - 11 Replies
im using autopots since august 7 and now its patched im willing to give the autopot addres and hp and mp % addres to any1 who can pm me with the new and well workin uce btw the uce must have a working procces and working address search so give it tru pm and il give u the autopot addres as a trade for your help edit= and also have a working freeze
[help]rb skills profs
10/28/2008 - CO2 Private Server - 2 Replies
hey i know this sounds stupid but i can't find out how to do this how can i make it that the skills don't clear anymore if u rb?



All times are GMT +1. The time now is 12: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.