Some Custom NPC I made
Posted: Sun Aug 03, 2014 9:34 pm
Here is for some scripts I setup for Abyssea Gear when trade items able to get all 5 pieces. Welcome to use. Working on Adding Dyna Gear, Nyzul Gear, Salvage Gear, Weapons. Also Adding 2 NPC in Lower Jeuno that selling Seals for the Gear and some Weapons temp added
It setup atm to need 24 Seals cost like 600k or Farm them
You have buy 24 Seals for Moogle to get Gear from Abyssea Cost you 600k or Farm them
Weapons Cost 4M, which may change just testing price
It setup atm to need 24 Seals cost like 600k or Farm them
Code: Select all
-----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: MagianMoogle
-- Type: Standard NPC
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/missions");
require("scripts/zones/RuLude_Gardens/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
count = trade:getItemCount();
itemQuality = 0;
if (trade:getItemCount() == 24) then
if(trade:hasItemQty(3115,24) and count == 24) then -- thf
player:tradeComplete();
player:addItem(11069);
player:addItem(11109);
player:addItem(11129);
player:addItem(11149);
player:addItem(11089);
elseif(trade:hasItemQty(3142,24) and count == 24) then -- nin
player:tradeComplete();
player:addItem(11076);
player:addItem(11136);
player:addItem(11156);
player:addItem(11096);
player:addItem(11116);
elseif(trade:hasItemQty(3140,24) and count == 24) then -- rng
player:tradeComplete();
player:addItem(11074);
player:addItem(11114);
player:addItem(11154);
player:addItem(11134);
player:addItem(11094);
elseif(trade:hasItemQty(3136,24) and count == 24) then -- pld
player:addItem(11070);
player:addItem(11110);
player:addItem(11090);
player:addItem(11130);
player:addItem(11150);
elseif(trade:hasItemQty(3131,24) and count == 24) then -- mnk
player:tradeComplete();
player:addItem(11065);
player:addItem(11085);
player:addItem(11145);
player:addItem(11105);
player:addItem(11125);
elseif(trade:hasItemQty(3138,24) and count == 24) then -- bst
player:addItem(11072);
player:addItem(11092);
player:addItem(11152);
player:addItem(11112);
player:addItem(11132);
elseif(trade:hasItemQty(3148,24) and count == 24) then -- dnc
player:tradeComplete();
player:addItem(11082);
player:addItem(11102);
player:addItem(11122);
player:addItem(11162);
player:addItem(11142);
elseif(trade:hasItemQty(3133,24) and count == 24) then -- blm
player:tradeComplete();
player:addItem(11067);
player:addItem(11127);
player:addItem(11087);
player:addItem(11107);
player:addItem(11147);
elseif(trade:hasItemQty(3134,24) and count == 24) then -- rdm
player:tradeComplete();
player:addItem(11068);
player:addItem(11108);
player:addItem(11148);
player:addItem(11088);
player:addItem(11128);
elseif(trade:hasItemQty(3130,24) and count == 24) then -- war
player:addItem(11064);
player:addItem(11144);
player:addItem(11124);
player:addItem(11084);
player:addItem(11104);
elseif(trade:hasItemQty(3149,24) and count == 24) then -- sch
player:tradeComplete();
player:addItem(11083);
player:addItem(11103);
player:addItem(11143);
player:addItem(11123);
player:addItem(11163);
elseif(trade:hasItemQty(3147,24) and count == 24) then -- pup
player:tradeComplete();
player:addItem(11081);
player:addItem(11141);
player:addItem(11101);
player:addItem(11121);
player:addItem(11161);
elseif(trade:hasItemQty(3126,24) and count == 24) then -- cor
player:tradeComplete();
player:addItem(11080);
player:addItem(11120);
player:addItem(11100);
player:addItem(11140);
player:addItem(11160);
elseif(trade:hasItemQty(3125,24) and count == 24) then -- blu
player:tradeComplete();
player:addItem(11079);
player:addItem(11159);
player:addItem(11099);
player:addItem(11119);
player:addItem(11139);
elseif(trade:hasItemQty(3143,24) and count == 24) then -- drg
player:tradeComplete();
player:addItem(11077);
player:addItem(11137);
player:addItem(11097);
player:addItem(11157);
player:addItem(11117);
end
end
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
player:startEvent(0x278D);
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
if (csid == 0x278D and option == 1002) then
player:tradeComplete();
player:addItem(objecttrade);
player:messageSpecial(ITEM_OBTAINED,objecttrade);
end
end;
Code: Select all
-----------------------------------
-- Area: Lower Jeuno
-- NPC: Hasim
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
require("scripts/zones/Lower_Jeuno/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
player:showText(npc,HASIM_SHOP_DIALOG);
stock = {
3138,25000,3, -- bst
3133,25000,3, -- blm
3134,25000,3, -- rdm
3130,25000,3, -- war
3149,25000,3, -- sch
3147,25000,3, -- pup
3126,25000,3, -- cor
3125,25000,3, -- blu
3143,25000,3, -- drg
3142,25000,3, -- nin
3115,25000,3, -- thf
3140,25000,3, -- rng
3136,25000,3, -- pld
3131,25000,3, -- mnk
3148,25000,3, -- dnc
}
showNationShop(player, SANDORIA, stock);
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
Code: Select all
-----------------------------------
-- Area: Lower Jeuno
-- NPC: Taza
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
require("scripts/zones/Lower_Jeuno/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
player:showText(npc,TAZA_SHOP_DIALOG);
stock = {19840,4000000,3, --Mandau
19854,4000000,3, --Twas
19846,4000000,3, --Apoc
19848,4000000,3, --Amanom
19841,4000000,3, --Excalibur
19855,4000000,3, --Almace
19847,4000000,3, --Kik
19861,4000000,3, --Kannagi
19960,4000000,3, --Nagi
19843,4000000,3, --Guttler
19830,4000000,3, --Kogar
19862,4000000,3, --Masa
19860,4000000,3, --Rhong
}
showNationShop(player, SANDORIA, stock);
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;