Hm. Yet another problem with removal of verbs.
Remove_Build_Verb(mob/M in world)
set category = "Owner"
set desc = "Remove a player's build verbs."
if(alert("Are you sure?","Remove build verbs","Yes","No") == "Yes")
world << "[src] has removed [M]'s build verbs."
M.verbs -= typesof(/mob/Build/verb)
The mob's building verbs are defined under the path mob/Build/verb, but like the last time It's probably some dinky little error I don't see.
ID:147963
Sep 4 2003, 11:33 pm
|
|
Sep 5 2003, 12:01 am
|
|
Does the "[src] has removed [M]'s build verbs" message show up? And can you show your build verbs?
|
In response to Crispy
|
|
Yes, that message does appear to the world... and an example of my build verbs:
mob Build verb Asphalt() set category = "Build" for(var/obj/q in usr.loc) if(q.nobuild == 1) src << "You cannot build here." return else del q view() << "<font color=silver>[usr] builds asphalt.</font>" var/o = new/obj/Asphalt(usr.loc) o:owner = "[usr.key]" Stone_Path() set category = "Build" for(var/obj/q in usr.loc) if(q.nobuild == 1) src << "You cannot build here." return else del q view() << "<font color=silver>[usr] builds a stone path.</font>" var/o = new/obj/Stone_Path(usr.loc) o:owner = "[usr.key]" |
In response to Enigmaster2002
|
|
Hmm, strange. Are you adding the verbs to the mob manually, or are the player mobs /mob/Build? If you're adding them manually, are you adding them to the client's verbs instead of the mob's verbs?
|
In response to Crispy
|
|
I add them manually, because I had some problems with hooligans building on my start screen. There's a line after the login message displayed to the user:
src << "Welcome to Icon Ultima." world << "<font color=green>[usr] has logged in.</font>" src.client.mob = new_mob new_mob.verbs += typesof(/mob/Build/verb) new_mob.loc = locate(2,2,1) |