|
You last visited: Today at 19:26
Advertisement
12tails hlep in here !!!
Discussion on 12tails hlep in here !!! within the CO2 Private Server forum part of the Conquer Online 2 category.
06/13/2011, 11:48
|
#1
|
elite*gold: 0
Join Date: Apr 2011
Posts: 96
Received Thanks: 9
|
12tails hlep in here !!!
i want make more than Guild Promote...
how can i edit the packets?
PHP Code:
case GuildAction.PromoteGUI: { if (Caller.Entity.GuildRank == GuildRank.GuildLeader) { Packet = new GuildAction(true); Packet.Guild_Function = 37; Packet.SecundaryType = 2; Packet.String = "890 0 5 0 0"; Caller.Send(Packet); } else { Caller.Send(new Message("You're not the guild leader!", System.Drawing.Color.Red, Message.TopLeft)); return; } break; }
|
|
|
06/14/2011, 11:14
|
#2
|
elite*gold: 0
Join Date: Apr 2009
Posts: 773
Received Thanks: 441
|
WTF do you want with:
Code:
i want make more than Guild Promote...
how can i edit the packets?
explain it....
|
|
|
06/14/2011, 12:47
|
#3
|
elite*gold: 0
Join Date: Apr 2011
Posts: 96
Received Thanks: 9
|
Quote:
Originally Posted by 12tails
WTF do you want with:
Code:
i want make more than Guild Promote...
how can i edit the packets?
explain it....
|
like 890 = manager
990 = DeputyLeader
PHP Code:
case GuildAction.PromoteGUI: { if (Caller.Entity.GuildRank == GuildRank.GuildLeader) { Packet = new GuildAction(true); Packet.Guild_Function = 37; Packet.SecundaryType = 2; Packet.String = "890 0 5 0 0"; Caller.Send(Packet); } else { Caller.Send(new Message("You're not the guild leader!", System.Drawing.Color.Red, Message.TopLeft)); return; } break; }
if i send this packets ... it only can promote a player to manager
but i want promote a player to DeputyLeader or manager (i said it can show 2 at same time)
|
|
|
06/14/2011, 12:54
|
#4
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
|
Ok this is the simplest thing imagineable.
READ the code you have just shown us, is 890 mentioned somewhere? THATS RIGHT IT IS, now change 890 to 990 FML YOU FIXED IT.
Honestly.......
|
|
|
06/14/2011, 13:30
|
#5
|
elite*gold: 0
Join Date: Apr 2011
Posts: 96
Received Thanks: 9
|
Quote:
Originally Posted by Korvacs
Ok this is the simplest thing imagineable.
READ the code you have just shown us, is 890 mentioned somewhere? THATS RIGHT IT IS, now change 890 to 990 FML YOU FIXED IT.
Honestly.......
|
if i change 890 to 990
how can i promote player to manager ...
i said it can show at same time ...
|
|
|
06/14/2011, 13:30
|
#6
|
elite*gold: 0
Join Date: Jun 2005
Posts: 692
Received Thanks: 353
|
Quote:
Originally Posted by Korvacs
Ok this is the simplest thing imagineable.
READ the code you have just shown us, is 890 mentioned somewhere? THATS RIGHT IT IS, now change 890 to 990 FML YOU FIXED IT.
Honestly.......
|
Actually, I think he wants more than one promotion to do. If he is looking for that, he can just duplicate that one string and modify it a bit. But that source's packet doesn't support multiple strings at the moment so he needs to do some heavy modifying.
|
|
|
06/14/2011, 14:07
|
#7
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
|
You dont need to send more than one string....
|
|
|
06/14/2011, 15:07
|
#8
|
elite*gold: 0
Join Date: Aug 2010
Posts: 991
Received Thanks: 1,107
|
if that packet is what i think it is then that packet is totally wrong thought !
Promoting guild members is being done through the guld window/members/click on the member/ Promote button a window should pop up (if you are sending the available Promote positions packet
(position , currentmembers that is in the same position , total member that can be in that position depending on the guild level ,shared battle power , cps cost to Promote any member to that position))
EI.
(string DeputyLeader = 990 + " " + current Deputy Leaders + " " + Guilds.DeputyLeaderAllowed(Guild.GuildLevel) + " " + 0 + " " + 0; )
string HonoraryManagers = 880 + " " + HonoraryManagers + " " + Guilds.HonoraryManagersAllowed(Guild.GuildLevel) + " " + 0 + " " + 320;
and the whole positions are being sent in one string packet,
once you have picked the new Promotion position and clciked ok the client sends a packet of 1107 subtype 28 and it contains the new position .
position = data 8
Guildmember name = data 26
look for the member using the member name you got and if it found (Member.Position = Position ) and update the whole guild members/db
and about that it doesent show at the same time the spawn entity packet contains a 4 bytes value that should contain the player guild Position and a 4 bytes value that contains the guild uid
one you Promote the player send that spawn packet and its gonna show the changes .
Good luck .
|
|
|
06/14/2011, 15:38
|
#9
|
elite*gold: 0
Join Date: Apr 2009
Posts: 773
Received Thanks: 441
|
string total = "";//final string to send by the packet
if u want to send more than one promotion at once, do:
total = "890 0 5 0 0";
total += ".990 0 5 0 0";
total += ".*** 0 5 0 0";// and from this on...
Packet.String = total;
the "." inside the string is needed, after the first promotion the others need the . before the promo id... (i don't remember if its a string list like you do on string packet or if its a single string with all then)
|
|
|
06/14/2011, 16:49
|
#10
|
elite*gold: 0
Join Date: Apr 2011
Posts: 96
Received Thanks: 9
|
Quote:
Originally Posted by 12tails
string total = "";//final string to send by the packet
if u want to send more than one promotion at once, do:
total = "890 0 5 0 0";
total += ".990 0 5 0 0";
total += ".*** 0 5 0 0";// and from this on...
Packet.String = total;
the "." inside the string is needed, after the first promotion the others need the . before the promo id... (i don't remember if its a string list like you do on string packet or if its a single string with all then)
|
i have another question ...
can you help me ?
|
|
|
06/14/2011, 16:56
|
#11
|
elite*gold: 0
Join Date: Apr 2011
Posts: 96
Received Thanks: 9
|
how can i call this dialog show message
|
|
|
06/14/2011, 17:00
|
#12
|
elite*gold: 0
Join Date: Jun 2005
Posts: 692
Received Thanks: 353
|
Quote:
Originally Posted by Korvacs
You dont need to send more than one string....
|
Code:
7d 00 53 04 25 00 00 00 00 00 00 00 00 00 00 00 }.S.%...........
00 00 00 00 00 00 00 00 [COLOR="DarkOrange"]07[/COLOR] [COLOR="SeaGreen"]0c[/COLOR] [COLOR="Blue"]31 30 30 30 20 31[/COLOR] ..........1000 1
[COLOR="Blue"]20 31 20 30 20 30[/COLOR] [COLOR="SeaGreen"]0b[/COLOR] [COLOR="Blue"]39 39 30 20 30 20 32 20 30[/COLOR] 1 0 0.990 0 2 0
[COLOR="Blue"]20 30[/COLOR] [COLOR="SeaGreen"]0d[/COLOR] [COLOR="Blue"]39 38 30 20 30 20 31 20 30 20 36 35 30[/COLOR] 0.980 0 1 0 650
[COLOR="SeaGreen"]0d[/COLOR] [COLOR="Blue"]38 38 30 20 30 20 31 20 30 20 33 32 30[/COLOR] [COLOR="SeaGreen"]0d[/COLOR] [COLOR="Blue"]38[/COLOR] .880 0 1 0 320.8
[COLOR="Blue"]34 30 20 30 20 31 20 30 20 32 37 30[/COLOR] [COLOR="SeaGreen"]0d[/COLOR] [COLOR="Blue"]36 38 30[/COLOR] 40 0 1 0 270.680
[COLOR="Blue"]20 30 20 31 20 30 20 31 30 30[/COLOR] [COLOR="SeaGreen"]0b[/COLOR] [COLOR="Blue"]36 30 32 20 30[/COLOR] 0 1 0 100.602 0
[COLOR="Blue"]20 32 20 30 20 30[/COLOR] 00 00 00 00 00 00 00 54 51 53 2 0 0.......TQS
65 72 76 65 72 erver
|
|
|
06/14/2011, 17:10
|
#13
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
|
Yes, you CAN send more than 1 string, but you dont NEED to send more than 1 string, so the packet would be fine as it is. =/
|
|
|
06/14/2011, 17:11
|
#14
|
elite*gold: 0
Join Date: Aug 2010
Posts: 991
Received Thanks: 1,107
|
Quote:
Originally Posted by 12tails
string total = "";//final string to send by the packet
if u want to send more than one promotion at once, do:
total = "890 0 5 0 0";
total += ".990 0 5 0 0";
total += ".*** 0 5 0 0";// and from this on...
Packet.String = total;
the "." inside the string is needed, after the first promotion the others need the . before the promo id... (i don't remember if its a string list like you do on string packet or if its a single string with all then)
|
that well never show all positions as every position has its own length
like i said earlier bp/cps/etc
|
|
|
06/14/2011, 17:12
|
#15
|
elite*gold: 0
Join Date: Jun 2005
Posts: 692
Received Thanks: 353
|
Quote:
Originally Posted by Korvacs
Yes, you CAN send more than 1 string, but you dont NEED to send more than 1 string, so the packet would be fine as it is. =/
|
True, but as I said before -- I think he's looking for the way to send both Manager and Deputy Leader. To do that, he will need two strings.
|
|
|
Similar Threads
|
Simple Helpdesk NPC (12Tails)
06/13/2011 - CO2 PServer Guides & Releases - 9 Replies
Hello, today am going to realese a Simple Account Management.
all you have to do is edit the links to your desire and add the npc into the database
#region Helpdesk
case 10060:
{
switch (npcRequest.OptionID)
{
case 0:
{
|
about 12tails source...
05/17/2011 - CO2 Private Server - 4 Replies
i want add TeratoDragon in twincity ...how can i do
|
about 12tails source... Little Help
05/16/2011 - CO2 Private Server - 0 Replies
How to add Frozen grrotto and how can i make guild war works fine and class pk envoy ? ?
|
PLs Hlep
10/11/2010 - Wolfteam - 5 Replies
hab mir grad wolfteam gezogen und wenn ich es starten will geht die hp auf und unten in der task leiste steht game luncher. Aber auf desktop is kein luncher also ich kann das game nich starten! Need help
|
Asking for hlep(about using WPE)
03/12/2010 - Mabinogi - 25 Replies
Maybe I 'll just use wpe to get rid of clicking - -?
|
All times are GMT +2. The time now is 19:26.
|
|