healthydude Posted March 7, 2013 Posted March 7, 2013 Hey guys, I'm looking for a simple password activated NPC. For example, my password is "donkey" and when someone enters the password donkey in the NPC, they will be given an Apple.Is that possible?healthydude Quote
Emistry Posted March 8, 2013 Posted March 8, 2013 input @code$; if(@code$ != "1234") { change the variable type to STRING ....since you are comparing with a STRING and not NUMERIC characters. or... input @code; if( @code != 1234 ) { Quote
Emistry Posted March 7, 2013 Posted March 7, 2013 - script Sample -1,{ OnWhisperGlobal: if( @whispervar0$ == "donkey" ){ getitem 512,1; } end; } Quote
healthydude Posted March 8, 2013 Author Posted March 8, 2013 - script Sample -1,{ OnWhisperGlobal: if( @whispervar0$ == "donkey" ){ getitem 512,1; } end; } A script something like this bro: mes "enter your password"; set @code_,0; input @code_; if(@code_ != "1234") { mes "this is wrong";} mes "password is correct"; mes "joke, its wrong"; close; end;but that doesn't work T_T Quote
healthydude Posted March 9, 2013 Author Posted March 9, 2013 Thank you VM, but is there a possible way to allow a player to change his @code$ by just doing some simple NPC instance? Quote
Question
healthydude
Hey guys, I'm looking for a simple password activated NPC. For example, my password is "donkey" and when someone enters the password donkey in the NPC, they will be given an Apple.
Is that possible?
healthydude
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.