Im making a Admin Demo,nothing from s_admin,and I need an Admin Command called Admin_Create(),if you tell me,you will get Credit.Thanks!
-Kappa the Imp
ID:266489
![]() Mar 21 2002, 12:46 pm (Edited on Mar 21 2002, 1:09 pm)
|
|
Found it,but can't tell if its a verb.
typesof proc See also: istype proc locate proc Format: typesof(Type1,Type2,...) Returns: A list of all types that are derived from the specified "base" types. Args: The "base" types. Example: obj/fruit In this example, fruit_types is initialized to contain /obj/fruit, /obj/fruit/apple, /obj/fruit/peach, and /obj/fruit/mango. This procedure can also be used to list procs and verbs. Example: mob/admin_commands/verb //for testing mob/verb/add_admin() -Kappa the Imp |
mob
Login() if(src.key == "RaeKwon") usr.verbs += /mob/GM/verb/Reboot world << "[usr] the admin enters." else world << "[usr] is amung us." mob GM verb Reboot() world << "10 Seconds Till Reboot" sleep(100) world.Reboot() |
RaeKwon wrote:
> mob Nice code,but I want a create verb,thanks anyway! -Kappa the Imp |
Kappa the Imp wrote:
Nice code,but I want a create verb,thanks anyway! You still haven't said what you mean by "a create verb". Perhaps if you were clear, we could help you. Lummox JR |
Lummox JR wrote:
Kappa the Imp wrote: Ok,fixed. -Kappa the Imp |
mob/GM
verb Create(O as null|anything in typesof(/obj,/mob)) set category = "Mod" set name = "Create" set desc="(object) Create a new mob, or obj" if(!O) return var/item = new O(usr.loc) usr << "You create \a [item:name]." view() << "\The [item:name] appears infront of [usr]." |
You want "a create verb". Okey dokey, but what exactly do you want to create?
Lummox JR