Jump to content
  • 0

Old Script Support


tiagofm94

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   6
  • Joined:  02/03/13
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  446
  • Reputation:   229
  • Joined:  03/20/12
  • Last Seen:  

Try changing all rand(0.x) to coma rand(0,x)

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   6
  • Joined:  02/03/13
  • Last Seen:  

Friend reading the script I didn't find any rand (0.x).

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  446
  • Reputation:   229
  • Joined:  03/20/12
  • Last Seen:  

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 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   6
  • Joined:  02/03/13
  • Last Seen:  

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


 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   6
  • Joined:  02/03/13
  • Last Seen:  

Can someone please help me solve this problem?

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   76
  • Joined:  06/13/13
  • Last Seen:  

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

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