Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Serveroptions.txt option (usehearts) (https://forums.graalonline.com/forums/showthread.php?t=18468)

entravial 12-08-2001 03:56 AM

Serveroptions.txt option (usehearts)
 
~AlphaFlame~

This is mainly for playerworlds wanting to use a different system than hearts... since lag can be created by having an if (playerhurt){playerhearts=playerfullhearts;} event being triggered every time you're hit, we should be able just to turn off the usage of hearts in the serveroptions.txt... or at least be able to specify if we want to use hearts/strings/variables whatever for HP.

Ex:

usehearts=false

or *specify*

usehealth=playerhp -- uses the string "playerhp"
usehealth=hearts -- uses hearts

jeff335 12-10-2001 09:56 AM

So don't use playerhurt, in a timeout have:

if(playerhearts<playerfullhearts){
hitpoints--;
playerhearts=playerfullhearts;
}

adam 12-11-2001 02:43 AM

Quote:

Originally posted by jeff335
So don't use playerhurt, in a timeout have:

if(playerhearts<playerfullhearts){
hitpoints--;
playerhearts=playerfullhearts;
}

Yeah I believe tyhms system npc template used something like that.

entravial 12-11-2001 03:33 AM

~AlphaFlame~

Apparently you guys have no idea what I mean...

I'll explain my system a bit... I'm using strings to determine the players HP/MP and a couple other additions... I don't want hearts to be included, and since I can use the space that the
if (playerhurt){playerhearts=playerfullhearts;} takes up for other things - yes, things can be done with even that much space - and since there *is* a limit to the space an NPC can take up (48k was it?)... it would just be hellishly easier to turn off hearts.


All times are GMT +2. The time now is 09:27 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.