Abyss-kon force pop nm (help)
Posted: Fri Jul 24, 2015 11:00 am
Code: Select all
-----------------------------------
-- Zone: Abyssea-Konschtat
-- NPC: ??? (qm)
-- Spawns Ashtaerth the Gallavexd
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
if (trade:hasItemQty(2914,1) == false) then
-- Player is missing at least one required item.
-- Inform payer what items they need.
player:startEvent(1010, 2914);
elseif (GetMobAction(16838718) == ACTION_NONE) then
-- mob not already spawned from this
if (trade:hasItemQty(2914,1) and trade:getItemCount() == 1) then
-- Player has all the required items so Spawn NM.
-- Despawn after inactive for 180 sec (pt has to reclaim within 3 min of a wipe)
SpawnMob(16838718, 180):updateEnmity(player);
player:tradeComplete();
end
end
end;
haveing trouble getting this to work not sure if it from me copying the pm or the code itself
the game server error i get is:
[24/Jul] [10:57:32][1;31m[Error][0m [1;31mluautils::GetMobAction: mob <16838718> was not found