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

Npc doesnt do anything.


teh jimpie
 Share

Recommended Posts

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

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...