飞飞世界论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 9463|回复: 0
打印 上一主题 下一主题

公会得主显示脚本

[复制链接]

197

主题

203

帖子

1046

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1046
QQ
跳转到指定楼层
楼主
发表于 2016-1-10 03:23:20 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
Lord Winner:! M9 k4 k$ G) p7 E* G3 `5 y
- D/ ^( |8 p7 A' E  K- W

2 d) F7 j: G8 {, q+ tPHP Code:/ h: R  t  T1 I+ z( [
<?php 8 P) d+ m. ]. i1 j. n+ N# n* n2 M3 f
mssql_select_db ( "CHARACTER_01_DBF" );
+ m2 \! T) t9 R% w5 E$lord = mssql_fetch_array ( mssql_query ( "SELECT TOP 1 m_szName FROM tblLord a LEFT JOIN CHARACTER_TBL b ON RIGHT('0000000' + CONVERT(VARCHAR(7),a.idLord),7)= b.m_idPlayer ORDER BY s_date DESC" ));   e- b9 P: x- ?8 N
if ( $lord [ 'm_szName' ] != "" )   N7 r3 r/ Z8 D7 Z+ s
echo $lord ; 8 M7 Y. d  @. B2 \( l5 }3 s2 T6 R/ f
else
( Q7 g) U5 G7 u1 z5 b) x  B( necho "-" ; : d; K+ e) o1 W6 c% v7 ~
?> " i& G+ w' h( G; d: m3 h: [
MVP:
; J1 m) u. I9 R7 n# a6 T- f, Z1 M; |; s$ A7 i9 p% ~

/ n1 d7 k& P6 \6 M
: X, U6 `5 C. s0 Z- pPHP Code:6 u% F# u& x% j3 U: ?
<?php
, N* k; b8 `) o- v$mvp = mssql_fetch_array ( mssql_query ( "SELECT TOP 1 m_szName FROM tblCombatJoinPlayer JP LEFT JOIN tblCombatInfo CI ON JP.CombatID = CI.CombatID LEFT JOIN CHARACTER_TBL C ON JP.PlayerID = C.m_idPlayer WHERE CI.[Status] = '30' ORDER BY JP.CombatID DESC, Point DESC" ));
* o( ?" A1 j$ r( v) D+ Yif ( $mvp [ 'm_szName' ] != "" )
2 G: S3 F3 y4 |echo $mvp [ m_szName ];   O  D1 W- T0 I
else % O: ~+ J  j5 Q, e7 I' X0 s
echo "-" ;
  W& ~3 A# Y" b5 l! s" A?> * X- b* v1 O9 X0 \1 w
Guild Winner:0 ~4 K& X$ _  J
3 `# p- K8 P" l6 `1 `- D2 n: Q
1 Q, d' q, ^0 ]  [7 P

- O+ h  n# v7 v& U/ U( S. VPHP Code:% @6 ~- P  J9 Z" b' a: b5 T
<?php ; ?$ r3 s" ?; o  x4 i" C
$crown = mssql_fetch_array ( mssql_query ( "SELECT TOP 1 m_szGuild FROM tblCombatJoinGuild JG LEFT JOIN tblCombatInfo CI ON JG.CombatID = CI.CombatID LEFT JOIN GUILD_TBL G ON JG.GuildID = G.m_idGuild WHERE CI.[Status] = '30' ORDER BY JG.CombatID DESC, Point DESC" )); , H0 a  s. M. n5 Q  N
if ( $crown [ 'm_szGuild' ] != "" ) / n4 _6 l( P" [# n
echo $crown [ m_szGuild ];
3 X& Y! `- S. v/ O. Yelse & N3 C  B% e. _% a0 Z) o3 Z
echo "-" ; * p- m% d: C) z( q3 I
?>
, C8 W' Q% w9 r2 v: J  X3 W: [Don't forget to like it.. Of course if it helps...
# Y2 o+ J0 Z5 {/ d  }. ?! h# m: _2 l; R" C
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|飞飞世界技术论坛  

GMT+8, 2024-11-13 15:03 , Processed in 0.063500 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表