Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Code Gallery (https://forums.graalonline.com/forums/forumdisplay.php?f=179)
-   -   Human controller Kinda abusive (https://forums.graalonline.com/forums/showthread.php?t=70988)

michael7849 12-24-2006 06:29 PM

Human controller Kinda abusive
 
1 Attachment(s)
hi this is mike and heres a code for you all a controller a little buggy but gets the point around (i use to for the ppl that are liek speed hacking and stuff and make them walk to te jail :)


PHP Code:

function onActionServerside(cmdplayerdirection)
  {
  
pl findplayer(params[1]);
  
with (pl) {
    if (
cmd == "on"freezeplayer2();
    if (
cmd == "off"unfreezeplayer();
    if (
cmd == "ani"setani(params[2],params[3]);
    if (
cmd == "chat"pl.chat params[2];
    if (
cmd == "move")
      {
      if (
direction == 0)
        {
        
this.speed .45;
        
pl.-= this.speed;
        
pl.dir 0;
        
setani("walk","");
        
sleep(.30);
        
setani("idle","");
      }
      if (
direction == 2)
        {
        
pl.+= this.speed;
        
pl.dir 2;
        
setani("walk","");
        
sleep(.30);
        
setani("idle","");
      }
      if (
direction == 3)
        {
        
pl.+= this.speed;
        
pl.dir 3;
        
setani("walk","");
        
sleep(.30);
        
setani("idle","");
      }
      if (
direction == 1)
        {
        
pl.-= this.speed;
        
pl.dir 1;
        
setani("walk","");
        
sleep(.30);
        
setani("idle","");
      }
    }
  }
}
//#CLIENTSIDE

function onMouseDown(button)
  {
  if(
button == "double")
    {
    
temp.pl GetPlayer(mousex,mousey);
    
this.ctrl temp.pl;
    
with(findImg(200)) {
      
text "Mind Control:" SPC temp.pl SPC "press (c) to control and stop controlling";
      
font "Tempus Sans ITC";
      
style "b";
      
zoom 0.6;
      
screenwidth gettextwidth(zoomfontstyletext) - 220;
      
135;
      
layer 5;
    }
    
    for(
temp.i=0;temp.i<4;temp.i++) {
      
with(findImg(201+temp.i)) {
        
text findImg(200).text;
        
font findImg(200).font;
        
style findImg(200).style;
        
zoom findImg(200).zoom;
        
findImg(200).vecx(temp.i);
        
findImg(200).vecy(temp.i);
        
layer 4;
        
        
red 0;
        
green 0;
        
blue 0;
        
alpha 1;
      }
    }
    
with(findImg(206)) {
      
text findImg(200).text;
      
font findImg(200).font;
      
style findImg(200).style;
      
zoom findImg(200).zoom;
      
findImg(200).2;
      
findImg(200).2;
      
layer 4;
      
      
red 0;
      
green 0;
      
blue 0;
      
alpha 1;
    }
    if (
this.ctrl == NULLhideimgs(200,300);
  }
}

function 
GetPlayer(tXtY) {
  for(
temp.i=0;temp.i<players.size();temp.i++) {
    
//return players[i].account;
    
if(tX in |players[i].x,players[i].x+3| && tY in |players[i].y,players[i].y+3|) {
      if(
players[i].account != player.account) {
        return 
players[i].account;
      } else {
        return 
"";
      }
    }
  }
  return 
"";
}


function 
onPlayerChats()
  {
  if (
this.on == 1)
    {
    
triggeraction(0,0,"serverside"#N,"chat",this.ctrl,player.chat);
    
player.chat "";
  }
}

function 
onKeyPressed(keycharcharacter)
  {
  if (
this.on == 1)
    {
    
//this.msg = this.msg@character; 
    
if (keychar == 13
    {
      
onCtrlBar();
      
//triggeraction(0,0,"serverside", #N,"chat",this.ctrl,this.msg);
      //this.msg = "";
    
}
    if (
character == "a"triggeraction(0,0,"serverside"#N,"ani",this.ctrl,"grab");
    
if (character == "h"
    {
       
showimg(1,"emoticon_heart.png",pl.2,pl.5);
       
changeimgvis(1,2);
       
sleep(.30);
       
onTimeout();
       
hideimg(1);
    }
    if (
character == "s"triggeraction(0,0,"serverside"#N,"ani",this.ctrl,"sword");
  
}
  if (
character == "c")
    {
    
onTimeout();
    if (
this.ctrl != NULL)
      {
      
this.on = !this.on;
      if (
this.on 0)
        {
        
hideimgs(200,300);
        
resetfocus();
        
triggeraction(0,0,"serverside"#N,"off",this.ctrl);
        
this.ctrl NULL;
      }else {
        
setani("idle","");
        
triggeraction(0,0,"serverside"#N,"on",this.ctrl);
      
}
    }
  }
}

function 
onTimeout()
  {
  if (
this.on == 1)
    {
    
ChatBar.visible false;
    
disabledefmovement();
    for (
i=0;i<4;i++;)
      {
      if (
keydown(i))
        {
        
triggeraction(0,0,"serverside"#N,"move",this.ctrl,i);
      
}
    }
    
pl findplayer(this.ctrl);
    
setfocus(pl.x,pl.y);
  }else 
enabledefmovement();
  
setTimer(.05);
}

function 
onCtrlBar()
{
  new 
GuiTextEditCtrl(Chat_bar) { 
    
profile =     profile "GuiBlueTextEditProfile";
    
horizSizing "width";
    
vertSizing "top";
    
position "100 370";
    
extent "488 20";
    
historySize 100;
    
tabComplete true;
  }
}

function 
Chat_bar.onAction()
{
  
triggeraction(0,0,"serverside"#N,"chat",this.ctrl,Chat_bar.text);
  
Chat_bar.destroy();



Rapidwolve 12-24-2006 07:12 PM

I can already spot problems in your script.

Check your trigger actions

Chompy 12-24-2006 09:41 PM

I've seen scripts like this on many servers.. kind of annoying

Twinny 12-25-2006 04:02 PM

This was like the NAT test on some server: "Tell me what this script does".

xXziroXx 12-25-2006 04:07 PM

These kind of scripts should be banned from Graal..

Twinny 12-25-2006 04:14 PM

Quote:

Originally Posted by xXziroXx (Post 1257267)
These kind of scripts should be banned from Graal..

Well...I'd be happy if it changed the victims guild to 'Being Controlled by' then whoever. Otherwise, i foresee bad events as a result of this NPC.

xXziroXx 12-25-2006 04:29 PM

Quote:

Originally Posted by Twinny (Post 1257270)
Well...I'd be happy if it changed the victims guild to 'Being Controlled by' then whoever. Otherwise, i foresee bad events as a result of this NPC.

I just find them abusive, and theres no need for it what so ever.

Twinny 12-25-2006 04:51 PM

I'm thinking it could be used like Abe's Odyssey. Temporarily control a player to get them to do something for you. It would be alright if it only worked in the same level and it was very clear that the person was being controlled. Should also have a massive cool down and a short span of active control.

Not a staff tool though.

xXziroXx 12-25-2006 04:55 PM

Quote:

Originally Posted by Twinny (Post 1257278)
I'm thinking it could be used like Abe's Odyssey. Temporarily control a player to get them to do something for you. It would be alright if it only worked in the same level and it was very clear that the person was being controlled. Should also have a massive cool down and a short span of active control.

Not a staff tool though.

Its the whole *staff tool* part thats bothering me.

Zanzel 01-03-2007 05:43 PM

Staff tools are useless really, If you go to each and every Playerworld<#>
you will find atleast 1 or so Staff tools..
That either:
Add money, Freeze players, kill players, etc.

I am agreeing with Ziro, for he is right.. They should be banned from graal.

Angel_Light 01-04-2007 07:04 AM

The one I created does more than that (Yes it does do that though). It can change the staff RC head, modify player vars, constantly checks and logs all action the staff uses so on and so forth

Basically "I" don't find them useless.

This is probaly Micheal first Script so quit being so negative about it. :o

xXziroXx 01-05-2007 07:00 PM

Quote:

Originally Posted by Angel_Light (Post 1260600)
The one I created does more than that (Yes it does do that though). It can change the staff RC head, modify player vars, constantly checks and logs all action the staff uses so on and so forth

Basically "I" don't find them useless.

This is probaly Micheal first Script so quit being so negative about it. :o

If it IS his first script, its just AWESOME to start with the most abusive thing you can script - shows great promises for the future! :)

kia345 01-05-2007 07:05 PM

michael you didnt make that -.-
hikaru and mark did back on horizon

konidias 01-21-2007 07:00 AM

Quote:

Originally Posted by Zanzel (Post 1260293)
Staff tools are useless really, If you go to each and every Playerworld<#>
you will find atleast 1 or so Staff tools..
That either:
Add money, Freeze players, kill players, etc.

I am agreeing with Ziro, for he is right.. They should be banned from graal.

It's when a server has more staff tool weapons than actual game weapons that you know the server is doomed. :p

Twinny 01-21-2007 07:45 AM

Any server I help on, I try to convince the manager/owner to remove such tools. They are gimmicks and serve only to waste time and piss other staff members / players off.

godofwarares 02-18-2007 03:26 PM

Mark scripted that one. Micheal just likes to take scripts from servers and post them in the code gallery.

cbk1994 02-20-2007 03:07 AM

Quote:

Originally Posted by michael7849 (Post 1256917)
hi this is mike and heres a code for you all a controller a little buggy but gets the point around (i use to for the ppl that are liek speed hacking and stuff and make them walk to te jail :)
[...]

I'm pretty sure Moondeath made that o.O
Atleast on Symphonia, it was named MD/Test, before I deleted it.

moondeath 03-15-2010 06:10 AM

Uh.. yeah... but uhm.. that is most shameful it was barely a few months after gs2 came out though.


Inb4 people crying about a dead thread being bumped.

Switch 03-15-2010 06:56 AM

necroing omg


I suggest no one uses tools like this since it makes players stray from your server and it's annoying.

salesman 03-15-2010 05:09 PM

looks like somebody searched "moondeath" :p


All times are GMT +2. The time now is 08:52 AM.

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