ID:268867
 
It seems that it does not work. Yet, I have no idea why not. Can anyone help ? D:

*EDIT* Yeah, why it isn't working -- When you run the game, there doesn't show up a tab named "GM". =/

mob/Login()
if(src.key=="jaimynl")
src.verbs+=typesof(/mob/GM/verb)
src.admin=999
if(ban.Find(src.client.ckey))
src << "You are banned."
del src
..()

mob
GM/verb
UnBan()
if(usr.key == "jaimynl")
set category="Admin"
var/check_letter=1
banlist+="Cancel"//Adds Cancel to the ban list.
var/T=input("Which address would you like to unban?")in banlist
if(T=="Cancel"){return}
usr<<"You Unbanned [T]."
var/banip
start:
if(copytext(T,check_letter,check_letter+1)=="-")goto unban
else{banip+=copytext(T,check_letter,check_letter+1);check_letter+=1;goto start}
unban:
ban.Remove(banip)
else
usr<<"You are not Bunnie, thus you are not allowed to use this command"
return()
Ban(mob/M in world)
if(usr.key == "jaimynl")
set category="Admin"
set desc="Who do you wish to Key ban?"
var/list/peoples
if(M == usr){usr << "Can't ban yourself."}
else
if(M.client)peoples+=M
ban+=M.client.ckey
M<<"You have been banned."
world<<"[usr] Key ban [M]!"
banlist+="[M.ckey]"
M.Del()
del (M)
else
usr<<"You are not Bunnie, thus you are not allowed to use this command"
return()
Boot(mob/M in world)
set category = "Admin"
set desc = "Who do you wish to boot? (Note: you can not boot yourself.)"
if(M == usr)
usr << "Can't boot yourself."
return()
if(M.key == "jaimynl")
usr<<"You cannot boot jaimynl!"
return()
else
del (M)
Mute(mob/M in world)
set category="Admin"
if(M.muted == 1)
usr<<"This user is already Muted!"
return()
else
if(M.admin >= 1)
usr<<"You may not mute a admin"
return()
else
if(alert(usr, "How long do you wish to mute them for?", "Mute", "Indefinately", "Timed") == "No")
var/time = input("How Long to mute them for?","Mute") as num
M.muted = 1
world<<"[M] has been muted by [usr] for [time] seconds."
sleep(time)
M.muted = 0
else
M.muted = 1
world<<"[M] has been muted by [usr] indefinately."
UnMute(mob/M in world)
set category="Admin"
if(M.muted == 0)
usr<<"This user isn't muted!"
return()
else
M.muted = 0
world<<"[M] has been unmuted by [usr]"
Announcement(message as message){set category = "Admin";
world << "<font color=#607B8B><center>--------------------------\
------------------------------\
<b><font color=#607B8B><center>Announces:</b><font color=#607B8B><center>
[message]\
<font color=#607B8B><center>--------------------------\
------------------------------</center>"
}
var/list{Admins=list();ban=list();banlist=list()}
mob/var{admin=0;default}
I'm sorry, but I don't think anyone can give you much help unless you specify what EXACTLY doesn't work (reading over it, I didn't see much detail :P). Just a note ^_^.
In response to Lenox
Lenox wrote:
I'm sorry, but I don't think anyone can give you much help unless you specify what EXACTLY doesn't work (reading over it, I didn't see much detail :P). Just a note ^_^.

I editted it. XD When I run the game, there doesn't show up a "GM" tab, like there is suposed to be. =/ So all my coding for my GMness doesn't work.
In response to Jaimy_NL
Hrm..just a stab in the dark..maybe you should try putting ..() before your checks.

Note: The key name is CASE SENSITIVE. Put the key name EXACTLY how it is. Example: "Jaimy_NL"

Now, if you were looking for src.ckey, it'd be jaimynl, I believe.
Is the mob you're using in the game of the type /mob/GM ?
In response to Lenox
Lenox wrote:
Hrm..just a stab in the dark..maybe you should try putting ..() before your checks.

Note: The key name is CASE SENSITIVE. Put the key name EXACTLY how it is. Example: "Jaimy_NL"

Now, if you were looking for src.ckey, it'd be jaimynl, I believe.

I know that it is case sensitive, I already changed that 300 times since I can't find the problem. =/
In response to DeathAwaitsU
DeathAwaitsU wrote:
Is the mob you're using in the game of the type /mob/GM ?

mob
GM


Yes. :3
In response to Jaimy_NL
Coding in a mob doesn't make the player automaticly become of that type.
In response to DeathAwaitsU
DeathAwaitsU wrote:
Coding in a mob doesn't make the player automaticly become of that type.

They don't have to be of that type to get the verbs, and by default, world.mob = /mob/, so his Login() stuff is done, but I believe it's the fact that it's not his EXACT key, it's just a ckey version.
In response to Lenox
Oh right i missed this bit in his coding:

src.verbs+=typesof(/mob/GM/verb)
In response to Lenox
Lenox wrote:
DeathAwaitsU wrote:
Coding in a mob doesn't make the player automaticly become of that type.

They don't have to be of that type to get the verbs, and by default, world.mob = /mob/, so his Login() stuff is done, but I believe it's the fact that it's not his EXACT key, it's just a ckey version.

Nah, it's not the key. =/
In response to Jaimy_NL
well, maybe try this..

mob/Login()
..()
if(src.key == "Jaimy_NL")
src.verbs+=typesof(/mob/GM/verb)
src.admin = 999
if(ban.find(ckey(src.key)))
src << "You are banned."
del(src)
return



There isn't really a reason for that NOT to work.
In response to Lenox
Lenox wrote:
well, maybe try this..

> mob/Login()
> ..()
> if(src.key == "Jaimy_NL")
> src.verbs+=typesof(/mob/GM/verb)
> src.admin = 999
> if(ban.find(ckey(src.key)))
> src << "You are banned."
> del(src)
> return
>

There isn't really a reason for that NOT to work.

Well then why isn't it ? D:
In response to Jaimy_NL
Jaimy_NL wrote:
Well then why isn't it ? D:

My best guess is that your Login() there is never being called, because you overrode Login() elsewhere but didn't call ..() in it.

So if you are overriding Login() elsewhere, make sure that you call ..(); and if you're still at a loss, put a debug message in Login():

mob/Login()
src << "Login() called" //DEBUG
..()
if (src.key == "Jaimy_NL")
// etc.


And finally, make sure you're actually logging into Dream Seeker as Jaimy_NL. You can check by going Options->Login screen.
Well, what you said here:

<gm>
mob/Login()
if(src.key=="jaimynl")
src.verbs+=typesof(/mob/GM/verb) // here
src.admin=999
if(ban.Find(src.client.ckey))
src << "You are banned."
del src
..()
</gm>

you're trying to tell it that players classified as GM's get these verbs right?
well, does the tab "Admin" Show up?
"jaimynl" isn't your key; it's your ckey. Your key is "Jaimy_NL"