[Release] Minimap source for 1.04D main

PaskaL

New Member
Joined
Apr 14, 2008
Messages
29
Reaction score
42
MiniMap.cpp

Code:
// #############################
// ## Create By [CzF]Leo123
// ## MiniMap.cpp
// ## Street-Mu DLL          
// ## For: Street-Mu Server   
// ## Version: 1.0
// ## www.Street-Mu.com
// #############################

int IsMiniMap;
int LastMapInUse=-1;

class MiniMap
{
public:
    static void Init()
    {
        // Create easy control :D
       _asm
        {
            Mov Eax,0049CC90H
            Mov Byte Ptr Ds:[Eax],0xFF
            Mov Byte Ptr Ds:[Eax+1],0x25
            Mov Byte Ptr Ds:[Eax+2],0x9D
            Mov Byte Ptr Ds:[Eax+3],0x4F
            Mov Byte Ptr Ds:[Eax+4],0x75
            Mov Byte Ptr Ds:[Eax+5],0x00
        }
    }
    static int LoadMap()
    {
        int map = functions::manual_functions::GetMap();
        char FullMapName[200];
        sprintf(FullMapName,"World%d\\map1.jpg",map+1);
        LoadImageJgpForMap(FullMapName,0x780);
        functions::local_functions::StdOut("lodeded %s map with id %d \n",functions::local_functions::GetMapName(map),map);
        return map;
    }
    static void LoadImageJgpForMap(char* ImagePatch,DWORD PrintCode)
            {
                _asm
                {
                    Mov Edi,Main_LoadImageOzt
                    Push 0x1
                    Push 0x00
                    Push 0x2900
                    Push 0x2601
                    Push PrintCode
                  Push ImagePatch
                    Call Edi
                  Add Esp, 0x18
                }
      }
    static int MapCheckerCore(int map)
    {
       switch(map)
       {
        case 0:
            if(IsMiniMap == 1)
            {
                if(LastMapInUse != 0)
                {
                    LastMapInUse = LoadMap();
                }
                return 1;
            }
            break;
        case 1:
            if(IsMiniMap == 1)
            {
                if(LastMapInUse != 1)
                {
                    LastMapInUse = LoadMap();
                }
                return 1;
            }
            break;
        case 2:
            if(IsMiniMap == 1)
            {
                if(LastMapInUse != 2)
                {
                    LastMapInUse = LoadMap();
                }
                return 1;
            }
            break;
        case 3:
            if(IsMiniMap == 1)
            {
                if(LastMapInUse != 3)
                {
                    LastMapInUse = LoadMap();
                }
                return 1;
            }
            break;
            case 4:
            if(IsMiniMap == 1)
            {
                if(LastMapInUse != 4)
                {
                    LastMapInUse = LoadMap();
                }
                return 1;
            }
            break;
            case 6:
            if(IsMiniMap == 1)
            {
                if(LastMapInUse != 6)
                {
                    LastMapInUse = LoadMap();
                }
                return 1;
   }
            break;
            case 7:
            if(IsMiniMap == 1)
            {
                if(LastMapInUse != 7)
                {
                    LastMapInUse = LoadMap();
                }
                return 1;
   }
            break;
            case 8:
            if(IsMiniMap == 1)
            {
                if(LastMapInUse != 8)
                {
                    LastMapInUse = LoadMap();
                }
                return 1;
   }
            break;
            case 10:
            if(IsMiniMap == 1)
            {
                if(LastMapInUse != 10)
                {
                    LastMapInUse = LoadMap();
                }
                return 1;
            }
            break;
            case 24:
            if(IsMiniMap == 1)
            {
                if(LastMapInUse != 24)
                {
                    LastMapInUse = LoadMap();
                }
                return 1;
            }
            break;
            case 30:// VallryOfLoren
            LastMapInUse = 30;
            return 1;
            case 31:
            if(IsMiniMap == 1)
            {
                if(LastMapInUse != 31)
                {
                    LastMapInUse = LoadMap();
                }
                return 1;
            }
            break;
            case 33:
            if(IsMiniMap == 1)
            {
                if(LastMapInUse != 33)
                {
                    LastMapInUse = LoadMap();
                }
                return 1;
            }
            break;
            case 34:
            if(IsMiniMap == 1)
            {
                if(LastMapInUse != 34)
                {
                    LastMapInUse = LoadMap();
                }
                return 1;
            }
            break;
            case 37:
            if(IsMiniMap == 1)
            {
                if(LastMapInUse != 37)
                {
                    LastMapInUse = LoadMap();
                }
                return 1;
            }
            break;
            case 38:
            if(IsMiniMap == 1)
            {
                if(LastMapInUse != 38)
                {
                    LastMapInUse = LoadMap();
                }
                return 1;
            }
            break;
            }
        return 0;
    }
};
Credits :
- Leo123
 
  • Like
Reactions: Milanoob

ReaL

New Member
Joined
Apr 13, 2008
Messages
1,244
Reaction score
654
Адски мн ме марзи, за това ако някой release-не и header-а (.h файла), ще съм мн благодарен, както и ще помогне мн за ReaLMU :cheezy:
 
  • Like
Reactions: Milanoob

ReaL

New Member
Joined
Apr 13, 2008
Messages
1,244
Reaction score
654
дайте го на длл бре..
Зависи за коя версия (на кои адреси да се hook-не), иначе 9/10 за source-а :)
И аз го искам на готово DLL btw :p (GS 1.00.16 - S3 Ep1 DarksTeam) ;)
Но едва ли някой ще се потруди да го направи :(
 
  • Like
Reactions: Milanoob

Stifi

New Member
Joined
Jun 5, 2008
Messages
175
Reaction score
11
За това се различаваме от европейците.. "Ние можем, но не знаем как." - "Ние можем, но ни мързи." говоря в можественно число защото всеки българин е един и същ.
може би 1/10000000000 да е по-различен може би са повече..
дано и се надявам някой да ме е разбрал.
 
Last edited:
  • Like
Reactions: Milanoob
Thread starter Similar threads Forum Replies Date
crazyboy [Release] 97d99i 3D Main + Minimap Releases 27
D [Release] Source Louis Emulator S4 S6 S8 (update 13) Releases 2
D [Release] Source Custom Gloves(RF) Season 6 muemu Releases 0
DemonuMu [Release] MHP AntiHack MU Full Source Releases 3
DemonuMu [Release] ExTeam Season 2 Episode 4 + Custom Items,Quests,Commands & Stable +Sources Releases 2
^TheLast^ [Release] HP Bar Source 99.6XT (Main 1.00.13) Releases 4
D [Release] Sell Resources Script - All PHP versions and MuOnline Seasons Releases 4
DemonuMu [Release] Mu Season 1 Webzen - Developed from Original Source - Regular Update Releases 3
DemonuMu [Release] MuEMU Anti-Cheat Source Releases 0
D [Release] Main 97d Hp bar (source) Releases 0
L [Release] zTeam Season 8 Episode 2 (Source) Good Files Releases 0
L [Release] zTeam Sr Ep3 Server Files + Source + MVCore Website Releases 8
DemonuMu [Release] MU Online Resources (Server Folder) - ethondev Releases 6
D [Release] OGC-Files Season 2 + Source Releases 1
DemonuMu [Release] HellYeahMU Online Credits Engine + Source (Full Free) Releases 17
D [Release] GameServer 0.99.60T Chs Source Releases 0
D [Release] Server Files + Source + MVCore Website Releases 13
D [Release] AcTeam 4.6 Source Releases 4
D [Release] AcTeam 2.5 Source Releases 6
D [Release] zTeam Season 8 Episode 2 (Source) Releases 1
D [Release] SmallHabit Source eX700 Plus VS2010 Releases 1
D [Release] Source New Wings 97d Releases 6
D [Release] MuServers / Launchers / Customs Sources Releases 0
D [Release] Anti Hack Server & Client Side (Source Code) Releases 2
^TheLast^ [Release] 99.6XT GameServer Decompilation (Source Code) Releases 1
C [Release] ExTeam Season 2 Episode 4 + [Custom Items.Quests.Commands] Stable +Sources Releases 4
DemonuMu [Release] KlubZone Web OpenMu Source Releases 81
Angerfist [Release] Working MuGuard Source Releases 0
Wikko0 [Release] IA Julia Season 4.6 ENG + Improvements + Fixes+ Source Releases 2
Wikko0 [Release] Simple Drop System (Source) Releases 0
Angerfist [Release] Source Code - Dll Hide Main - Write Mem Serial - Anti SendPacket Releases 1
Ant1Lamer [Release] MuGuard Sources Releases 0
Firewallcho [Release] Source codes /post /add /drop Releases 33
L [Release] Holy Source Code Releases 4
T [Release] eDataServer 1.0.0.1 Source Releases 0
H [Release] Source Detect Hidetoolz by giangho+ Releases 3
DarkMaster [Release] SCFMT 7.11.66B Source Releases 13
DarkMaster [Release] GgAuth.dll (Source)-[nProtect] Releases 0
DarkMaster [Release] Protocol Source GS 1.00.18 JPN Releases 4
crazyboy [Release] Original Source WebZen 0.65 Releases 2
Shaker [Release] PK Clear Guard Source Code Releases 9
Shaker [Release] /post Source Code Releases 47
P [Release] 3D Camera Sources Releases 16
P [Release] Source Code of Sky Event Releases 7

Similar threads