Page 1 of 1
Generate Lag
Posted: Sun Jun 17, 2007 9:06 pm
by Unfaithful
There is a way to generate lag on concrete player?
Posted: Sun Jun 17, 2007 11:00 pm
by Yukiko
Do you mean generating a log file when players are created?
If that is your question, yes.
Just include:
use file;
in your "use" statements at the beginning of the oncreate script and then use the function call LogToFile passing the info you wish to the function.
Posted: Mon Jun 18, 2007 7:20 am
by Unfaithful
no i mean
function generatelag(who)
var tgt := Target(who)
makelag(tgt);
endfunction
sth like this ... dont u know what lag mean?
Posted: Mon Jun 18, 2007 9:41 am
by Tritan
Do you just want to slow them down or make it harder for them to move?
Posted: Mon Jun 18, 2007 10:39 am
by Xenawar
There's a secret key combo to do it but it only works while you are a GM or higher in game. Just press Alt-F4, then target the player.
Posted: Mon Jun 18, 2007 4:45 pm
by OldnGrey
I'd suggest an external utility that uses cpu cycles. Running winrar to compress a directory is a good one. It will nicely lag all players on the shard.
It's easy enough to script in something that takes 100% cput - just about anything with a foreach loop searching the world will do it if you put in the sleeps you want.
These lag everyone, but I've no idea how to do it for one player though.
Posted: Mon Jun 18, 2007 8:46 pm
by mr bubbles
Would bombarding him with an update packet do the job?
Posted: Tue Jun 19, 2007 10:46 am
by Unfaithful
wich packet ;d
Posted: Wed Jun 20, 2007 7:23 am
by Yukiko
I thought maybe you had mis-typed your question. Yes unfaithful, I do know what lag is but usually lag is something we want to eliminate, not create!!!
Anyway, enjoy.
Posted: Wed Jun 20, 2007 12:04 pm
by tekproxy
You could probably do it but it may lag the server. You'd also have to be very careful of crashing the client. If you do packet hooks, you know what I'm talking about. If you want to just be nasty, it would be easy to write a function like CrashClient().
If you could find out a client process that is resource intensive for the client but not the server. I know whenever a client has to select where to place a multi it's fairly CPU intensive. But newer CPUs can handle that with no problem. You -could- hook some packets, and delay them, but that's a really weird way to go about an even weirder idea.
Posted: Fri Jun 22, 2007 12:03 am
by Unfaithful
;]]
thx Tekproxy
Posted: Fri Jun 29, 2007 2:07 pm
by Pierce
Maybee a dumb question. But why will you create lag on a player? If you don't like him, simply delete his account.
Posted: Sat Jun 30, 2007 1:47 am
by Gnafu
Simply write a script that freeze and unfreeze the player very often.
(Useless to delay speach and stand-still-actions..)
Posted: Sat Jun 30, 2007 3:59 am
by runtest
Scary People, but try to write a script like.
Code: Select all
Program lagloop( Chr )
var Chry := GetObjProperty( Chr,"#Chr.y" )
var Chrx := GetObjProperty( Chr,"#Chr.x" )
var WaitTime := GetObjProperty( Chr,"#WaitTime" )
var Timer := ReadGameClock()
If( Timer > WaitTime )
Chry := Chry - 1
Chrx := Chrx - 10
SetObjProperty( Chr,"#WaitTime", ReadGameClock()+RandomDiceRoll(6)
Endif
Endprogram
Would this work?
Posted: Sat Jun 30, 2007 4:26 am
by ncrsn
I thought something like this (~pseudo).
Code: Select all
// Launch with Start_Script("lagwarp", who) on logon
use os;
use uo;
use util;
program lagwarp( who )
while (who.connected)
var lastx := who.x;
var lasty := who.y;
var lastz := who.z;
SleepMS(200 + RandomInt(200));
MoveObjectToLocation(who, lastx, lasty, lastz, who.realm, MOVEOBJECT_FORCELOCATION);
endwhile
endprogram
Posted: Sat Jun 30, 2007 8:55 am
by Unfaithful
funny script but could work ;]
Posted: Sat Jun 30, 2007 9:51 am
by runtest
I figure you want to use this a punishment, lag is simply when the player performs actions and every once and a bit it reverses becauses signal can not be sent fast enough. So, have the script sleep for say six seconds then reverse actions back a recorded step. Hard to explain.
Posted: Thu Jul 19, 2007 4:00 am
by Justae
To the Author of this thread :
I would question your motives.
1. Is the lag on player to be caused as an effect to a custom spell ?
2. Is it to gain an advantage over the player during a PvP session ?
#1 is Doable in a proper manner.
#2 - shut your shard down.