|
- function UseItem: Boolean;
- begin
- if This_Player.FreeBagNum > 15 then
- begin
- case This_Player.Job of
- 0:
- begin
- This_Player.SysGiveGift('修复神水',1,true);
- This_Player.SysGiveGift('火龙珠',10,true);
- This_Player.SysGiveGift('金条',1,true);
- This_Player.PlayerDialog(
- '你获得了:金条、修复神水.10个火龙珠。'
- );
-
- end;
- 1:
- begin
- This_Player.SysGiveGift('修复神水',1,true);
- This_Player.SysGiveGift('火龙珠',10,true);
- This_Player.SysGiveGift('金条',1,true);
- This_Player.PlayerDialog(
- '你获得了:金条、修复神水.10个火龙珠。'
- );
- end;
- 2:
- begin
- This_Player.SysGiveGift('修复神水',1,true);
- This_Player.SysGiveGift('火龙珠',10,true);
- This_Player.SysGiveGift('金条',1,true);
- This_Player.PlayerDialog(
- '你获得了:金条、修复神水.10个火龙珠。'
- );
-
- end;
- end;
- Result := true;
- end
- else
- begin
- This_Player.PlayerDialog(
- '对不起,包裹空间不足,请预留15个以上再次开启!'
- );
- Result := false;
- end;
- end;
- begin
- end.
复制代码 |
上一篇:云游商人脚本战神引擎神秘商店代码下一篇:战神引擎远程仓库脚本实例及GM测试NPC脚本
|