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

Very First Script (Will it work?)


samdeath
 Share

Recommended Posts

Its Basically just a simple buying script
```
Dim Item
Item = "Weapon"
If Item = "Weapon" Then
Item = Item + "Armour"
End If

Select Case Item
Case 0
If GetPlayerInvItemNum(index) = 1 Then
Item = "Buy"
Call Playermsg("You Bought a " & GetTargetInvItemNum(index), 12)
Else
Item = "Dont Buy"
Call Playermsg("You Dont have enough " & GetPlayerInvItemNum(index) "To Buy That Item ", 12)
End If

```As you can see i used Buy and Dont buy because i dont know the commands for them, but if you put in the real command would his script work? If not please correct it and tell me what it would have to be to work thanks :) Also if its not possible for this script to be used to buy something could it be substituted for anything else?
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...