· 用户注册 · 设为首页 · 加入收藏 · 联系站长 · ·
| 网站首页 | 一条龙 | 版本中心 | 下载中心 | 文章中心 | 本站商城 | 客服联系 | 本站服务 | 网通站点 |

| 一 条 龙 | 仿盛大版 | 变态版本 | 精美网页 | 传奇技术 | 征途技术 | 千年技术 | 其他技术 | 网游新闻 | 病毒防治 | 广告代理 网 通 站

 

| 版本商城 | 流程汇款 | 主机租用 | 空间域名 | 传奇下载 | 其他下载 | 私服工具 | 常用软件 | 汇款方式 | 健康保养 旧版网站 代理加盟  :1050000 在线服务

 
您现在的位置: 冰凉网络 >> 文章中心 >> 千年相关 >> 正文 今天是:
中央PK死后在小地图复生
作者:冰凉网络    文章来源:冰凉数据中心    点击数:    更新时间:2007-11-6    
           【字体:
在中央常PK的地方放置一个NPC叫——中央管理员,建议放在500 500的位置。

unit 中央管理员;

interface

function  GetToken (aStr, aToken, aSep : String) : String;
function  CompareStr (aStr1, aStr2 : String) : Boolean;
function  callfunc (aText: string): string;
procedure print (aText: string);
function  Random (aScope: integer): integer;
function  Length (aText: string): integer;
procedure Inc (aInt: integer);
procedure Dec (aInt: integer);
function  StrToInt (astr: string): integer;
function  IntToStr (aInt: integer): string;
procedure exit;

procedure OnChangeState (aStr : String);


implementation

//下面是当玩家状态改变时,也就是检测到玩家死亡了。
procedure OnChangeState (aStr : String);
var
   Str, Name : String;
begin
   if aStr <> 'die' then exit;

   Str := callfunc ('getsenderrace');   //这里是检测死亡的是不是玩家
   if Str <> '1' then exit;
  

//下面这一段和普通传送有点不同,这个是利用本地图的NPC传送的,如果本地图没有中央管理员,那么这段就无效了。
      Name := callfunc ('getsendername');
      Str := 'movespacebyname ' + Name;
      Str := Str + ' user 6 84 81 中央管理员 npc 300';      
      print (Str);
end;


end.
文章录入:admin    责任编辑:admin 
  • 上一篇文章:

  • 下一篇文章:
  • 发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)