Larian Banner
Previous Thread
Next Thread
Print Thread
Joined: Jun 2013
addict
OP Offline
addict
Joined: Jun 2013
I want a boss to respawn after some time.

Should I create this through osiris or script ?


Un chemin de 1000 lieues commence par un premier pas.

Project:
Steam workshop Frontiere
Joined: Dec 2016
Location: United States
member
Offline
member
Joined: Dec 2016
Location: United States
Story code is probably the safest and easiest, but it's doable with either.

This is a simple way to have it respawn after x amount of time.

Code
IF
CharacterDied(CHARACTERGUID HERE)
THEN
TimerLaunch("YourTimerName", x time in miliseconds);

IF
TimerFinished("YourTimerName")
THEN
CharacterResurrect(CHARACTERGUID HERE);

Last edited by Ameranth; 04/10/17 10:49 PM.
Joined: Jun 2013
addict
OP Offline
addict
Joined: Jun 2013
Thanks Ameranth.

I am using this script in Osiris:

Code
Version 1
SubGoalCombiner SGC_AND
INITSECTION
DB_BOSS_SPAWN_LIST("front_Animals_BOSS_Crab_A_36dab888-71b5-439c-96f4-d3d9b5b34d7f",600000,TRIGGERGUID_PointTrigger_000_bae473e1-6a37-4bb9-9b22-011e7cf30583,"Fron_LOOT_Claw_BOSSCrab_A_c90ebc7d-23cc-405a-9161-b34957ab19ae");
DB_BOSS_SPAWN_LIST("Fron_Animals_Boss_Wolf_A_Black_c4083280-d794-427c-bd1c-726634d10fc5",1000000,TRIGGERGUID_fron_forest1_wolf_boss_trigger_095c67ff-8ef4-4935-b009-6a822c39f019,"");
KBSECTION
IF
DB_BOSS_SPAWN_LIST(_char,_delay,_trigger,_bountyTemplate)
AND
CharacterTemplateDied(_char)
THEN
ItemTemplateAddTo(_bountyTemplate,(CHARACTERGUID) _char, 1);
ProcObjectTimer(_trigger, "delayUntilRespawn",_delay);


PROC
ProcObjectTimerFinished((TRIGGERGUID)_obj, "delayUntilRespawn")
AND
DB_BOSS_SPAWN_LIST(_char,_delay,_trigger,_bountyTemplate)
AND
GetPosition(_trigger, _x, _y, _z)
AND
CharacterCreateAtPosition(_x, _y, _z,_char, 0,_boss)
THEN
NOT DB_SpiderBossID(_boss); 
EXITSECTION

ENDEXITSECTION


It works fine on one boss, I have to test it for the two of them.

I really like your script tho...


Un chemin de 1000 lieues commence par un premier pas.

Project:
Steam workshop Frontiere

Moderated by  Larian_Koala 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5