gooool
Apprentice
Posts: 18
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2013
Reputation: 0
|
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 |
|
|
Ben
Sphere Developer
Posts: 612
Likes Given: 2
Likes Received: 123 in 70 posts
Joined: Mar 2010
Reputation: 18
SphereCommunity
|
|
09-14-2013 10:51 PM |
|
|