world/New()
..()
usr.Check4Picks()
var/draftstatus = "over" // nodraft, inprogress, and over
mob/proc/Check4Picks()
if(draftstatus == "over")
if(locate((/obj/Round1_Pick1) in usr.contents))
usr.contents-=/obj/Round1_Pick1
if(locate((/obj/Round1_Pick2) in usr.contents))
usr.contents-=/obj/Round1_Pick2
if(locate((/obj/Round1_Pick3) in usr.contents))
usr.contents-=/obj/Round1_Pick3
if(locate((/obj/Round1_Pick4) in usr.contents))
usr.contents-=/obj/Round1_Pick4
if(locate((/obj/Round1_Pick5) in usr.contents))
usr.contents-=/obj/Round1_Pick5
if(locate((/obj/Round1_Pick6) in usr.contents))
usr.contents-=/obj/Round1_Pick6
if(locate((/obj/Round1_Pick7) in usr.contents))
usr.contents-=/obj/Round1_Pick7
if(locate((/obj/Round1_Pick8) in usr.contents))
usr.contents-=/obj/Round1_Pick8
if(locate((/obj/Round1_Pick9) in usr.contents))
usr.contents-=/obj/Round1_Pick9
if(locate((/obj/Round1_Pick10) in usr.contents))
usr.contents-=/obj/Round1_Pick10
if(locate((/obj/Round1_Pick11) in usr.contents))
usr.contents-=/obj/Round1_Pick11
if(locate((/obj/Round1_Pick12) in usr.contents))
usr.contents-=/obj/Round1_Pick12
if(locate((/obj/Round1_Pick13) in usr.contents))
usr.contents-=/obj/Round1_Pick13
if(locate((/obj/Round1_Pick14) in usr.contents))
usr.contents-=/obj/Round1_Pick14
if(locate((/obj/Round1_Pick15) in usr.contents))
usr.contents-=/obj/Round1_Pick15
if(locate((/obj/Round1_Pick16) in usr.contents))
usr.contents-=/obj/Round1_Pick16
if(locate((/obj/Round1_Pick17) in usr.contents))
usr.contents-=/obj/Round1_Pick17
if(locate((/obj/Round1_Pick18) in usr.contents))
usr.contents-=/obj/Round1_Pick18
if(locate((/obj/Round1_Pick19) in usr.contents))
usr.contents-=/obj/Round1_Pick19
if(locate((/obj/Round1_Pick20) in usr.contents))
usr.contents-=/obj/Round1_Pick20
if(locate((/obj/Round2_Pick1) in usr.contents))
usr.contents-=/obj/Round2_Pick1
if(locate((/obj/Round2_Pick2) in usr.contents))
usr.contents-=/obj/Round2_Pick2
if(locate((/obj/Round2_Pick3) in usr.contents))
usr.contents-=/obj/Round2_Pick3
if(locate((/obj/Round2_Pick4) in usr.contents))
usr.contents-=/obj/Round2_Pick4
if(locate((/obj/Round2_Pick5) in usr.contents))
usr.contents-=/obj/Round2_Pick5
if(locate((/obj/Round2_Pick6) in usr.contents))
usr.contents-=/obj/Round2_Pick6
if(locate((/obj/Round2_Pick7) in usr.contents))
usr.contents-=/obj/Round2_Pick7
if(locate((/obj/Round2_Pick8) in usr.contents))
usr.contents-=/obj/Round2_Pick8
if(locate((/obj/Round2_Pick9) in usr.contents))
usr.contents-=/obj/Round2_Pick9
if(locate((/obj/Round2_Pick10) in usr.contents))
usr.contents-=/obj/Round2_Pick10
if(locate((/obj/Round2_Pick11) in usr.contents))
usr.contents-=/obj/Round2_Pick11
if(locate((/obj/Round2_Pick12) in usr.contents))
usr.contents-=/obj/Round2_Pick12
if(locate((/obj/Round2_Pick13) in usr.contents))
usr.contents-=/obj/Round2_Pick13
if(locate((/obj/Round2_Pick14) in usr.contents))
usr.contents-=/obj/Round2_Pick14
if(locate((/obj/Round2_Pick15) in usr.contents))
usr.contents-=/obj/Round2_Pick15
if(locate((/obj/Round2_Pick16) in usr.contents))
usr.contents-=/obj/Round2_Pick16
if(locate((/obj/Round2_Pick17) in usr.contents))
usr.contents-=/obj/Round2_Pick17
if(locate((/obj/Round2_Pick18) in usr.contents))
usr.contents-=/obj/Round2_Pick18
if(locate((/obj/Round2_Pick19) in usr.contents))
usr.contents-=/obj/Round2_Pick19
if(locate((/obj/Round2_Pick20) in usr.contents))
usr.contents-=/obj/Round2_Pick20
if(locate((/obj/Round3_Pick1) in usr.contents))
usr.contents-=/obj/Round3_Pick1
if(locate((/obj/Round3_Pick2) in usr.contents))
usr.contents-=/obj/Round3_Pick2
if(locate((/obj/Round3_Pick3) in usr.contents))
usr.contents-=/obj/Round3_Pick3
if(locate((/obj/Round3_Pick4) in usr.contents))
usr.contents-=/obj/Round3_Pick4
if(locate((/obj/Round3_Pick5) in usr.contents))
usr.contents-=/obj/Round3_Pick5
if(locate((/obj/Round3_Pick6) in usr.contents))
usr.contents-=/obj/Round3_Pick6
if(locate((/obj/Round3_Pick7) in usr.contents))
usr.contents-=/obj/Round3_Pick7
if(locate((/obj/Round3_Pick8) in usr.contents))
usr.contents-=/obj/Round3_Pick8
if(locate((/obj/Round3_Pick9) in usr.contents))
usr.contents-=/obj/Round3_Pick9
if(locate((/obj/Round3_Pick10) in usr.contents))
usr.contents-=/obj/Round3_Pick10
if(locate((/obj/Round3_Pick11) in usr.contents))
usr.contents-=/obj/Round3_Pick11
if(locate((/obj/Round3_Pick12) in usr.contents))
usr.contents-=/obj/Round3_Pick12
if(locate((/obj/Round3_Pick13) in usr.contents))
usr.contents-=/obj/Round3_Pick13
if(locate((/obj/Round3_Pick14) in usr.contents))
usr.contents-=/obj/Round3_Pick14
if(locate((/obj/Round3_Pick15) in usr.contents))
usr.contents-=/obj/Round3_Pick15
if(locate((/obj/Round3_Pick16) in usr.contents))
usr.contents-=/obj/Round3_Pick16
if(locate((/obj/Round3_Pick17) in usr.contents))
usr.contents-=/obj/Round3_Pick17
if(locate((/obj/Round3_Pick18) in usr.contents))
usr.contents-=/obj/Round3_Pick18
if(locate((/obj/Round3_Pick19) in usr.contents))
usr.contents-=/obj/Round3_Pick19
if(locate((/obj/Round3_Pick20) in usr.contents))
usr.contents-=/obj/Round3_Pick20
==Error==
runtime error: Cannot execute null.Check4Picks().
proc name: New (/world/New)
source file: initialization.dm,7
usr: null
src:
call stack:
: New()
Any ideas what's causing this problem?
What are you trying to do with this? Everytime a mob logs in you want it to check if they have a certain obj in their contents?
If so then: