View Single Post
  #4  
Old 05-14-2002, 09:14 PM
Andor_RC9 Andor_RC9 is offline
Registered User
Join Date: Feb 2002
Location: U.S.A - Ohio
Posts: 84
Andor_RC9 is on a distinguished road
Send a message via ICQ to Andor_RC9 Send a message via AIM to Andor_RC9 Send a message via Yahoo to Andor_RC9
hmmm, did you set a variable or a string?
because client.fp = 1
is a variable, and i dont often use.
but setstring client.fp,1;
i like alot better, as i love strings

heres a sample, of like how to decrease it and increase it

// EVENT:Magic Weapon : Decreaser
NPC Code:

NPC Code:

if (weaponfired) {
if (strtofloat(#s(client.fp)) >= 10) {
setstring client.fp,#v(strtofloat(#s(client.fp))-10);
//put weapons stuff here
}
elseif (!strtofloat(#s(client.fp)) >= 10) {
setplayerprop #c,You dont have enough Fire Points!;
}
}





That is one way of decreasing the value.. (untested, should work)

NPC Code:

NPC Code:

// EVENT:Magic Fire Bean : Increaser
if (playertouchsme) {
say2 Your FP has been increased!;
if (strtofloat(#s(client.fp)) < this.maxfp - 25) {
setstring client.fp,#v(strtofloat(#s(client.fp))+25);
}
}





I think that would work.

..:| EDIT - God, im too slow again when did falados beat me to it? |:..

from R0bin
__________________
*mE0w*

Statistics show that 60% of all statistics are made-up

Last edited by Andor_RC9; 05-15-2002 at 04:18 AM..
Reply With Quote