RE: Top Player Board - gooool - 09-14-2013 09:59 PM
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'
RE: Top Player Board - Mordaunt - 09-14-2013 10:08 PM
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.
RE: Top Player Board - Ben - 09-14-2013 10:51 PM
Sorry guys... Refx was added in 2006
but you should really think about upgrading...
RE: Top Player Board - gooool - 09-14-2013 11:06 PM
Clearly, the answer track I have not heard!
Maybe someone will give a similar script for my Shpere?
RE: Top Player Board - Mordaunt - 09-14-2013 11:07 PM
the answer is UPGRADE YOUR SPHERE
|