Ermmmm ...

Join Discord

stonecold316

Dedicated Member
Dedicated Member
Nov 2, 2009
657
55
115
hi there im trying to make a lastmanstanding script here is the script :

[@main]
#IF
CHECKHUM fs1 = 1
#act
goto @champ
#elseact
goto @reject

[@reject]
#say
You are not alone in this\
Room, Kill everybody before you can access me.\ \ \ \
<ok/@exit>\

[@champ]
#IF
HOUR 18 19
Min 30 59
#say
Congratulations <$USERNAME>\
You have fought well and deserve the prize you\
Will now recieve.\ \
<Collect your prize/@Prize>\
#elsesay
I don`t start work until 6:30pm, Or\
It`s after 7pm, and i dont work after this hour.\ \ \ \
<ok/@exit>\

[@prize]
#IF
CHECKHUM f003 2
#act
GIVE ENTOURAGESTONE 1
Mapmove f003 43 38
#ELSEACT
GOTO @NOPE

[@NOPE]
Somebody is on this map.\ \
<Close/@exit>\

but when theres 2 people in the map it gives them both the prize how do i do it so only 1 person gets the prize , and also how do i do it so it only checks that there is 1 on the map ? and i need to make sure that whoever goes into the map cant just click npc and collect a prize for being in there
ty in advance :)
stonecold
 
Last edited:

boothy

LOMCN Veteran
Veteran
Mar 23, 2007
458
12
65
[@main]
#IF
CHECKMAPHUMANCOUNT fs1 = 1
#act
goto @champ
#elseact
goto @reject

[@reject]
#say
You are not alone in this\
Room, Kill everybody before you can access me.\ \ \ \
<ok/@exit>\

[@champ]
#IF
HOUR 18
Min 30 59
#say
Congratulations <$USERNAME>\
You have fought well and deserve the prize you\
Will now recieve.\ \
<Collect your prize/@Prize>\
#elsesay
I don`t start work until 6:30pm, Or\
It`s after 7pm, and i dont work after this hour.\ \ \ \
<ok/@exit>\

[@prize]
#act
GIVE ENTOURAGESTONE 1
Mapmove f003 43 38
 
Upvote 0

stonecold316

Dedicated Member
Dedicated Member
Nov 2, 2009
657
55
115
right i just tried it and im only 1 on map and message comes up saying
somebody is on the map and wont give me prize :( but i checked map and im only one in it lol
 
Upvote 0

boothy

LOMCN Veteran
Veteran
Mar 23, 2007
458
12
65
Weird, I just tested it using your script (Changed map name) and it worked fine =/.
 
Upvote 0

boothy

LOMCN Veteran
Veteran
Mar 23, 2007
458
12
65
or you could just change the time to:

HOUR 20
Min 30 59

and test it after 8:30 :P
 
Upvote 0