Jump to content


Photo

NPC Destroy/Create


  • Please log in to reply
3 replies to this topic

#1 Nazca

Nazca
  • Member
  • 11 posts

Posted 15 August 2003 - 11:31 AM

Um.... i don't know if this has been asked already, but....

if you wanted an item destroyed off of an npc, then have another item take the place of the destroyed item... how would you code that in the .bcs?

#2 -Moonfruit-

-Moonfruit-
  • Guest

Posted 15 August 2003 - 11:39 AM

I think the easiest way would be to use the TakeItemReplace(S:Give*,S:Take*,O:Object*) command - where "give" is the code for the item you want to give, "take" is the code for the item you want to remove, and "object" is the code of the person you want to do this to.

#3 Nazca

Nazca
  • Member
  • 11 posts

Posted 15 August 2003 - 12:09 PM

Wow, thankyou. So, it would look like this in a .bcs right?

IF
Contains("BOOK",Myself)
THEN
Response #100
TakeItemReplace("Book","Scroll",O:Object)

#4 -Moonfruit-

-Moonfruit-
  • Guest

Posted 15 August 2003 - 01:13 PM

Actually, I think contains is only for containers not NPC's.

AFAIK it would look like this:

IF
HasItem("Book",Myself)
THEN
RESPONSE #100
TakeItemReplace("Book","Scroll",Myself)
END