关灯
开启左侧

[端游] 千年服务端修复回城卷轴在流放地BUG的方法

[复制链接]
admin实名认证 发表于 2019-3-13 14:22:31 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题
 
   内容介绍

原理:进入流放地后自动删除物品栏内所有回城卷
方法:
1、将"删除回城.txt"放到script文件夹,在Script.SDB中加入相应的编号,我这是135
2、在流放地随便放个NPC Notice列加上script的编号135  坐标 58 78 要保证进去后就能看到
3、"删除回城.txt"中回城卷的名字根据各服务器情况修改
4、由于不能检测技能栏中的回城卷 所以回城卷要设置成不能放入技能栏 也就是在Item.sdb里设置回城卷的boNotSkill为TRUE

  1. 删除回城.txt
  2. unit 删除回城;
  3. interface
  4. function  GetToken (aStr, aToken, aSep : String) : String;
  5. function  CompareStr (aStr1, aStr2 : String) : Boolean;
  6. function  callfunc (aText: string): string;
  7. procedure print (aText: string);
  8. function  Random (aScope: integer): integer;
  9. function  Length (aText: string): integer;
  10. procedure Inc (aInt: integer);
  11. procedure Dec (aInt: integer);
  12. function  StrToInt (astr: string): integer;
  13. function  IntToStr (aInt: integer): string;
  14. procedure exit;
  15. procedure OnCreate (aStr : String);
  16. implementation
  17. procedure OnCreate (aStr : String);
  18. var
  19.    Str : String;
  20.    iCount : String;
  21.    GoBigMapItem : String = '回城卷';
  22. begin
  23.       Str := 'getsenderitemcountbyname ' + GoBigMapItem;
  24.       iCount := callfunc (Str);
  25.       if iCount <> '0' then begin
  26.          Str := 'getsenderitem ' + GoBigMapItem;
  27.          Str := Str + ':';
  28.          Str := Str + iCount;
  29.          print (Str);
  30.       end;
  31.    exit;
  32. end;
  33. end.
复制代码
 
VIP介绍
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 最佳新人

    注册账号后积极发帖的会员
  • 活跃会员

    经常参与各类话题的讨论,发帖内容较有主见
  • 热心会员

    经常帮助其他会员答疑
  • 推广达人

    积极宣传本站,为本站带来更多注册会员
  • 宣传达人

    积极宣传本站,为本站带来更多的用户访问量
  • 灌水之王

    经常在论坛发帖,且发帖量较大
  • 突出贡献

    长期对论坛的繁荣而不断努力,或多次提出建设性意见
  • 优秀版主

    活跃且尽责职守的版主
  • 荣誉管理

    曾经为论坛做出突出贡献目前已离职的版主
  • 论坛元老

    为论坛做出突出贡献的会员

0关注

5粉丝

3325帖子

排行榜
作者专栏

QQ交流群&&微信订阅号

QQ交流群

微信订阅号

吾爱尚玩资源基地永久域名:

Www.523Play.Com

在线管理员QQ:1589479632

邮箱:Email@523play.com

QQ交流群:558936238

Copyright   ©2015-2116  吾爱尚玩资源基地|523play.comPowered by©523Pplay.Com技术支持:吾爱尚玩资源基地