Thread: onActionGrab
View Single Post
  #10  
Old 10-06-2006, 02:30 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
why don't do something like:

PHP Code:
//#CLIENTSIDE
function onKeyPressed(codekey
{
  switch(
key)
  {
    case 
"a":
      
temp.gx player.1.5 vecx(player.dir) * 2;
      
temp.gy player.vecy(player.dir )* 2;
      
triggeraction(temp.gxtemp.gy"Grab"player.accountplayer.guild);
    break;
  }

PHP Code:
//#CLIENTSIDE
function onActionGrab(acctguild)
{
  
hide();
  
sleep(3);
  
show();

and with the parametres in ActionGrab(acct, guild) you can make a protection system for example
(the function "onActionGrab" can go in a class or an level npc too,
and the onKeyPressed could be added like an system, like -Grab?)
__________________
Reply With Quote