All pastes #902889 Raw Edit

Untitled

public lua v1 · immutable
·published 2008-02-13 20:47 UTC
rendered paste body
local function mystatus( Source, Args)	if (exists("scripts/plugins/RPGPlugin/profiles/"..Source.Nick..".lua") == false) then	return "You are not registered, to register type -register name race", Source.Channel, MESSAGE_NORMAL	endif (RPG.Enable == false) then	return "RPG Mod is not currently running please try again later", Source.Channel, MESSAGE_NORMAL	end	if (RPG.Enable == true) thenlocal profilename = "scripts/plugins/RPGPlugin/profiles/"..Source.Nick..".lua"local templayer = table.load(profilename)local temsleepif templayer.sleep == "0" thentemsleep = "Awake"endif templayer.sleep == "1" thentemsleep = "Sleeping"endif templayer.curhp == "0" thentemsleep = "Dead"endlocal tempstring = "Name: "..templayer.name.." HP: "..templayer.curhp.."/"..templayer.maxhp.." MP: "..templayer.curmp.."/"..templayer.maxmp.. " Status: "..temsleepreturn tempstring , Source.Channel, MESSAGE_NORMALendend