游客您好
  • 点击联系客服

    在线时间:8:30-18:00

    客服微信

    Wkr-3000y-kf

    电子邮件

    3000y@wenkeruan.com
  • 手机版

    随时掌握游戏动态

  • 扫一扫二维码

    添加微信客服

Lv.5 解脱境
277号会员,0活跃值,2022.10.27 加入
  • 207发帖
  • 173主题
  • 0关注
  • 0粉丝
这个人很懒,什么也没有留下。
独家推荐 更多>

[安全工具] 情侣任务之《司仪》,核心HELP文件公布!

[复制链接]
快要发癫啦 发表于 2023-2-15 09:29:43 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题
这一段必须男女两个玩家配合才能完成。 0 D. l2 R/ I- q7 V% x3 X% q" x
如果没有男女两个人登记完,是不能启动公告的!!) e+ ]6 o% n. b. K6 d, o5 j, _
2 o" K/ I$ b2 v4 r
需要增加的物品有 9 G9 v! u( U- p
成人证明、新郎证书、新娘证书
  m! E% A3 l( X. z- a5 T; w
//----====help部分ql司仪.txt====------
8 s+ ]* e, C; E$ b' l
# O5 C; N. k- Y6 D! m1 r
<trade>
1 P3 _$ a4 `# f$ x0 d
<title>司仪</title>* ~( W; e/ J8 c/ o" e" F9 U: ^
<image name=z42 value=126>/ p, J1 r2 \6 ~: S; g
<text>. j# S* ]( c* P3 h- L3 {$ `
祝福你们这对新人。
* h& T+ y7 c) |0 f% d& j6 {6 }
</text>
! d* ^$ |$ P! e& L  V2 \1 V4 v
<command send='close'>关闭</command>
, [4 a5 ~7 t2 T9 K
<command send="qldengji">情侣登记</command>
( r% X- Q2 a7 w& q5 I4 w9 r4 z
<command send="qlyishi">邀请好友参加婚礼</command>7 v# u* i4 a. W* I  V
</trade>
% ]% z; e3 i; Q  o; N

9 b* A" Z9 X+ O3 P" ?0 @5 J

% I" O" e5 Y& [5 R& S- m
//----====脚本主体部分===-------
6 F+ c) p: k7 l# ^* m
unit 司仪;
: c) m$ L: w& a1 G
inte**ce 6 E; x) ?4 ^+ p0 E5 T6 n4 C
function  GetToken (aStr, aToken, aSep : String) : String;
, J! Y# g  l8 V5 [8 `- F1 K
function  CompareStr (aStr1, aStr2 : String) : Boolean;
* U1 \# a0 D0 M1 v; F
function  callfunc (aText: string): string;$ M! H' c, T' z6 `9 Y% o& ]
procedure print (aText: string);; `# A$ E% c$ E# i
function  Random (aScope: integer): integer;
' K% l5 F# ^: D/ O+ i, C; [) C
function  Length (aText: string): integer;
# M+ s8 |# H% Z8 e2 z+ ?
procedure Inc (aInt: integer);
+ `% Q. W' e1 R& m8 N, T
procedure Dec (aInt: integer);
# I; h; F  T' A1 s' e+ i
function  StrToInt (astr: string): integer;
* `" d* o+ @5 K
function  IntToStr (aInt: integer): string;0 E( H) F( y2 ]5 a9 J
procedure exit;
" ^% H0 V6 b3 y
procedure OnGetResult (aStr : String);
0 C  Z" w9 l# Q+ ]' d$ I! D
procedure OnLeftClick (aStr : String); 4 ]+ Z8 D( I- `9 V( B  e. u6 K
implementation & [2 M* ^8 U  ?: ?. g$ `" m8 G
procedure OnLeftClick (aStr : String);$ m/ `) t& Y0 q
var
0 i' S9 X; s# @! n6 U/ ~" f+ S
   Str : String;6 _1 f' g0 I1 _/ J* f$ \
   Race : Integer;
. ?$ R* e# k. H8 x9 I% j9 f
begin
! v: Q# j0 ?8 L# W4 i. R: M4 [9 `
   Str := callfunc ('getsenderrace');9 i, E' y/ M- b
   Race := StrToInt (Str);. V& S8 w! V! Q1 }4 R" B  g
   if Race = 1 then begin! X4 H9 _7 ~; _% Z" p! W2 V0 f
      print ('showwindow .\help\ql司仪.txt 1');  //弹出help文件对话框1 @8 Q/ b& g0 q
      exit;
$ X2 {% o+ Z1 W! Y
   end;
8 n! b5 }) {4 C5 z3 b) q7 y
end; 8 y6 e! w# g# q7 v; B6 G
procedure OnGetResult (aStr : String);
+ z; f1 t5 B& l) j0 s
var
! }* p' W+ S  o! _) b6 f, a, |0 Z
   Str, Name : String;
( i8 F" @7 V, H9 \! j: @8 i
   nnName, vvName : String = '无名氏';0 R7 q- x$ q* P# A9 N8 {# U
begin
0 H  i' g+ |, M
   if aStr = 'close' then begin
" u6 u, z) f) N; }6 T' T! m5 m
      exit;
, @) i, G& B  i5 L* t  n
   end;1 {" B" \! ^" i1 {" e% J
   //下面是输入双方的姓名的
. q+ }* ]7 V8 T. v8 C; F
   if aStr = 'qldengji' then begin
) g0 _* N' `) D7 v
      Str := callfunc ('getsenderitemexistence 成人证明:1');# c  F* x+ _* U% I( B
      if Str = 'false' then begin
' v* x: g  K# a! t4 j6 z5 a
         Str := 'say 未成年人凑什么热闹?';, A3 V5 S7 q; B# M" f4 W
         print (Str);# u- ?2 f% B! j$ A; P
         exit;8 O3 e. Y; d7 O& `4 M/ p/ x% Z
      end;
6 ^3 A( ]* Q' f! k* K- O
      //获取性别来自主判断弹出什么对话框( [& C/ c& s+ P/ P% j$ N
      Str := callfunc ('getsendersex');
8 }* {( A! y; w3 \" M6 x5 Z# ]% Y, F# u
      if Str = '1' then begin
% }8 ]+ U: _5 z
         Str := callfunc ('getsenderitemexistence 新郎证书:1');& ~$ m& N3 i/ Q
         if Str = 'true' then begin
( z* z/ }( K9 P. [% D
            Str := 'say 接完婚的人还来这里胡闹成何体统?';, B$ F2 m+ e, G/ v# b6 U  q, N
            print (Str);+ {. q- R, [. P* m/ K3 |: ^
            exit;$ D" Z$ o& ]( x1 f7 D8 L
         end;; {1 ^; r$ p  x4 K& @2 c% S( B+ t' w
         nnName := callfunc ('getsendername');! S6 J7 ]) A2 ?( U6 H+ e+ m9 p7 i
         print ('getsenderitem 成人证明:1');: _" v" k' B  W
         print ('putsendermagicitem 新郎证书:1 @司仪 4');; V, C1 r6 g" Q2 {* i& U1 t5 R
         print ('say 新郎,快准备结婚典礼吧!');
+ M3 }+ E4 ~% g  _. D$ c* X
         exit;
7 ~% n- u5 l6 B4 R
      end;& ?3 W. G" j' o4 E# S
      
$ @, t2 u2 \' v% S) D; @% C
      if Str = '2' then begin: j6 }4 O3 |" p! V' Y; {/ w! q. l% f- t
          Str := callfunc ('getsenderitemexistence 新娘证书:1');
( Y- x, p/ S8 G4 }' ~
          if Str = 'true' then begin
* d0 B5 a; O4 K' P
              Str := 'say 接完婚的人还来这里胡闹成何体统?';
& x4 i7 n5 D8 t0 y3 O$ }4 B
              print (Str);! d1 s3 P1 K, b- j
              exit;7 Y, ^+ z6 v% |4 X
          end;; p. Y/ V: ^3 P  D: ~: D
          vvName := callfunc ('getsendername');, l$ A: e/ Z/ Q
          print ('getsenderitem 成人证明:1');% b) ]  a- Q! a% G# B. g# p" r
          print ('putsendermagicitem 新娘证书:1 @司仪 4');/ L# Y* O6 @3 r/ W% E
          print ('say 新娘,快准备结婚典礼吧!');# S  p% L& J' O3 O3 z: ?3 P
          exit;: }! |0 o: T+ G- K1 I
       end;3 d( u; a: C" w) C/ T5 ~
      
( ?2 e3 D4 ~7 v  }
      exit;
" A, g% K" I6 M# q; u2 z
   end;   
4 `6 ~' H3 l, c# N, }& {
   //公告部分。如果没有男女两个玩家登记完,这里是不能生效的
5 o4 l1 H) u6 t+ h2 Q$ L% _
   if aStr = 'qlyishi' then begin
# q! t: p' I7 b' U# Z6 u
      if nnName = '无名氏' then begin
3 M- Y( _' S! T- k2 G1 ~& e
          print ('say 新郎还没有登记吧!');3 V9 j' E( V5 Q- H' x' s# U
         exit;; h: e" U: B  t2 c9 [2 G5 w
      end;1 e9 e& r0 _; H6 [! T8 ?
      if vvName = '无名氏' then begin! F" K# y8 s$ M; p, T2 Y; W5 W$ x3 Y
          print ('say 新娘还没有登记吧!');; {* w/ q) W$ o
         exit;- _' w  @& A/ t: l
      end;
( j, L$ S; }+ c* I
      Str := callfunc ('getsendersex');
; @5 c: c, u8 ^$ q3 m
      if Str = '1' then begin
6 ]4 d# e( R# ?. o
      Name := callfunc ('getsendername');
1 u1 o' m- D- y1 T/ `9 i
      if Name  nnName then begin
2 L1 w1 D7 l5 R6 X
          print ('say 似乎你不是刚才那位新郎吧!');/ H! Z( R: I! l2 K* C8 h  V6 k/ c
         exit;
- O4 J2 b3 O1 L+ v3 K' [
      end;
9 K6 E+ {1 K1 B
         Str := 'sendsendertopmsg ' + '新郎【';
* ?6 J3 I9 g4 @( o
         Str := Str + nnName;
) W9 R& P- _0 [- _
         Str := Str + '】和新娘【';
( ]" N  M% W9 a
         Str := Str + vvName;
7 ~3 r& \5 M8 k7 }
         Str := Str + '】的结婚典礼马上开始!';
+ e+ N9 X9 W5 x& e$ I
         print (Str);
3 _) R% x; ?2 n- F( C
         exit;6 s- J: J5 Q3 B$ E: c+ d, U8 k
      end;
( G/ z' L5 j( z
      if Str = '2' then begin
2 i" I' ^/ {  s
      Name := callfunc ('getsendername');$ Z. }, j/ b3 |. k- @( `  c3 ]7 Q
      if Name  vvName then begin4 [; N' c6 X) |% E8 |2 C9 M0 a  W4 C4 |
          print ('say 似乎你不是刚才那位新娘吧!');4 \4 k+ C% {  A8 X: Y0 w& T
         exit;0 V7 }6 h1 j! M" n( V/ Y
      end;1 `* A& ?" t, z$ r- i  n/ r
         Str := 'sendsendertopmsg ' + '新郎【';, D; U4 f  |0 L1 w" N* ]8 M5 G
         Str := Str + nnName;+ n! f) k% `3 d8 q
         Str := Str + '】和新娘【';
6 Q3 a2 e% P1 L. {+ B  S/ L* H
         Str := Str + vvName;. _; R, J: D0 |+ S
         Str := Str + '】的结婚典礼马上开始!';
$ ]7 F, l: e& K2 l
         print (Str);
# D+ c* A2 S- t7 j  [" z, i4 k
         exit;1 O' R% w) T, y6 X! v- z2 V* }
      end;/ k8 Q, @" Z3 F9 W- B& w. d
      exit;# n  R1 K! p  m: _7 r- _, v
  end;
8 l1 x, z" @7 _
end; 4 j3 h9 P( B; y3 e
end.
* ]  Z1 t5 l8 Y5 @  Y* @3 x
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

三千游戏官方客服

扫一扫二维码

添加qq客服

Powered by Discuz!X3.4 ©2001-2013 Comsenz Inc.闽公网安备 35099902000100号增值电信业务经营许可证 闽B2-20220593 闽ICP备2023014375号