Jump to content
  • 0

R>Stats MAXFULLER


Paul

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  29
  • Reputation:   0
  • Joined:  08/27/13
  • Last Seen:  

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. /ok

Thanks in Advance.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

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;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  29
  • Reputation:   0
  • Joined:  08/27/13
  • Last Seen:  

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 by krispaul27
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...