PenUltima Online

It is currently Sat Aug 30, 2008 1:13 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Where is Account cleaner ?
PostPosted: Sun Apr 16, 2006 4:12 am 
Offline

Joined: Wed Apr 05, 2006 8:08 am
Posts: 54
How i now pol cant delete account from the scripts.
Where i can find perl or some like that script for clean my accounts.txt - delete all baned accounts ?


Top
 Profile  
 
 Post subject: Re: Where is Account cleaner ?
PostPosted: Sun Apr 16, 2006 8:03 am 
Offline
POL Core Developer

Joined: Mon Jan 30, 2006 9:28 am
Posts: 292
Location: Germany, Bavaria
CrazyMan wrote:
How i now pol cant delete account from the scripts.

...in Pol096

Shinigami


Last edited by Shinigami on Tue Apr 18, 2006 12:50 am, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 16, 2006 8:06 am 
Offline

Joined: Wed Apr 05, 2006 8:08 am
Posts: 54
my bad english....
How i can delete all banned accounts?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 16, 2006 8:08 am 
Offline

Joined: Wed Apr 05, 2006 8:08 am
Posts: 54
*Stupid CrazyMan...*


05-25 Shinigami
Added : Account.delete() - delete this empty account
Added : Account.split( newacctname : string, index : 1..5 )
create a new account and move character to it
Added : Account.move_char( destacctname : string, index : 1..5 )
move character from this account to destination account.
you can use it to flip chars on same account too - it's not a bug, it's a feature ;oP

Sorry...


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 22, 2006 2:19 am 
Offline

Joined: Sat Mar 18, 2006 1:41 am
Posts: 92
Location: World Earth
I am sorry, as I still noob in scripting, you could not show me how this script looks. Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 22, 2006 2:38 am 
Offline

Joined: Wed Apr 05, 2006 8:08 am
Posts: 54
Code:
use uo;
program newbie_acccleaner()

var acc_list := ListAccounts();
var account;
foreach acc_name in acc_list
    account := FindAccount(acc_name);
    account.Delete();
endforeach

endprogram


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 22, 2006 2:54 am 
Offline

Joined: Sat Mar 18, 2006 1:41 am
Posts: 92
Location: World Earth
very interesting, but! How it work? .acccleaner [acc] and nothing has occured! Tell please, how it work. Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 22, 2006 3:27 am 
Offline

Joined: Sat Feb 04, 2006 9:14 am
Posts: 90
Location: Aman
Account.delete() - delete this empty account
EMPTY account

Code:
use uo;
include "util/bank";
program acccleaner(who, name)
    var account;
    account := FindAccount(name);
    if (account)
       var char,cnt;
       for(cnt :=1; cnt <=5; cnt :=cnt+1)
          char := account.getcharacter(cnt);
          if (char)
               SendSysMessage(who, "character at slot "+cnt);
               if (WipeBankBox( char ))
                  SendSysMessage(who, "Bankbox wiped!");
               else
                  SendSysMessage(who, "no bankbox to wipe!");
               endif
               foreach thing in listequippeditems(char)
                  Destroyitem(thing);
              endforeach
              SendSysMessage(who, "equippment destroyed!");
                    account.deletecharacter(cnt);
          endif
       endfor
       account.Delete();
    else
       SendSysMessage(who,"no account with that name");
    endif
endprogram

_________________
Ash nazg durbatuluk, ash nazg gimbatul, ash nazg thrakatuluk agh burzum-ishi krimpatul


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl