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
item.usescript

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

Author Message
mr bubbles



Joined: 18 Jan 2007
Posts: 91

PostPosted: Fri Apr 27, 2007 10:42 pm    Post subject: item.usescript Reply with quote

This doesn't seem to be working on 90% of the objects ive tried it on.

I've had a good look at itemdesc for items to see if there are any major differences in the items that DO report a usescript and those that DON"T.

Cant find anything though, its not particular to type (Container, item, weapon, etc) or how the Script is declared (ie, Script :pkgname:script).

Edit:

oh, read documentation... seems a bit weird only making it report the usescript for items that have had it set via script. Can i ask why this is?

Author Message
FreeSoul



Joined: 04 Feb 2006
Posts: 90
Location: Aman

PostPosted: Sat Apr 28, 2007 4:09 am    Post subject: Reply with quote

use just
script
not usescript
Smile

Author Message
mr bubbles



Joined: 18 Jan 2007
Posts: 91

PostPosted: Sat Apr 28, 2007 4:30 am    Post subject: Reply with quote

script is for the ai script on mobiles, usescript is the (doubleclick) script on items.

Author Message
Pierce



Joined: 02 Feb 2006
Posts: 256

PostPosted: Sat Apr 28, 2007 6:55 am    Post subject: Reply with quote

You use the .usescript member to override an existing script or to set a script on an item which normally doesn't have one.

If you search an example you can take a look at the tinker traps or the secure containers which are normally in every script base.
If you place a trap on a container you set the usescript of the container to the script which handles what has to be done if someone double clicks that container. If the trap explodes or someone removes the trap you set the container.usescript := ""; and the container is handled normally again.

So that is not a bug, it's a feature Very Happy

Author Message
Yukiko



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

PostPosted: Wed May 02, 2007 12:57 am    Post subject: Reply with quote

Mr. Bubbles,

I am not sure exactly what you are referencing here. Are you referring to the entry in an itemdesc.cfg file for the 'use script'?

Author Message
Tritan



Joined: 04 Feb 2006
Posts: 136
Location: Illinois, USA

PostPosted: Wed May 02, 2007 7:56 am    Post subject: Reply with quote

mr bubbles wrote:
script is for the ai script on mobiles, usescript is the (doubleclick) script on items.


In the itemdesc.cfg file you define the script, not the use script, for what script will run when double clicked. .usescript <scriptname> is a text command that will override the script entry in the configuration file for the targetted item only.

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