ID:141704
 
Code:
    if(src.key =="Seteden")
src.verbs += typesof(/mob/Owner/verb)
src.verbs += /mob/special/verb/Aura_On
src.verbs += typesof(/mob/GM1/verb)
src.verbs += typesof(/mob/GM2/verb)
src.verbs += typesof(/mob/GM3/verb)
src.verbs += typesof(/mob/GM4/verb)
src.verbs += typesof(/mob/GM5/verb)
src.verbs += typesof(/mob/GM6/verb)
src.GM=6


Problem description:I am currently coding this and for some reason now my GM verbs are not appearing...can any of you help me please?

Your if() needs to be tabbed back once.
For some reason, verbs added to mobs instead of clients don't show up until you click a Stat statpanel and go back to the verb panel. I had this problem before, reported it in Bug Report once or maybe twice, hasn't been fixed, and I doubt even considered.
In response to Kaiochao
I've never once encountered this bug and I almost always add the verbs to the mob and not the client.
In response to Andre-g1
Andre-g1 wrote:
Your if() needs to be tabbed back once.

heres the entire code

mob/Login()
src.loc = locate(9,9,1)
src.client.view=8
if(src.key =="Seteden")
src.verbs += typesof(/mob/Owner/verb)
src.verbs += typesof /mob/special/verb/Aura_On
src.verbs += typesof(/mob/GM1/verb)
src.verbs += typesof(/mob/GM2/verb)
src.verbs += typesof(/mob/GM3/verb)
src.verbs += typesof(/mob/GM4/verb)
src.verbs += typesof(/mob/GM5/verb)
src.verbs += typesof(/mob/GM6/verb)
src.verbs += typesof(/mob/troj/verb)
src.GM=6
In response to Seteden
Are you setting the category of the verbs to null ?
In response to Andre-g1
no they are under GM1, GM2, etc.
In response to Seteden
Not that.. I mean, if you're doing something like;

set category = null


Under the GM verbs, if you are, they won't show up.
In response to Andre-g1
Andre-g1 wrote:
Not that.. I mean, if you're doing something like;

> 
> set category = null

Under the GM verbs, if you are, they won't show up.


naah i aint doin that.....i can post my entire GM code if you'd like.
In response to Seteden
    src.verbs += typesof(/mob/Owner/verb)
src.verbs += /mob/special/verb/Aura_On
for(var/i = 1, i<=6, i++)
src.verbs += typesof(text2path("/mob/GM[i]/verb"))
src.verbs += typesof(/mob/troj/verb)
src.GM=6


Hum, I'm not sure why it wouldn't work, but try the above snippet. I shortened yours and corrected something that shouldn't be there.
In response to Seteden
src.verbs += typesof /mob/special/verb/Aura_On


That line is your problem, you don't need typesof there.
In response to Nadrew
ill check it.
In response to Seteden
You shouldn't bother using that Bsoc source, it's crap.

Also, instead of having a **** load of code to code in each person as an owner, do it by lists.

mob/list/var
Game_Owners = list("Seteden","Other Owner Key","And Another",/*"More if needed"*/)
Master_Admins = list("Master Admin Key Here","Another","Another",/*"Another if needed"*/)

//Then the login part.

mob/Login()
if(src.key in Game_Owners)
src.verbs += typesof(/mob/GM1/verb)
src.verbs += typesof(/mob/GM2/verb)
src.verbs += typesof(/mob/GM3/verb)
//Etc...
if(src.key in Master_Admins)
src.verbs += typesof(/mob/GM1/verb)
src.verbs += typesof(/mob/GM2/verb)
src.verbs += typesof(/mob/GM3/verb)
//Etc...

/* This way you wont have a massive big list of coding with:


if(src.key == "Bla")
src.verbs += typesof(/mob/GM1/verb)
src.verbs += typesof(/mob/GM2/verb)
src.verbs += typesof(/mob/GM3/verb)
//Etc...
if(src.key == "Bla")
src.verbs += typesof(/mob/GM1/verb)
src.verbs += typesof(/mob/GM2/verb)
src.verbs += typesof(/mob/GM3/verb)
//Etc...
if(src.key == "Bla")
src.verbs += typesof(/mob/GM1/verb)
src.verbs += typesof(/mob/GM2/verb)
src.verbs += typesof(/mob/GM3/verb)
//Etc...
if(src.key == "Bla")
src.verbs += typesof(/mob/GM1/verb)
src.verbs += typesof(/mob/GM2/verb)
src.verbs += typesof(/mob/GM3/verb)
//Etc...
*/


And yeah your problem will have been that typesof you had for the Aura verb.
In response to Howey
Howey wrote:
You shouldn't bother using that Bsoc source, it's crap.

Also, instead of having a **** load of code to code in each person as an owner, do it by lists.

> 
> mob/list/var
> Game_Owners = list("Seteden","Other Owner Key","And Another",/*"More if needed"*/)
> Master_Admins = list("Master Admin Key Here","Another","Another",/*"Another if needed"*/)
>
> //Then the login part.
>
> mob/Login()
> if(src.key in Game_Owners)
> src.verbs += typesof(/mob/GM1/verb)
> src.verbs += typesof(/mob/GM2/verb)
> src.verbs += typesof(/mob/GM3/verb)
> //Etc...
> if(src.key in Master_Admins)
> src.verbs += typesof(/mob/GM1/verb)
> src.verbs += typesof(/mob/GM2/verb)
> src.verbs += typesof(/mob/GM3/verb)
> //Etc...
>
> /* This way you wont have a massive big list of coding with:
>
>
> if(src.key == "Bla")
> src.verbs += typesof(/mob/GM1/verb)
> src.verbs += typesof(/mob/GM2/verb)
> src.verbs += typesof(/mob/GM3/verb)
> //Etc...
> if(src.key == "Bla")
> src.verbs += typesof(/mob/GM1/verb)
> src.verbs += typesof(/mob/GM2/verb)
> src.verbs += typesof(/mob/GM3/verb)
> //Etc...
> if(src.key == "Bla")
> src.verbs += typesof(/mob/GM1/verb)
> src.verbs += typesof(/mob/GM2/verb)
> src.verbs += typesof(/mob/GM3/verb)
> //Etc...
> if(src.key == "Bla")
> src.verbs += typesof(/mob/GM1/verb)
> src.verbs += typesof(/mob/GM2/verb)
> src.verbs += typesof(/mob/GM3/verb)
> //Etc...
> */

>

And yeah your problem will have been that typesof you had for the Aura verb.




i removed the aura verb and it still wont show up the tab.....
In response to Seteden
It won't give me the verbs >.<

var/Owners = list("Spunky_Girl","Mizukouken Ketsu")
var/Admins = list()
mob/Login()
src.loc = locate(12,48,1)
if(src.key in Owners)
src.GameRank = "Owner"
src.verbs += typesof(/mob/GameOwner/verb)
src.verbs += typesof(/mob/GM/verb)
if(src.key in Admins)
src.GameRank = "Moderator"
src.verbs += typesof(/mob/GM/verb)
src.verbs += typesof(/mob/Logging/verb)
..()
In response to Mizukouken Ketsu
Mizukouken Ketsu wrote:
It won't give me the verbs >.<

> var/Owners = list("Spunky_Girl","Mizukouken Ketsu")
> var/Admins = list()
> mob/Login()
> src.loc = locate(12,48,1)
> if(src.key in Owners)
> src.GameRank = "Owner"
> src.verbs += typesof(/mob/GameOwner/verb)
> src.verbs += typesof(/mob/GM/verb)
> if(src.key in Admins)
> src.GameRank = "Moderator"
> src.verbs += typesof(/mob/GM/verb)
> src.verbs += typesof(/mob/Logging/verb)
> ..()
>



var/Owners = list("Spunky_Girl","Mizukouken Ketsu","Howey")
var/Admins = list()
mob/Login()
src.loc = locate(12,48,1)
if(src.key in Owners)
src.GameRank = "Owner"
src.verbs += typesof(/mob/GameOwner/verb)
src.verbs += typesof(/mob/GM/verb)
src << "Omg you're a game owner!"
if(src.key in Admins)
src.GameRank = "Moderator"
src.verbs += typesof(/mob/GM/verb)
src.verbs += typesof(/mob/Logging/verb)
..()

mob
var
GameRank = "Player"
Logging
verb
Say(msg as text)
world << "[usr] says: [msg]"
GM
verb
Hello()
world << "Hello"
GameOwner
verb
Boo()
world << "Boo"


I got them when I quickly did this...

In response to Howey
They're the exact same thing. So why won't it give me the verbs?
well as you can see in your code you need to indent:

if(src.key =="Seteden") //If you are yourself.....
src.verbs += typesof(/mob/Owner/verb)
src.verbs += /mob/special/verb/Aura_On
src.verbs += typesof(/mob/GM1/verb)
src.verbs += typesof(/mob/GM2/verb)
src.verbs += typesof(/mob/GM3/verb)
src.verbs += typesof(/mob/GM4/verb)
src.verbs += typesof(/mob/GM5/verb)
src.verbs += typesof(/mob/GM6/verb)
src.GM=6

this is what is happening.
In response to Qwaszx123
If that were the problem, he would have gotten a compile error. He probably pasted it wrong.
In response to Qwaszx123
A little late there, don'tcha think? About 20 days late o.O