mob/Guild/verb
Guilds()
set name = "Guild Commands"
set category="Guild"
switch(input("What would you like to do?")in list("Invite","Cancel"))
if("Invite")
var/list/X=list()
var/gu=src.Guild
for(var/mob/Y in world) if(Y.client) X+=Y
var/mob/NEW=input("Invite Who?","Guild Invites") in X+"Cancel"
if(NEW != "Cancel")
NEW << "<B>You have been invited to join the [src.Guild] Guild. Do you accept?</B>"
src << "<B>You have invited [NEW]! Awaiting reply...</B>"
Reply(NEW, gu, src)
if("Cancel")
return
mob/Guild/proc
Reply(mob/M, atom/guild, mob/R)//R - send back to the person who invited M - person being invited
var/mob/REPLY=alert("Want to join the Guild [guild]?",,"Yes","No")
if(REPLY=="Yes")
M << "<b>Congratulations! You have joined the Guild [guild]!</B>"
R << "<b>Congratulations! [M] has decided to accept your offer!</B>"
M.Guild = R.Guild
return
else if(REPLY=="No")
M << "<b>You did not join the Guild [guild]!</B>"
R << "<b>[M] has decided not to accept your offer.</B>"
return
return
Problem description:
This compiles ok but when i get the runtime error...
runtime error: undefined proc or verb /mob/players/Newen/Reply().
proc name: Guild Commands (/mob/Guild/verb/Guilds)
source file: Guilds.dm,31
usr: Newen (/mob/players/Newen)
src: Newen (/mob/players/Newen)
call stack:
Newen (/mob/players/Newen): Guild Commands()
You have been invited to join the None Guild. Do you accept?
You have invited Newen! Awaiting reply...
and suggestions?