I need a code for chatroom'like there 4 chatroom's and when the player logsin they get to join a chatroom if the chatroom hs 5 ppl in it they can't join and they have a say verb for each chat room that only the chat room heres.If you know how to do that,please tell me!Thanks!
-Kappa the Imp
ID:266501
![]() Mar 24 2002, 11:48 am
|
|
![]() Mar 24 2002, 1:24 pm
|
|
Just have a list for each chatroom and add them to the appropriate list. Then when they say something send the message to everyone in their chatroom.
|
well the only problem i really have is the say verb for only the chatroom there in,so only the chatroom can here it.Please show code.
-Kappa the Imp |
var/list/chat1 = list()
var/list/chat2 = list() var/list/chat3 = list() mob var/list/current Login() ..() switch(input("Join which chat?","Chat") in list("chat1","chat2","chat3")) if("chat1") current = chat1 if("chat2") current = chat2 if("chat3") current = chat3 current += src verb Chat_Say(msg as text) current << "[key]: [msg]" |