Guih Posted February 17, 2015 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 40 Reputation: 0 Joined: 11/25/12 Last Seen: January 10, 2016 Share Posted February 17, 2015 Hello everyone! I need help with making a script of a monster that can spawn it in all maps (in the interval of 1 hour when is killed). Is that possible? Thanks! Quote Link to comment Share on other sites More sharing options...
Tokei Posted February 18, 2015 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 696 Reputation: 721 Joined: 11/12/12 Last Seen: 11 hours ago Share Posted February 18, 2015 Hello everyone! I need help with making a script of a monster that can spawn it in all maps (in the interval of 1 hour when is killed). Is that possible? Thanks! You could start with the following : - script ANY_MAP_SPAWNER -1,{ OnInit: .mobId = 1002; setarray .maps$,"prontera","izlude"; donpcevent "ANY_MAP_SPAWNER::OnAddMob"; end; OnAddMob: monster .maps$[rand(0,getarraysize(.maps$) - 1)],0,0,"--ja--",.mobId,1,"ANY_MAP_SPAWNER::OnMyMobDead"; announce "A new mob has spawned!",0; end; OnMyMobDead: initnpctimer; announce "The mob has been killed by "+strcharinfo(0)+", wait a hour for the respawn.",0; end; OnTimer3600000: stopnpctimer; donpcevent "ANY_MAP_SPAWNER::OnAddMob"; end; } 1 Quote Link to comment Share on other sites More sharing options...
Guih Posted February 19, 2015 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 40 Reputation: 0 Joined: 11/25/12 Last Seen: January 10, 2016 Author Share Posted February 19, 2015 Oh, thank you very much! Quote Link to comment Share on other sites More sharing options...
Guih Posted June 9, 2015 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 40 Reputation: 0 Joined: 11/25/12 Last Seen: January 10, 2016 Author Share Posted June 9, 2015 Hey guys, about this script, is there anyway I can make it spawn in all maps automatically? Instead of putting all maps manually in the array... Thanks Quote Link to comment Share on other sites More sharing options...
Akbare Posted June 10, 2015 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 491 Reputation: 20 Joined: 11/19/11 Last Seen: June 5, 2023 Share Posted June 10, 2015 Hey guys, about this script, is there anyway I can make it spawn in all maps automatically? Instead of putting all maps manually in the array... Thanks just add timer in script Onclock or Onminute Quote Link to comment Share on other sites More sharing options...
Guih Posted June 10, 2015 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 40 Reputation: 0 Joined: 11/25/12 Last Seen: January 10, 2016 Author Share Posted June 10, 2015 Hey guys, about this script, is there anyway I can make it spawn in all maps automatically? Instead of putting all maps manually in the array... Thanks just add timer in script Onclock or Onminute Sorry, i'm not good with script... How's that supposed to make it spawn in all maps loaded in the server? Quote Link to comment Share on other sites More sharing options...
Stolao Posted June 11, 2015 Group: Developer Topic Count: 48 Topics Per Day: 0.01 Content Count: 1443 Reputation: 344 Joined: 10/17/12 Last Seen: Sunday at 01:58 PM Share Posted June 11, 2015 Hey guys, about this script, is there anyway I can make it spawn in all maps automatically? Instead of putting all maps manually in the array... Thanks just add timer in script Onclock or Onminute Sorry, i'm not good with script... How's that supposed to make it spawn in all maps loaded in the server? to do this i believe your going to have to add in every map in multiple arrays each array can support up to 128 vars and there are about 750 maps by default, Quote Link to comment Share on other sites More sharing options...
Question
Guih
Hello everyone! I need help with making a script of a monster that can spawn it in all maps (in the interval of 1 hour when is killed). Is that possible? Thanks!
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.