Last man standing

Paul

Dedicated Member
Dedicated Member
Jul 31, 2008
26
0
47
im trying to make the last man standing event but im unsure where to start if someone could give me a few pointers, so i can work it out :)

thanks very much :D
 

Elise

Dedicated Member
Dedicated Member
Jun 1, 2008
132
4
65
North East
[@Main]
#IF
CHECKLEVEL 40
#ELSESAY
Sorry, you need to be level 40 to enter this event.\ \ \ \
<Ok/@exit>\
#SAY
Welcome <$USERNAME>, I am here as a <LMS Event>\
My events will take place on Mondays and Fridays at <6PM>\
You can enter the room upto one hour before the event starts,\
But once the clock has ticked past 6, you cannot enter.\
The event will last until there is only one standing.\ \
<I Would like to know more/@Info>\
<I Would like to enter the event/@Enter>\
<I`ll come back later/@Exit>

[@Enter]
#IF
Dayofweek MON
#ACT
goto @LMSS
#IF
Dayofweek FRI
#ACT
goto @LMSS
#ELSEACT
Goto @NOLMS
BREAK

[@LMSS]
#IF
Checkslavecount = 0
Hour 17 18
#ACT
mapmove ?????
#SAY
Good Luck !!! \ \ \ \
<Thanks/@exit>
#ELSESAY
Sorry, This event is only available before 6pm.\
You need to enter between 5pm and 6pm.\
If it`s between these hours double check you don`t\
Have a pet.\ \ \
<Ok/@exit>

[@NOLMS]
This event only opens on Mondays and Fridays between 5-6pm.\ \ \ \
<Ok/@exit>


Just a little idea for ya :P
 
Upvote 0

2dope

Golden Oldie
Golden Oldie
Mar 15, 2005
514
13
125
@Elise so would that mean you would have to be on to give the winner an item? Or can you have an NPC check that you are the last man standing after x amount of time ? Like say after 15 mins so at 6:15 if its clicked it would see if you were the last one on the map and if you were give you a token or w/e? Can you also set it up that if a hour has past and people are still alive some uber hard mobs spawn? I keep getting the coding wrong and messing it up.

Thanks
/2dope
 
Upvote 0

ρяєα¢нєя

Unstookie Titled
VIP
Aug 19, 2008
444
23
105
I got an example of a LMS NPC that i created, think there are one or two bugs with the prize giving (went with quite a complicated idea). But should give you an idea of what can be done.


Teleport / Time management NPC:
Code:
[@main]
#IF
#ACT
Var Integer Human FFA 0
LoadVar Human FFA Integral.txt
#SAY
My name is Max, and i own the Battle Arena. Many events take \
place here, please select the event you would like to take part in: \ \
<FFA Tournement/@FFA> \ \
<Exit/@exit>

[@FFA]
Free for All torunements take place every Tuesday and Thursday at 8pm (GMT). The \
rules are simple, last man standing wins. The more FFA battles you win the better \
prizes you recive. Would you like to enter? \ \ 
<Enter tournement/@FFA1> || <Back/@main>

[@FFA1]
#IF
DAYOFWEEK TUE
#ACT
GOTO @FFA1_1
#ELSEACT
GOTO @FFATHUR

[@FFA1_1]
#IF
;HOUR 19 20
HOUR 14 15
#ACT
GOTO @FFA1_2
#ELSEACT
GOTO @FFATHUR

[@FFA1_2]
MIN 50 59
#ACT
GOTO @FFA2
#ELSEACT
GOTO @FFATHUR

[@FFATHUR]
#IF
DAYOFWEEK THU
#ACT
GOTO @FFA2_1
#ELSESAY
Free For All matches take place on Tuesday and Thursdays at 8pm (GMT). To sign \
up to the Free For All match visit me from 10mins before the contest begins. \ \
<Exit/@exit>

[@FFA2]
#IF
HOUR 19 20
#ACT
GOTO @FFA2_2
#ELSESAY
Free For All matches take place on Tuesday and Thursdays at 8pm (GMT). To sign \
up to the Free For All match visit me from 10mins before the contest begins. \ \
<Exit/@exit>

[@FFA2_2]
#IF
MIN 50 59
#ACT
GOTO @FFA2
#ELSESAY
Free For All matches take place on Tuesday and Thursdays at 8pm (GMT). To sign \
up to the Free For All match visit me from 10mins before the contest begins. \ \
<Exit/@exit>

[@FFA2]
#SAY
Welocme <$USERNAME>, you have decided to enter todays Free For All tournement. \
When you decied you are ready to enter the area you will be moved to a holding \
area where you will have to wait for up to 10mins for other players to join the \
match. You will then all be teleported into the contest room at roughly the same \
time and can begin the contest. Please make sure you are ready to enter the arena \
as once you are moved to the holding area there will be no way out until the end \
of the match. Are you ready? \ \
<Yes/@FFAmove> || <Not yet/@exit>


[@FFAmove]
;10min
#IF
MIN 50 51
#ACT
ADDBATCH FFA1
BATCHMOVE
BATCHDELAY 540
ADDBATCH FFA2
BATCHMOVE
BREAK
;9min
#IF
MIN 51 52
#ACT
ADDBATCH FFA1
BATCHMOVE
BATCHDELAY 480
ADDBATCH FFA2
BATCHMOVE
BREAK
;8min
#IF
MIN 52 53
#ACT
ADDBATCH FFA1
BATCHMOVE
BATCHDELAY 420
ADDBATCH FFA2
BATCHMOVE
BREAK
;7min
#IF
MIN 53 54
#ACT
ADDBATCH FFA1
BATCHMOVE
BATCHDELAY 360
ADDBATCH FFA2
BATCHMOVE
BREAK
;6min
#IF
MIN 54 55
#ACT
ADDBATCH FFA1
BATCHMOVE
BATCHDELAY 300
ADDBATCH FFA2
BATCHMOVE
BREAK
;5min
#IF
MIN 55 56
#ACT
ADDBATCH FFA1
BATCHMOVE
BATCHDELAY 240
ADDBATCH FFA2
BATCHMOVE
BREAK
;4min
#IF
MIN 56 57
#ACT
ADDBATCH FFA1
BATCHMOVE
BATCHDELAY 180
ADDBATCH FFA2
BATCHMOVE
BREAK
;3min
#IF
MIN 57 58
#ACT
ADDBATCH FFA1
BATCHMOVE
BATCHDELAY 120
ADDBATCH FFA2
BATCHMOVE
BREAK
;2min
#IF
MIN 58 59
#ACT
ADDBATCH FFA1
BATCHMOVE
BATCHDELAY 60
ADDBATCH FFA2
BATCHMOVE
BREAK
#ELSESAY
Sorry i'm afraid you have missed the entry time for todays Free For All contest \
please try again next time. \ \
<Exit/@exit>
 
Upvote 0

ρяєα¢нєя

Unstookie Titled
VIP
Aug 19, 2008
444
23
105
Prize giving NPC:
Code:
[@main]
#IF
HOUR 20 21
MIN 1 3
#SAY
You need to wait around 3mins before you can access this NPC. \ \
<Exit/@exit>
#ELSEACT
GOTO @check


[@check]
#IF
CHECKMAPHUMANCOUNT FFA2 = 1
#ACT
GOTO @prize
#ELSESAY
You need to aliminate all the other contestants before you can \
access this NPC. \ \
<Exit/@exit>

[@prize]
#IF
CHECKJOB warrior
#ACT
GOTO @warprize
BREAK
#IF
CHECKJOB wizard
#ACT
GOTO @wizprize
BREAK
#IF
CHECKJOB taoist
#ACT
GOTO @taoprize
BREAK
#ELSESAY
Contact a GM! 1\ \
<Exit/@exit>


[@warprize]
#IF
CheckVar Human FFA < 3
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE GoldBar 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA > 2
CheckVar Human FFA < 6
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE GoldBarBundle 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA > 5
CheckVar Humna FFA < 8
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE GoldBar 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA = 8
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE ProtectionGem 1
GIVE GoldBar 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA = 9
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE EvilSlayerGem 1
GIVE GoldBar 2
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA = 10
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE BraveryGem 1
GIVE GoldBar 2
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA = 11
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE BraveryGem 1
GIVE GoldBar 4
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA = 12
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE BraveryGem 1
GIVE GoldBarBundle 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA = 13
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE BraveryGem 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA = 14
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE BraveryGem 1
GIVE ProtectionGem 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA = 15
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE BraveryGem 1
GIVE EvilSlayerGem 1
GIVE GoldBar 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA = 16
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE BrawlerBoots 1
GIVE GoldBar 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA = 17
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE BraveryGem 1
GIVE EvilSlayerGem 1
GIVE GoldBar 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA = 18
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE BrawlerBelt 1
GIVE GoldBar 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA = 19
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE BraveryGem 1
GIVE EvilSlayerGem 1
GIVE ProtectionGem 1
GIVE GoldBar 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA = 20
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE BrozeCombatMedal 1
GIVE GoldBar 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA = 21
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE BraveryGem 1
GIVE EvilSlayerGem 1
GIVE ProtectionGem 1
GIVE GoldBar 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA = 22
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE BarbarianRing 1
GIVE GoldBar 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA = 23
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE BraveryGem 1
GIVE EvilSlayerGem 1
GIVE ProtectionGem 1
GIVE GoldBarBundle 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK

#IF
CheckVar Human FFA = 24
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE SilverCombatMedal 1
GIVE GoldBar 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA = 25
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE BarbarianGlove 1
GIVE GoldBar 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA = 26
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE StormGem 1
GIVE ProtectionGem 1
GIVE GoldBar 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA = 27
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE BarbarianChain 1
GIVE GoldBar 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA = 28
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE StormGem 1
GIVE EvilSlayerGem 1
GIVE GoldBar 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA = 29
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE BarbarianHelmet
GIVE GoldBar 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA = 30
GENDER man
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE BarbarianArmour(M)
GIVE GoldBar 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA = 31
GENDER woman
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE BarbarianArmour(F)
GIVE GoldBar 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA = 32
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE StormGem 1
GIVE BraveryGem 1
GIVE GoldBar 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA = 33
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE BarbarianBlade 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA = 34
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE GoldCombatMedal 1
GIVE GoldBar 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA > 34
CheckVar Human FFA < 40
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE ProtectionOrb 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA > 39
CheckVar Human FFA < 50
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE EvilSlayerOrb 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#IF
CheckVar Human FFA > 49
#ACT
CHANGEEXP + 1000000
BONUSPOINT + 2
GIVE BraveryOrb 1
CalcVar Human FFA + 1
SaveVar Human FFA Integral.txt
MAPMOVE LGS1 9 12
BREAK
#ELSESAY
Contact a GM! \ \
<Exit/@exit>

;============================================================

As i say there are defo a few problems that need ironing out with that, but the hard bit works. Also there might be a few commands out of place as i was using a custom set of files, but i think it's right for the most part.
 
Last edited:
Upvote 0

2dope

Golden Oldie
Golden Oldie
Mar 15, 2005
514
13
125
Bloody hell, preacher you only started posting today and you are just being helpful nice one mate
/2dope
 
Upvote 0