not sure what you mean by params as i'm still learning i redid script changing the voidstone part,kjLotus wrote:probably one of the other 6 paramsCode: Select all
player:startEvent(6000, CRIMSON_STRATUM_ABYSSITE_IV, VOIDSTONE_TEMP);
Code: Select all
-----------------------------------
-- Zone: KRT
-- NPC: ??? (Planar Rift)
-- Spawns Hahava (???)
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/keyitems");
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
if (GetMobAction(17555903) == ACTION_NONE) then
-- NM not already spawned from this, so checking KI
if (player:hasKeyItem(CRIMSON_STRATUM_ABYSSITE_IV) and player:hasKeyItem(VOIDSTONE1)) then
-- Ask if player wants to use KIs
player:startEvent(6000, CRIMSON_STRATUM_ABYSSITE_IV, VOIDSTONE1);
else
-- Do not ask, because player is missing at least 1.
player:startEvent(6001, CRIMSON_STRATUM_ABYSSITE_IV, VOIDSTONE1);
end
end
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
-- printf("CSID2: %u",csid);
-- printf("RESULT2: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
if (csid == 6000 and option == 1) then
-- Spawn NM, Despawn after inactive for 3 minutes (pt has to reclaim within 3 mins of a wipe)
SpawnMob(17555903, 180):updateEnmity(player);
player:delKeyItem(VOIDSTONE1);
end
end;