Paul Posted August 28, 2014 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 43 Reputation: 2 Joined: 08/27/13 Last Seen: April 11 Share Posted August 28, 2014 could anyone help with this code? Im just a newbie here. and i want to learn more... what i want is, to make a NPC that will full The player stats to 255, When He clicked this NPC. and i want an excepmtion so that if player stats is already at max, it will not trigger again. and it prevented overstats. minstats = 1 maxstats = 255 if player currentstats < 255 { it will max to 255 } else { do nothing } Hope you can help me. Thanks in Advance. Quote Link to comment Share on other sites More sharing options...
Emistry Posted August 28, 2014 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted August 28, 2014 something like this ? prontera,155,181,5 script Sample#maxstat 757,{ for( .@i = bStr; .@i <= bLuk; .@i++ ){ .@stat = readparam( .@i ); if( .@stats < 255 ) statusup2 .@i,( 255 - .@stat ); } end; } Quote Link to comment Share on other sites More sharing options...
Paul Posted August 28, 2014 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 43 Reputation: 2 Joined: 08/27/13 Last Seen: April 11 Author Share Posted August 28, 2014 (edited) I tried and i works., Your are Great!! You Solved My Problem, LOL, THANK YOU SO MUCH!!! Probably I spent 2 days searching for this, I think i must learn some coding stuff.. By the way.. Have a nice day... thank you again... Edited August 28, 2014 by krispaul27 Quote Link to comment Share on other sites More sharing options...
Question
Paul
Link to comment
Share on other sites
2 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.