healthydude Posted March 7, 2013 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 64 Reputation: 3 Joined: 02/05/13 Last Seen: Thursday at 01:07 PM Share 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 Link to comment Share on other sites More sharing options...
Emistry Posted March 8, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share 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 Link to comment Share on other sites More sharing options...
Emistry Posted March 7, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted March 7, 2013 - script Sample -1,{ OnWhisperGlobal: if( @whispervar0$ == "donkey" ){ getitem 512,1; } end; } Quote Link to comment Share on other sites More sharing options...
healthydude Posted March 8, 2013 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 64 Reputation: 3 Joined: 02/05/13 Last Seen: Thursday at 01:07 PM Author Share 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 Link to comment Share on other sites More sharing options...
healthydude Posted March 9, 2013 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 64 Reputation: 3 Joined: 02/05/13 Last Seen: Thursday at 01:07 PM Author Share 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 Link to comment Share on other sites More sharing options...
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
Link to comment
Share on other sites
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.