I'm at work programming right now when ever I get a break... shhhh! :)
Since I don't have a compiler here to check it out for errors. I'm just wonder if this is how I would do this as I've never seen any code to do it, I just came up with it in my head. What I want it to do is search the usr's contents to see if they are carrying the tanisinn_rm1 item. If so, then it Moves it from them back to the tanis_innkeeper.
This is of course placed in a Entered() proc. I just need to know if this area here will work??
LJR
Code:
if(usr.contents == /obj/keys/tanisinn_rm1) /obj/keys/tanisinn_rm1.Move(mob/npc/tanis_innkeeper)
ID:149812
![]() Feb 14 2002, 11:56 pm
|
|
You would have to do something like this:
var/has_item = locate(/obj/keys/tanisinn_rm1) in usr.contents try that, and tell me if it works.. -Rcet |
hmm I have multiple keys like 4. So this code is kinda big. Is there a more compact way of coding it for all 4 keys?
LJR |
Almost:
I think...I'm really tired.