Problem in Team Qulif

03/09/2013 18:35 shadowman123#31
Quote:
Originally Posted by MrCaSpR View Post
feh anhe

void import feh a5rha wala fen
Check My Edited Post ... w la2 msh Import Void .. mn esmaha ya3ny Import de eli htda5al el teams 3shan yla3bo b3d ..

Translation :-
No .. Import void as its name refer to .. it just Send the Two Teams into Arena Map
03/09/2013 18:42 MrCaSpR#32
Quote:
Originally Posted by shadowman123 View Post
Check My Edited Post ... w la2 msh Import Void .. mn esmaha ya3ny Import de eli htda5al el teams 3shan yla3bo b3d ..

Translation :-
No .. Import void as its name refer to .. it just Send the Two Teams into Arena Map
i check your post and can't understand all
(bor7a bas 3alia keda feh now void export tmam howa dah elly 2sdk 3alih )
tab ( el tani dah bet3e eh !!!!!!! )

this is my Export
PHP Code:
public void Export()
            {
                foreach (
Client.GameState teammate1 in Player1.Entity.Owner.Team.Teammates)
                {
                    foreach (
Client.GameState teammate2 in Player2.Entity.Owner.Team.Teammates)
                    {
                        
teammate1.InArenaMatch Player1.InArenaMatch;
                        
teammate2.InArenaMatch Player2.InArenaMatch;
                        
Player1.InArenaMatch Player2.InArenaMatch false;
                        var 
arr Watcherss.ToArray();
                        foreach (
Client.GameState client in arr)
                            
QualifyEngine2.DoLeave(client);
                        
arr null;
                        
Win(WinnerLoser);
                        
Inside false;
                        
Player1.Entity.Teleport(Player1.Entity.PreviousMapIDPlayer1.Entity.PrevXPlayer1.Entity.PrevY);
                        
Player2.Entity.Teleport(Player2.Entity.PreviousMapIDPlayer2.Entity.PrevXPlayer2.Entity.PrevY);
                        
Console.WriteLine(55 "");
                        
Loser.Entity.Ressurect();
                        
Winner.Entity.Ressurect();
                        
Player1.ArenaTeam.AcceptBox Player2.ArenaTeam.AcceptBox false;
                        
Player1.ArenaTeam.AcceptBoxShow Player2.ArenaTeam.AcceptBoxShow Player2.ArenaTeam.AcceptBoxShow.AddHours(2);
                        
Player1.ArenaTeam.PlayWith Player2.ArenaTeam.PlayWith 0;
                        
ArenaTeamSignup sign = new ArenaTeamSignup();
                        
sign.DialogID ArenaTeamSignup.MainIDs.Dialog2;
                        
Loser.Send(sign.BuildPacket());
                        
sign.OptionID ArenaTeamSignup.DialogButton.Win;
                        
Winner.Send(sign.BuildPacket());
                        
QualifierList2.Groups.Remove(ID);
                        
Player1.Entity.PKMode P1Mode;
                        
Player1.Send(new Data(true) { UID Player1.Entity.UIDID Data.ChangePKModedwParam = (uint)Player1.Entity.PKMode });
                        
Player2.Entity.PKMode P2Mode;
                        
Player2.Send(new Data(true) { UID Player2.Entity.UIDID Data.ChangePKModedwParam = (uint)Player2.Entity.PKMode });
                        
Player1.QualifierGroups null;
                        
Player2.QualifierGroups null;
                        if (
dynamicMap != null)
                            
dynamicMap.Dispose();
                    }
                }
            } 
and this is my code in packet handle
PHP Code:
#region Arena Team Qualifier (2241-2247)
                
case 2244://Request Arena Winner List
                    
{
                        
//Code snippet that belongs to RCE
                        
Game.ConquerStructures.Society.ArenaTeamSignup.Statistics.ShowWiners(client);
                        break;
                    }
                case 
2243://Request Arena ranking List
                    
{
                        
//Code snippet that belongs to Ultimation
                        
ushort PageIndex BitConverter.ToUInt16(packet10);
                        
Game.ConquerStructures.Society.ArenaTeamSignup.Statistics.ShowRankingPage(packet[10], PageIndexclient);
                        break;
                    }
                case 
2242:
                    {
                        
//Code snippet that belongs to Ultimation
                        
ushort PageIndex BitConverter.ToUInt16(packet10);
                        
Game.ConquerStructures.Society.QualifyEngine2.RequestGroupList(clientPageIndex);
                        break;
                    }
                case 
2241://Arena Team Signup!
                    
{
                        
uint DialogID BitConverter.ToUInt32(packet4);
                        
uint ButtonID BitConverter.ToUInt32(packet8);
                        switch (
DialogID)
                        {
                            case 
4:
                                {
                                    switch (
ButtonID)
                                    {
                                        case 
0:
                                            {
                                                
Game.ConquerStructures.Society.QualifyEngine2.DoQuit(client);
                                                break;
                                            }
                                    }
                                    break;
                                }
                            case 
0:
                                {
                                    if (
client.Entity.MapID != 1098 && client.Entity.MapID != 6001 && client.Entity.MapID != 6000 && client.Entity.MapID != 6002)
                                    {
                                        
Game.ConquerStructures.Society.QualifyEngine2.DoSignup(client);
                                        
client.Send(packet);
                                    }
                                    else
                                    {
                                        
client.Send(ServerBase.Constants.Teleportout);
                                    }
                                }
                                break;
                            case 
1Game.ConquerStructures.Society.QualifyEngine2.DoQuit(client); client.Send(packet); break;
                            case 
3:
                                {
                                    switch (
ButtonID)
                                    {
                                        case 
2Game.ConquerStructures.Society.QualifyEngine2.DoGiveUp(client); break;
                                        case 
1Game.ConquerStructures.Society.QualifyEngine2.DoAccept(client); break;
                                    }
                                    break;
                                }
                            case 
5:
                                {
                                    if (
client.ArenaTeam.ArenaPointTeam <= 1500)
                                        if (
client.Entity.Money >= 9000000)
                                        {
                                            
client.Entity.Money -= 9000000;
                                            
client.ArenaTeam.ArenaPointTeam += 1500;
                                            
client.Send(client.ArenaTeam);
                                        }
                                    break;
                                }
                            case 
11://Win/Lose Dialog
                                
{
                                    switch (
ButtonID)
                                    {
                                        case 
0Game.ConquerStructures.Society.QualifyEngine2.DoSignup(client); break;
                                    }
                                    break;
                                }

                        }
                        break;
                    }
                case 
2245:
                    {
                        
client.ArenaTeam.Send(client);
                        break;
                    }
                case 
2247:
                    {
                        if (
client.Map.BaseID == 6001 || client.Map.ID == 6000 || client.Map.ID == 6002)
                            return;
                        
ushort Type BitConverter.ToUInt16(packet10);
                        
uint Fighter BitConverter.ToUInt32(packet16);
                        if (
Type == 0)
                        {
                            if (
ServerBase.Kernel.GamePool.ContainsKey(Fighter))
                            {
                                
Client.GameState Client ServerBase.Kernel.GamePool[Fighter];
                                if (
Client.QualifierGroups != null)
                                {
                                    if (
Client.QualifierGroups.Inside)
                                    {
                                        if (!
Client.QualifierGroups.Done)
                                        {
                                            
Client.QualifierGroups.BeginWatching(client);
                                        }
                                    }
                                }
                            }
                        }
                        else if (
Type == 1)
                        {
                            
Game.ConquerStructures.Society.QualifyEngine2.DoLeave(client);
                        }
                        else if (
Type == 4)
                        {
                            
string name "";
                            for (
int c 22packet.Lengthc++)
                            {
                                if (
packet[c] != 0)
                                    
name += (char)packet[c];
                                else
                                    break;
                            }
                            
Game.ConquerStructures.Society.QualifyEngine2.DoCheer(clientname);
                        }
                        break;
                    }
                
#endregion 
03/10/2013 11:59 abdoumatrix#33
Quote:
Originally Posted by shadowman123 View Post
Check My Edited Post ... w la2 msh Import Void .. mn esmaha ya3ny Import de eli htda5al el teams 3shan yla3bo b3d ..

Translation :-
No .. Import void as its name refer to .. it just Send the Two Teams into Arena Map

@ahmed
tell me the idea of exporting and i will try
(2oly el fekra we ana a3esh)

@casper
(yad ana sa7bak we mesh fahem anta bt2ol eh)
i'm ur friend still don't understand what u say
03/10/2013 23:08 shadowman123#34
Fekret eah ya ged3an mana 7atetloko el code .. 7ata msh 3rfen ht7oto el code fain .. sry i helped u guyz Enough
03/10/2013 23:23 MrCaSpR#35
Quote:
Originally Posted by shadowman123 View Post
Fekret eah ya ged3an mana 7atetloko el code .. 7ata msh 3rfen ht7oto el code fain .. sry i helped u guyz Enough
Shadowman : I put everything in Thread in order to assist me in developing the solution properly without error

@shadowman ana hatetlk el export w el packet handle 3shan T2ole el 3eb feh anhe Fehom W el Code elly anta nazlto yat7t Fen W el Cod elly anta nazlto Gaib error 3shan keda 3aiz T2ole ahot fen 3shan m4 yegeb Error
03/10/2013 23:46 go for it#36
ma3ldesh ya shadow :) ana ha7awel ma3ah ahoh
anta 3ayazhom yamsho men al arena emta ?
lama kolhom fehom yamot sa7 ?
yab2a t7otaha fel attack handlers maslan ? b nested conditions
hat3mal 3 level nested if conditions
if killed entity flag == player flag
if (hit points >= 0) aw if (attack >= hit points)
if team arena map list contain al map beta3hom
teleport bara
w momken t7otaha fel die method (3ala ma atzakar kanet bett3amlaha raise lama 7ad bymawt 7ad)

w hat3mal kman check law homa mayten 3alshan t3malhom rev abl mat3malhom teleport
3alshan law 3amlt rev ba3d ma ta3mal teleport hayro7o ll city default reving coords

w ma3lesh 7awal abl mats2al tafkar w tashof law feh 7aga fel source 3andak orayba men aly anta 3ayzo w dawar 3aleha w 7ot break point w shof al source bya3malha azay

w zay momken ta3mal aly alak 3aleh shadow ano anta ta7ot kol al teams aly 3amla sign up aly anta hat3malhom match f list
aw momken ashal men keda lama wa7ed yamot ta3mal scan
tagyb al map men killer map property
hat3mal scan
for each player in sever
if player map property == killer map
add player to gamestate entity directory

w kol lama wa7ed yamot 2a3mal nafs al scan
for each player in sever
if player map property == killer map
if player team != null , player is team leader
2a3mal foreach loop for each player in this team , law fehom wa7ed alive 2a3mal break w set entity bool property true , law kolhom mayten set that bool to false


law al bool true break , law al bool false revhom kolhom w announce winners w tele them back to previous map with previous x and previous y

leh bool property ? 3alashan anta mesh hayb2a 3andak arena wa7da dol kaza arena f nafs al wa2t
leh team arena map list ? 3alshan anta hat3mal new map each new match w mesh 1 arena l kol al server
leh hat3mal scan 3ala al server kolo ? 3alshan anta lazem ta3mal scan 3alshan t3mal check 3ala al players entity map id

momken ta3mal directory b <entity,mapid> 3alshan tab2a hyea 1 directory w feha al map ids

kol mahtfakar fel 7akayea w kol hatb2a programmer ashtar hat3rf ta3mal al quest a7san
03/11/2013 00:20 shadowman123#37
w deeeen omy ma hyfhamo 7aga kda ya Androw ... Bos ya m3alem bel sala 3al naby kda el code eli ana mdeholak da hyt7at f Export Void .. gamel kda .. tb3an ba2a mt5odsh el code copy paste 3shan ana eli 7ato da example .. msh htla2y 7aga kda 3ndak fa ht3mel error .. Efham ana 3malt eah w defo f Export .. kda el donya salka ba2a .. ht2oly hat el code bezabt h2olak rawa7
03/11/2013 00:28 go for it#38
ya 3am a7a dana kont ba2ra al nahrda sourcat men 2005 w 2006 w kont basab al men 7alawat al codes
al nas deh sab2ana bekter yaba :\ w hybrid mesh la2y 7aga ya3malha , al ha3mal full source bel current patch b kol 7aga w kol aly a7na 3amlnah mab2ash leh ay lazma
da7na da5len 3ala ayam soda :D
03/11/2013 00:57 shadowman123#39
el nas msh httgawab ma3 el Source w b3den 7ata law nazel source 5orafy ana msh haseb sourcy :D w 22oloko 7aga ana hmsa7 el Team Qualififer system el 5ara daaaa .. w hshta3'al ana wa7ed 3la ndafa 3shan sme3t en Binery Reader w Writer tre2a 2dema w bdan
03/11/2013 01:09 go for it#40
ah walahii dah al wa7ed yafrat f marato w mayfartesh f sourco :D trahan 3ala kam ano 3/4 al community hatshta3`al beh ?
bas al moshkela fa3lan ano ma7desh by3raf yan2al men sourcato :D 3alshan keda hatla2y al nas betsta3malha zay ma hyea so still we will have chance
w law 5alas mosh la2yanlaha serfa na3malo proxy bot 3alshan man5alesh 7ad yasta3malo :D
al crypto public wel sboxes public w al dh exchange fel servers w up to date , ya3ny f youmen yakon ma3molo proxy bot w ma7dash yasta3malo
aw if we are lucky enough tla2y exploit :D
03/11/2013 01:25 MrCaSpR#41
Thanxxxx go for it & shadowman123 thanxxxx i will try to make it today
@sokran ya regala w sokran leh el mos3da w matz3l4 mene ya ahmed w sokran ya androw w isa elly feh el 5er ya2dmo rabna
03/12/2013 12:52 abdoumatrix#42
Quote:
Originally Posted by go for it View Post
ma3ldesh ya shadow :) ana ha7awel ma3ah ahoh
anta 3ayazhom yamsho men al arena emta ?
lama kolhom fehom yamot sa7 ?
yab2a t7otaha fel attack handlers maslan ? b nested conditions
hat3mal 3 level nested if conditions
if killed entity flag == player flag
if (hit points >= 0) aw if (attack >= hit points)
if team arena map list contain al map beta3hom
teleport bara
w momken t7otaha fel die method (3ala ma atzakar kanet bett3amlaha raise lama 7ad bymawt 7ad)

w hat3mal kman check law homa mayten 3alshan t3malhom rev abl mat3malhom teleport
3alshan law 3amlt rev ba3d ma ta3mal teleport hayro7o ll city default reving coords

w ma3lesh 7awal abl mats2al tafkar w tashof law feh 7aga fel source 3andak orayba men aly anta 3ayzo w dawar 3aleha w 7ot break point w shof al source bya3malha azay

w zay momken ta3mal aly alak 3aleh shadow ano anta ta7ot kol al teams aly 3amla sign up aly anta hat3malhom match f list
aw momken ashal men keda lama wa7ed yamot ta3mal scan
tagyb al map men killer map property
hat3mal scan
for each player in sever
if player map property == killer map
add player to gamestate entity directory

w kol lama wa7ed yamot 2a3mal nafs al scan
for each player in sever
if player map property == killer map
if player team != null , player is team leader
2a3mal foreach loop for each player in this team , law fehom wa7ed alive 2a3mal break w set entity bool property true , law kolhom mayten set that bool to false


law al bool true break , law al bool false revhom kolhom w announce winners w tele them back to previous map with previous x and previous y

leh bool property ? 3alashan anta mesh hayb2a 3andak arena wa7da dol kaza arena f nafs al wa2t
leh team arena map list ? 3alshan anta hat3mal new map each new match w mesh 1 arena l kol al server
leh hat3mal scan 3ala al server kolo ? 3alshan anta lazem ta3mal scan 3alshan t3mal check 3ala al players entity map id

momken ta3mal directory b <entity,mapid> 3alshan tab2a hyea 1 directory w feha al map ids

kol mahtfakar fel 7akayea w kol hatb2a programmer ashtar hat3rf ta3mal al quest a7san

ty andrew
7kayet el directory dy gamda awy


@ahmed
bra7a 3alina ya 3am mfesh 7ad byb2a coder men awl mara kol wa7ed fe 7aga mbyb2ash 3arefha fa bys2al feha

we ana kont bs2al 3la el fekra bt3at el team arena 3moman
zay el idea el andrew 2alha dy

3la el 3mom TY

Ty All
I will Try it
03/13/2013 00:27 shadowman123#43
Hayeeeeeeeeeel Do it ya m3alem
03/13/2013 05:28 Lateralus#44
#closed. English or German only.