Jump to content
  • 0

Old Script Support


Question

7 answers to this question

Recommended Posts

  • 0
Posted
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 

  • 0
Posted

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


 

  • 0
Posted

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

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