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

Can someone help me make a basic script


cody4camp
 Share

Recommended Posts

i just need to know what sparks the action of a scripted npc? ctrl key doesnt do it.

```
' Executes whenever a scripted NPC does an action.
Sub ScriptedNPC(Index, Script)
Select Case Script
Case 0
Call PlayerMsg(Index, "Welcome to my store!.", WHITE)
Call GoShopping(Index, 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

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