adamsharp Posted August 11, 2009 Author Share Posted August 11, 2009 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) ThenIf CanTake(Index, 11, 1) = False ThenCall PlayerMsg(Index, "You Still Dont Have The Water.", RED)ElseCall 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 More sharing options...
Valon328 Posted August 11, 2009 Share Posted August 11, 2009 I don't think GiveItem or GiveCurrency is a command but I'm not sure, I'm not a goodscripter myself Link to comment Share on other sites More sharing options...
adamsharp Posted August 11, 2009 Author Share Posted August 11, 2009 it is ive got a script at the bottom of my main.txt that makes it one Link to comment Share on other sites More sharing options...
Valon328 Posted August 11, 2009 Share Posted August 11, 2009 @adamsharp:> it is ive got a script at the bottom of my main.txt that makes it oneOh ok, you're a better scripter than me lol xD Link to comment Share on other sites More sharing options...
Owen F Posted August 11, 2009 Share Posted August 11, 2009 @Valon:> I don't think GiveItem or GiveCurrency is a command but I'm not sure, I'm not a goodscripter myselfThanks 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?alsoDo 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 More sharing options...
Bobosk Posted August 11, 2009 Share Posted August 11, 2009 ```Case 2If CanTake(Index, 10, 1) = False ThenCall PlayerMsg(Index, "Heres a knife now go get me some water from the mature cactus(Straight) please.", GREEN)Call GiveItem(Index, 10, 0)Exit SubEnd IfIf CanTake(Index, 11, 1) = False ThenCall PlayerMsg(Index, "You Still Dont Have The Water.", RED)ElseCall 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 SubEnd 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 More sharing options...
xelander Posted August 11, 2009 Share Posted August 11, 2009 CanTake gives automaticly = True and flase if it is true or false, no need = true/false. Link to comment Share on other sites More sharing options...
Bobosk Posted August 11, 2009 Share Posted August 11, 2009 if you don't specify what it needs to be it will run no matter what Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now