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
backpack, newbie and easyuo

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Bug Reports 097
Display posts from previous:   

Author Message
coltain



Joined: 20 Mar 2007
Posts: 96
Location: Poland

PostPosted: Sat Dec 15, 2007 6:18 pm    Post subject: backpack, newbie and easyuo Reply with quote

simple EUO script to make blessed backpacks

set %plecak #BACKPACKID
set %dokad XQNVXQE ; <---- Id
finditem %plecak C_ , #charid
Exevent Drag #findid
wait 20
Exevent Dropc %dokad
stop

It`s not POL bug but I just notify about this...

This script removes old backpack and insert a new one (made by tailor)
Old backpack is blessed. New is blessed also.

I added to chardeath script a log when player dies and a newbie backpack is in gohost.backpack. Then it removes newbie thing and moves to corpse.

Author Message
CWO



Joined: 04 Feb 2006
Posts: 685
Location: Chicago, IL USA

PostPosted: Tue Dec 18, 2007 12:14 pm    Post subject: Reply with quote

possible packethook fix:

uopacket.cfg
Code:

Packet 0x07
{
   Length 7
   ReceiveFunction drag:dragging
}


drag.src
Code:

use uo;
use os;
use polsys;

program drag()
   return 1;
endprogram

exported function dragging(who, byref packet)
   var item := SystemFindObjectBySerial(packet.GetInt32(1));
   if (item && item.serial == who.backpack.serial)
      var reject := CreatePacket(0x27, 2);
      reject.SetInt8(1, 0x00);
      reject.SendPacket(who);
      return 1;
   endif
   return 0;
endfunction


I know theres a little extra code there but its there to make sure the check behaves properly...

Code:
   var item := SystemFindObjectBySerial(packet.GetInt32(1));
   if (item && item.serial == who.backpack.serial)


could just be narrowed down to

Code:

   if (packet.GetInt32(1) == who.backpack.serial)

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

 




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