
06-13-2002, 11:37 AM
|
|
Darth Cucumber
|
 |
Join Date: Mar 2001
Location: At School
Posts: 2,874
|
|
|
set it w/o the npcs server? you could use server.strings...
like set a string such as..
server.#a_attr //i use #a so it will be unique for all players.
and then give it a value like
setmp 0 //the space between setmp and 0 is used for tokenizing
then tokenize #a(server.#a_attr); in a weapon that the person that you wanna change has (such as maybe a system weapon) and then change his stuff accordingly.
he would check for a server.#a_attr string to be set for him to change his attributes and you could make the weapon he has do what you want.
tokenizing the string would give you 2 tokens
#t(0) = setmp
#t(1) = 0
you would read token 1 to see what you want to do (in this case, set mp)
so
if(strequals(#t(0),setmp)) {
yourcode;
delete the server string; //bc if you dont he gets more mp over and over
}
within your code for setting mp you could use the value of #t(1) to set his mp. |
__________________
subliminal message: 1+1=3
|
|
|
|