Page 1 of 1
					
				Empyreal Armor +1
				Posted: Wed Jan 03, 2018 7:50 am
				by kirionet
				Hi, i wanted to know if the Trial to make the Empyreal Armor nq to Empyreal Armor +1  (Magician Moogle Blue) is actually working.
The Magician Moogle Blue is just asking for the Paralyze Potion but with that seems not working.
I don't remember how that was working on retail server and i do not know if there are differences on darkstar.
Thank you
			 
			
					
				Re: Empyreal Armor +1
				Posted: Wed Jan 03, 2018 8:45 pm
				by whasf
				Nope the scripts for those aren't complete, sorry.
			 
			
					
				Re: Empyreal Armor +1
				Posted: Thu Jan 04, 2018 6:11 am
				by kirionet
				OK i'm thinking to do it in a simple way like this:
function onTrade(player,npc,trade)
    if (trade:hasItemQty(<item>,1) == true and trade:getItemCount() == 1) then 
		player:tradeComplete();
                player:addItem(<item obtained>)
                player:messageSpecial(ITEM_OBTAINED,<item obtained>);
			 
			
					
				Re: Empyreal Armor +1
				Posted: Fri Jan 05, 2018 4:13 pm
				by whasf
				looks good to me 

 
			 
			
					
				Re: Empyreal Armor +1
				Posted: Fri Jan 05, 2018 5:29 pm
				by kirionet
				i tried this but seems not working... i don't know how to check 2 items in trade so i improvised 
Code: Select all
function onTrade(player,npc,trade)
    if (trade:hasItemQty(12013,1) == true and trade:hasItemQty(3115,1) == 8) then --- THF head
                player:tradeComplete();
                player:addItem(11169)
                player:messageSpecial(ITEM_OBTAINED,11169);
                end
I tried too: 
Code: Select all
    if (trade:hasItemQty(12013,1) == true and trade:hasItemQty(3115,8) == true) then --- THF head
and this:
Code: Select all
function onTrade(player,npc,trade)
    local tradeCount = trade:getItemCount();
        if (trade:hasItemQty(12013,1) and trade:hasItemQty(3115,8) and tradeCount == 2) then
            player:tradeComplete();
            player:addItem(11169)
            player:messageSpecial(ITEM_OBTAINED,11169);
    end
end;
can someone help me on this please?
 
			 
			
					
				Re: Empyreal Armor +1
				Posted: Fri Jan 05, 2018 8:17 pm
				by kirionet
				FIXED:
Code: Select all
function onTrade(player,npc,trade)
    local tradeCount = trade:getItemCount();
        if (trade:hasItemQty(12013,1) and trade:hasItemQty(3115,8) and tradeCount == 9) then
            player:tradeComplete();
            player:addItem(11169)
            player:messageSpecial(ITEM_OBTAINED,11169);
    end
end;