client
Click(O,location)
if(!usr:temp.Find(O) && !usr:items.Find(O) && !usr:abilities.Find(O))
if(usr.loc == location)
Center()
else
usr.loc = location
else
..()
For some reason, if the player clicks on him/herself, it makes the screen go black. But nowhere in there do I reference the mob as a location, and locating the mob to his own turf would not make a difference... so what's going on?
ID:138259
Dec 11 2000, 8:23 pm
|
|
In response to Deadron
|
|
You probably have a case where Location is null (I've found a few in the past) -- trap the value and see. Yeah, location is apparently null when the user clicks on himself. But how? |
On 12/11/00 11:23 pm Spuzzum wrote:
client Is it possible that when you click on a mob, only the location variable is being passed in? And that gets passed into O, and location is left null? Z |
In response to Spuzzum
|
|
On 12/11/00 11:42 pm Spuzzum wrote:
Yeah, location is apparently null when the user clicks on himself. But how? A bug, that's how. It'll be fixed shortly. |
You probably have a case where Location is null (I've found a few in the past) -- trap the value and see.