Npc Taking Equipped Items

Results 1 to 1 of 1
  1. #1
    Apprentice xCelyna is offline
    MemberRank
    Aug 2009 Join Date
    PurgatoryLocation
    18Posts

    Npc Taking Equipped Items

    I am making a couple of Npcs that will exchange armor parts and weapons for some other stuff. Without going into extreme detail I will explain as best I can.

    Example: I am an archer will full G55 equipped. I go to turn in an extra G55 archer chest I have into the npc but it takes the G55 chest I have equipped instead of the one in my inventory.

    How can I get my quest to take only items in the inventory and not equipped items?

    My quest looks like this
    Code:
    (quest (index 5000 1)
            (case (if (item (1519 1) (31 2000000))) (then (item (out 1519 1) (out 31 2000000)) (link 5000 2)))
        (case (then (html ))))
    
    (quest (index 5000 2) (linked 1)   
            (case (if (level 30)) (then (itemrand 5000)))      
        (case (then (html )))
    )
    Thanks in advance!




Advertisement