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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Training Room Stones
Author Message
htid4life
Journeyman
*

Posts: 162
Likes Given: 27
Likes Received: 4 in 3 posts
Joined: Mar 2012
Reputation: 2



Post: #1
Training Room Stones
hey guys i made a script for training stones.. basically they dclick stone n go into training room when 2hrs is up they exit..

Here is what i have it works...

Code:
[itemdef i_Training_stone_enter]
name=Training Stone (2hr)
id=i_grave_stone
type=t_normal

on=@create
color=047

on=@dclick
if <tag0.inuse>
src.sysMessage @55 Training Room In Use!
src.sysmessage @55  mins Remaining! // <<--- remaining Time here
return 1
endif
src.go=<tag0.traingo>
tag0.inuse=1
serv.newitem=i_teleport_training
new.link=<uid>
new.equip
new.timer=60
src.events=+e_training_room
return 1

[itemdef i_Training_stone_exit]
name=Exit Lose Your Spot
id=i_grave_stone
type=t_normal

on=@create
color=055

on=@dclick
src.findid.i_teleport_training.link.tag0.inuse=
src.findid.i_teleport_training.remove
src.go=5216,1208
src.events=-e_training_room
return 1



[events e_training_room]
on=@click
message @55 [Training]

on=@logout
IF (<findid.i_teleport_training>)
findid.i_teleport_training.link.tag0.inuse=
findid.i_teleport_training.remove
go=5216,1208
events=-e_training_room
ENDIF


[ITEMDEF i_teleport_training]
NAME=training delay
ID=i_handr_1
TYPE=T_EQ_SCRIPT

ON=@Create
    ATTR=attr_invis|attr_decay

ON=@Equip
    TIMER=1
    
ON=@Timer
    CONT.go=5216,1208    
    cont.events=-e_training_room
    cont.findid.i_teleport_training.link.tag0.inuse=
    cont.sysmessage = @55 Your Training Time Is Up!
    serv.log <cont.name> just left After 2hrs
    remove
    return 1



[EOF]

thing is when someone dclicks the enter stone i want it to show how long is remaining.. im confused on this part lol

[Image: htid.jpg]
(This post was last modified: 07-22-2014 12:56 PM by htid4life.)
07-22-2014 12:55 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Training Room Stones - htid4life - 07-22-2014 12:55 PM
RE: Training Room Stones - Extreme - 07-22-2014, 01:13 PM
RE: Training Room Stones - htid4life - 07-22-2014, 01:21 PM
RE: Training Room Stones - Extreme - 07-22-2014, 01:56 PM
RE: Training Room Stones - XuN - 07-22-2014, 05:25 PM
RE: Training Room Stones - Extreme - 07-23-2014, 01:47 AM
RE: Training Room Stones - htid4life - 07-22-2014, 07:38 PM
RE: Training Room Stones - htid4life - 07-23-2014, 02:57 AM
RE: Training Room Stones - Extreme - 07-23-2014, 03:34 AM
RE: Training Room Stones - htid4life - 07-23-2014, 03:54 AM
RE: Training Room Stones - XuN - 07-23-2014, 04:11 AM
RE: Training Room Stones - Extreme - 07-23-2014, 04:33 AM

Forum Jump:


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