teh jimpie Posted December 15, 2009 Author Share Posted December 15, 2009 I made a Scripted-quest NPC but it doesnt do anything.``` Case 5 'Tutor Island / fish & wc / QUEST 6 If Getvar("Scripts\charextras\" & GetPlayerName(Index) & ".ini", "QUESTS", "Quest6") = 0 Then Call PutVar("Scripts\Charextras\" & GetPlayerName(Index) & ".ini", "QUESTS", "QUEST6", 1) Call CustomMenuShow(Index, Map, "GUI\Custom\fishwctutor.bmp", 1) Call PlayerMsg(Index, "Fish & Wc tutor: Goodluck.", WHITE) ElseIf GetVar("Scripts\charextras\" & GetPlayerName(Index) & ".ini", "QUESTS", "Quest6") = 1 Then If CanTake(Index, 156, 1) Then If CanTake(Index, 159, 1) Then Call TakeItem(Index, 156, 1) Call TakeItem(Index, 159, 1) Call PlayerMsg(Index, "Fish & Wc tutor: Thanks for helping!", WHITE) Call PutVar("Scripts\charextras\" & GetPlayerName(Index) & ".ini", "QUESTS", "Quest6", 2) Else Call PlayerMsg(Index, "Fish & wc tutor: You don't have the items I askef for yet, I'll show you again what I want.", RED) Call CustomMenuShow(Index, Map, "GUI\Custom\fishwctutor.bmp", 1) End If ElseIf GetVar("Scripts\charextras\" & GetPlayerName(Index) & ".ini", "QUESTS", "Quest6") = 2 Then Call PlayerMsg(Index, "Fish & Wc tutor: You already have helped me, go to your next tutor.", RED) End If End If Exit Sub```Yes, my other scripted NPC work. Yes I have in data.ini script=1\. Yes, I don't know why it's not working. maybe you do? :azn: 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