tiagofm94 Posted December 22, 2019 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 14 Reputation: 6 Joined: 02/03/13 Last Seen: October 5, 2024 Share Posted December 22, 2019 Good Morning! I would like to ask for help making this script work in the current Rathena. He should spawn a helper monster for a certain amount of time. The monster is spawned, but disappears instantly. Thank you very much in advance! Monstro_Ajudante.txt Quote Link to comment Share on other sites More sharing options...
0 Mabuhay Posted December 22, 2019 Group: Members Topic Count: 105 Topics Per Day: 0.02 Content Count: 446 Reputation: 232 Joined: 03/20/12 Last Seen: October 22, 2020 Share Posted December 22, 2019 Try changing all rand(0.x) to coma rand(0,x) Quote Link to comment Share on other sites More sharing options...
0 tiagofm94 Posted December 22, 2019 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 14 Reputation: 6 Joined: 02/03/13 Last Seen: October 5, 2024 Author Share Posted December 22, 2019 Friend reading the script I didn't find any rand (0.x). Quote Link to comment Share on other sites More sharing options...
0 Mabuhay Posted December 22, 2019 Group: Members Topic Count: 105 Topics Per Day: 0.02 Content Count: 446 Reputation: 232 Joined: 03/20/12 Last Seen: October 22, 2020 Share Posted December 22, 2019 Just now, tiagofm94 said: Friend reading the script I didn't find any rand (0.x). X=number. Im on mobile so i cannot copy and paste the exact parts to be changed Quote Link to comment Share on other sites More sharing options...
0 tiagofm94 Posted December 22, 2019 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 14 Reputation: 6 Joined: 02/03/13 Last Seen: October 5, 2024 Author Share Posted December 22, 2019 Below are all lines with rand(0, x) if(rand(0,10000) > 500) end; set @nTime, (300+rand(0,120))-getmonsterinfo(killedrid,1); set mkTimed, gettimetick(2)+@nTime+rand(0,60); I didn't find any rand(0.x) just found rand(0, x). Quote Link to comment Share on other sites More sharing options...
0 tiagofm94 Posted December 23, 2019 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 14 Reputation: 6 Joined: 02/03/13 Last Seen: October 5, 2024 Author Share Posted December 23, 2019 Could anyone else help me? Quote Link to comment Share on other sites More sharing options...
0 tiagofm94 Posted January 4, 2020 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 14 Reputation: 6 Joined: 02/03/13 Last Seen: October 5, 2024 Author Share Posted January 4, 2020 Can someone please help me solve this problem? Quote Link to comment Share on other sites More sharing options...
0 Litro Endemic Posted January 4, 2020 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 283 Reputation: 79 Joined: 06/13/13 Last Seen: June 7, 2023 Share Posted January 4, 2020 re configure number of time out param in your summon set @nTime, (300+rand(0,120))-getmonsterinfo(killedrid,1); summon "Ajudante "+getmonsterinfo(killedrid,0), killedrid, @nTime; *summon "monster name",<monster id>{,<Time Out>{,"event label"}}; Timeout is the time in milliseconds the summon lives, and is set default to 60000 (1 minute). Note that also the value 0 will set the timer to default, and it is not possible to create a spawn that lasts forever. If an event label is given, upon the monster being killed, the event label will run as if by 'donpcevent'. time out param is in milliseconds, of course your spawned monster almost disappear instantly, you set time out at range 300 ~ 420 - Monster Killed Level, that not even a second Quote Link to comment Share on other sites More sharing options...
Question
tiagofm94
Good Morning!
I would like to ask for help making this script work in the current Rathena.
He should spawn a helper monster for a certain amount of time.
The monster is spawned, but disappears instantly.
Thank you very much in advance!
Monstro_Ajudante.txt
Link to comment
Share on other sites
7 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.