llllll 发表于 2015-10-12 22:30:52

烈焰私服脚本修改--进入九幽地图无限制

烈焰私服脚本修改--进入九幽地图无限制,主要就是去除飞升检测这项判断,这里就以飞身9以后为例
添加NPC步骤跟前面发布的一样,打开mysql数据库,在creature_proto这个表里创建NPC的代码
然后打开烈焰私服服务端,新建九幽使者脚本:jiuyoushizhe.lua
复制如下代码
function ontalk1927(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
#&talk_line#&
#&talk_line#&
勇士,我可以免费送你去任何九幽地图
#&talk_line#&
#&talk_line#&
#&talk_line#&
   飞升⑼介九幽地图   飞升⑾介九幽地图
#&talk_line#&
#&talk_line#&
   飞升⒀介九幽地图   飞升⒂介九幽地图
#&talk_line#&
]]);
end

function ontalk1927_1009(npc,event,player)
   player:randomthismap(58);
   g_alert("玩家["..player:GetName().."]进入了‘九幽海域’飞升九阶地图",2,1000,0,1);
end
function ontalk1927_1011(npc,event,player)
   player:randomthismap(59);
   g_alert("玩家["..player:GetName().."]进入了‘九幽海域’飞升十一阶地图",2,1000,0,1);
end
function ontalk1927_1013(npc,event,player)
   player:randomthismap(62);
   g_alert("玩家["..player:GetName().."]进入了‘九幽海域’飞升十三阶地图",2,1000,0,1);
end
function ontalk1927_1015(npc,event,player)
   player:randomthismap(63);
   g_alert("玩家["..player:GetName().."]进入了‘九幽海域’飞升十五阶地图",2,1000,0,1);
end
Npc1927Funid =
{
= ontalk1927;
= ontalk1927_1001;
= ontalk1927_1003;
= ontalk1927_1005;
= ontalk1927_1007;
= ontalk1927_1009;
= ontalk1927_1011;
= ontalk1927_1013;
= ontalk1927_1015;
= ontalk1927_1014;
= ontalk1927_1016;
}
function CreatureNpcFun(npc,event,player,funid)
if Npc1927Funid ~= nil then
Npc1927Funid(npc,event,player);
end
end
RegisterUnitEvent(1927,20,"ontalk1927")
RegisterUnitEvent(1927,29,"CreatureNpcFun")
欢迎多来520页游论坛逛逛!
页: [1]
查看完整版本: 烈焰私服脚本修改--进入九幽地图无限制