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
Gravity (Packethook 0x7, 0x8)

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Custom Script Releases
Display posts from previous:   

Author Message
FreeSoul



Joined: 04 Feb 2006
Posts: 90
Location: Aman

PostPosted: Thu Mar 16, 2006 11:44 am    Post subject: Gravity (Packethook 0x7, 0x8) Reply with quote

The source isn't mine... I've made a few fixes for multis and z<0.
works for items placed on other items...

example: bottle on table
If you pick the table the bottle will fall down on the ground



gravity.zip
 Description:
Gravity system for items

Download
 Filename:  gravity.zip
 Filesize:  3.03 KB
 Downloaded:  115 Time(s)


Author Message
CWO



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

PostPosted: Thu Mar 16, 2006 7:47 pm    Post subject: Reply with quote

hehe you should have the bottle shatter into little pieces if you do that too Razz Laughing

Author Message
FreeSoul



Joined: 04 Feb 2006
Posts: 90
Location: Aman

PostPosted: Thu Mar 16, 2006 10:07 pm    Post subject: Reply with quote

hehehe... yes, but if someone have pillow under the table? Smile
or if you have nitro in the bottle??
Code:
foreach item in listitemsnearlocation(bottle.x,bottle.y,bottle.z,20)
destroyitem(item);
//here make some explosion anims :)
endforeach
if (item.multi)
destroymulti(bottle.multi);
endif
destroyitem(bottle);


???Very Happy

Author Message
Matrix



Joined: 03 Feb 2006
Posts: 32
Location: Canada, Quebec

PostPosted: Fri Mar 17, 2006 10:58 am    Post subject: Reply with quote

Quote:
explosion anims Smile

Author Message
FreeSoul



Joined: 04 Feb 2006
Posts: 90
Location: Aman

PostPosted: Sat Mar 18, 2006 6:16 am    Post subject: Reply with quote

in drop.src should be:
MoveItemToLocation( item, x, y, z );

without forcelocation Smile

Post new topic   Reply to topic    PenUltima Online Forum Index -> Custom Script Releases All times are GMT - 4 Hours
Page 1 of 1

 




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