finish()
set hidden = 1
var/Name=winget(src,"secondscreen.inputname","text")
if(fexists("Clients/[Name].sav"))
switch(alert("That name is taken!","Name Taken","Ok"))
if("Ok")
return
if(length(Name) > 20)
alert("Your name can not be longer than twenty characters!")
return
if(Name&&village&&saveslot) //&&Clan
switch(alert("Are you sure?","Creation","Yes","No"))
if("Yes")
winset(src,"login","is-visible=false")
winset(src,"default","is-maximized=true")
src<<"RESPONDING."
GetScreenResolution(src)
src<<"STILL DOING THAT."
if(src.village=="Hidden Sand")
src.namecolor="yellow"
src.loc=locate("SandSpawn")
if(src.village=="Hidden Leaf")
src<<"YO!"
src.loc=locate(160,120,4)
src<<"<i>You've just awoken in the grass. Look around and find some people. Be careful...</i>"
src.namecolor="green"
src.name=Name
src.skin()
src.nonclan()
usr.Save()
src.UpdateBars()
src.Name(src.Name)
world << "<b><font color = white>Info: [src.name] has logged on to the game for the first time!"
usr<<"<font size=1><font color=red><b>Info: Don't forget to visit/fan our <a href=http://www.byond.com/games/Kboy33/JutsuInfinity>HUB</a>!"
ingame=1
if(src.key in ReceivedTicket)
return
else
var/obj/Rolling_Ticket/R = new(src)
R.name="JI Grand Release Rolling Ticket!"
// ReceivedTicket:Add(src.client.computer_id)
alert("On behalf of this game being released, Kboy33 has granted you with a Rolling Ticket! Go into your inventory and click it. Depending on what you roll, you may get a gift of some sort. Anything below 80 is a free T1 perk (everyone is a winner). 80 to 89 is another free T1 perk, and 90 - 100 is a (and not limited to) special ability.")
for(var/mob/M in world)//same here...
if(M==src) continue
if(!M.client) continue
// if(M.client==src.client||M.client.computer_id==client.computer_id)
// M<<"<font color=red><font size=4>No multi-keying!"
// del(M)
For no visible reason, the "GetScreenResolution" proc has stopped working. It can't get past the
GetScreenResolution(src)
proc/GetScreenResolution(mob/M)
var/POS = "[winget(M, "label","pos")]"
var/COMA = findtext(POS,",",1,0)
var/X = text2num(copytext(POS,1,COMA))
var/Y = text2num(copytext(POS,COMA+1,0))
M.client.view="[round(X/31)]x[round(Y/31)]"
M.XView=round(X/31)
M.YView=round(Y/31)
mob/var/XView
mob/var/YView
It should be noted that I have a less updated source with the same proc in it and it works fine.