12tails hlep in here !!!

06/13/2011 11:48 somecode#1
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.RedMessage.TopLeft)); return; }
                        break;
                    } 
06/14/2011 11:14 12tails#2
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 somecode#3
Quote:
Originally Posted by 12tails View Post
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.RedMessage.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 Korvacs#4
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 somecode#5
Quote:
Originally Posted by Korvacs View Post
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 nTL3fTy#6
Quote:
Originally Posted by Korvacs View Post
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 Korvacs#7
You dont need to send more than one string....
06/14/2011 15:07 { Angelius }#8
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 12tails#9
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 += ".xxx 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 somecode#10
Quote:
Originally Posted by 12tails View Post
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 += ".xxx 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 somecode#11
how can i call this dialog show message

[Only registered and activated users can see links. Click Here To Register...]
06/14/2011 17:00 nTL3fTy#12
Quote:
Originally Posted by Korvacs View Post
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 Korvacs#13
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 { Angelius }#14
Quote:
Originally Posted by 12tails View Post
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 += ".xxx 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 nTL3fTy#15
Quote:
Originally Posted by Korvacs View Post
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.