kornusdj Posted June 12, 2010 Author Share Posted June 12, 2010 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 21If GetVar("FLAGS.ini", GetPlayerName(index), "Flag8") = 2 ThenCall StartSpeech(index, 7, 10, 15)ElseIf 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 ThenIf GetPlayerLevel(index) >= 10 thenCall 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")ElseIf GetVar("FLAGS.ini", GetPlayerName(index), "Flag8") = 1 ThenCall StartSpeech(index, 7, 8, 15)End IfEnd IfEnd IfCase 22Call PutVar("FLAGS.ini", GetPlayerName(index), "Flag8", "1")``` Link to comment Share on other sites More sharing options...
Joyce Posted June 12, 2010 Share Posted June 12, 2010 This this so called "StartSpeech" sub in your main? Doesn't seem like a standard command.. I bet you copied this from somewhere carelessly :P Link to comment Share on other sites More sharing options...
kornusdj Posted June 12, 2010 Author Share Posted June 12, 2010 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 More sharing options...
Joyce Posted June 12, 2010 Share Posted June 12, 2010 I don't think you're supposed to add If after every And? Link to comment Share on other sites More sharing options...
Kite Posted June 12, 2010 Share Posted June 12, 2010 You have 5 If's and 3 End If's :P Link to comment Share on other sites More sharing options...
Akselj Posted June 12, 2010 Share Posted June 12, 2010 @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 More sharing options...
kornusdj Posted June 12, 2010 Author Share Posted June 12, 2010 Sir Pent, but i need quest to my game, would you help me ? Link to comment Share on other sites More sharing options...
Akselj Posted June 12, 2010 Share Posted June 12, 2010 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 More sharing options...
kornusdj Posted June 12, 2010 Author Share Posted June 12, 2010 But i had many quest, and i have one quest like this, but don't working. And i must had quest like this ! Link to comment Share on other sites More sharing options...
Joyce Posted June 12, 2010 Share Posted June 12, 2010 Delete it and remake it from scratch.. But properly this time. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now