Index: scripts/zones/Newton_Movalpolos/mobs/Bugbear_Matman.lua =================================================================== --- scripts/zones/Newton_Movalpolos/mobs/Bugbear_Matman.lua (revision 0) +++ scripts/zones/Newton_Movalpolos/mobs/Bugbear_Matman.lua (working copy) @@ -0,0 +1,19 @@ +----------------------------------- +-- Area: Newton Movalpolos +-- NPC: Moblin Showman +----------------------------------- + +----------------------------------- +-- OnMobSpawn Action +----------------------------------- + +function onMobSpawn(mob) +end; + +----------------------------------- +-- OnMobDeath Action +----------------------------------- + +function onMobDeath(mob,killer) + GetNPCByID(16826573):hideNPC(900); +end; \ No newline at end of file Index: scripts/zones/Newton_Movalpolos/npcs/Moblin_Showman.lua =================================================================== --- scripts/zones/Newton_Movalpolos/npcs/Moblin_Showman.lua (revision 0) +++ scripts/zones/Newton_Movalpolos/npcs/Moblin_Showman.lua (working copy) @@ -0,0 +1,34 @@ +----------------------------------- +-- Area: Newton Movalpolos +-- NPC: Moblin Showman - Bugbear Matman +-- @pos 124 20 -60 82 +----------------------------------- +package.loaded["scripts/zones/Newton_Movalpolos/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Newton_Movalpolos/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) + + if(trade:hasItemQty(1878,1) and trade:getItemCount() == 1) then -- Air tank + player:tradeComplete(); + player:showText(npc, SHOWMAN_ACCEPT); -- Moblin Showman's dialogue + SpawnMob(16826570,120):updateEnmity(player); -- Bugbear Matman + else + player:showText(npc, SHOWMAN_DECLINE); -- Moblin Showman refuses your trade + end + + +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + player:showText(npc, ON_TRIGGER); +end; \ No newline at end of file Index: scripts/zones/Newton_Movalpolos/TextIDs.lua =================================================================== --- scripts/zones/Newton_Movalpolos/TextIDs.lua (revision 2648) +++ scripts/zones/Newton_Movalpolos/TextIDs.lua (working copy) @@ -18,3 +18,8 @@ -- Mining MINING_IS_POSSIBLE_HERE = 7183; -- Mining is possible here if you have + +-- Moblin Showman + ON_TRIGGER = 07209; -- Hey, you there! Muscles nice. You want fight strong one? It cost you. Give me nice item. +SHOWMAN_DECLINE = 07208; -- ...Me no want that. Thing me want not here! It not being here!!! + SHOWMAN_ACCEPT = 07210; -- Fhungaaa!!! The freshyness, the flavoryness! This very nice item! Good luck, then. Try not die.One...two...four...FIIIIIIGHT!!!