|
You last visited: Today at 12:25
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.
03/27/2009, 04:02
|
#1
|
elite*gold: 0
Join Date: Jun 2008
Posts: 24
Received Thanks: 1
|
[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
|
|
|
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
|
|
|
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
|
|
|
03/27/2009, 16:25
|
#4
|
elite*gold: 0
Join Date: Jun 2008
Posts: 24
Received Thanks: 1
|
Quote:
Originally Posted by GoaT pLz
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
|
|
|
03/27/2009, 16:41
|
#5
|
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
|
|
|
03/27/2009, 17:05
|
#6
|
elite*gold: 0
Join Date: Mar 2008
Posts: 303
Received Thanks: 39
|
#Update
|
|
|
03/27/2009, 18:37
|
#7
|
elite*gold: 0
Join Date: Jun 2008
Posts: 24
Received Thanks: 1
|
Quote:
Originally Posted by L1nk1n*P4rK
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
|
|
|
03/27/2009, 18:38
|
#8
|
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
|
|
|
 |
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.
|
|