PenUltima Online

It is currently Sat Sep 06, 2008 4:54 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: What`s the bug?
PostPosted: Tue Sep 04, 2007 10:42 am 
Offline
User avatar

Joined: Sun Apr 15, 2007 5:58 pm
Posts: 23
itemdesc.cfg
Quote:
Item 0x998B
{
Name banco
Desc Bank Box
Graphic 0xE7C
Color 1151
Script bank
Movable 0
}


bank.src
Quote:
use uo;
use os;

Const UOBJ_BANKBOX := 0x0E7C;

program Item_Bankbox(quem)
var banco := FindBankBox(quem);
if(!banco)
return;
endif
// This bug are HERE???
SendOpenSpecialContainer(quem, banco);
SendSysMessage(quem, quem.name + ", you are open in the bank box.");
endprogram

function FindBankBox(quem)
var bank := OpenWorldBank();
var nome := "Bankbox of " + CStr(quem.serial);
var bankbox := FindRootItemInStorageArea(bank, nome);
if(!bankbox)
bankbox := CreateRootItemInStorageArea(bank, nome, UOBJ_BANKBOX);
endif
if(!bankbox)
syslog(" " + quem.name + " (Serial: " + quem.serial + ") this no open bank box.");
endif
return bankbox;
endfunction

function OpenWorldBank()
var bank := FindStorageArea("Serial Bank");
if(!bank)
bank := CreateStorageArea("Serial Bank");
endif
if(!bank)
syslog("Not open and not create bank box system.");
endif
return bank;
endfunction

_________________
Without target the arrow never to make a mistake.
Image

I not floodo, only follow posts.
FFF - Flooding For Fun


Last edited by Juzeph on Wed Sep 05, 2007 6:27 am, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 04, 2007 6:02 pm 
Offline

Joined: Sat Feb 04, 2006 6:26 pm
Posts: 547
At a quick glance, you haven't defined it as a container, no gump, no co-ordinates.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 05, 2007 3:16 am 
Offline

Joined: Tue Mar 20, 2007 7:17 am
Posts: 99
Location: Poland
You define Script bannk

but use bank.src


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 05, 2007 6:30 am 
Offline
User avatar

Joined: Sun Apr 15, 2007 5:58 pm
Posts: 23
coltain wrote:
You define Script bannk

but use bank.src

This is not problem.


OldnGrey wrote:
At a quick glance, you haven't defined it as a container, no gump, no co-ordinates.

Already I tried this. In the CORE 095 this was not necessary.


Edit:
SORRY

It lacked the itemdesc of the container 0x0E7C.
hehehe... Pardon... :oops:

_________________
Without target the arrow never to make a mistake.
Image

I not floodo, only follow posts.
FFF - Flooding For Fun


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 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