Jump to content
  • 0

OnInIt only triggers once?


HristDead

Question


  • Group:  Members
  • Topic Count:  66
  • Topics Per Day:  0.01
  • Content Count:  167
  • Reputation:   2
  • Joined:  08/01/12
  • Last Seen:  

Thanks Emistry

Edited by HristDead
Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2371
  • Joined:  10/28/11
  • Last Seen:  

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...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  66
  • Topics Per Day:  0.01
  • Content Count:  167
  • Reputation:   2
  • Joined:  08/01/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2371
  • Joined:  10/28/11
  • Last Seen:  

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;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  66
  • Topics Per Day:  0.01
  • Content Count:  167
  • Reputation:   2
  • Joined:  08/01/12
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2371
  • Joined:  10/28/11
  • Last Seen:  

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......

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  66
  • Topics Per Day:  0.01
  • Content Count:  167
  • Reputation:   2
  • Joined:  08/01/12
  • Last Seen:  

Solved!

Edited by HristDead
Link to comment
Share on other sites

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.

×
×
  • Create New...