View Single Post
  #3  
Old 06-13-2002, 12:44 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by Falcor
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.
See pickles can solve problems too.
Kinda sad that I haven't posted here for 3-5 days and thats the first thing I think to post...*dissappointed in self*
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote