ID:142529
 
Code:
mob/verb
Create_Guild()
set category = "Other"
if(in_guild)
alert("You're in a guild...")
return
else if(guild_allow)
if(level >= 100)
if(zenni >= 100000)
var/gname = input("What would you like to call your guild?","Guild Name")as text|null
if(!gname)
alert("You must enter a name.")
return
if(length(gname) <= 2)
alert("You need to have more then 2 characters in your guild name.")
return
if(gname)
switch(alert("Are you sure you want to name your guild, [gname]?","Guild Name","Yes","No"))
if("Yes")
alert("OK, you have now made a guild!")
guild_rank = 6
guild_leader = 1
nog = new
nog.Add(gname)
gname = guildname
in_guild = 1
world << "<b><font color=red>Guild Information: <font color=white>[usr] has created a guild."
usr.guild_verbs()
zenni -= 100000
if("No")
alert("Very Well.")
return
else
alert("You need more zenni.")
else
alert("You need to get stronger.")
else
alert("A staff member has removed your privileges for what ever reason.")








mob/gleader/verb
Guild_Announce(msg as message)
set category = "Guild"
for(var/mob/G in world)
if(G.guildname == usr.guildname)
G << "<b><center><font color=purple><big>[usr] Announces to the guild:</big><br><font color=white>[msg]"
Invite(mob/M in world)
set category = "Guild"
if(M.online)
if(!M.in_guild)
if(M.guild_allow)
if(!M.npc)
switch(alert(M,"Do you wish to join [usr]'s guild?","Invite","Yes","No"))
if("Yes")
world << "<b><font color=red>Guild Information: <font color=white>[M] has joined [usr.guildname], being invited by [usr]!"
M.in_guild = 1
M.guildname = usr.guildname
M.member = 1
M.guild_verbs()
if("No")
alert("[M] has declined.")
return
else
alert("No inviting NPC's!")
else
alert("[M] isn't allowed to join any guilds.")
else
alert("[M] is already in a guild.")
else
alert("[M] must be logged in.")
Boot(mob/M in world)
set category = "Guild"
if(M.guildname == usr.guildname)
if(M.online)
if(!M.npc)
if(M.guild_leader)
alert(M,"Did you know that [usr] just tried to boot you?")
switch(alert("Are you sure you want to boot [M]?","Boot","Yes","No"))
if("Yes")
world << "<b><font color=red>Guild Information: <font color=white>[usr] has booted [M] from [usr.guildname]!"
M.in_guild = 0
M.guildname = "N/A"
M.member = 0
M.guild_verbs()
if("No")
alert("Very well...")
return
else
alert(M,"Did you know that [usr] just tried to boot you?")
alert("The guild Leader has been notified that you tried to boot him.")
else
alert("[M] is an NPC...")
else
alert("[M] must be logged in.")
else
alert("[M] is not in your guild.")








mob/gverbs/verb
Guild_Say(msg as text)
set category = "Guild"
for(var/mob/X in world)
if(X.guildname == usr.guildname)
X << "<font color=green>[usr] guild says: <b>[msg]</b>"
Leave_Guild()
set category = "Guild"
if(in_guild)
switch(alert("Are you sure that you want to leave the guild?","Leaving","Yes","No"))
if("Yes")
world << "<b><font color=red>Guild Information: <font color=white>[usr] has left [usr.guildname]!"
usr.in_guild = 0
usr.guildname = "N/A"
usr.member = 0
usr.guild_verbs()
if("No")
alert("Very well...")
return
Guild_Who()
set category = "Guild"
for(var/mob/I in world)
if(I.in_guild)
if(I.guildname == usr.guildname)
usr << "<b><font color=yellow>[I.name] [I.key] He is in the same guild as you."
else
usr << "<b><font color=red>[I.name] [I.key]."

mob/proc
guild_verbs()
if(src.guild_leader == 1)
src.verbs += typesof(/mob/gleader/verb)
src.verbs += typesof(/mob/gverbs/verb)
if(src.member == 1)
src.verbs += typesof(/mob/gverbs/verb)
if(!src.member)
src.verbs -= typesof(/mob/gverbs/verb)
src.verbs -= typesof(/mob/gleader/verb)


Problem description:
I get no errors or anything, it just wont give any verbs. It will have something to do with the proc. I can't figure out what though. =\
dragonball rebirth source i suppose >.>

in the loading and saving folder there should be proc check. read wats there and figure out wat u need. and change mob/verb to mob/PC/verb


and finally,

add this piece of code and put anywhere u want:

mob
Login()
world.Reboot() // looks like it but it will really stop your world from crashing




ps. DONT use rips to make your own game
In response to Gogeta126
It's not a rip. It's an original Dragon Ball Z game I am making.
In response to Howey
=.=..

u sure mob is a mob/ and not mob/something/ ????????
In response to Howey
http://www.byond.com/members/BYONDAnime/ forum?id=12397&view=1&display=1

Look there, there is a few screen shots of when it was Dragon Ball Z Eternal Existence.

The interface is different than what it shows in those screen shots btw. <.<
In response to Gogeta126
Gogeta126 wrote:
=.=..

u sure mob is a mob/ and not mob/something/ ????????


Certain, you can see the code there.

I get the Create Guild verb, I just don't get the guild verbs after creating.
Just do this..
proc
guild_verbs(mob/M)
if(M.guild_leader == 1)
M.verbs += typesof(/mob/gleader/verb)
M.verbs += typesof(/mob/gverbs/verb)
if(M.member == 1)
M.verbs += typesof(/mob/gverbs/verb)
if(!M.member)
M.verbs -= typesof(/mob/gverbs/verb)
M.verbs -= typesof(/mob/gleader/verb)
//Example: give_verbs(src)

assuming you're fine with using a global proc