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
Extreme
Grandmaster Poster
***

Posts: 1,140
Likes Given: 217
Likes Received: 89 in 76 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #2
RE: Training Room Stones
Show for who? Who dclick the stone?
src.sysmessage @55 <TIMER> mins Remaining! // <<--- remaining Time here

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
07-22-2014 01:13 PM
Find all posts by this user Like Post Quote this message in a reply
htid4life
Journeyman
*

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



Post: #3
RE: Training Room Stones
yea tryed that but theres no timer on the stone its on the player whos already training.

[Image: htid.jpg]
07-22-2014 01:21 PM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,140
Likes Given: 217
Likes Received: 89 in 76 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #4
RE: Training Room Stones
Then save the uid of player on stone and check the memory timer.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
07-22-2014 01:56 PM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Extreme's post
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #5
RE: Training Room Stones
Code:
on=@dclick
if <tag0.inuse>
src.sysMessage @55 Training Room In Use!
src.sysmessage @55 <eval <uid.<tag.inuse>.findid.i_teleport_training.timer>/60> mins Remaining! // <<--- remaining Time here
return 1
endif
src.go=<tag0.traingo>
tag0.inuse=<src>  // Change 1 to the UID of the player entering.
serv.newitem=i_teleport_training
new.link=<uid>
new.equip
new.timer=60
src.events=+e_training_room
return 1
(This post was last modified: 07-22-2014 05:25 PM by XuN.)
07-22-2014 05:25 PM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes XuN's post
htid4life
Journeyman
*

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



Post: #6
RE: Training Room Stones
nice thanks guys!

works really good

[Image: htid.jpg]
07-22-2014 07:38 PM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,140
Likes Given: 217
Likes Received: 89 in 76 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #7
RE: Training Room Stones
(07-22-2014 05:25 PM)XuN Wrote:  
Code:
on=@dclick
if <tag0.inuse>
src.sysMessage @55 Training Room In Use!
src.sysmessage @55 <eval <uid.<tag.inuse>.findid.i_teleport_training.timer>/60> mins Remaining! // <<--- remaining Time here
return 1
endif
src.go=<tag0.traingo>
tag0.inuse=<src>  // Change 1 to the UID of the player entering.
serv.newitem=i_teleport_training
new.link=<uid>
new.equip
new.timer=60
src.events=+e_training_room
return 1

All replies with 'done' things will force him to always come ask for the finished script.
I always give the tips, its the necessary to do himself.
If he don't understand the tip, he can ask again then I explain better.

I'm not complaining, just trying to make they learn.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
07-23-2014 01:47 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Extreme's post
htid4life
Journeyman
*

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



Post: #8
RE: Training Room Stones
And this is the help section but its always great to learn from what is completed for you... im grateful for all the help i can get.. as you can see i fully created the script above with help from you guys on parts i couldnt do i tryed to link and stuff i wouldnt of asked if i wasnt in need of help...

Any way thanks guys i will try complete stuff my self..

thanks again XUN & Extreme

[Image: htid.jpg]
(This post was last modified: 07-23-2014 03:01 AM by htid4life.)
07-23-2014 02:57 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,140
Likes Given: 217
Likes Received: 89 in 76 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #9
RE: Training Room Stones
(07-23-2014 02:57 AM)htid4life Wrote:  And this is the help section but its always great to learn from what is completed for you... im grateful for all the help i can get.. as you can see i fully created the script above with help from you guys on parts i couldnt do i tryed to link and stuff i wouldnt of asked if i wasnt in need of help...

Any way thanks guys i will try complete stuff my self..

thanks again XUN & Extreme

Hey buddy, don't worry about ask anything.
I know you tried to fix yourself but for the good learning we should ask like this: "how do I get the timer from player who used the stone?".

As you see I gave you the tip "Then save the uid of player on stone and check the memory timer."
Of course XuN answered before you 'try' but I don't blame it.

One question: did you understand my tip? It shouldn't be hard for you because you know sphere language, but the idea can be confused.

I'm so so sorry if my last post seemed rude.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
07-23-2014 03:34 AM
Find all posts by this user Like Post Quote this message in a reply
htid4life
Journeyman
*

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



Post: #10
RE: Training Room Stones
Its all good.Smile

i did understand thank you and nothing rude have been said .

thanks again.

[Image: htid.jpg]
07-23-2014 03:54 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)