【烈焰修改】烈焰官方文件所有脚本使用及数据库表说明详细文件
一、 数据库表说明
creature_proto表:怪物属性配置表,包括怪物属性、AI相关参数
creature_spawns表:刷怪表,在哪张地图的某点(范围)刷那种怪,刷多少,都是配置在这张表的。-----脚本也有刷怪接口,也可在脚本直接刷怪
creature_staticspawns表:npc配置表,包括地图,坐标,形象ID,等
gameobject_names表: 采集物及火墙属性配置
gameobject_spawns表:采集物的地点配置
guild_level_info表:公会等级属性配置表包括各级人数,升级所需资金、副会长人数,长老人数
interlevelupinfo表:内功等级属性配置表
item_strengthen表:物品强化属性配置表,强化所增加的属性全部配置在这
items表:物品属性表
loot_creatures表:怪物掉落表
magic表:魔法基本属性表
playerbuff表:玩家buff属性表
playercreateinfo表:创建玩家初始化属性配置表
playerjinmai表:练魂属性配置表,每个炼魂点所耗的魂力值及增加的属性
playerlevelupinfo表:玩家等级属性配置表
shop_items表:商城出售商品配置表,包括价格,位置所属种类等
strengthen表:强化表,强化、购买次数及重置所需货币种类及数量
vendors表:从npc商店能购买的商品列表
worldmap_info表:地图属性配置表
worldmap_info_jump表:地图传送点
worldstring_tables表:提示语言配置
二、 脚本说明
RegisterUnitEvent(entry,type,fun_name) 示例 RegisterUnitEvent(8001,4,"mon8001")
entry跟creature_proto或creature_staticspawns表 entry 字段对应
type:
CREATURE_EVENT_ON_ENTER_COMBAT = 1,
CREATURE_EVENT_ON_LEAVE_COMBAT = 2,
CREATURE_EVENT_ON_TARGET_DIED = 3,
CREATURE_EVENT_ON_DIED = 4, //怪物死亡 function mon8001(mon,event,player)
CREATURE_EVENT_ON_TARGET_PARRIED = 5,
CREATURE_EVENT_ON_TARGET_DODGED = 6,
CREATURE_EVENT_ON_TARGET_BLOCKED = 7,
CREATURE_EVENT_ON_TARGET_CRIT_HIT = 8,
CREATURE_EVENT_ON_PARRY = 9,
CREATURE_EVENT_ON_DODGED = 10,
CREATURE_EVENT_ON_BLOCKED = 11,
CREATURE_EVENT_ON_CRIT_HIT = 12,
CREATURE_EVENT_ON_HIT = 13,
CREATURE_EVENT_ON_ASSIST_TARGET_DIED = 14,
CREATURE_EVENT_ON_FEAR = 15,
CREATURE_EVENT_ON_FLEE = 16,
CREATURE_EVENT_ON_CALL_FOR_HELP = 17,
CREATURE_EVENT_ON_LOAD = 18,
CREATURE_EVENT_ON_REACH_WP = 19,
CREATURE_EVENT_ON_LOOT_TAKEN = 20, //和npc对话function ontalk1900(npc,event,player)
CREATURE_EVENT_ON_AIUPDATE = 21,
CREATURE_EVENT_ON_EMOTE = 22,
CREATURE_EVENT_ON_DAMAGE_TAKEN = 23,
CREATURE_EVENT_ON_ENTER_VEHICLE = 24,
CREATURE_EVENT_ON_EXIT_VEHICLE = 25,
CREATURE_EVENT_ON_FIRST_PASSENGER_ENTERED = 26,
CREATURE_EVENT_ON_VEHICLE_FULL= 27,
CREATURE_EVENT_ON_LAST_PASSENGER_LEFT= 28,
CREATURE_EVENT_ON_FUN = 29, //点击npcfunction CreatureNpcFun(npc,event,player,funid)
CREATURE_EVENT_ON_SCENENPCSTATUS = 30,// npc状态更新
function CreatureNpcSceneNpcStatus(npc,event,player,npcid)
CREATURE_EVENT_COUNT,
以上没说明的目前无做调用.
fun_name:为函数名字
RegisterServerHook(type,fun_name) 示例 RegisterServerHook(42, "OnSendActivityList")
type:
页:
[1]