View Single Post
  #32  
Old 01-12-2014, 07:27 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by i8bit View Post
I have everything working the way I want, but I am trying to do a check in the CLASS script to check if the baddie is a certain type.

PHP Code:
  for (temp.npc findAreaNPCs(this.xthis.y44)) {
   if (
temp.npc.baddietype == "normal"){
    
temp.npc.trigger("Hurt");
  }
 } 
What is line 2 suppose to look like to check if the baddietype == "normal"??
It's fine if you're setting this.baddietype = "normal"; serverside in all the baddie NPCs you want to get hurt.
__________________
Reply With Quote