Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Quest = Main don't work ;/


kornusdj
 Share

Recommended Posts

Hi i had an a quest's in a main, and i have some problem becouse when i adding these line my main don't work.

```
Case 21
If GetVar("FLAGS.ini", GetPlayerName(index), "Flag8") = 2 Then
Call StartSpeech(index, 7, 10, 15)
Else
If GetVar("FLAGS.ini", GetPlayerName(index), "Flag8") = 1 and If GetVar("FLAGS.ini", GetPlayerName(index), "Flag1") = 2 and If GetVar("FLAGS.ini", GetPlayerName(index), "Flag2") = 2 and If GetVar("FLAGS.ini", GetPlayerName(index), "Flag3") = 2 and If GetVar("FLAGS.ini", GetPlayerName(index), "Flag4") = 2 and If GetVar("FLAGS.ini", GetPlayerName(index), "Flag5") = 2 and If GetVar("FLAGS.ini", GetPlayerName(index), "Flag6") = 2 and
If GetVar("FLAGS.ini", GetPlayerName(index), "Flag7") = 2 Then
If GetPlayerLevel(index) >= 10 then
Call StartSpeech(index, 7, 9, 15)
Call setplayerexp(index, getplayerexp(index) + 100)
Call SetPlayerClass(index, 2)
Call SetPlayerSprite(index, 7)
Call PutVar("FLAGS.ini", GetPlayerName(index), "Flag8", "2")
Else
If GetVar("FLAGS.ini", GetPlayerName(index), "Flag8") = 1 Then
Call StartSpeech(index, 7, 8, 15)
End If
End If
End If
Case 22
Call PutVar("FLAGS.ini", GetPlayerName(index), "Flag8", "1")
```
Link to comment
Share on other sites

StarSpeech is good command but i don't now or```
If GetVar("FLAGS.ini", GetPlayerName(index), "Flag8") = 1 and If GetVar("FLAGS.ini", GetPlayerName(index), "Flag1") = 2 and If GetVar("FLAGS.ini", GetPlayerName(index), "Flag2") = 2 and If GetVar("FLAGS.ini", GetPlayerName(index), "Flag3") = 2 and If GetVar("FLAGS.ini", GetPlayerName(index), "Flag4") = 2 and If GetVar("FLAGS.ini", GetPlayerName(index), "Flag5") = 2 and If GetVar("FLAGS.ini", GetPlayerName(index), "Flag6") = 2 and
If GetVar("FLAGS.ini", GetPlayerName(index), "Flag7") = 2 Then
```is good ?
Link to comment
Share on other sites

@YamYam:

> I don't think you're supposed to add If after every And?

Nope, you aren't.

Also, you cannot just hop to new line in the middle of a command, and it's ElseIf, not Else If.

You should read some tutorials and start with easier scripts than Quests.
Link to comment
Share on other sites

We always have good ol' http://www.touchofdeathforums.com/smf/index.php/topic,5309.0.html which is a easy to use quest script. There are more advanced ones which allow for more complicated quests, but you should know scripting to use them.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...