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
|
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
(This post was last modified: 07-22-2014 12:56 PM by htid4life.)
|
|
07-22-2014 12:55 PM |
|
|
Extreme
Grandmaster Poster
Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20
SphereCommunity
|
|
07-22-2014 01:13 PM |
|
|
Extreme
Grandmaster Poster
Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20
SphereCommunity
|
|
07-22-2014 01:56 PM |
|
The following 1 user Likes Extreme's post:1 user Likes Extreme's post
htid4life (07-22-2014)
|
Extreme
Grandmaster Poster
Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20
SphereCommunity
|
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 |
|
The following 1 user Likes Extreme's post:1 user Likes Extreme's post
dabritmusic (09-28-2014)
|
Extreme
Grandmaster Poster
Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20
SphereCommunity
|
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 |
|
|
User(s) browsing this thread: 1 Guest(s)