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

Help me with my miniquest plz.


adamsharp
 Share

Recommended Posts

hi i have this in my scripted npc section please debug it for me.
```
Case 2

Call PlayerMsg(Index, "Heres a knife now go get me some water from the mature cactus(Straight)please.", GREEN)
Call GiveItem(Index, 10, 1)
ElseIf CanTake(Index, 10, 1) Then
If CanTake(Index, 11, 1) = False Then
Call PlayerMsg(Index, "You Still Dont Have The Water.", RED)
Else
Call TakeItem(Index, 11, 1)
Call PlayerMsg(Index, "Thank You Here Have 3 Gold.", GREEN)
Call PlayerMsg(Index, "GoodBye.", Blue)
Call GiveCurrency(Index, 1, 3)
Call PlayerWarp(Index,153,10,10)
Exit Sub

```Thanks Adamsharp
Link to comment
Share on other sites

@Valon:

> I don't think GiveItem or GiveCurrency is a command but I'm not sure, I'm not a goodscripter  myself

Thanks to our good friend Godlord, they are NOW!
Anyway btw Adam you seem to have alot of problems with scripts.
Are you 100% sure they are ON?
also
Do tell, does this script give any messages at all for one.
2, are you using it correctly.
3, what is it DESIGNED to do ultimately.
Link to comment
Share on other sites

```
Case 2
If CanTake(Index, 10, 1) = False Then
Call PlayerMsg(Index, "Heres a knife now go get me some water from the mature cactus(Straight) please.", GREEN)
Call GiveItem(Index, 10, 0)
Exit Sub
End If
If CanTake(Index, 11, 1) = False Then
Call PlayerMsg(Index, "You Still Dont Have The Water.", RED)
Else
Call TakeItem(Index, 11, 1)
Call PlayerMsg(Index, "Thank You Here Have 3 Gold.", GREEN)
Call PlayerMsg(Index, "GoodBye.", Blue)
Call GiveCurrency(Index, 1, 3)
Call PlayerWarp(Index, 153, 10, 10)
Exit Sub
End If

```that should work, i forget if it returns it as a string or not(CanTake), and i'm a little dizzy atm but meh… lol

@Owen:

> Thanks to our good friend Godlord, they are NOW!
> Anyway btw Adam you seem to have alot of problems with scripts.
> Are you 100% sure they are ON?
> also
> Do tell, does this script give any messages at all for one.
> 2, are you using it correctly.
> 3, what is it DESIGNED to do ultimately.

it's pretty obvious from looking at it, that it doens't give any messages, because of the syntax errors, and again, pretty obvious what it's designed to do
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...