![]() |
player.hears & player.ap
So, if the players AP is less than 50, the player.hearts serverside when increasing wont work! For example
if my ap is 20 and I try to heal the player via serverside HTML Code:
temp.p = findplayer("Graal707396");If I change my ap to above 50, the above code works and so does decreasing the players health! please fix |
Known problem. I don't think it'll be fixed, either. Just use the classic workaround:
PHP Code:
|
I didn't know about the HP/MAXHP, however still doesn't work :(
Quote:
|
Quote:
|
HTML Code:
player.join("functions");HTML Code:
public function onHealPlayer(amount) { |
Just set up some functions in the player class....
PHP Code:
|
Quote:
|
so much for "hp cant be recovered by normal means"
where did i hear that? im pretty sure it was classic. problem is, it cant be healed by er.. abnormal means either. only death. I always found that a bit misleading |
You could possibly try a "hack" towards solving this in the form of player.hurt(-number);, still seems strange not to be working however, I recall having issues where using "this." as opposed to "player." within player classes and more specifically the same with "this.hearts" within Gani Attribute scripts which fixed by changing it to "player.", could possibly be the solution here aswell.
|
I've never had problems using 'this' to refer to the player which a player class is joined to—it's the preferable way to do it. There may be some weird problem with hearts though. I've never scripted with the classic heart system (and don't really know why anyone would want to).
|
Quote:
|
lets hope stefan fixes it!!! :D
|
It is indeed a "problem" with the default hearts system. Many default systems seem to be coded in a hackish way. This specific problem is just related to the "no heals for PKers" thing. Another hackish implementation is the heart dropping stuff when lifting a pot. Try adding the default pot tiles to a level, and change them to the "pot lifted" tiles using the two-dimensional tiles array and updateBoard(). Doing so will drop a heart.
|
Quote:
|
lol no way
Stefan please fix for v6 this aint cool |
| All times are GMT +2. The time now is 08:34 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.