V-GameServer.asm
资源名称:VeMU.rar [点击查看]
上传用户:santakups8
上传日期:2021-03-23
资源大小:544k
文件大小:2k
源码类别:
模拟服务器
开发平台:
Asm
- ;EasyCodeName=Module1,1
- ;-----------------------------------------------------------------------------------
- ; VeMU
- ; Its a package that allows the user to set his own server of the game
- ; "MuOnline", this is not an emulator since i am not "emulating"
- ; what the actual games does, i am "creating" a method for set a Server
- ; of this Game.
- ;
- ; Copyright (C) <2010> <FelipeYa馿z>
- ;
- ; This program is free software: you can redistribute it and/or modify
- ; it under the terms of the GNU General Public License as published by
- ; the Free Software Foundation, either version 3 of the License, or
- ; (at your option) any later version.
- ;
- ; This program is distributed in the hope that it will be useful,
- ; but WITHOUT ANY WARRANTY; without even the implied warranty of
- ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- ; GNU General Public License for more details.
- ;
- ; You should have received a copy of the GNU General Public License
- ; along with this program. If not, see <http://www.gnu.org/licenses/>.
- ;-----------------------------------------------------------------------------------
- .586
- .model flat,stdcall
- Option CaseMap:none
- Include IncludesV-Library.inc ;load library and their includes
- Include IncludesV-GlobalData.inc ; load global data
- Include IncludesV-RestInc.inc ; load rest of files
- .Code
- start:
- Call V_LogSystem_Init ;Initialise Log System
- Call V_ReadIntConnectCFG ;Internal connection CFG
- Call V_InitWindow ;Create window
- V_InitGamePlay Proc
- call V_CMap_InitMaps ;Initialize maps
- call V_Obj_Init ;Initialize Object Struct for players & mobs
- call V_CItem_LoadItemScript ;Read Item script
- call V_MonsterAttr_Load ;Read Monsters Attributes
- call V_MonsterSetBase_Load ;Read Monsters Set Base
- call V_MonsterItemMng_Load ;Load item manager for monster
- call V_MonsterItemMng_Init
- call V_Gate_Load
- call V_Shop_LoadAll
- call V_UpdateGraphics
- ;Call V_Sock_InitInternalClients
- Ret
- V_InitGamePlay EndP
- V_UpdateGraphics Proc
- local msg:MSG
- mov eax, GShWnd
- mov msg.hwnd, eax
- mov msg.message, WM_PAINT
- invoke DispatchMessage, addr msg ;Update window now
- RGB 255, 64, 64 ;Red Collor
- invoke V_LogSystem_Output, 0, eax, $CTA0("VeMU First Stage fully ended... Comming soon 0.0.6"), 0
- Ret
- V_UpdateGraphics EndP
- End start