V-MonsterClass.asm
资源名称:VeMU.rar [点击查看]
上传用户:santakups8
上传日期:2021-03-23
资源大小:544k
文件大小:5k
源码类别:
模拟服务器
开发平台:
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 Felipe Ya馿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/.
- ;-----------------------------------------------------------------------------------
- ;-----------------------------------------------------------------------------------
- ; -----------------
- ; Coded /
- ; By /
- ; -={FeN$x)=-
- ; / Felipe Y.
- ; /
- ; -----------------
- ; Programming Lang: ASM
- ; Country: Chile
- ; My respect for all those who lost their lifes
- ; In the earthquake of my country...
- ; Let god take their spirits home...
- ;-----------------------------------------------------------------------------------
- ;////////////////////////////////////////////////////////////////////////////////////
- ; VeMU Project
- ; Monster Class !
- ;////////////////////////////////////////////////////////////////////////////////////
- ;//////////////////////////////////////////////
- ;Main struct for the monsters attributes
- ;readed from MonsterAttr file
- ;It handles allmost all info about mobs
- ;//////////////////////////////////////////////
- MONSTER_ATTRIBUTE Struct
- MonsterName CHAR 20 Dup(?)
- MonsterIndex Dword ?
- Rate Dword ?
- Level Dword ?
- HP Dword ?
- MP Dword ?
- DamageMin Dword ?
- DamageMax Dword ?
- Defense Dword ?
- MagicDefense Dword ?
- AttackRating Dword ?
- Successfulblocking Dword ?
- MoveRange Dword ?
- AttackRange Dword ?
- AttackType Dword ?
- ViewRange Dword ?
- MoveSpeed Dword ?
- AttackSpeed Dword ?
- RegenTime Dword ?
- Attribute Dword ?
- ItemRate Dword ?
- MoneyRate Dword ?
- MinItemLevel Dword ? ;New variable !
- MaxItemLevel Dword ?
- MonsterSkill Dword ?
- ResistanceIce Byte ?
- ResistancePosion Byte ?
- ResistanceLighting Byte ?
- ResistanceFire Byte ?
- AIMonster Dword ?
- ScriptHP Dword ?
- MONSTER_ATTRIBUTE EndS
- ;//////////////////////////////////////////////
- ;Main struct for the monsters set base
- ;readed from MonsterSetBase file
- ;It handles allmost all info about mobs
- ;position, spots, etc
- ;//////////////////////////////////////////////
- MONSTER_SETBASE Struct
- MonsterType Byte ?
- MonsterIndex Word ?
- MapNumber Byte ?
- Distance Byte ?
- CordX Byte ?
- CordY Byte ?
- CordW Byte ?
- CordH Byte ?
- Direction Byte ?
- Quantity Byte ?
- MONSTER_SETBASE EndS
- ;//////////////////////////////////////////////
- ;Const Data !
- ;//////////////////////////////////////////////
- .Const
- EVENTMONSTER equ 5 ;For others events
- BLOODMONSTER equ 4
- GOLDENMONSTER equ 3
- SINGLEMONSTER equ 2
- SPOTSMONSTER equ 1
- NPCMONSTER equ 0
- MAX_SETBASE_RAND_MOBS equ 30 ;Max mobs created by random variable (-1) when input (MonsterSetBase.txt)
- MAX_SETBASE_MONSTERS equ 6000 ;The maxium limit possible is 6399 due to Webzen client limit too
- MAX_MONSTERS_ATTR equ 512
- MAX_MONSTER_LEVEL equ 150
- MOD_HP_VALUE equ 100
- ;//////////////////////////////////////////////
- ;Unitialized Data !
- ;//////////////////////////////////////////////
- .Data?
- pObjMonsterSetBase DB SizeOf MONSTER_SETBASE * MAX_SETBASE_MONSTERS Dup(?)
- pObjMonsterAttr DB SizeOf MONSTER_ATTRIBUTE * MAX_MONSTERS_ATTR Dup(?)
- ;//////////////////////////////////////////////
- ;Initialized Data !
- ;Important variables like counter for how
- ;many MobsAttributes loaded and how many
- ;Monsters (set base) loaded.
- ;//////////////////////////////////////////////
- .Data
- UniversalModHP DD ? ;Variable for modicate all the mobs HP from a simple calc, see source below
- MonsterSetBaseCounter DD ? ;Counter how many set monsters are
- MonsterCounter DD ? ;Counter for how many monsters are