|
HypoGXII Newbie
Joined: 11 Nov 2007 Posts: 3
|
Posted: Sun Apr 26, 2009 10:13 pm
Experimenting with New Windows |
Hi guys.
I have a wonderful pinger, but the thing is, I have to type pinglist, and the pinger would be echoed to me on the client
However, what i want to achieve is a always visible window that shows the entire pinglist. if ping_variable is 0, it would just say pinglist is empty or no mobs in pinglist.
Any help will be appreciated. If you guys need additional info, just ask and I will post it.
Thanks,
-HypoG |
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Mon Apr 27, 2009 1:46 am |
And what in heck is a pinglist?
|
|
_________________ CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
|
HypoGXII Newbie
Joined: 11 Nov 2007 Posts: 3
|
Posted: Mon Apr 27, 2009 4:17 am |
A pinglist is a command that displays the status of all the mobs of interest.
A pinger is a set of triggers that help you check the status of mobiles.
A pinglist usually consists of the mobile name, the mobile status (alive/dead), how long ago was the repop, how long is the area repop time, and lastly, how long more for it to pop. |
|
|
|
wrym Magician
Joined: 06 Jul 2007 Posts: 349 Location: The big palace, My own lil world
|
Posted: Mon Apr 27, 2009 5:25 am |
Your looking for the #capture, and #makewindow commands, possibly also the #gag command if you want to remove the pinglist from your main session window.
You'll probably need a pinglist alias to reset the ping count and enable the capture if you wish to disable it, and then a trigger to capture. |
|
_________________ "To the engineer, all matter in the universe can be placed into one of two categories: (1) things that need to be fixed, and (2) things that will need to be fixed after you've had a few minutes to play with them" - Scott Adams, The Dilbert Principle |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Mon Apr 27, 2009 11:35 am |
Don't use #makewindow; make a window with the New button in the package editor, and clicking window. Set it to have no network connection, and dock it how you like. You can now use #capture to move output to the window, #window to write text in the window, and #execwin to do more complex stuff in that window.
|
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Tue Apr 28, 2009 9:26 pm |
Fang, this is zMUD ;) he doesn't HAVE a package editor.
|
|
_________________ CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Tue Apr 28, 2009 9:32 pm |
Duuur -_-
|
|
|
|
HypoGXII Newbie
Joined: 11 Nov 2007 Posts: 3
|
Posted: Wed Apr 29, 2009 10:14 am |
Ok guys, lemme show you my code and hopefully, you'll be able to show me where I am to make my additions.
The code can be viewed here : http://nopaste.com/p/aokYpHiUs |
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Wed Apr 29, 2009 7:32 pm |
Hypo... instead of that link (which is highly annoying to read) do this:
Open the all settings view settings editor.
If your settings aren't in a class, put them in one, perhaps named PingList.
In the view one level up from the class, single click on the class.
Now choose the "Class Script" tab.
Click somewhere in the script that is shown, and then hit ctrl-A, followed by ctrl-C.
Then, make a [ code ] tag (without the spaces around the word code).
Paste your script text after the code tag.
Now make a [ /code ] tag (again without the spaces).
Voila, now you've got the script, properly formatted and everything, here on the forum. I've posted one of my scripts as an example.
Code: |
#CLASS {Kill Tracker}
#ALIAS killrep {gtell I have earned ~&B%format( "&.0n", @Tracker.xp) ~&nExperience and ~&Y%format( "&.0n", @Tracker.gold) ~&nGold in ~&m%format( "&.0n", @Tracker.kills) ~&nkills. For an average of ~&B%format( "&.0n", @Tracker.xpavg) ~&nExperience and ~&Y%format( "&.0n", @Tracker.goldavg) ~&nGold per kill.}
#ALIAS rsttrk {
#CLASS {Kill Tracker}
#var Tracker.xp {0}
#var Tracker.kills {0}
#var Tracker.gold {0}
#var Tracker.xpavg {0}
#var Tracker.goldavg {0}
#CLASS 0
gtell ~&WKill Tracker Has Been ~&RRESET~&W!!!~&n
}
#ALIAS KTHelp {
#ECHO %cr
#ECHO {Kill Tracker Version: @KTVers}
#ECHO {Created By Ralgith}
#ECHO {Commands:}
#ECHO {rsttrk - Resets all tracker data to zero. Use this when you first import this script.}
#ECHO {killrep - Reports your kills, xp, gold, average xp per kill, and average gold per kill since last reset}
#ECHO {NOTES: This has NOT been thoroughly bug tested.}
#ECHO {KNOWN ISSUES: Currently Gold gotten outside of combat is averaged into the gold per kill statistic.}
#ECHO {I have no plans to change that, because it is relatively minor.}
#ECHO {Also gold from auctions is ignored completely.}
%cr
}
#VAR Tracker {xp51613532kills8435gold39473182xpavg6118goldavg6849}
#VAR KTVers {1.0}
#TRIGGER {You receive your share of experience -- (%d) points.} {
#add Tracker.xp %1
#add Tracker.kills 1
#var Tracker.xpavg %eval( @Tracker.xp / @Tracker.kills)
}
#TRIGGER {%d coins went to your clan, and (%d) to your personal coffers.} {
#add Tracker.gold %1
#var Tracker.goldavg %eval( @Tracker.gold / @Tracker.kills)
}
#TRIGGER {You split (%d) coins among %d members -- (%d) coins each.} {
#var Tracker.gold %eval( @Tracker.gold - %1 + %2)
#var Tracker.goldavg %eval( @Tracker.gold / @Tracker.kills)
}
#TRIGGER {%w splits %d coins~; you receive (%d).} {
#add Tracker.gold %1
#var Tracker.goldavg %eval( @Tracker.gold / @Tracker.kills)
}
#CLASS 0 |
|
|
_________________ CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
|
|
|