飞飞世界论坛

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

公会得主显示脚本

[复制链接]

197

主题

203

帖子

1044

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1044
QQ
跳转到指定楼层
楼主
发表于 2016-1-10 03:23:20 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Lord Winner:
# Q. x, t3 ^3 ]+ D4 ~* {# X0 ?8 `
' G( j3 j, ~- M# S. P: j
1 {! A. _/ o: `) n5 g5 O0 M4 w8 ?PHP Code:
. F2 B" B! B) z" p<?php
" \6 p  Q2 F1 r5 V! ]4 Vmssql_select_db ( "CHARACTER_01_DBF" );
! ~+ g! S3 f; E( ?9 I4 |) Y5 x$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" ));
5 m+ ?. g# o9 P6 A" @9 u& X- Oif ( $lord [ 'm_szName' ] != "" ) . ~1 B3 I3 n2 [- \) k3 y: p
echo $lord ;
& O) e6 O( D2 _7 p1 Celse
" O9 N$ W) H& T; W9 v1 f3 Qecho "-" ;
8 r1 `8 p- Y# r/ l( G* M# x7 R# [?> 9 w, C3 S+ ?8 u; B, ?) i
MVP:2 P  }% C; P& `- D8 i# Q; E# i) b/ @

' [5 m: f, g  ^( O3 N3 U9 x
; S% h; D4 z) \
: B# e7 F8 \) {0 BPHP Code:9 b6 x  ^& }: U
<?php $ ?$ x5 j0 D; v3 d# e( I
$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" )); ! y) z9 h# A$ B' R
if ( $mvp [ 'm_szName' ] != "" )
+ a; m) _! ~, p# {/ B9 yecho $mvp [ m_szName ];
! V3 N: E1 b' k* O* M1 G9 }else 6 B7 Y; v* f) i) g: t0 t3 |3 m8 |/ s
echo "-" ; ; w) G9 I& G+ E5 U' c2 m
?> # e$ M; w' \3 p1 _# t  Y9 m5 F
Guild Winner:
" u) q6 x: U# F
' d' J6 M3 ]2 P
, L0 I  j% a+ E
7 ^, X3 N7 e; `PHP Code:
) }5 x' H- `, g( ]5 p; t<?php . _" a7 s) m0 ]5 t' f$ s! Q
$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" )); - j4 ?4 Q9 a$ |
if ( $crown [ 'm_szGuild' ] != "" )
. T! ]. m! }5 }+ N& F' Xecho $crown [ m_szGuild ];
7 t) L% L1 c$ y3 B7 d" gelse . `$ t8 g8 V7 q* M8 e
echo "-" ; ; f8 z) w1 f( B* h
?> & E' M3 D# f) e! B: H
Don't forget to like it.. Of course if it helps... 4 m5 Q/ Z* V" p: i

# N  l$ s3 d/ j& f
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-11 05:40 , Processed in 0.056728 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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