mob/Login()
if(usr!=null)
var/hostcheck=0
for(var/mob/M in world)
if(M.key)
hostcheck+=1
if(hostcheck==1)
world.status="Souloron -- Version Alpha 1.00 | Host: [usr]"
for(var/mob/M in world)
if(M.name==src.key)
if(M.key)
sleep(1)
else
del M
CheckBan(src)
var/random = rand(1,3)
if(random >= 1)
src.loc = locate(7,7,20)
if(random >= 2)
src.loc = locate(7,50,20)
if(random >= 3)
src.loc = locate(7,94,20)
if(usr.key in players)
usr.guildcheck()
usr.Update_Status()
usr.gmcheck()
usr.loc=locate(usr.lastx,usr.lasty,usr.lastz)
usr<<"<font color = red><B><CENTER>~Welcome to §ouloron~<BR><font color = white><BR>~~~~~Rules~~~~~</B></center><font color = blue><br>1.AFK/EZ Macroing/Training is NOT allowed. If you are caught doing that your character will be permanently deleted.<BR>2.Killing/Attacking players under level 5 is illegal.<BR>3.Be nice to people and GMs, and listen to all what GMs say.<BR>4.DO NOT rip from the game (Souloron).<BR>5.Execssive mass player killing is bannable offense. <BR>6.If you know about a bug/exploit and either abuse it or not report it, you can get banned.<BR><font color = yellow><B><CENTER>Enjoy playing §ouloron!</CENTER></b></font>"
usr.client.AutoSave()
usr.talk=1
if(src.key=="Souloron")
world<<"<B><Font color = yellow>The earth start shaking, and fire explode out of it as Souloron, the king of the world enter!</B></FONT>"
else
if(src.key=="Lord Dist")
world<<"<B><font color = yellow>The earth starts shaking, and fire explodes out of it as Lord Dist, the Prince of the world enters!</B></font>"
else
world<<"<B><font size = 1>System Message: <font color = red>[usr.name] has entered!</b>"
else
usr.verbs -= usr.verbs
players+=usr.key
world<<"<B><font size = 1>System Message: <font color = blue>[usr.name] has been connected!"
usr<<sound('enter.wav')
But instand of saying something special, it doesnt say anything... not even entered, but it does show me the rules... and my other bug is, I made HUD, that show ur hp / xp / mp, same as in my old game which worked fine but when I did it on this game, it says:
runtime error: Division by zero
proc name: Update Status (/mob/proc/Update_Status)
source file: HUD.dm,33
usr: Souloron (/mob)
src: Souloron (/mob)
call stack:
Souloron (/mob): Update Status()
Souloron (/mob): Login()