- Nov 27, 2003
- 21
- 0
- 47
Yes, before you say i did search and it came up with a load of crap. There was a few examples but no tutorial on flags i could find. Anyway i had a look in server files and built this script, my m2server wont load so i cant make my own server to test it on. SO have a look at this and tell me if it is coded right.
NOTE: i am posting a general lay-out to this quest, obviously it'll be better than collecting 1 meat :P (Yes, i know i missed out the /'s on the end of everything)
[@main]
#IF
check [501] 1
#ACT
break
#SAY
You have done what i asked
<Yes i have/@exit>
#IF
check [500] 0
#ACT
goto @main-1
#IF
check [500] 1
#ACT
goto @main-2
[@main-1]
Start Quest?
<Yes/@start>
<No/@exit>
[@start]
#IF
checklevel 1
#SAY
Collect these items for me and bring them to me
1 Meat
<Sure thing/@ok>
<No i won't/@exit>
[@ok]
#IF
check [500] 0
#ACT
set [500] 1
#SAY
ThankYou
<Exit/@exit>
[@main-2]
#IF
checkitem meat 1
check [501] 0 (<< dont think i need that bit)
#ACT
take meat 1
givegold 100
set [501] 1
#SAY
Thankyou for doing quest
<No problem/@exit>
#ELSESAY
You dont have what i asked for
<sorry/@exit>
Someone should do a proper tutorial on flags not some half assed look at someone elses Quest and server files. If that above is right though, i can say it aint that hard... we'll have to see, need a pro NPC scripter :P
NOTE: i am posting a general lay-out to this quest, obviously it'll be better than collecting 1 meat :P (Yes, i know i missed out the /'s on the end of everything)
[@main]
#IF
check [501] 1
#ACT
break
#SAY
You have done what i asked
<Yes i have/@exit>
#IF
check [500] 0
#ACT
goto @main-1
#IF
check [500] 1
#ACT
goto @main-2
[@main-1]
Start Quest?
<Yes/@start>
<No/@exit>
[@start]
#IF
checklevel 1
#SAY
Collect these items for me and bring them to me
1 Meat
<Sure thing/@ok>
<No i won't/@exit>
[@ok]
#IF
check [500] 0
#ACT
set [500] 1
#SAY
ThankYou
<Exit/@exit>
[@main-2]
#IF
checkitem meat 1
check [501] 0 (<< dont think i need that bit)
#ACT
take meat 1
givegold 100
set [501] 1
#SAY
Thankyou for doing quest
<No problem/@exit>
#ELSESAY
You dont have what i asked for
<sorry/@exit>
Someone should do a proper tutorial on flags not some half assed look at someone elses Quest and server files. If that above is right though, i can say it aint that hard... we'll have to see, need a pro NPC scripter :P
Last edited: