用于战神引擎的龙的传人Npc脚本带素材,帮主之前只在端游里面看到了这个功能,今天在手游里面见到了,就提取出来了,并且还有对应的素材,喜欢的自行添加研究。
部分脚本
procedure Chuanyun; var count:integer; Uname:string; begin count:=0; This_DB.ExecuteQuery('select ChrName from mir3.user_index where level >= 0 order by level desc;'); while not(This_DB.PsEof()) do begin Uname:=This_DB.PsFieldByName('ChrName'); if This_Player.FindPlayer(Uname) then begin count:=count+1; WriteIniSectionStr('Chuanyun.txt','PlayerList',inttostr(count),Uname); WriteIniSectionStr('Chuanyun.txt','PlayerList','reloadtime',inttostr(GetMin)); end This_DB.PsNext(); end; end; procedure reChuanyun; var settime:integer; begin settime:=strtointdef(ReadIniSectionStr('Chuanyun.txt','PlayerList','reloadtime'),-1); settime:=settime; if GetMin <> settime then Chuanyun; end; begin reChuanyun; domain; end.