Jump to content
  • 0

Rune war problem


shumalaku

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.01
  • Content Count:  3
  • Reputation:   0
  • Joined:  06/01/24
  • Last Seen:  

Anyone can help me? I'm using Rune war script by pajodex but when all the players registered to the event, nothing happens, it won't randomly pick a team and it won't teleport to prt_are01. 

 

I have an error in map.server:

[Error]: buildin_rand: range (0) is too small. No randomness possible.

[Warning]: Script command 'rand' returned failure.

[Debug]: Source (NPC): runewar#main at prt_are01 (0,0) [Debug]: Source (NPC): runewar#main is located in: npc/custom/MyNpc/runewar.txt

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  59
  • Topics Per Day:  0.01
  • Content Count:  407
  • Reputation:   55
  • Joined:  07/24/12
  • Last Seen:  

12 hours ago, shumalaku said:

Anyone can help me? I'm using Rune war script by pajodex but when all the players registered to the event, nothing happens, it won't randomly pick a team and it won't teleport to prt_are01. 

 

I have an error in map.server:

[Error]: buildin_rand: range (0) is too small. No randomness possible.

[Warning]: Script command 'rand' returned failure.

[Debug]: Source (NPC): runewar#main at prt_are01 (0,0) [Debug]: Source (NPC): runewar#main is located in: npc/custom/MyNpc/runewar.txt

show the script

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  59
  • Topics Per Day:  0.01
  • Content Count:  1281
  • Reputation:   170
  • Joined:  06/12/12
  • Last Seen:  

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  08/07/24
  • Last Seen:  

On 8/6/2024 at 12:50 PM, shumalaku said:

Anyone can help me? I'm using Rune war script by pajodex but when all the players registered to the event, nothing happens, it won't randomly pick a team and it won't teleport to prt_are01. 

 

I have an error in map.server:

[Error]: buildin_rand: range (0) is too small. No randomness possible.

[Warning]: Script command 'rand' returned failure.

[Debug]: Source (NPC): runewar#main at prt_are01 (0,0) [Debug]: Source (NPC): runewar#main is located in: npc/custom/MyNpc/runewar.txt
P/s: When you have free time, invite your friends to play house of hazards together to create funny laughter.

 The error message [Error]: buildin_rand: range (0) is too small. No randomness possible suggests that the range provided to the rand function is zero, which means there's no range for it to generate a random number. You can add a check to your script to handle cases where the player count might be zero.

Edited by remila11
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...