lucifer1101 Posted September 6, 2008 Author Share Posted September 6, 2008 can someone please help me debug my quest script.```Sub quest1(index)If GetVar("Scripts\charextras\" & GetPlayerName(index) & ".ini", "Quests", "Quest1") = 1 ThenCall PlayerMsg(index, "Teacher: What are you still doing here, go run!", 4)End IfEnd SubElseCall PlayerMsg(index, "Teacher: " & GetPlayerName(index) & " Get out of here now!", 4)Call PlayerMsg(index, "Teacher: There are Antell Sentries searching the town for young people around your age, you must run!", 4)Call PlayerMsg(index, "Teacher: Take these items and go to the teleport orb and touch it.", 4)Call PlayerMsg(index, "Teacher: Go run!", 4)Call giveitem(index, 2, 50)Call giveitem(index, 3, 50)Call givecurrency(index, 1, 20)Call PutVar("Scripts\charextras\" & GetPlayerName(index) & ".ini", "Quests", "Quest1", 1)Exit Sub```I had it working before i put the getvar stuff in, i just dont know how to properly close the script. Link to comment Share on other sites More sharing options...
Bobosk Posted September 6, 2008 Share Posted September 6, 2008 ```Sub quest1(index)If GetVar("Scripts\charextras\" & GetPlayerName(index) & ".ini", "Quests", "Quest1") = 1 ThenCall PlayerMsg(index, "Teacher: What are you still doing here, go run!", 4)Exit SubElseCall PlayerMsg(index, "Teacher: " & GetPlayerName(index) & " Get out of here now!", 4)Call PlayerMsg(index, "Teacher: There are Antell Sentries searching the town for young people around your age, you must run!", 4)Call PlayerMsg(index, "Teacher: Take these items and go to the teleport orb and touch it.", 4)Call PlayerMsg(index, "Teacher: Go run!", 4)Call giveitem(index, 2, 50)Call giveitem(index, 3, 50)Call givecurrency(index, 1, 20)Call PutVar("Scripts\charextras\" & GetPlayerName(index) & ".ini", "Quests", "Quest1", 1)End IfEnd Sub```If, Then, Else, End If Link to comment Share on other sites More sharing options...
lucifer1101 Posted September 7, 2008 Author Share Posted September 7, 2008 ok it works for me but i just got my brother to connect but the quest wont work for him it does absolutely nothing Link to comment Share on other sites More sharing options...
Bobosk Posted September 7, 2008 Share Posted September 7, 2008 Are you sure he's activating it correctly..? Link to comment Share on other sites More sharing options...
DrNova Posted September 7, 2008 Share Posted September 7, 2008 Does he have the .ini?You'll need to make a putvar command in the ccreate new char sub(whatever its called) to add the .ini for new players Link to comment Share on other sites More sharing options...
Zananok Posted September 7, 2008 Share Posted September 7, 2008 Check if you have the folder 'Charextras'.. maybe you deleted it (and the .INI of course).Note: to run the script, you will NEED to have the values on your .ini so easier way to do it if you have deleted it:add this on sub join:```If GetVar("Scripts\charextras\" & GetPlayerName(index) & ".ini", "Quests", "Quest1") <> 1 thenCall PutVar("Scripts\charextras\" & GetPlayerName(index) & ".ini", "Quests", "Quest1", 0)End If```Hope this helps,From: Zananok Link to comment Share on other sites More sharing options...
lucifer1101 Posted September 7, 2008 Author Share Posted September 7, 2008 ok thanks ill try that.Lol it works silly me 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