escribano
Journeyman
Posts: 170
Likes Given: 16
Likes Received: 32 in 23 posts
Joined: Nov 2012
Reputation: 2
Dragon Shard
|
RE: [ITEM/FUNCTION] Account Gold Bank
Hummmm it's strange... i've never done this way, i've created a "handler" to change the type back to t_eq_bank_box after the container closes.
But it should be working... you have to remember that sphere sometimes changes the character list order (i don't understand why.. but sometimes the order is changed).
You can compare the UID from the desired player insted of the number of the character list... this way is a little more slow, but its more acccurate!
Code:
[FUNCTION open_bank_char]
// Receives an parameter with the desired character UID to open the bank box
// IE: src.open_bank_char <var.uid_of_char_that_bank_should_open>
var.chars <eval <account.chars>>
var.uid = <argv[0]>
for x 1 <var.chars>
if (<var.uid> == <account.char.<eval <local.x>>.uid>)
TRY UID.<account.char.<eval <local.x>>.uid>.findlayer.29.type = t_container
TRY UID.<account.char.<eval <local.x>>.uid>.findlayer.29.open
TRY UID.<account.char.<eval <local.x>>.uid>.findlayer.29.type = t_eq_bank_box
endif
endfor
UltimaPHP - OpenSource Ultima Online Server v0.1-pre-alpha under development, we need help!
(This post was last modified: 09-08-2015 04:50 AM by escribano.)
|
|
09-08-2015 04:47 AM |
|
|