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?

NPC Destroy/Create
Started by Nazca, Aug 15 2003 11:31 AM
3 replies to this topic
#1
Posted 15 August 2003 - 11:31 AM
#2
-Moonfruit-
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
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)
IF
Contains("BOOK",Myself)
THEN
Response #100
TakeItemReplace("Book","Scroll",O:Object)
#4
-Moonfruit-
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
AFAIK it would look like this:
IF
HasItem("Book",Myself)
THEN
RESPONSE #100
TakeItemReplace("Book","Scroll",Myself)
END