PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
check macroing players

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Development Discussion 097
Display posts from previous:   

Author Message
testerz



Joined: 04 Mar 2008
Posts: 12

PostPosted: Sun Mar 09, 2008 9:26 am    Post subject: check macroing players Reply with quote

is there a script that checks whether a use is away popping a window ?

Author Message
tehelite



Joined: 09 May 2008
Posts: 1

PostPosted: Fri May 09, 2008 2:15 am    Post subject: Reply with quote

Yes there are many scripts that do that. If you are looking at making your own then read this topic, http://forums.polserver.com/ftopic2057.php, it has basic details that you will need.

For any further info, please say so and i'll help Very Happy

Author Message
Luth
POL Developer


Joined: 03 Oct 2007
Posts: 21

PostPosted: Fri May 09, 2008 3:13 pm    Post subject: Reply with quote

I wrote a capcha system (as yes/no gumps can be macrod away as well). If you like, I could dig it out of mothballs and post it.

Author Message
ncrsn



Joined: 10 Feb 2006
Posts: 107

PostPosted: Fri May 09, 2008 5:05 pm    Post subject: Reply with quote

Sharing is caring; annoying players = priceless.

Author Message
Luth
POL Developer


Joined: 03 Oct 2007
Posts: 21

PostPosted: Sat May 10, 2008 12:13 am    Post subject: Reply with quote

This txtcmd was written a hundred years ago and I make no claims to its quality. It worked then, I should hope it still works now. Spruce it up as you like.

txtcmd/coun/unattended.src
Code:
use uo;
use os;
use util;
use basic;


program unattended( who )
  var gflayout := {
      "noclose", 
      "nodispose",
      "nomove",   
      "page 0",
      "resizepic 10 10 2600 300 150",
      "text 70 25 32 0",
      "text 70 40 32 1",
      "text 70 55 32 2",
      "text 70 70 32 3",
      "text 70 85 32 4",
      "button 130 115 249 248 1 1 1"
      };
  var gfdata := {
      "You have been suspected",
      "of unattended macroing.",
      "Use the command ",
      ".macropass PASSWORD"
      };

  var targ := target(who);
  if (!targ.acct)
    sendsysmessage(who,"That is not a player. Choose again wise guy.");
    return(0);
  elseif(GetObjProperty(targ, "macroPW"))
    sendsysmessage(who,"That player is already marked for Macroing.");
    return(0);
  endif

  var size;
  var SRV := randomInt(30000);

  size := len(gfdata);
  gfdata[size+1] := "Your password is: "+SRV+".";

  SetObjProperty(targ, "macroPW", SRV);
  start_script("misc/timeout", targ);
  SendDialogGump( targ, gflayout, gfdata );
endprogram



misc/timeout.src
Code:
use uo;
use os;
use util;
use basic;


include "include/damage";

program timeout(targ)
  var times := 0;
  for(times := 0; times < 30; times := times + 1)
    if(GetObjProperty(targ, "macroPW"))
      SendSysMessage(targ, "" + CInt(300 - CInt(times * 10)) + " seconds left");
      sleep(10);
    else
      return;
    endif
  endfor
   
  if(GetObjProperty(targ, "macroPW"))
    EraseObjProperty(targ, "macroPW");
    ApplyRawDamage_Modified(targ, targ, "macroing", 32000);
    DisconnectClient(targ);
  endif
endprogram



txtcmd/player/macropass.src
Code:
use uo;
use os;
use util;
use basic;

program macropass( who, password )
  if(!GetObjProperty(who, "macroPW"))
    sendsysmessage(who,"You have not been suspected of macroing.");
    return(0);
  endif

  var pw := CInt(GetObjProperty(who, "macroPW"));
  password := CInt(password);
  if(pw == password)
    sendsysmessage(who, "You have entered a correct password, you are saved.");
    EraseObjProperty(who, "macroPW");
  else
   sendsysmessage(who, "You have entered a incorrect password.");
  endif
endprogram

Post new topic   Reply to topic    PenUltima Online Forum Index -> Development Discussion 097 All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty