Kimimaru Posted August 21, 2009 Author Share Posted August 21, 2009 EDIT: I've figured it out. I had to edit the **GetPlayerMaxHP** function in the **Server** source. Link to comment Share on other sites More sharing options...
shadowwulf Posted August 21, 2009 Share Posted August 21, 2009 I beleive its a source edit. Link to comment Share on other sites More sharing options...
Kimimaru Posted August 21, 2009 Author Share Posted August 21, 2009 EDIT: I've sent a packet to the client using sadscript. This is what I did:```Call SendDataTo(Index, "PLAYERHP" & Chr(0) & GetPlayerMaxHP(Index) + 5 & Chr(0) & GetPlayerMaxHP(Index) & Chr(237))```It actually works for a little bit. If I look at the player's max hp, it moves to another number, but then it moves back to what it was before immediately. I've looked at the packet the client receives, and I don't see anything preventing it from changing the value. Any help, please? Link to comment Share on other sites More sharing options...
shadowwulf Posted August 22, 2009 Share Posted August 22, 2009 most likely you are making the current hiher than the max. then when you update the stat it resets to correct max.I am pretty sure its a source edit. Link to comment Share on other sites More sharing options...
Owen F Posted August 22, 2009 Share Posted August 22, 2009 might i also ask why there's an index parameter in senddatato? last time i checked, there was none. Link to comment Share on other sites More sharing options...
Kimimaru Posted August 22, 2009 Author Share Posted August 22, 2009 @~SW~:> most likely you are making the current hiher than the max. then when you update the stat it resets to correct max.> > I am pretty sure its a source edit.I also believe that it may be a source edit, but I've looked and couldn't find anything preventing my command from working.@Owen:> might i also ask why there's an index parameter in senddatato? last time i checked, there was none.You'd only use the **SendDataTo** command when you're sending a packet from the **Server** to the **Client**. The **SendDataTo** command has an Index parameter. You're probably thinking of the **SendData** command, the command you'd use when you send a packet from the **Client** to the **Server**. That command has no Index parameter.Thanks for the replies! Link to comment Share on other sites More sharing options...
Owen F Posted August 22, 2009 Share Posted August 22, 2009 try using a SendPlayerData afterwards, that locks the data of the HP to the player, thus it MAY or MAY NOT keep his hp . Link to comment Share on other sites More sharing options...
Kimimaru Posted August 22, 2009 Author Share Posted August 22, 2009 I'll look into it, thanks! The client usually handles the player's stats, though. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now