Van Glan Bloom
Journeyman
Posts: 104
Likes Given: 2
Likes Received: 3 in 3 posts
Joined: Jun 2013
Reputation: 0
|
RE: Timer
You can make something like this :
Code:
[FUNCTION Home]
IF <src.restest 1 home_timer>
SRC.SYSMESSAGE @09c1 You need wait a X minutes.
RETURN 1
elseif (<SRC.FLAGS> & statf_dead)
src.sysmessage @09c1 You will be teleporter in 45 secounds ...
elseif !<src.restest 1 home_memory>
src.newitem home_memory
src.act.equip
elseif !<src.restest 1 home_timer>
src.newitem home_timer
src.act.equip
endif
[ITEMDEF home_memory]
ID=i_memory
TYPE=t_eq_script
NAME=home Memory
on=@create
attr=04
ON=@equip
timer=1
on=@timer
cont.go 6116,1234,1 // define your area
cont.flags=<cont.tag.flags>
cont.tag.flags=
remove
return 1
[ITEMDEF home_timer]
ID=i_memory
TYPE=t_eq_script
NAME=home Timer
on=@create
attr=04
TIMER=84600
ON=@equip
timer=1
on=@timer
IF (<MORE>>0)
more=<more>-1
TIMER=1
ELSE
REMOVE
ENDIF
RETURN 1
|
|
05-06-2015 07:10 AM |
|
The following 1 user Likes Van Glan Bloom's post:1 user Likes Van Glan Bloom's post
mrkarlo (05-07-2015)
|