CLEO PLUGIN | MGFUNCS 4.3 (0.3x / 0.3z)

Тема в разделе "CLEO", создана пользователем Владислав, 6 июл 2014.

  1. Владислав

    Владислав Member Основатель

    Регистрация:
    29 май 2014
    Сообщения:
    109
    Симпатии:
    0
    Описание: Хочешь делать крутые скрипты, но нет нужных опкодов? Тогда эта тема для тебя! Каждый может предложить свой опкод (в пределах разумного), который я добавлю в это .cleo
    Совместимость: 0.3x R-1, 0.3z R-1
    Требуется Windows XP SP2 либо старше
    Текущая версия: 4.3 (Impossible)
    Количество опкодов: 62 опкода

    Скачать: http://yadi.sk/d/nX6bbgvRKq6Qi
    Все версии доступны тут
    : http://yadi.sk/d/u7hlEqndEKgYw
    Официальная тема: http://blasthack.net/threads/867/

    Установка для игроков: Содержимое папки "CLEO" архива скопировать в папку "CLEO" игры
    Текущие опкоды: Описание каждого опкода в файле mgf_funcs_info.txt
    Код:
    //версия 2_0
    0D90: 0@ = add_debug_info type DEBUG_HEX name "DebugLoading" value 0
    0D91: set_debug_info 0@ value 3@
    0D92: 1@ = download_query url 2@ local_file "testfile.html"
    0D93: download_query 1@ get_state_to 3@
    0D94: draw_text "New Young Pony Club" pos_xy 64 64 align_xy 0.5 0.0 color 0xFF0000 shadow 1
    //обнова 2_1
    0D95: windows_get_environment_variable "HOMEPATH" to_buffer 3@ buffer_size 256
    0D96: 6@ = timer_every 1000 ms callback_to_label @label active true
    0D97: timer 6@ set_active false
    0D98: callback_retn
    0D99: 5@ = strcmpi str_1 "String" str_2 7@
    //обнова 2_2
    0D9A: callback_retn_without_restoring_vars
    0D9B: timer 5@ set_interval 1500
    0D9C: timer 5@ is_active_to 7@ interval_to 8@
    0D9D: 6@  = samp_setting_index_get_by_name "fpslimit"
    0D9E: 7@ = samp_setting_get_value_type_by_index 6@
    0D9F: 7@ = samp_setting_get_value_by_index 6@ //IF AND SET
    0DA0: samp_setting_set_by_index 7@ value 2255  //for strings use only pointers
    0DA1: 6@ = samp_setting_add_index_by_name "ololoshka" type 1
    0DA2: samp_settings_save
    0DA3: unicode_string 23@ to_ansii use_buffer 22@ max_len 21@
    0DA4: ansii_string 22@ to_unicode use_buffer 23@ max_len 21@
    0DA5: set_debug_info 5@ type 1
    0DA6: set_debug_info 5@ visible false
    0DA7: timer 5@ set_label @timer_label
    //обнова 3_0
    0DA8: get_volume_information root_path_name 1@ volume_name_buffer 2@ volume_serial_to 3@maximum_component_lenght_to 4@ filesystem_flags_to 5@ filesystem_name_buffer 6@ //IF AND SET
    0DA9: get_processor_information vendor_to 1@ serial_to 2@
    0DAA: 3@ = new_vector
    0DAB: delete_vector 3@
    0DAC: 4@ = vector 3@ size
    0DAD: 5@ = vector 3@ element 24 //IF AND SET
    0DAE: vector 3@ element 2 set 1.52
    0DAF: vector 3@ push 512
    0DB0: vector 3@ pop_to 2@
    0DB1: vector 3@ clear
    0DB2: vector 3@ sort
    //обнова 3_1
    0DB3: marker 4@ position to x 6@ y 7@ z 8@ //IF AND SET
    0DB4: 4@ = nearset marker to position x 152.0 y 453.0 radius 10.0 //IF AND SET
    0DB5: 2@ = samp_version
    //обнова 3_3
    0DB6: 1@ = create_hook from_addr 0x32165 to_label @hook_lab pop_count 2 var_to_set_hook 0
    0DB7: plant_hook 1@
    0DB8: unplant_hook 1@
    0DB9: get_hook 1@ last_param_pntr_to 2@
    //обнова 4_0
    0DBA: 1@ = new_cleo_thread from_label @start
    0DBB: 2@ = new_cleo_thread from_memory_pointer 4@
    0DBC: set_thread 2@ local_var 4 to 2@
    0DBD: exit_thread 2@
    0DBE: restart_thread 2@
    0DBF: emul_key_press VK_LEFT is_up 0
    0DC0: 2@ = get_module "samp.dll" handle
    0DC1: 4@ = get_module "kernel32.dll" function "ExitProcess"
    0DC3: show_text_box "azazaza lalka"
    0DC4: set_script 4@ can_work_if_in_menu true
    0DC6: emul_char_press 0x20 is_up false
    //обнова 4_1
    0DC2: 1@ = create_call_hook from_addr 0x5fa50 to_label @hooik pop_count 4 var_to_set_hook 0
    //обнова 4_2
    0DC5: is_menu_opened //IF
    0DC7: 1@  = new c_script
    0DC8: c_script 1@ load_from "test.c" is_file true
    0DC9: c_script 1@ compile
    0DCA: c_script 1@ add_symbol "CCamera__setFade" value 0x50AC20
    0DCB: c_script 1@ run argc 0 args 0
    0DCC: c_script 1@ delete
    //обнова 4_3
    0DCD: 2@ = c_script 1@ get_symbol "AddChatMessage"
    Дополнительно для разработчиков: В архиве есть папка sanny_builder с файлами opcodes.txt и SASCM.INI , содержимое которых надо дописать в соответствующие файлы в папке SannyBuilder\data\sa\, так же есть примеры скриптов в папке script_example и более подробное описание опкодов в файле mgf_funcs_info.txt.
    Код:
    // DEFAULT FUNCTIONS
    malloc
    free
    realloc
    sprintf
    strcpy
    strlen
    strcmp
    strcat
    strtok
    atoi
    itoa
    atof
    atol
    atoll
    printf
    memcpy
    memcmp
    memset
    exit
    fopen
    fread
    fwrite
    fclose
    sinf
    cosf
    modfl
    sqrtf
    sqrtl
    
    // USER32
    FindWindowA
    FindWindowExA
    FindWindowExW
    FindWindowW
    GetAsyncKeyState
    GetFocus
    GetForegroundWindow
    GetKeyState
    GetWindow
    GetWindowInfo
    GetWindowLongA
    GetWindowLongW
    GetWindowModuleFileName
    GetWindowModuleFileNameA
    GetWindowModuleFileNameW
    GetWindowRect
    GetWindowThreadProcessId
    IsWindow
    LoadBitmapA
    LoadBitmapW
    LoadCursorA
    LoadCursorFromFileA
    LoadCursorFromFileW
    LoadCursorW
    LoadIconA
    LoadIconW
    LockSetForegroundWindow
    MapVirtualKeyA
    MapVirtualKeyExA
    MapVirtualKeyExW
    MapVirtualKeyW
    MessageBeep
    MessageBoxA
    MessageBoxExA
    MessageBoxExW
    MessageBoxW
    MoveWindow
    PeekMessageA
    PeekMessageW
    PostMessageA
    PostMessageW
    PostQuitMessage
    PostThreadMessageA
    PostThreadMessageW
    PtInRect
    RegisterClassA
    RegisterClassExA
    RegisterClassExW
    RegisterClassW
    ScreenToClient
    SendDlgItemMessageA
    SendDlgItemMessageW
    SendInput
    SendMessageA
    SendMessageCallbackA
    SendMessageCallbackW
    SendMessageTimeoutA
    SendMessageTimeoutW
    SendMessageW
    SendNotifyMessageA
    SendNotifyMessageW
    SetActiveWindow
    SetClipboardData
    SetClipboardViewer
    SetCursor
    SetCursorPos
    SetDlgItemTextA
    SetDlgItemTextW
    SetFocus
    SetForegroundWindow
    SetWindowLongA
    SetWindowLongW
    SetWindowPlacement
    SetWindowPos
    SetWindowRgn
    SetWindowTextA
    SetWindowTextW
    SetWindowWord
    SetWindowsHookA
    SetWindowsHookExA
    SetWindowsHookExW
    SetWindowsHookW
    ShowCursor
    ToAscii
    ToAsciiEx
    ToUnicode
    ToUnicodeEx
    TrackMouseEvent
    UnregisterClassA
    UnregisterClassW
    UpdateLayeredWindow
    UpdateWindow
    VkKeyScanA
    VkKeyScanExA
    VkKeyScanExW
    VkKeyScanW
    WindowFromDC
    WindowFromPoint
    keybd_event
    mouse_event
    wsprintfA
    wsprintfW
    wvsprintfA
    wvsprintfW
    
    // KERNEL32
    AllocConsole
    Beep
    CloseHandle
    CopyFileA
    CopyFileExA
    CopyFileExW
    CopyFileW
    CreateDirectoryA
    CreateDirectoryExA
    CreateDirectoryExW
    CreateDirectoryW
    CreateEventA
    CreateEventW
    CreateFileA
    CreateFileW
    CreateMutexA
    CreateMutexW
    CreateProcessA
    CreateProcessW
    CreateRemoteThread
    CreateSemaphoreA
    CreateSemaphoreW
    CreateTapePartition
    CreateThread
    DeleteFileA
    DeleteFileW
    ExitProcess
    ExitThread
    FindFirstFileA
    FindFirstFileExA
    FindFirstFileExW
    FindFirstFileW
    FindFirstVolumeA
    FindFirstVolumeMountPointA
    FindFirstVolumeMountPointW
    FindFirstVolumeW
    FindNextFileA
    FindNextFileW
    FindNextVolumeA
    FindNextVolumeMountPointA
    FindNextVolumeMountPointW
    FindNextVolumeW
    FindResourceA
    FindResourceExA
    FindResourceExW
    FindResourceW
    FlushConsoleInputBuffer
    FlushViewOfFile
    FormatMessageA
    FormatMessageW
    FreeConsole
    FreeLibrary
    FreeLibraryAndExitThread
    FreeResource
    FreeUserPhysicalPages
    GetCommandLineA
    GetCommandLineW
    GetCurrentDirectoryA
    GetCurrentDirectoryW
    GetCurrentProcess
    GetCurrentProcessId
    GetCurrentThread
    GetCurrentThreadId
    GetDiskFreeSpaceA
    GetDiskFreeSpaceExA
    GetDiskFreeSpaceExW
    GetDiskFreeSpaceW
    GetDllDirectoryA
    GetDllDirectoryW
    GetDriveTypeA
    GetDriveTypeW
    GetEnvironmentStrings
    GetEnvironmentStringsA
    GetEnvironmentStringsW
    GetEnvironmentVariableA
    GetEnvironmentVariableW
    GetFileAttributesA
    GetFileAttributesExA
    GetFileAttributesExW
    GetFileAttributesW
    GetFileSize
    GetFileSizeEx
    GetFileTime
    GetFileType
    GetFullPathNameA
    GetFullPathNameW
    GetHandleInformation
    GetLastError
    GetLocalTime
    GetLocaleInfoA
    GetLocaleInfoW
    GetLongPathNameA
    GetLongPathNameW
    GetModuleFileNameA
    GetModuleFileNameW
    GetModuleHandleA
    GetModuleHandleExA
    GetModuleHandleExW
    GetModuleHandleW
    GetProcAddress
    GetProcessHeap
    GetProcessHeaps
    GetProcessId
    GetSystemTime
    GetTickCount
    GetVersion
    GetVersionExA
    GetVersionExW
    GetVolumeInformationA
    GetVolumeInformationW
    GetVolumeNameForVolumeMountPointA
    GetVolumeNameForVolumeMountPointW
    GetVolumePathNameA
    GetVolumePathNameW
    GetVolumePathNamesForVolumeNameA
    GetVolumePathNamesForVolumeNameW
    GetWindowsDirectoryA
    GetWindowsDirectoryW
    GlobalAlloc
    GlobalLock
    GlobalMemoryStatus
    GlobalMemoryStatusEx
    GlobalReAlloc
    GlobalSize
    GlobalUnlock
    HeapAlloc
    HeapCompact
    HeapCreate
    HeapDestroy
    HeapFree
    HeapLock
    HeapQueryInformation
    HeapReAlloc
    HeapSetInformation
    HeapSize
    HeapUnlock
    HeapValidate
    HeapWalk
    InitializeCriticalSection
    InitializeCriticalSectionAndSpinCount
    IsProcessorFeaturePresent
    LeaveCriticalSection
    LoadLibraryA
    LoadLibraryExA
    LoadLibraryExW
    LoadLibraryW
    LoadModule
    LoadResource
    LocalAlloc
    LocalCompact
    LocalFlags
    LocalFree
    LocalHandle
    LocalLock
    LocalReAlloc
    LocalSize
    LocalUnlock
    LockFile
    LockFileEx
    LockResource
    MoveFileA
    MoveFileExA
    MoveFileExW
    MoveFileW
    MultiByteToWideChar
    OpenEventA
    OpenEventW
    OpenFile
    OpenFileMappingA
    OpenFileMappingW
    OpenMutexA
    OpenMutexW
    OpenProcess
    OpenSemaphoreA
    OpenSemaphoreW
    OpenThread
    QueryPerformanceCounter
    QueryPerformanceFrequency
    ReadConsoleA
    ReadConsoleInputA
    ReadConsoleInputW
    ReadConsoleOutputA
    ReadConsoleOutputAttribute
    ReadConsoleOutputCharacterA
    ReadConsoleOutputCharacterW
    ReadConsoleOutputW
    ReadConsoleW
    ReadDirectoryChangesW
    ReadFile
    ReadFileEx
    ReadFileScatter
    ReadProcessMemory
    ReleaseMutex
    ReleaseSemaphore
    RemoveDirectoryA
    RemoveDirectoryW
    ReplaceFile
    ReplaceFileA
    ReplaceFileW
    ResetEvent
    ResumeThread
    SetConsoleActiveScreenBuffer
    SetConsoleCP
    SetConsoleCtrlHandler
    SetConsoleCursorInfo
    SetConsoleCursorPosition
    SetConsoleDisplayMode
    SetConsoleMode
    SetConsoleTextAttribute
    SetConsoleTitleA
    SetConsoleTitleW
    SetCurrentDirectoryA
    SetCurrentDirectoryW
    SetEndOfFile
    SetEnvironmentVariableA
    SetEnvironmentVariableW
    SetErrorMode
    SetEvent
    SetFileApisToANSI
    SetFileApisToOEM
    SetFileAttributesA
    SetFileAttributesW
    SetFilePointer
    SetFilePointerEx
    SetFileShortNameA
    SetFileShortNameW
    SetFileTime
    SetLastError
    SetLocalTime
    SetSystemTime
    SetSystemTimeAdjustment
    SetThreadPriority
    SetVolumeLabelA
    SetVolumeLabelW
    SetVolumeMountPointA
    SetVolumeMountPointW
    Sleep
    SleepEx
    SuspendThread
    TerminateProcess
    TerminateThread
    UnlockFile
    UnlockFileEx
    VirtualAlloc
    VirtualAllocEx
    VirtualFree
    VirtualFreeEx
    VirtualLock
    VirtualProtect
    VirtualProtectEx
    VirtualQuery
    VirtualQueryEx
    VirtualUnlock
    WaitCommEvent
    WaitForDebugEvent
    WaitForMultipleObjects
    WaitForMultipleObjectsEx
    WaitForSingleObject
    WaitForSingleObjectEx
    WideCharToMultiByte
    WinExec
    WriteConsoleA
    WriteConsoleInputA
    WriteConsoleInputW
    WriteConsoleOutputA
    WriteConsoleOutputAttribute
    WriteConsoleOutputCharacterA
    WriteConsoleOutputCharacterW
    WriteConsoleOutputW
    WriteConsoleW
    WriteFile
    WriteFileEx
    WriteFileGather
    WriteProcessMemory
    lstrcat
    lstrcatA
    lstrcatW
    lstrcmp
    lstrcmpA
    lstrcmpW
    lstrcmpi
    lstrcmpiA
    lstrcmpiW
    lstrcpy
    lstrcpyA
    lstrcpyW
    lstrcpyn
    lstrcpynA
    lstrcpynW
    lstrlen
    lstrlenA
    lstrlenW
     
    #1

Поделиться этой страницей