Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Rappelz > Rappelz Private Server
You last visited: Today at 19:34

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Random coordinates

Discussion on Random coordinates within the Rappelz Private Server forum part of the Rappelz category.

Reply
 
Old   #1
 
Sandro1029's Avatar
 
elite*gold: 0
Join Date: Dec 2016
Posts: 182
Received Thanks: 82
Random coordinates

Hello there. I have an question. I want to add world boss event but don't know why it's not working. What's wrong there? The boss spawning only on last coordinates. Math random does not work. Help me please.

Script:

Sandro1029 is offline  
Old 09/15/2019, 22:36   #2
 
InkDevil's Avatar
 
elite*gold: 0
Join Date: Sep 2015
Posts: 603
Received Thanks: 1,201
Quote:
Originally Posted by Sandro1029 View Post
Hello there. I have an question. I want to add world boss event but don't know why it's not working. What's wrong there? The boss spawning only on last coordinates. Math random does not work. Help me please.

Script:

Because math.random needs 2 numbers. Start and End.
Use math.random(1,3) to create a first-time-random-spawn.
InkDevil is offline  
Old 09/15/2019, 22:40   #3
 
Sandro1029's Avatar
 
elite*gold: 0
Join Date: Dec 2016
Posts: 182
Received Thanks: 82
Quote:
Originally Posted by InkDevil View Post
Because math.random needs 2 numbers. Start and End.
Use math.random(1,3) to create a first-time-random-spawn.
I tried that too. But even with 2 numbers it does not work

By the way.
How to buff all online players via timed buff? Not event_state
Sandro1029 is offline  
Old 09/16/2019, 00:37   #4
 
InkDevil's Avatar
 
elite*gold: 0
Join Date: Sep 2015
Posts: 603
Received Thanks: 1,201
Quote:
Originally Posted by Sandro1029 View Post
I tried that too. But even with 2 numbers it does not work

By the way.
How to buff all online players via timed buff? Not event_state
I only answered on your question how math.random works to select a random position.

And I also said
Quote:
Use math.random(1,3) to create a first-time-random-spawn.
respawn_rare_mob won't call math.random again when the monster is respawning. just when server is starting and "registering" the respawner.

If you want to make it random automatically without ScheduledCommand, take a look into random respawn script.
*Hint is given*


The buff-command you're looking for is cast_world_state(id,lv,duration)
InkDevil is offline  
Thanks
1 User
Old 09/16/2019, 00:38   #5
 
Sandro1029's Avatar
 
elite*gold: 0
Join Date: Dec 2016
Posts: 182
Received Thanks: 82
Quote:
Originally Posted by InkDevil View Post
I only answered on your question how math.random works to select a random position.

And I also said

respawn_rare_mob won't call math.random again when the monster is respawning. just when server is starting and "registering" the respawner.

If you want to make it random automatically without ScheduledCommand, take a look into random respawn script.
*Hint is given*
Ok thanks
Sandro1029 is offline  
Reply


Similar Threads Similar Threads
[Released] Monster legends (Random Gold) (Random Food) (Random Exp)
02/03/2015 - Facebook - 6 Replies
Monster legends New Tools !! *1 - Random Gold *2 - Random Food *3 - Random Exp All Tested And Working 100% Without Any Problem :handsdown: !!! Link
DC Random 8 -> 100 Gems + Random 3M --> 18 M Food + Random 3M --> 18M Gold
01/24/2015 - Dragon City - 25 Replies
DC Random 8 -> 100 Gems + Random 3M --> 18 M Food + Random 3M --> 18M Gold Dragon City Gem + Gold + Food +Exp
Java Color.rgb(random,random,random)
05/19/2014 - Java - 4 Replies
Guten Abend liebe Community, ich habe ein Anliegen. Wie ist es möglich bei der Methode : setTextColor(Color.rgb(0,0,0)); anstatt (0,0,0) 3 random Integer zu verwenden wenn ja wie? Ich habe es mal so probiert: final Random r = new Random();



All times are GMT +1. The time now is 19:34.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.