Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Graal V4 Main Forum (https://forums.graalonline.com/forums/forumdisplay.php?f=143)
-   -   REQUEST: triggerplayer (https://forums.graalonline.com/forums/showthread.php?t=61933)

ChibiChibiLuc 10-27-2005 03:33 AM

REQUEST: triggerplayer
 
I'm requesting a 'triggerplayer' command, or even giving the 'trigger' command the ability to target players.
I want to be able to do this from the clientside.

There have been many times I wanted to trigger a player with a triggeraction, but I couldn't. Dropping a triggeraction on the target player's x and y doesn't work all the time if the target has a bit of lag or is moving faster than normal.

Is there any way this command could be added?

EDIT: Napo reminded me to mention this: It can be done on the serverside, yes, but I want to be able to do it from the clientside. Like a triggeraction.

Example (when the weapon is fired, it triggers 'DoDamage' on anyone without 'Server' in their guild tag)

HTML Code:

Weapon
function onWeaponFired() {
  for (a: players) {
    if (!a.guild.contains("Server")) {
      a.trigger("DoDamage", 4);
    }
  }
}



HTML Code:

System
function onActionDoDamage(dmg) {
  hurt(dmg);
}


Does anything need clarifying?

napo_p2p 10-27-2005 03:58 AM

Can't you use a player joined class and do player.function(foo)?

ZeLpH_MyStiK 10-27-2005 05:37 AM

public function?

napo_p2p 10-27-2005 06:11 AM

Quote:

Originally Posted by ZeLpH_MyStiK
public function?

Exactly ;).

Rick 10-27-2005 06:37 AM

Era exposes a .doDamage() function in its player class. As well as many other utilities :)

It's a very nice method for streamlining player functionality.

napo_p2p 10-27-2005 06:48 AM

Quote:

Originally Posted by ChibiChibiLuc
EDIT: Napo reminded me to mention this: It can be done on the serverside, yes, but I want to be able to do it from the clientside. Like a triggeraction.

Ahh, I see your point now ;). In that case, then it's not such a bad idea.

Admins 10-27-2005 01:43 PM

I would suggest making a serverside HP system, it's more secure and having the same effect.

ChibiChibiLuc 10-27-2005 09:08 PM

I don't want it for a HP System, I just used it as an example..
It could be used in a lot of different NPCs. :/


All times are GMT +2. The time now is 12:52 PM.

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