Salve,
Io uso lo script di Raziel Bod Collection, che funziona benissimo e non mi ha mai dato problemi(sotto allegato il codice). Vorrei però aggiungere una variante e non ci riesco: ora come ora lo script parte solo se i pg sono sloggati. Io vorrei che alla fine del conteggio di tempo lo script mettesse in pausa un altro script che ho in play, faccesse un recall su una runa che ho in un libro (il libro si chiama home e la runa e' la numero 1,l'unica), dopo di che slogga il pg, si fa il suo giretto di bod, e torna a loggarsi con pg numero 3(numero 2 per lo script che li conta partendo dal 0), che è quello che era loggato, rimettendo in play lo script messo in pausa. Non so se tutto ciò sia possibile, complicato o lungo. Mi appello all'abilità degli scripter che bazzicano questo forum !
Grazie in anticipo!
Lo script:
Io uso lo script di Raziel Bod Collection, che funziona benissimo e non mi ha mai dato problemi(sotto allegato il codice). Vorrei però aggiungere una variante e non ci riesco: ora come ora lo script parte solo se i pg sono sloggati. Io vorrei che alla fine del conteggio di tempo lo script mettesse in pausa un altro script che ho in play, faccesse un recall su una runa che ho in un libro (il libro si chiama home e la runa e' la numero 1,l'unica), dopo di che slogga il pg, si fa il suo giretto di bod, e torna a loggarsi con pg numero 3(numero 2 per lo script che li conta partendo dal 0), che è quello che era loggato, rimettendo in play lo script messo in pausa. Non so se tutto ciò sia possibile, complicato o lungo. Mi appello all'abilità degli scripter che bazzicano questo forum !
Grazie in anticipo!
Lo script:
;==================================
; Script Name: Raziel's Bod Gathering Script
; Author: Raziel
; Version: 1.52
; Client Tested with: 4.0.9b
; EUO version tested with: EasyUO V1.42 [Build 00A3]
; Shard OSI / FS: OSI
; Revision Date: 27/08/2005
; Public Release: 10/08/2003
; Global Variables Used:
; Purpose: Auto Gathers bods ( multi chars/accounts/shards )
;==================================
set %BODRitirati 0
;************************************************* *****************
; edit these options if you like, though defaults are fine.
set %sortDesktop #false ; #true or #false, organises your desktop
set %cancelRewards #false ; #true or #false, cancels AOS gift and vet reward gump
set %clickMod MC ; MC = move cursor, DMC = don't move cursor. MC will improve your bod gathering speed ( but will move your cursor when it clicks the npc )
set %option 4 ;this is the option on the context menu you must click to get a bod "bod info" OSI is 2 but freeshards may vary, set this here.
set %hoursBetweenBods 1 ;this is how many hours between each bod being availible. default is 6 hours.
;************************************************* *****************
goto Begin ;do not delete this line
;************************************************* ****************
sub account1
msg xxxxxxxx ;<-- NickName dell'account
wait 10
click 530 400
msg xxxxxxxx ;<-- Password dell'account
wait 20
msg $
return
;************************************************* *****************
sub account2
msg Account2
wait 10
click 530 400
msg Password2
wait 20
msg $
return
;************************************************* *****************
sub account3
msg Account3
wait 10
click 530 400
msg Password3
wait 20
msg $
return
;************************************************* *****************
sub account4
msg Account4
wait 10
click 530 400
msg Password4
wait 20
msg $
return
;************************************************* *****************
sub account5
msg Account5
wait 10
click 530 400
msg Password5
wait 20
msg $
return
;************************************************* *****************
bodlines:
;************************************************* *****************
;************************************************* *****************
;gosub bod lines below this
;************************************************* *****************
;************************************************* *****************
;gosub bodcycle Account Char rail|recall { 0 1 2 ) [Shard] <------ Delete this line
gosub bodcycle 1 0 rail_umbra 0 ;<-- Primo personaggio
gosub bodcycle 1 1 rail_umbra 0 ;<-- Secondo personaggio
gosub bodcycle 1 3 rail_umbra 0 ;<-- Quarto Personaggio
gosub bodcycle 1 4 rail_umbra 0 ;<-- Quinto Personaggio
;************************************************* *****************
;************************************************* *****************
;Edit nothing below this line
;************************************************* *****************
;************************************************* *****************
wait 100
Begin:
gosub timeOld
gosub makeMenu
gosub waitBOD
gosub _waitSysVar clilogged = 0
set *RazielBodTime #time
set *RazielBodDate #date
goto bodlines
;************************************************* *****************
sub bodCycle
namespace push
namespace local bodCycle
set !loginAttemps 0
set !account %1
set !char %2
set !recallOrRail %3
set !bodType %4
set !shard %5
set !numVars %0
set *RBG4SAccount !account
set *RBG4SChar !char
;Check for errors in bod cycle line
set !accountCheck #false
set !charCheck #false
set !recallOrRailCheck #false
set !bodTypeCheck #false
set !shardCheck #false
gosub checkNumber !account
if ! #result
set !accountCheck #true
gosub checkNumber !char
if ! #result || !char > 6
set !charCheck #true
if rail notin !recallOrRail && !recallOrRail recall_sacred
set !recallOrRailCheck #true
if _ , !bodType , _ notin _0_1_2_
set !bodTypeCheck #true
if !numVars > 4
{
gosub checkNumber !shard
if #result
set !shardCheck #true
}
gosub checkBodCycleLine !accountCheck !charCheck !recallOrRailCheck !bodTypeCheck !shardCheck !numVars
if ! #result
{
namespace pop
return
}
;end error checking
_tryLoginAgain:
if !numVars = 5
gosub InfoMenu !account !char !recallOrRail !bodType !shard
else
gosub InfoMenu !account !char !recallOrRail !bodType
if !numVars = 5
gosub login !account !char !shard
if !numVars = 4
gosub login !account !char
set !loginAttemps !loginAttemps + 1
if ! #result
{
if !loginAttemps > 5
{
namespace pop
return
}
gosub loginFailMenu
if #result = skip
{
namespace pop
return
}
if #result = tryAgain
goto _tryLoginAgain
}
wait 40
if %sortDesktop
gosub SortDesktop
if %cancelRewards
gosub cancelRewards
ignoreitem reset
if !bodType = 0 || !bodType = 2
{
gosub moveTo tailor !bodType !recallOrRail
if ! #result
{
gosub logout
wait 300s
namespace pop
return
}
}
if !bodType = 1 || !bodType = 2
{
gosub MoveTo smith !bodType !recallOrRail
if ! #result
{
gosub logout
wait 300s
namespace pop
return
}
}
gosub moveTo inn !bodType !recallOrRail
if ! #result
{
gosub logout
wait 300s
namespace pop
return
}
finditem DYM C_ . #backpackid
if #findkind = 0
gosub bodbook
wait 10
gosub logout
namespace pop
return
;************************************************* *****************
; Script Name: Raziel's Bod Gathering Script
; Author: Raziel
; Version: 1.52
; Client Tested with: 4.0.9b
; EUO version tested with: EasyUO V1.42 [Build 00A3]
; Shard OSI / FS: OSI
; Revision Date: 27/08/2005
; Public Release: 10/08/2003
; Global Variables Used:
; Purpose: Auto Gathers bods ( multi chars/accounts/shards )
;==================================
set %BODRitirati 0
;************************************************* *****************
; edit these options if you like, though defaults are fine.
set %sortDesktop #false ; #true or #false, organises your desktop
set %cancelRewards #false ; #true or #false, cancels AOS gift and vet reward gump
set %clickMod MC ; MC = move cursor, DMC = don't move cursor. MC will improve your bod gathering speed ( but will move your cursor when it clicks the npc )
set %option 4 ;this is the option on the context menu you must click to get a bod "bod info" OSI is 2 but freeshards may vary, set this here.
set %hoursBetweenBods 1 ;this is how many hours between each bod being availible. default is 6 hours.
;************************************************* *****************
goto Begin ;do not delete this line
;************************************************* ****************
sub account1
msg xxxxxxxx ;<-- NickName dell'account
wait 10
click 530 400
msg xxxxxxxx ;<-- Password dell'account
wait 20
msg $
return
;************************************************* *****************
sub account2
msg Account2
wait 10
click 530 400
msg Password2
wait 20
msg $
return
;************************************************* *****************
sub account3
msg Account3
wait 10
click 530 400
msg Password3
wait 20
msg $
return
;************************************************* *****************
sub account4
msg Account4
wait 10
click 530 400
msg Password4
wait 20
msg $
return
;************************************************* *****************
sub account5
msg Account5
wait 10
click 530 400
msg Password5
wait 20
msg $
return
;************************************************* *****************
bodlines:
;************************************************* *****************
;************************************************* *****************
;gosub bod lines below this
;************************************************* *****************
;************************************************* *****************
;gosub bodcycle Account Char rail|recall { 0 1 2 ) [Shard] <------ Delete this line
gosub bodcycle 1 0 rail_umbra 0 ;<-- Primo personaggio
gosub bodcycle 1 1 rail_umbra 0 ;<-- Secondo personaggio
gosub bodcycle 1 3 rail_umbra 0 ;<-- Quarto Personaggio
gosub bodcycle 1 4 rail_umbra 0 ;<-- Quinto Personaggio
;************************************************* *****************
;************************************************* *****************
;Edit nothing below this line
;************************************************* *****************
;************************************************* *****************
wait 100
Begin:
gosub timeOld
gosub makeMenu
gosub waitBOD
gosub _waitSysVar clilogged = 0
set *RazielBodTime #time
set *RazielBodDate #date
goto bodlines
;************************************************* *****************
sub bodCycle
namespace push
namespace local bodCycle
set !loginAttemps 0
set !account %1
set !char %2
set !recallOrRail %3
set !bodType %4
set !shard %5
set !numVars %0
set *RBG4SAccount !account
set *RBG4SChar !char
;Check for errors in bod cycle line
set !accountCheck #false
set !charCheck #false
set !recallOrRailCheck #false
set !bodTypeCheck #false
set !shardCheck #false
gosub checkNumber !account
if ! #result
set !accountCheck #true
gosub checkNumber !char
if ! #result || !char > 6
set !charCheck #true
if rail notin !recallOrRail && !recallOrRail recall_sacred
set !recallOrRailCheck #true
if _ , !bodType , _ notin _0_1_2_
set !bodTypeCheck #true
if !numVars > 4
{
gosub checkNumber !shard
if #result
set !shardCheck #true
}
gosub checkBodCycleLine !accountCheck !charCheck !recallOrRailCheck !bodTypeCheck !shardCheck !numVars
if ! #result
{
namespace pop
return
}
;end error checking
_tryLoginAgain:
if !numVars = 5
gosub InfoMenu !account !char !recallOrRail !bodType !shard
else
gosub InfoMenu !account !char !recallOrRail !bodType
if !numVars = 5
gosub login !account !char !shard
if !numVars = 4
gosub login !account !char
set !loginAttemps !loginAttemps + 1
if ! #result
{
if !loginAttemps > 5
{
namespace pop
return
}
gosub loginFailMenu
if #result = skip
{
namespace pop
return
}
if #result = tryAgain
goto _tryLoginAgain
}
wait 40
if %sortDesktop
gosub SortDesktop
if %cancelRewards
gosub cancelRewards
ignoreitem reset
if !bodType = 0 || !bodType = 2
{
gosub moveTo tailor !bodType !recallOrRail
if ! #result
{
gosub logout
wait 300s
namespace pop
return
}
}
if !bodType = 1 || !bodType = 2
{
gosub MoveTo smith !bodType !recallOrRail
if ! #result
{
gosub logout
wait 300s
namespace pop
return
}
}
gosub moveTo inn !bodType !recallOrRail
if ! #result
{
gosub logout
wait 300s
namespace pop
return
}
finditem DYM C_ . #backpackid
if #findkind = 0
gosub bodbook
wait 10
gosub logout
namespace pop
return
;************************************************* *****************
Commenta