ID:263876
 
Code:
    Warning
name = "{NPC}Warning"
icon='NPCs.dmi'
icon_state="Doctor"
npc = 1
verb
Talk()
set category = "NPC's"
set src in oview(2)
switch(input("Do You Wish To Test Your Luck Against The Strongest Monster In The Game?!?", text) in list ("Yes","No"))
if("Yes")
usr.loc = locate(32,63,1)


Problem description:

Mobs.dm:242::warning: empty switch statement
Mobs.dm:242:if :warning: if statement has no effect

Thanks in advance for the help.
Warning
name = "{NPC}Warning"
icon='NPCs.dmi'
icon_state="Doctor"
npc = 1
verb
Talk()
set category = "NPC's"
set src in oview(2)
switch(input("Do You Wish To Test Your Luck Against The Strongest Monster In The Game?!?", text) in list ("Yes","No"))
if("Yes")
usr.loc = locate(32,63,1)

try this and tell me if it works


...:::Pirata Inmorta:::...
In response to Pirata Inmortal
It works thanks again for the help (just had to fix an indentation error with the line name = {NPC}w/e)
In response to CK Productions
np man o.o
In response to Pirata Inmortal
Yo Pirata or Anyone willing to help I have another question if you wouldn't mind answering

mob
Arrancar
verb
mask()
set name = "Arrancar Mask"
set category = "Fighting"
if(usr.safe)
usr << "<b>You are in safe zone!"
return
if(usr.frozen)
return
if(usr.resting)
return
if(!usr.maskon)
usr.maskon = 1
usr.dir = SOUTH
usr.frozen = 1
new/obj/vaion(usr.loc)
sleep(7)
usr.frozen = 0
if(usr.arrancarmask == "YammyMask")
usr.overlays += 'YammyMask.dmi'
if(usr.arrancarmask == "UlquiorraMask")
usr.overlays += 'UlquiorraMask.dmi'
if(usr.arrancarmask == "ShawlongMask")
usr.overlays += 'ShawlongMask.dmi'
if(usr.arrancarmask == "Deidoro")
usr.overlays += 'Deidoro.dmi'
if(usr.arrancarmask == "dordoniimask")
usr.overlays += 'dordoniimask.dmi'
if(usr.arrancarmask == "EdoradMask")
usr.overlays += 'EdoradMask.dmi'
if(usr.arrancarmask == "EdoradRelease")
usr.overlays += 'EdoradRelease.dmi'
if(usr.mattack < 3000)
usr.attack += usr.mattack * 2
usr.defence += usr.mdefence * 1.6
goto ger
if(usr.mattack <= 6000)
usr.attack += usr.mattack * 3
usr.defence += usr.mdefence * 2.4
goto ger
if(usr.mattack > 150000)
usr.attack += usr.mattack * 3.7
usr.defence += usr.mdefence * 3
goto ger
if(usr.level > 100000)
usr.attack += usr.mattack * 10
usr.defence += usr.mdefence * 7
usr.health += usr.mhealth * 5.5
goto ger
ger
sleep(usr.masktime * 10)
if(usr)
usr.random = rand(5,9)
if(usr.random == 1)
usr.masktime += 1
usr.overlays -= 'YammyMask.dmi'
usr.overlays -= 'YammyMask.dmi'
usr.overlays -= 'UlquiorraMask.dmi'
usr.overlays -= 'UlquiorraMask.dmi'
usr.overlays -= 'ShawlongMask.dmi'
usr.overlays -= 'ShawlongMask.dmi'
usr.overlays -= 'Deidoro.dmi'
usr.overlays -= 'Deidoro.dmi'
usr.overlays -= 'EdoradMask.dmi'
usr.overlays -= 'EdoradMask.dmi'
usr.overlays -= 'EdoradRelease.dmi'
usr.overlays -= 'EdoradRelease.dmi'
usr.attack = usr.mattack
usr.defence = usr.mdefence
if(usr)
sleep(150)
usr.maskon = 0

M.random = rand(1,7)
if(M.random == 1)
M.arrancarmask = "YammyMask"
if(M.random == 2)
M.arrancarmask = "UlquiorraMask"
if(M.random == 3)
M.arrancarmask = "ShawlongMask"
if(M.random == 4)
M.arrancarmask = "Deidoro"
if(M.random == 5)
M.arrancarmask = "dordoniimask"
if(M.random == 6)
M.arrancarmask = "EdoradMask"
if(M.random == 7)
M.arrancarmask = "EdoradRelease"


obj
var
owner
mob/var
health=500
mattack=10
mdefence=10
mhealth=500
attack = 10
defence=10
reiatsu=10
rei = 10
mrei = 10
race = "Human"
vaizardmask
arrancarmask
money = 50000
tmp/firing=0
Gtitle=""
captain=0
exp=0
tmp/ikkakubankai = 0
tmp/kirashi = 0
bantype = 0
flashstep = 0
gotflash = 0
mexp=100
tmp/rundelay = 2
tmp/canattack =1
invai = 0
basic= 1


Training.dm:756:error:M.random:undefined var
Training.dm:757:error:M.random:undefined var
Training.dm:758:error:M.arrancarmask:undefined var
Training.dm:759:error:M.random:undefined var
Training.dm:760:error:M.arrancarmask:undefined var
Training.dm:761:error:M.random:undefined var
Training.dm:762:error:M.arrancarmask:undefined var
Training.dm:763:error:M.random:undefined var
Training.dm:764:error:M.arrancarmask:undefined var
Training.dm:765:error:M.random:undefined var
Training.dm:766:error:M.arrancarmask:undefined var
Training.dm:767:error:M.random:undefined var
Training.dm:768:error:M.arrancarmask:undefined var
Training.dm:769:error:M.random:undefined var
Training.dm:770:error:M.arrancarmask:undefined var

Ok the first dm area Is where the errors are generated
And
The second post is where I believe I have defined the var.

In response to CK Productions
see y that errorr u neva defined wats M y dont u put var/mob/M = usr up of where u startting using M?? btw that errorr is showing up cuz u neva defined wats M its not a problem by no defining the var
In response to Pirata Inmortal
Pirata Inmortal wrote:
see y that errorr u neva defined wats M y dont u put var/mob/M = usr up of where u startting using M?? btw that errorr is showing up cuz u neva defined wats M its not a problem by no defining the var

Ok what now where do I add this etc.

mob
var
tmp/checking = 0
mob
var
tmp/inoueshield = 0
tmp/inouezip = 0
inouehealhave = 0
inoueziphave = 0

var/mob/M = usr //I added it Here


Now I get Vars.dm:17:error:usr:undefined var
In response to CK Productions
I am still looking for help here.
In response to CK Productions
This question was already answered the last time you posted this crap. Change the first M.random to var/random, then all the other M.random to just random. That's it. It's that easy.
In response to CK Productions
dude i said up where u starting using M on the code o.o ill kill u if u keep being so dumb
In response to Pirata Inmortal
sorry oops I found out. Took a little while but, I found out.
In response to CK Productions
man im sorry i didnt wrote ur a dumb >.>