ID:157920
 
mob/var/it_blocked = 0
mob/var/tmp/iting=0
obj/Technique/InstantTransmission
verb/Instant_Transmission()
set category = "Techniques"
if(usr.buku)
return
if(usr.grav > 0)
return
if(usr.dead)
return
if(usr.race != "Android")
var/list/Menu = list()
for(var/mob/M in world)
if(istype(M,/mob/PC))
if(!M.it_blocked&&M.loggedin)
if(M.name != "PC--PC")
Menu.Add(M)
if(istype(M,/mob/NPC) || istype(M,/mob/Monster))

var/mob/M = input("IT to who?","Instant Transmission")in Menu
if(M=="Cancel")
return
usr.NIT(M)

else
if(usr.race == "Android")
var/list/Menu = list()
for(var/mob/M in world)
if(istype(M,/mob/PC))
if(!M.it_blocked&&M.loggedin)
if(M.name != "PC--PC")
Menu.Add(M)
if(istype(M,/mob/NPC) || istype(M,/mob/Monster))
if(!M.it_blocked)
Menu.Add(M)
var/mob/M = input("IT to who?","Instant Transmission")in Menu
if(M=="Cancel")
return
usr.AIT(M)

mob
proc
AIT(mob/M)
for(var/obj/O in src)
if(O.dball)
if(M.z!=1&&M.z!=2&&M.z!=3&&M.z!=4)
src<<"You can't IT there with the Dragonballs."
// src<<"The Dragonballs are interfering with your ability to seek energy signals."
return
if(M.GMLevel>=1)
src.it_lock=0
return
else
if(src.grav <= 0)
if(!M.it_blocked)
src.it_lock=1
src.icon_state = "IT"
sleep(6)
src.icon_state = ""
if(!M)return
if(M.it_blocked)
src.it_lock=0
return
if(src.it_blocked)
src.it_lock=0
return
if(src.dead)
src.it_lock=0
return
src.grav = 0
usr.iting=1
src.x=M.x
src.y=M.y-1
src.z=M.z
usr.iting=0
spawn(60)src.it_lock=0
src.it_blocked=0
src.grav = 0
src.grav_delay = 0
oview(8) << "<B>[src] Instant Transmissions appearing in front of you from beyond!"
src.icon_state = "IT"
sleep(6)
src.icon_state = ""
else
src << "You can't get a clear lock on [M]'s energy signal..."
return
NIT(mob/M)
for(var/obj/O in src)
if(O.dball)
if(M.z!=1&&M.z!=2&&M.z!=3&&M.z!=4)
src<<"You can't IT there with the Dragonballs."
// src<<"The Dragonballs are interfering with your ability to seek energy signals."
return
if(M.GMLevel>=1)
src.it_lock=0
return
else
if(src.grav <= 0)
if(!M.it_blocked)
src.it_lock=1
src.icon_state = "IT"
sleep(6)
src.icon_state = ""
if(!M)return
if(M.it_blocked)
src.it_lock=0
return
if(src.it_blocked)
src.it_lock=0
return
if(src.dead)
src.it_lock=0
return
src.grav = 0
usr.iting=1
src.x=M.x
src.y=M.y-1
src.z=M.z
usr.iting=0
src.grav = 0
src.grav_delay = 0
oview(8) << "<B>[src] Instant Transmissions appearing in front of you from beyond!"
src.icon_state = "IT"
sleep(6)
src.icon_state = ""
else
src << "You can't get a clear lock on [M]'s energy signal..."
return


Problem:
I am trying to make non-androids not able to IT to those that are blocked, GH, dead, and GM....
Android part is fine, as I wanted it to be...
But non Android is still the same!
How can I make non-Androids cant IT to those that are blocked?
Any suggest?
~~Evil
In response to Moonlight Memento
Nvm, I solved this problem...it was so simple...all I need is to make sure I included this in the code,
if(M.it_blocked == 1)
return

Then add those places, mobs like so: it_blocked = 1

and Bingo...it works xD

Thank you for helping...
~~Evil