Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Level vars (https://forums.graalonline.com/forums/showthread.php?t=134259948)

Mark Sir Link 07-25-2010 10:40 AM

Level vars
 
requesting these for v6

level.noap
http://forums.graalonline.com/forums...03&postcount=1
level.

Ignores AP for healing/pking players and causes no AP losses

level.friendlyfire
http://forums.graalonline.com/forums...69&postcount=3

Allows attacking other players with your guild tag

nullify 07-25-2010 11:53 AM

You said my name quite a bit in both of those posts, but yeah. Supported regardless.

cbk1994 07-25-2010 12:48 PM

If I was a scripter on a classic server, I'd rather have some kind of function which is called when the player is hurt that basically requests permission to hurt the player. The function would be called in some standardly-named weapon. If the function/weapon doesn't exist, it would default to this, which replicates default behavior:

PHP Code:

//#CLIENTSIDE
public function getAttackDamage(attackerdamageweapon) {
  if (
player.level.nopkzone) {
    return 
0;
  }
  
  if (
player.guild == attacker.guild && player.guild != "") {
    return 
0;
  }
  
  if (
player.ap == 100 && weapon == "sword") {
    return 
0;
  }
  
  return 
damage;


This would give you much greater flexibility and also allow you to change damages based on different types of hits. Something similar could be done for AP taking on death (serverside).

Rufus 07-25-2010 08:40 PM

Yeah, we really could do with these.

12171217 07-25-2010 09:03 PM

We need the ability to hook functions before default systems come into play.. That's what I want.

dereklarue 08-16-2010 05:00 AM

Disabling default functions such as the sword/hearts would be great.


All times are GMT +2. The time now is 02:06 PM.

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