PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
Clothing becoming invisible
Goto page Previous  1, 2
 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Bug Reports 097
Display posts from previous:   

Author Message
ncrsn



Joined: 10 Feb 2006
Posts: 107

PostPosted: Tue Sep 25, 2007 8:01 pm    Post subject: Reply with quote

Yukiko wrote:
Does using the POL function EquipItem() call the item's equip script?

http://docs.polserver.com/pol096/singlefunc.php?funcname=EquipItem&xmlfile=uoem.xml.

PolDoc wrote:
EquipItem( mobile, item )
Runs the Item's Equiptest and Equip scripts, if any.


Yukiko wrote:
Anyway, maybe someone can let me know if I am causing an infinite loop there.

Best way would be testing. I'm middle of something way different right now, but I'll check this one out later, if no-one else does that by then.

Author Message
OldnGrey



Joined: 04 Feb 2006
Posts: 500

PostPosted: Tue Sep 25, 2007 9:33 pm    Post subject: Reply with quote

The equipscript value in itemdesc is run when the item is equipped, and is also run whenever the shard is started for each and every npc.

You cannot DO anything with the item in the equipscript all you can do is return 0 to deny the equipping.

As I posted earlier the only way I have found so far is to simply deny equipping if it's a player and the item starts from a different realm.

I also found out why I wasn't seeing the bug myself. It was because I had moved all existing players and items to britannia_alt. A new player gets their bankbox created in britannia and so they see the bug.


In any case this remains a core bug and I hope the devs will sort it out soon. So far a dev hasn't told us they have seen this thread.

Author Message
Yukiko



Joined: 02 Feb 2006
Posts: 1081
Location: Southern Central USA

PostPosted: Wed Sep 26, 2007 1:16 am    Post subject: Reply with quote

Thanks ncrsn. I should have followed my own advice and looked at the docs.
: P

OnG, is there anyway to create your new player's bank boxes in britannia_alt?

Author Message
OldnGrey



Joined: 04 Feb 2006
Posts: 500

PostPosted: Wed Sep 26, 2007 1:38 am    Post subject: Reply with quote

Yukiko,
The command for creating the storage container has no realm parameter and it doesn't follow _DEFAULT_REALM.
So I am guessing no. Sad

Author Message
Rogdush



Joined: 10 Feb 2006
Posts: 21

PostPosted: Thu Nov 22, 2007 10:16 pm    Post subject: Reply with quote

Hi everyone.

Today Ive updated my POL to 07-25 and noticed the same lil buggy.
As far as I noticed, POL simply doesnt send worn update for player and players around him, when item is equipped from different realm.
Bigger problem causes mounting (if your script is equiping it from brit), because player cant get off mount, unless he trigger MoveObject on himself.

Ive done temporarily my own send packet after EquipItem, so everyone gets correct update.

Code:

    EquipItem(master,mount);

    if(master.realm != REALM_BRITANNIA)
      var Packet := CreatePacket(0x2E, 15);
      Packet.SetInt32(1, mount.serial);
      Packet.SetInt16(5, mount.graphic);
      Packet.SetInt8(7, 0);
      Packet.SetInt8(8, LAYER_MOUNT);
      Packet.SetInt32(9, master.serial);
      Packet.SetInt16(13, mount.color);

      foreach Obj in ListObjectsInBox(master.x-18, master.y-18, -127, master.x+18, master.y+18, 127, master.realm)
        if(Obj.acctname)
          Packet.SendPacket(Obj);
        endif
      endforeach
    endif


Works well, for mount.
I think, its doable in can equip script, so you can know previous location of item, but havent tested it yet. I hope we will get this bug fixed shortly Smile

Post new topic   Reply to topic    PenUltima Online Forum Index -> Bug Reports 097 All times are GMT - 4 Hours
Goto page Previous  1, 2
Page 2 of 2

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty