Artfact head only augments with code.
Code: Select all
-----------------------------------
-- Area: Upper Jeuno
-- NPC: Theraisie
-- AF NPC NPC
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
local count = trade:getItemCount();
local prize = trade:getItem(0);
local a1 = 0;
local a2 = 0;
local a3 = 0;
local a4 = 0;
local v1 = 0;
local v2 = 0;
local v3 = 0;
local v4 = 0;
if trade:getItem(0) == 12516 then
elseif trade:getItem(1) == 1126 then
a1 = 512,30
v1 = 4
elseif trade:getItem(2) == 1535 then
a2 = 512
v2 = 4
elseif trade:getItem(3) == 1535 then
a3 = 512
v3 = 4
elseif trade:getItem(4) == 1535 then
a4 = 512
v4 = 4
end
if(player:getFreeSlotsCount() >= 1) then
player:tradeComplete();
player:addItem(prize,1,a1,v1,a2,v2,a3,v3,a4,v4);
player:messageSpecial(ITEM_OBTAINED,prize);
else
player:messageSpecial(ITEM_CANNOT_BE_OBTAINED,prize);
end
end;