Re: Akayan Scripts
Posted: Fri Jan 18, 2013 6:07 pm
MSDPSERVER_ID is raised each time you log in. So you can create an event handler to run getmsdpvars() when you do. It would look like this:
Enjoy!
Enjoy!
slothmud.org :: Play a top ranked, free and addicting online fantasy game or text based rpg game
http://www.slothmud.org/forum/
Tuck wrote:Did you get TANK_NAME, TANK_HEALTH and other TANK related vars to work?
display(atcp.MSDPTANK_NAME)
cecho("\n<yellow>Tank's HP: <cyan>"..atcp.MSDPTANK_HEALTH.."<yellow>/"..atcp.MSDPTANK_HEALTH_MAX)
Frame_Name:Echo(atcp.MSDPTANK_NAME.."("..atcp.MSDPTANK_LEVEL.."): "..atcp.MSDPTANK_HEALTH.."/"..atcp.MSDPTANK_HEALTH_MAX)
echo("label_name", atcp.MSDPTANK_NAME.."("..atcp.MSDPTANK_LEVEL.."): "..atcp.MSDPTANK_HEALTH.."/"..atcp.MSDPTANK_HEALTH_MAX)
Akaya wrote:I'm happy to answer any questions you have and/or walk you through the installation process. Enjoy!
Akaya wrote:I'm guessing you installed vyzor.xml instead of vyzor.mpackage
Akaya wrote:Each of my scripts come in a .zip file.
What you'll want to do is download this zip and DO NOT EXTRACT OR UNZIP.
Now install the .zip file on profile that has Vyzor and vuala! Your GUI should appear.
If you'd like, send me a PM on this forum and we'll set up a date/time where I can set it up for you.
function parseExits()
exits = {}
str = atcp.MSDPROOM_EXITS
dirs = {"North","East","South","West","Up","Down"}
for i=1,string.len(str) do
if string.ends(str,"") or string.ends(str,"O") or string.ends(str,"") or string.ends(str,"") or string.ends(str,"") then
str = string.cut(str,string.len(str)-1)
else
for k,v in pairs(dirs) do
if string.ends(str,v) then
str = string.cut(str,string.len(str)-string.len(v))
table.insert(exits,v)
end
end
end
end
return exits
end
{
"West",
"North",
"South"
}
send(parseExits()[1])