SphereCommunity
teleport by timer - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: teleport by timer (/Thread-teleport-by-timer)



teleport by timer - FireFox - 12-25-2012 03:41 AM

Trying to create script to teleport in different places with timer but it glitches so hard after second attempt.

PHP Code:
[FUNCTION iTeleport]
Timerf 10SRC.go yew
Timerf 10
SRC.go britain
Timerf 10
SRC.go minoc
Timerf 10
SRC.go cove
[EOF

How to teleport to next location after 10 sec?


RE: teleport by timer - Shaklaban - 12-25-2012 04:17 AM

PHP Code:
[FUNCTION iTeleport]
Timerf 10SRC.go yew
Timerf 20
SRC.go britain
Timerf 30
SRC.go minoc
Timerf 40
SRC.go cove 

or

PHP Code:
[defname teleportation_locs]
tp_count 4
tp_l_0 yew  
tp_l_1 britain
tp_l_2 minoc 
tp_l_3 cove

[function iTeleport]
go <def.tp_l_<dtag0.iteleport>>
if <
tag0.iteleport> < <def.tp_count>
    
tag0.iteleport += 1
    timerf 10
,iteleport
else
    
tag.iteleport=
endif 



RE: teleport by timer - Ben - 12-25-2012 04:18 AM

[FUNCTION iTeleport]
Timerf 10, SRC.go yew
Timerf 20, SRC.go britain
Timerf 30, SRC.go minoc
Timerf 40, SRC.go cove
[EOF]

I guess Shak was faster Smile


RE: teleport by timer - FireFox - 12-25-2012 07:44 AM

(12-25-2012 04:17 AM)Shaklaban Wrote:  
PHP Code:
[defname teleportation_locs]
tp_count 4
tp_l_0 yew  
tp_l_1 britain
tp_l_2 minoc 
tp_l_3 cove

[function iTeleport]
go <def.tp_l_<dtag0.iteleport>>
if <
tag0.iteleport> < <def.tp_count>
    
tag0.iteleport += 1
    timerf 10
,iteleport
else
    
tag.iteleport=
endif 

That's directly what i was looking for! But one more thing - is it possible to get coordinates for each next teleportation from another file? Where coordinates are in such form -

PHP Code:
xxxxyyyyzz
xxxx
yyyyzz
xxxx
yyyyzz
xxxx
yyyyzz
etc
... 



RE: teleport by timer - Mordaunt - 12-25-2012 07:50 AM

Certainly is, are they listed as described above though? as that would be the only real way to get them to go in order...

tp_1_0 xxxx,yyyy,zz
e.t.c..