Paul Posted August 28, 2014 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
Emistry Posted August 28, 2014 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
Paul Posted August 28, 2014 Author 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
Question
Paul
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.