战神引擎开发手册 升级触发

作者 : 酷萌 本文共985个字,预计阅读时间需要3分钟 发布时间: 2023-01-4 共462人阅读

说明:
角色每次升级将会触发 D:\mud2.0\Mir200\Envir\PsMapQuest\RunQuest.pas 文件中的 PlayerExpLevelUp()方法

procedure PlayerExpLevelUp();
var
iLev : integer;
begin
iLev := This_Player.Level;

case iLev of
7:
begin

           case This_Player.Job of
0 :
begin
This_Player.Give(‘基本剑术’,1);
end;
1 :
begin
This_Player.Give(‘火球术’,1);
This_Player.GiveBindItem(‘魔血石(小)’,1);
end;
2 :
begin

This_Player.Give(‘治愈术’,1);
This_Player.Give(‘精神力战法’,1);
end;
end;
end;
15:
begin
case This_Player.Job of
0 :
begin
This_Player.Give(‘八荒’,1);
This_Player.Give(‘攻杀剑术’,1);
if This_Player.Gender = 0 then
This_Player.Give(‘中型盔甲(男)’,1)
else
This_Player.Give(‘中型盔甲(女)’,1);
end;
1 :
begin
This_Player.Give(‘海魂’,1);
This_Player.Give(‘雷电术’,1);
if This_Player.Gender = 0 then
This_Player.Give(‘中型盔甲(男)’,1)
else
This_Player.Give(‘中型盔甲(女)’,1);
end;
2 :
begin
This_Player.Give(‘半月’,1);
This_Player.Give(‘灵魂火符’,1);
if This_Player.Gender = 0 then
This_Player.Give(‘中型盔甲(男)’,1)
else
This_Player.Give(‘中型盔甲(女)’,1);
end;
end;
end;
end;
end;

begin

end.

改文件入口函数为空,对应方法程序会直接调用

该文件中不可以使用This_NPC对象调用接口,只能使用This_Player对象调用

角色每次登录聊天框都会显示“欢迎登陆战神传奇”

免责声明
1.本文部分内容转载自其它媒体,但并不代表本站赞同其观点和对其真实性负责。
2.若您需要商业运营或用于其他商业活动,请您购买正版授权并合法使用。
3.如果本站有侵犯、不妥之处的资源,请在联系我们将会第一时间解决!
4.本站所有内容均由互联网收集整理、网友上传,仅供大家参考、学习,不存在任何商业目的与商业用途。
5.本站提供的所有资源仅供参考学习使用,版权归原著所有,禁止下载本站资源参与商业和非法行为,请在24小时之内自行删除!
6.侵权联系邮箱:16094777@qq.com


酷萌资源网 » 战神引擎开发手册 升级触发