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:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Duel system
Author Message
rastrero
Master
**

Posts: 250
Likes Given: 41
Likes Received: 28 in 24 posts
Joined: Jan 2016
Reputation: 3



Post: #6
RE: Duel system
This is the example you are looking for.

Code:
[FUNCTION f_myfunction]
ref14=<seconduelist.uid>  //put here the uid pathof the second player,
FORINSTANCES i_duelstone
    if !<tag0.inuse>
       tag.inuse 1
       src.go <p>
       src.move 0 5
       ref14.go <p>
       ref14.move 0 -5
       return 1
    else
       local.stones +=1
       serv.log <uid> this stone is in use. <SRC.UID> player looking for a duelpit.
    endif
ENDFOR
src.sysmessage All rooms are in use.
serv.log  <SRC.UID> search done allduelpits in use TOTALSTONESsearched:<eval <local.stones>>
(This post was last modified: 03-25-2016 01:05 AM by rastrero.)
03-24-2016 12:44 PM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes rastrero's post
Post Reply 


Messages In This Thread
Duel system - an0n!m0use - 03-21-2016, 12:46 AM
RE: Duel system - rastrero - 03-21-2016, 03:34 AM
RE: Duel system - an0n!m0use - 03-21-2016, 05:36 AM
RE: Duel system - rastrero - 03-23-2016, 09:45 PM
RE: Duel system - an0n!m0use - 03-24-2016, 08:11 AM
RE: Duel system - rastrero - 03-24-2016 12:44 PM

Forum Jump:


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