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

Help Plox


dragonlord52
 Share

Recommended Posts

Alright so I am working on a quest script but it wasn't working so I did my typical thing to test what is and isn't working and I have come across an issue. Under the Case 0 in scripted NPC I have a Call TakeItem command (yes it is in my main). I have two NPCs with this command but only one of them works. I have 2 other NPCs and two other cases with the same command and neither work. Any ideas?

Here's the main ScriptedNPC

' Executes whenever a scripted NPC does an action.
Sub ScriptedNPC(Index, Script)
Select Case Script
Case 0
Call TakeItem(Index, 1, 1)
Exit Sub

Case 1
Call TakeItem(Index, 1, 1)
Exit Sub

Case 2
Call TakeItem(Index, 1, 1)
Exit Sub

Case Else
Call PlayerMsg(Index, "No NPC script found. Please contact an admin to solve this problem.", WHITE)
Exit Sub
End Select
End Sub
Link to comment
Share on other sites

This error is client side config, no doubt about it. My suggestions;
1) Reload your server scripts
2) Restart the server
3) Make sure your case is set to 1 or 2
4) As said, make sure your NPC has HP
5) Try using a random case (say 47)

Maybe another script be conflicting this one… although I really doubt it. This script is so simple that no error should occur. And you say you've used it before so I find no reason for error.
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...