Gump`s

Ask for scripts here

Moderators: Murderator+, Murderator

Post Reply
-=WOLVERINE=-
Posts: 66
Joined: 2004-05-27 18:19:17
Contact:

Gump`s

Post by -=WOLVERINE=- »

Ребят тут вот какое дело играю на одном сервере где запрещенно афк, гмы дабы самим не смотреть придумали новую штучку :
в определенныи момент времени на экране ! хаотично появляеться кнопка(он же гамп) на которыи нужно кликнуть(ведеться отсчет : допутим от 30 и до 0 если не нажал= джаил:) )...
ну так вот задумка проста..включить зацикленныи скрипт которыи в любои точе екрана как только появиться данная кнопочка *нажмет на нее*...
К сожалению очень мало понимаю в гампах посему и прошу у вас помощи...
Вот что мне выдало при наборе ,infogump :


Code: Select all

_____infogump_______
serial   0x0001e92d
gumpid   0x00000531
X   382
Y   25
193   packet size
23   reply packet size
Buttons: ________
Checks&Radios: __
Entryes: ________
All commands: ____
    1] OCLOSE
    2] OMOVE
    3] ext 255 128 152
    4] utton 188 173 2472 2473 1 0
    5] ext 219 165 455
Text: ____________
    0] AFK Timer
    1] Click here if you'r not afk!
Reply: ___________
 [0001] primary reply
 Checks&Radios (0)
 Entryes (0)
Destruction
Junior Expert
Posts: 3221
Joined: 2004-06-24 22:08:56

Post by Destruction »

Поиск по словам "ongump".
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post by Nmy »

Code: Select all

sub AFK()
   while true AND NOT UO.Dead()
      if uo.LastGump('replyed') == 0 then
         uo.lclick(0,0)
      endif
      wait(1000)
   wend
end sub
teror
Posts: 79
Joined: 2005-09-11 00:53:44

Post by teror »

у нас на шарде была подобная система + надо было текст вводить.
Ascoron
Posts: 27
Joined: 2006-05-09 20:07:03
Contact:

Post by Ascoron »

teror wrote:у нас на шарде была подобная система + надо было текст вводить.


Очень полезная штука... Особенно в ПвП :mrgreen:
knicholes
Posts: 9
Joined: 2004-05-16 00:08:59
Location: Utah
Contact:

ANTI-AFK SCRIPT

Post by knicholes »

Hey, does this script work? How would I use the ,ongump to select the big icon? This looks like it just clicks on location 0,0, but the gump doesn't always appear there.

On some shards, I've even seen gumps require you to do simple math. I challenge anyone to find an answer to these anti-afk scripts.
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Re: ANTI-AFK SCRIPT

Post by Nmy »

knicholes wrote:Hey, does this script work? How would I use the ,ongump to select the big icon? This looks like it just clicks on location 0,0, but the gump doesn't always appear there.

On some shards, I've even seen gumps require you to do simple math. I challenge anyone to find an answer to these anti-afk scripts.


well we have few anti-anti afk scripts, the point is that ongump is very dangerous command...

Code: Select all

Sub decode()
var temp='',i=0
var pos=0
var line=5
var sX=0, sY=0
var code=''
var finding = 1
var CurrX=0
var CurrY=0
var NumSum
dim tempXY[2]
dim Num[9]
Num[0]=6
Num[1]=35
Num[2]=45
Num[3]=-24
Num[4]=34
Num[5]=-5
Num[6]=26
Num[7]=4
Num[8]=-6
   Repeat
      temp=uo.LastGump('command',line)
      GetXY(temp, tempXY)
      if pos >= 17 then
         if pos == 17 then
            NumSum=(CurrX-sX)*10+(CurrY-sY)
            finding = 1
            i=0
            while finding
               if NumSum == num[i] then
                  code=code+str(i+1)
                  finding = 0
               end if
               i=i+1
            wend
         end if
         if tempXY[0]-CurrX > 5 then
            pos=0
         end if
      end if
      if not pos then
         sX=tempXY[0]
         sY=tempXY[1]
         pos=15
         line=line+15
      end if
      CurrX=tempXY[0]
      CurrY=tempXY[1]
      pos=pos+1
      line=line+1
   Until len(code) == 4
   return code
end sub


this script generates number
knicholes
Posts: 9
Joined: 2004-05-16 00:08:59
Location: Utah
Contact:

Post by knicholes »

Sweet, thanks for that script, too. I'm still having the exact same problem as the guy who started this thread. I have the exact same gump pop up and if I don't respond in time it teleports me away. I run the first listed AFK script, but it doesn't work. Do you have any idea why?
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post by Nmy »

knicholes wrote:Sweet, thanks for that script, too. I'm still having the exact same problem as the guy who started this thread. I have the exact same gump pop up and if I don't respond in time it teleports me away. I run the first listed AFK script, but it doesn't work. Do you have any idea why?


does the gump pop up randomly on screen ?
nerac
Posts: 34
Joined: 2006-06-16 14:43:25

Post by nerac »

teror wrote:у нас на шарде была подобная система + надо было текст вводить.



U nas bil antimacro, a u nix prosto afk...
knicholes
Posts: 9
Joined: 2004-05-16 00:08:59
Location: Utah
Contact:

Post by knicholes »

Yes, it pops up in random locations every time.
Post Reply