Jump to content
  • 0

OnInIt only triggers once?


Question

6 answers to this question

Recommended Posts

Posted

after they killed the monster.....there are alot of way to continue what you want.

you can try like this....

sleep 60000;
monster "2@nyd",200,345,"Nidhoggr's Shadow",2022,1,strnpcinfo(0)+"::OnMobDead";

then it will respawn after 1minutes...

Posted

Thanks emistry, but I only want it to spawn as soon as a player enters.

my script includes some broadcasting which I've cut out since i dont think its neccesary, and as of now, nid spawns exactly when my broadcast ends and i kinda want to keep it like that.

it works perfectly fine the first player/party to enter, I want it to repeat that process so when another player enters the map the same happens.

sorry i hope you understand. i'm not good in explaining.

Posted

you can simply edit ur warper to check for the monster existence..

if it is killed...then spawn a new one when they are warped...

if( !mobcount( "2@nyd","drag_spawn::::OnMobDead" ) )
monster "2@nyd",200,345,"Nidhoggr's Shadow",2022,1,strnpcinfo(0)+"::OnMobDead";
warp "2@nyd",200,345;

Posted

you can simply edit ur warper to check for the monster existence..

if it is killed...then spawn a new one when they are warped...

if( !mobcount( "2@nyd","drag_spawn::::OnMobDead" ) )
monster "2@nyd",200,345,"Nidhoggr's Shadow",2022,1,strnpcinfo(0)+"::OnMobDead";
warp "2@nyd",200,345;

How about the timer? if i do it like that it won't communicate well with my broadcasting.

I don't want it to spawn until "sleep2 20000;" after characters enter the map, just like this part of my script:

OnInIt:
sleep2 20000;
monster "2@nyd",200,345,"Nidhoggr's Shadow",2022,1,strnpcinfo(0)+"::OnMobDead";
end;

is that possible to imply in your script?

Posted

hmm ? if you want to add a delay for spawn..then just add the sleep ...

beside...in ur script...that sleep appear in the OnInit label...for me..it is useless......

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...