The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Top Player Board
Author Message
gooool
Apprentice
*

Posts: 18
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2013
Reputation: 0



Post: #21
RE: Top Player Board
Code:
[itemdef i_top_player_board]
id=i_bulletin_board
name=Top Player board
type=t_normal

on=@create
attr=010
color=0486

on=@dclick
sdialog d_top_player_board
return 1


[dialog d_top_player_board]
150, 150
page 0
gumppic 25 25 2170
dtext 195 60 100 Top
gumppic 219 31 1417
gumppic 230 40 5608
dtext 302 60 100 Players
gumppic 30 170 5536

serv.allclients findplayer_highest,<uid>,fame
serv.allclients findplayer_lowest ,<uid>,fame
serv.allclients findplayer_highest,<uid>,karma
serv.allclients findplayer_lowest ,<uid>,karma
serv.allclients findplayer_highest,<uid>,skilltotal
serv.allclients findplayer_lowest ,<uid>,skilltotal
serv.allclients findplayer_highest,<uid>,kills
serv.allclients findplayer_highest,<uid>,deaths
serv.allclients findplayer_lowest,<uid>,deaths
serv.allclients findplayer_highest,<uid>,gold
serv.allclients findplayer_lowest,<uid>,gold

ref1=<tag0.fame>
ref2=<tag0.fame2>
ref3=<tag0.karma>
ref4=<tag0.karma2>
ref5=<tag0.skilltotal>
ref6=<tag0.skilltotal2>
ref7=<tag0.kills>
ref8=<tag0.deaths>
ref9=<tag0.deaths2>
ref10=<tag0.gold>
ref11=<tag0.gold2>

dtext 160 180 100  Most Famed: <ref1.name>
dtext 160 195 1000 Least Famed: <ref2.name>
dtext 160 210 100  Highest Karma: <ref3.name>
dtext 160 225 1000 Lowest Karma: <ref4.name>
dtext 160 240 100  Most Skilled: <ref5.name>
dtext 160 255 1000 Least Skilled: <ref6.name>
dtext 160 270 100  Most Murders: <ref7.name>
dtext 160 285 1000 Most Deaths: <ref8.name>
dtext 160 300 100  Least Deaths: <ref9.name>
dtext 160 315 1000 Richest: <ref10.name>
dtext 160 330 100  Poorest: <ref11.name>


[function findplayer_highest]
ref1=<argv[0]>
ref2=<ref1.tag0.<argv[1]>>
if ((<<argv[1]>> > <ref2.<argv[1]>>) || !(<ref1.tag0.<argv[1]>>)) && !(<account.plevel>>1)
ref1.tag0.<argv[1]>=<uid>
endif

[function findplayer_lowest]
ref1=<argv[0]>
ref2=<ref1.tag0.<argv[1]>2>
if ((<<argv[1]>> < <ref2.<argv[1]>>) || !(<ref1.tag0.<argv[1]>2>))  && !(<account.plevel>>1)
ref1.tag0.<argv[1]>2=<uid>
endif

When I press on the plate gives me the error:
Code:
11:03:ERROR:(top_player_board.scp,71)Undefined keyword 'ref1.tag0.fame'
11:03:ERROR:(top_player_board.scp,78)Undefined keyword 'ref1.tag0.fame2'
11:03:ERROR:(top_player_board.scp,71)Undefined keyword 'ref1.tag0.karma'
11:03:ERROR:(top_player_board.scp,78)Undefined keyword 'ref1.tag0.karma2'
11:03:ERROR:(top_player_board.scp,71)Undefined keyword 'ref1.tag0.skilltotal'
11:03:ERROR:(top_player_board.scp,78)Undefined keyword 'ref1.tag0.skilltotal2'
11:03:ERROR:(top_player_board.scp,71)Undefined keyword 'ref1.tag0.kills'
11:03:ERROR:(top_player_board.scp,71)Undefined keyword 'ref1.tag0.deaths'
11:03:ERROR:(top_player_board.scp,78)Undefined keyword 'ref1.tag0.deaths2'
11:03:ERROR:(top_player_board.scp,71)Undefined keyword 'ref1.tag0.gold'
11:03:ERROR:(top_player_board.scp,78)Undefined keyword 'ref1.tag0.gold2'
(This post was last modified: 09-14-2013 10:01 PM by gooool.)
09-14-2013 09:59 PM
Find all posts by this user
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #22
RE: Top Player Board
Upgrade to the 2013 pre-release
No one else replying to this thread is having this issue with that script

There are no scripting changes you will have to make going from 2007 to 2013.
There are only a handful of changes in the sphere.ini
It's the work of 5 minutes.

[Image: 2nis46r.jpg]
(This post was last modified: 09-14-2013 10:14 PM by Mordaunt.)
09-14-2013 10:08 PM
Visit this user's website Find all posts by this user
Ben
Sphere Developer
*****

Posts: 612
Likes Given: 2
Likes Received: 123 in 70 posts
Joined: Mar 2010
Reputation: 18

SphereCommunity

Post: #23
RE: Top Player Board
Sorry guys... Refx was added in 2006 Smile
but you should really think about upgrading...

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
09-14-2013 10:51 PM
Visit this user's website Find all posts by this user
gooool
Apprentice
*

Posts: 18
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2013
Reputation: 0



Post: #24
RE: Top Player Board
Clearly, the answer track I have not heard!
Maybe someone will give a similar script for my Shpere?
09-14-2013 11:06 PM
Find all posts by this user
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #25
RE: Top Player Board
the answer is UPGRADE YOUR SPHERE

[Image: 2nis46r.jpg]
09-14-2013 11:07 PM
Visit this user's website Find all posts by this user
Thread Closed 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)