飞飞世界论坛

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

公会得主显示脚本

[复制链接]

197

主题

203

帖子

1054

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1054
QQ
跳转到指定楼层
楼主
发表于 2016-1-10 03:23:20 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Lord Winner:
( U$ x  B' v+ j8 s5 \. ~. `) v: y9 D, o# P5 _4 k( S, Y
; c9 Z$ j7 x  w3 j) f; i9 X
PHP Code:
, R: O! N: H& |8 w6 `& a9 T% D2 N<?php
. J* z  Z$ s, F6 Y& Lmssql_select_db ( "CHARACTER_01_DBF" ); 4 A$ A* n3 H2 R
$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" ));
: U! m+ K- j/ R2 rif ( $lord [ 'm_szName' ] != "" ) / K2 n% x5 J3 ?8 `& l" k- i
echo $lord ; 1 A  ]/ y: J& y$ @4 W
else % Q" D/ ?+ A" Z& e
echo "-" ;
9 u4 m- N% x5 _' o) L% a?>
/ m, ]% q. g- k7 LMVP:8 T% `4 C/ K& j5 g- o
: A* K3 W6 w) k  z
: D) z, z1 W7 J  _' d- l

. g, }8 q. O  F: e$ a& S' DPHP Code:
% T# C" e( q! e/ E2 m<?php 8 d1 ^3 f& j9 N5 R8 N
$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" ));
" L; l" g% ~5 Y7 H$ I+ gif ( $mvp [ 'm_szName' ] != "" )
0 v# u! `( U" z: n& ^echo $mvp [ m_szName ];
' t# e! M, X: q+ b- ]7 Z& @3 ]2 Selse
7 N! V: x/ v1 Y+ K) k# Z+ Zecho "-" ; . U/ ]* m/ n( O! C( }/ U
?>
* a6 _' r% J- ^Guild Winner:
3 n: S% [5 O1 S4 U7 U/ ?' p  z  E; ?5 o7 [! a

. p0 _6 N* F/ c; d; R+ ]. j$ R- ]/ |) Q+ g: P0 f8 \/ o+ x& z
PHP Code:' q' l, {* I* m  o6 }7 W0 L
<?php 4 K- P1 ^+ V3 v; V
$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" )); ) q' \% I. ]6 S+ _
if ( $crown [ 'm_szGuild' ] != "" )
1 U: g' [) _, Q" M5 A) Techo $crown [ m_szGuild ]; , ^$ ^$ j4 X" t' f( i2 c
else
2 g( f. }( P$ Pecho "-" ;
6 N  B) G  z/ q: ?3 T; g?>
, B8 X7 J& T$ w7 ?' cDon't forget to like it.. Of course if it helps...
8 Y& R7 q- H4 ^- N; F" @& z) o7 O/ g: x- w
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-12-23 16:46 , Processed in 0.177629 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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