Teklis Posted January 25, 2013 Report Share Posted January 25, 2013 bueno necesito una quest que cuando ballas a esa npc i le entreges un item ejemplo una armadura 11299 la negra DE guerrero te la cambie por otra acambio de yang i items puede ser? Link to comment Share on other sites More sharing options...
Dextrok Posted February 22, 2013 Report Share Posted February 22, 2013 Esta seria una opcion: quest npc_change_item begin state start begin when 20016.take with item.vnum == 11299 begin say_title("Herrero:") say("Me has traido " .. item_name(11299)) say("Te la cambio por " .. item_name(11971)) say("Para hacer el cambio necesitaras lo siguiente:") say("- 3 Perlas Rojas") say("- 2 Perlas Azules") say("- 1 Perla Blanca") say("") say_reward("Quieres hacer el cambio?") local decision = select("Si", "No") if decision == 1 and pc.count_item(27994) >= 3 and pc.count_item(27993) >= 2 and pc.count_item(27992) >= 1 then item.remove() pc.remove_item(27994) pc.remove_item(27993) pc.remove_item(27992) pc.give_item2(11971) end end end end Link to comment Share on other sites More sharing options...
Recommended Posts