The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sprint event mass teleport needed
Author Message
Lancelot
Apprentice
*

Posts: 1
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Sep 2020
Reputation: 0



Post: #1
Sprint event mass teleport needed
Hello, I have sprint event, Point - A = start pad , Point - B = finish pad
4 players gets unstoned while standing on point A , first player of thous 4 that steps on point B gets prize and triggers teleport for all thous 4 players out of event(including himself) Problem is i dont know how to do it. Can anyone please help me with this?

PHP Code:
//Point A
//more  = 4  amount of players
//more2 = 1 locked start

ON=@Step
  more 
-= 1
  
if <more> < 1
    more2 
1
  
endif
  
src.go <morep>
  
src.stone 0
  src
.move 0,-<more>
  
tag.char_<dmore> = <src.uid>
  return 
1

//Point B
ON=@Step
      
for 
        ref2 
= <uid.<ref1.tag0.start_pad>.tag0.char_<eval <local._for> +- 1>>
        if <
src.uid> != <ref2.uid>
          
ref2.go //XXXX,XXXX,XX
        
endif
      endfor
    endif 

Have set point A uid on point B but it doesnt work.
09-21-2020 04:04 AM
Find all posts by this user Like Post Quote this message in a reply
Jhobean
Journeyman
*

Posts: 98
Likes Given: 11
Likes Received: 9 in 3 posts
Joined: Jun 2019
Reputation: 2



Post: #2
RE: Sprint event mass teleport needed
You can put them a tag when they are unfreeze
ex: tag.race=1

When the first one step on tiles B, you can use forclients

Code:
@step //tile B
ref1=<src.uid>
forclients 50
       if <ref1>==<uid> //winner
                //give the prize
       endif
       if <tag0.race> == 1
          tag.race=
          ref2.go //XXXX,XXXX,XX
       endif
endfor

https://www.uocryptonite.com/
11-06-2020 05:53 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)