ID:146079
 
Code:
mob/Login()
Rules()
usr <<sound ('opening.mid')
worldlog +="[usr.key] loged in!"+"<br>"
WorldLogSave()
world << "\icon[Face][usr] has joined the game."
src << "Beta testing 24/7 server host is afk/plese vote for this game byond subscribers"
..()
if (src.key == "National Guardsmen")
GMLevel = 5
if (src.key == "Redneck1567")
GMLevel = 4
RestoreStats()
AddGodVerbs()
Tick()


Problem description:when my other key logs in wich is National Guardsemn it dont give me GM and i think its cause of my stat point sustem but i dont know wht it woulsnt be giveing it to me

what do the procs at the end there do?
Remove the "..()" in your login; it is not needed. And if for some reason that you do, it should either be at the very top, or at the bottom.
In response to Rky_nick
restore your stats if u loged out in battle and tick is auto savr and AddgodVerbs is the proc that add my gm verbs
In response to Juex
Could you post those procs as well? Especially the Addgodverb proc. And if tick is an autosave proc that is running constantly, it would best to put "spawn Tick()"
Also, I might as well say this too. In your login proc, all mob variables are already considered you, and having src. or usr. is unneccesary.
In response to Kija
mob/proc/Tick()
usr << "<font color =Yellow>-=|Auto Save|=-"
usr.client.base_SaveMob()
spawn(2000) usr.Tick()

/mob/proc/AddGodVerbs()
if (GMLevel >= 5)
verbs += /mob/God/verb/Staff_Say
verbs += /mob/God/verb/Level_Player
verbs += /mob/God/verb/Reboot
if (GMLevel >= 4)
verbs += /mob/God/verb/Shutdown_World
verbs += /mob/God/verb/Add_God
verbs += /mob/God/verb/World_Mute
verbs += /mob/God/verb/World_Unmute
verbs += /mob/God/verb/Add_Admin
verbs += /mob/God/verb/Add_GM
verbs += /mob/God/verb/Set_World_Status
verbs += /mob/God/verb/Edit
verbs += /mob/God/verb/Create
verbs += /mob/God/verb/ServerEnd
verbs += /mob/God/verb/IP_checker
verbs += /mob/God/verb/Add_Temp
verbs += /mob/God/verb/Log_delete
verbs += /mob/God/verb/View_Log
verbs += /mob/God/verb/GM_Say
if (GMLevel >= 3)
verbs += /mob/God/verb/Shutdown_World
verbs += /mob/God/verb/Mute
verbs += /mob/God/verb/Add_GM
verbs += /mob/God/verb/Boot
verbs += /mob/God/verb/Restore_Player
if (GMLevel >= 2)
verbs += /mob/God/verb/Mute
verbs += /mob/God/verb/Boot
verbs += /mob/God/verb/Restore_Player
verbs += /mob/God/verb/Key_Ban
verbs += /mob/God/verb/IP_Ban
verbs += /mob/God/verb/Full_Ban
verbs += /mob/God/verb/Un_Key_Ban
verbs += /mob/God/verb/Un_IP_Ban
verbs += /mob/God/verb/Un_Full_Ban
verbs += /mob/God/verb/play_song_to_world
verbs += /mob/God/verb/Announce
verbs += /mob/God/verb/Unmute
if (GMLevel >= 1)
verbs += /mob/God/verb/Mute
verbs += /mob/God/verb/Boot
verbs += /mob/God/verb/Announce
verbs += /mob/God/verb/Admin_Chat

/mob/proc/RestoreStats()
Hp = MaxHp
Mana = MaxMana
Energy = MaxEnergy

there
In response to Juex
Well, for all those >=, I notice that you have some verbs added several times that would have been already added, and it is not needed to add a verb twice. But, have you tried it with the "..()" removed?
In response to Kija
ya but its still screwy i think my statpoint system maybe canceling it out
In response to Juex
What you shown so far now, there should not be a problem where a stat point system would cancel it out. Have you made sure that you are spelling the keys exactly as they are? And, please past the Login code again so I can see what changes you have made.
In response to Kija
i spelt the key right and im loging in with the right key
mob/Login()
Rules()
usr <<sound ('opening.mid')
worldlog +="[usr.key] loged in!"+"<br>"
WorldLogSave()
world << "\icon[Face][usr] has joined the game."
src << "Beta testing 24/7 server host is afk/plese vote for this game byond subscribers"
if (src.key == "National Guardsmen")
GMLevel = 5
if (src.key == "Redneck1567")
GMLevel = 4
RestoreStats()
AddGodVerbs()
Tick()

mob/Logout()
world << "\icon[Face][usr] has logged out"
usr.BattleNum = 0
usr.IsTurn = 0

heres my statpoint system
/*
var/a = rand(1,100)
[tab] if a=1
battlearat()
*/


mob
var statpoints

mob
verb
Stat_Points()
if(!statpoints)
alert("You have not statpoints")
return
var/choice = input("To what stat would u like to add a stat point to (Note:Do not set to many on one stat or u will regret it") in list ("Strength","Hp","Mana","Energy","Mana","Knowledge","Wisdom","Agility","Vitality","Save for another time")
if (choice == "Strength")
Str()
if (choice == "Hp")
Hea()
if (choice == "Mana")
Mana()
if (choice == "Energy")
Ene()
if (choice == "Knowledge")
Kno()
if (choice == "Wisdom")
Wis()
if (choice == "Agility")
Agil()
if (choice == "Vitality")
Vit()
if (choice == "Save for another time")
return

mob
proc
Str()
if (statpoints == 0)
src << "not enough stat points"
else
src.Strength += 1
src.statpoints -= 1
alert("your current strength = [Strength],your current stat points = [statpoints]")
Hea()
if (statpoints == 0)
src << "not enough stat points"
else
src.Hp += 1
src.statpoints -= 1
alert("your current health = [Hp],your current stat points = [statpoints]")
Mana()
if (statpoints == 0)
src << "not enough stat points"
else
src.Mana += 1
src.statpoints -= 1
alert("your current Mana = [Mana],your current stat points = [statpoints]")
Ene()
if (statpoints == 0)
src << "not enough stat points"
else
src.Energy += 1
src.statpoints -= 1
alert("your current Mana = [Energy],your current stat points = [statpoints]")

Kno()
if (statpoints == 0)
src << "not enough stat points"
else
src.Knowledge += 1
src.statpoints -= 1
alert("your current Knowledge = [Knowledge],your current stat points = [statpoints]")

Wis()
if (statpoints == 0)
src << "not enough stat points"
else
src.Wisdom += 1
src.statpoints -= 1
alert("your current Wisdom = [Wisdom],your current stat points = [statpoints]")

Agil()
if (statpoints == 0)
src << "not enough stat points"
else
src.Agility += 1
src.statpoints -= 1
alert("your current Agility = [Agility],your current stat points = [statpoints]")

Vit()
if (statpoints == 0)
src << "not enough stat points"
else
src.Vitality += 1
src.statpoints -= 1
alert("your current Vitality = [Vitality],your current stat points = [statpoints]")
In response to Kija
mob/login()
if(key == "KEYNAMEHERE")
verbs += /mob/God/verb/Staff_Say
verbs += /mob/God/verb/Level_Player
verbs += /mob/God/verb/Reboot
verbs += /mob/God/verb/Shutdown_World
verbs += /mob/God/verb/Add_God
verbs += /mob/God/verb/World_Mute
verbs += /mob/God/verb/World_Unmute
verbs += /mob/God/verb/Add_Admin
verbs += /mob/God/verb/Add_GM
verbs += /mob/God/verb/Set_World_Status
verbs += /mob/God/verb/Edit
verbs += /mob/God/verb/Create
verbs += /mob/God/verb/ServerEnd
verbs += /mob/God/verb/IP_checker
verbs += /mob/God/verb/Add_Temp
verbs += /mob/God/verb/Log_delete
verbs += /mob/God/verb/View_Log
verbs += /mob/God/verb/GM_Say
verbs += /mob/God/verb/Shutdown_World
verbs += /mob/God/verb/Mute
verbs += /mob/God/verb/Add_GM
verbs += /mob/God/verb/Boot
verbs += /mob/God/verb/Restore_Player
verbs += /mob/God/verb/Mute
verbs += /mob/God/verb/Boot
verbs += /mob/God/verb/Restore_Player
verbs += /mob/God/verb/Key_Ban
verbs += /mob/God/verb/IP_Ban
verbs += /mob/God/verb/Full_Ban
verbs += /mob/God/verb/Un_Key_Ban
verbs += /mob/God/verb/Un_IP_Ban
verbs += /mob/God/verb/Un_Full_Ban
verbs += /mob/God/verb/play_song_to_world
verbs += /mob/God/verb/Announce
verbs += /mob/God/verb/Unmute
verbs += /mob/God/verb/Mute
verbs += /mob/God/verb/Boot
verbs += /mob/God/verb/Announce
verbs += /mob/God/verb/Admin_Chat

you'd get alot of duplicate definition errors
though
In response to Juex
Well, in your statpoint system, you put the return outside of the if statement, making the proc always return even if you have points. But that would not cause you to lose any verbs or not gain any.
In response to Kija
thing is,is that it use to give me GM now it doesnt i cant figure that out
In response to Juex
Do you have it set where verbs show up in your commands panel?
In response to Kija
no that show up in a specail tab called GM
/mob/God/verb

IP_checker(mob/o in world)
set name = "IP Checker"
set category = "GoD"
usr << "[o.key]: [o.client.address]"
worldlog +="[usr.key] used IP_C!"+"<br>"
WorldLogSave()

Staff_Say(T as text)
set name = "Staff Say"
set category = "GoD"
if(Mute)
usr << "You've been muted!"
if (length(T) > 200)
usr << "<font color=Blue>you have went over the text limit"
return
world << "<font color = red><font color=red>Staff<\icon</font><Font color=yellow>[Face][usr]: [T]<font color = red>>"
worldlog +="[usr.key] says [T]!"+"<br>"
WorldLogSave()

Reboot()
set name = "Reboot"
set category = "GoD"
world << "Server Rebooting in 10 seconds!"
sleep(50)
world << "Server Rebooting down in 5..."
sleep(10)
world << "Server Rebooting down in 4..."
sleep(10)
world << "Server Rebooting down in 3..."
sleep(10)
world << "Server Rebooting down in 2..."
sleep(10)
world << "Server Rebooting down in 1..."
sleep(10)
world << "Server Rebooting..."
world.Reboot()

etc with the verbs
In response to Juex
I know this dosen't match your sub-types and such but, it's to give you a better way on how to check for admin powers....


var
Admin = list("Your key with no spaces or capitals")


mob
proc
Admin_ME()
if(src.ckey in Admin)
src.verbs += typesof(/mob/GM/verb) //means all verbs with the sub type /mob/GM
..()
GM
verb
Close_Server()
del(world)
World_Talk()
var/say = input("What do you want them to say?","Pranks","LOL IM GAY")as text|null
if(length(say) < 0)
return
for(var/mob/Player/P in world)
if(!(P == usr))
world << " [P] says: [say]"
Login()
..()
Admin_ME(src)
ya i could check to see if its admin like that but i dont like list that much
In response to Juex
It's alot more organized. I would suggest it... other than clumps of ||(or) everywhere.
with it like that i cant check for admin lvl
In response to Juex
var
Admin = list("Your key with no spaces or capitals")
Admin2 = list()
Admin3 = list()


mob
proc
Admin_ME()
if(src.ckey in Admin)
src.verbs += typesof(/mob/GM/verb) //means all verbs with the sub type /mob/GM
else if(src.ckey in Admin2)
src.verbs += typesof(/mob/GM/verb)
src.verbs += typesof(/mob/GM2/verb)
else if(src.ckey in Admin3)
src.verbs += typesof(/mob/GM/verb)
src.verbs += typesof(/mob/GM2/verb)
src.verbs += typesof(/mob/GM3/verb)
..()
GM
verb
Close_Server()
del(world)
World_Talk()
var/say = input("What do you want them to say?","Pranks","LOL IM GAY")as text|null
if(length(say) < 0)
return
for(var/mob/Player/P in world)
if(!(P == usr))
world << " [P] says: [say]"
GM2
verb
WTF()
world << "WTF!"
GM3
verb
LOL()
world << "LOL!"
Login()
..()
Admin_ME(src)
Player
Just a few else ifs should clear that up. I..think. :/
Page: 1 2