SphereCommunity
Top Player Board - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Top Player Board (/Thread-Top-Player-Board)

Pages: 1 2 3


RE: Top Player Board - gooool - 09-14-2013 02:14 AM

(09-14-2013 01:09 AM)Mordaunt Wrote:  Ok... here is your answer

ref1= something not sure what since you have not posted ANY script for anyone to assist you with.

I'm curious also... what OS are you running on your computer?

Windows 8


RE: Top Player Board - Mordaunt - 09-14-2013 02:17 AM

so... you use the latest version of windows (even though it's kind of sucky) but you won't run the more stable/less buggy/more up to date 2013 56b prerelease (even though it is better and doesn't require any script changes)

see my point?

And you still haven't posted any script.

So... if you want help, help us to help you by giving us the information we need.
Or I'll lock the thread as it's just wasting everyone's time, including yours.


RE: Top Player Board - Extreme - 09-14-2013 03:02 AM

(09-14-2013 02:17 AM)Mordaunt Wrote:  so... you use the latest version of windows (even though it's kind of sucky) but you won't run the more stable/less buggy/more up to date 2013 56b prerelease (even though it is better and doesn't require any script changes)

see my point?

And you still haven't posted any script.

So... if you want help, help us to help you by giving us the information we need.
Or I'll lock the thread as it's just wasting everyone's time, including yours.
"EXTREME pressed the 'like' button."


RE: Top Player Board - Soulless - 09-14-2013 06:34 AM

i think this is the script he's using Tongue

[attachment=193]

Code:
//Created by Soulless
// V 1.00
//Basic top player board displaying fame, kills, karma, total skills, gold, deaths, etc


[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



RE: Top Player Board - XuN - 09-14-2013 07:24 AM

If this is the script, wich for sure it is just looking for the line of errors, I tested it on last release and it works like a charm. I can't remember until when, but some years ago you couldn't create tag.bla<ble> and you should use TRY tag.bla<ble> so this can be the problem there, like so many more... no one can force you to upgrade your .exe but, in this case, if will be your easiest solution Smile


RE: Top Player Board - Soulless - 09-14-2013 08:18 AM

yes i would recommend updating man. i believe REF didnt exist in the 2007 build, im sure this script could be done differently but as it is, on the 2012 nightlies and the 2013 pre-release it works just fine.

I can not see any good reason to stick with a version thats 5 years old. there have been MANY useful additions to the 56B Build.

there is an inherent problem with this script though, but i never thought much of it. it only scores the top player based on available online players. not too much of an issue, but this seemed a lot easier than using FORCLIENT.


RE: Top Player Board - Mordaunt - 09-14-2013 09:05 AM

Which brings use back to my original point.
Also kind of sad that someone else has to supply the script he is working from for anyone else to see what is going on...

There are guidelines for posting at the top of every forum.
USE THEM


RE: Top Player Board - Rattlehead - 09-14-2013 04:08 PM

in the 2007 releases (which i have many folders and such from even back to 2001) it seems only OBJ was implemented, not REFx.

when u got several ppl here telling you to upgrade, ppl who have been here longer than u have even know of spheres existence, i would take the suggestions, we know what we are talking about alot more than you think you do.


RE: Top Player Board - gooool - 09-14-2013 08:49 PM

Yes, I work for the 2007 ref.

here's a piece of the script and it works
ref1 = <UID. <local.uid_members>. FINDCONT.0.MORE1>
ref2 = <UID. <local.uid_members>. FINDCONT. <EVAL <local.count_members> - 1>. MORE1>

Help script (top_player_bord) alter under my Sphere


RE: Top Player Board - dagger4k - 09-14-2013 09:56 PM

gool you're not helping your case. you NEED the latest sphere build http://prerelease.sphere.torfo.org/build56/SphereServer-0.56b-201306161304-Win32.zip

Also please post the top_player_board SCRIPT.

We are trying to help!