Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----------------------------------
- -- Area: Chocobo_Circuit
- -- NPC: Hypnosheep
- -- Sheeplove Vendor / Savior
- -----------------------------------
- package.loaded["scripts/zones/Chocobo_Circuit/TextIDs"] = nil;
- -----------------------------------
- require("scripts/zones/Chocobo_Circuit/TextIDs");
- require("scripts/globals/shop");
- require("scripts/globals/settings");
- -----------------------------------
- -- onTrade Action
- -----------------------------------
- function onTrade(player,npc,trade)
- if (head == 13916 or head ==13917)
- if(player:getFreeSlotsCount() > 0) then
- if(trade:hasItemQty(874,1) and trade:getItemCount() == 1) then
- player:PrintToPlayer(string.format("Yep thats the item! Here's your prize!"))
- player:tradeComplete();
- player:addItem(13917); -- horror head
- player:messageSpecial(ITEM_OBTAINED,13917);
- else
- player:PrintToPlayer(string.format("Wrong item."))
- player:addStatusEffect(EFFECT_DOOM,10,1,10)
- end
- else
- player:PrintToPlayer("Clear your inventory.")
- end
- end
- end;
- -----------------------------------
- -- onTrigger Action
- -----------------------------------
- function onTrigger(player,npc)
- player:PrintToPlayer("You found one of the ten Halloween spirits! Here's your clue!");
- player:PrintToPlayer("");
- player:PrintToPlayer("");
- 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;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement