Search found 129 matches

by Gnafu
Thu Jun 10, 2010 7:43 am
Forum: General Help (098)
Topic: Unable to read script
Replies: 4
Views: 5450

Re: Unable to read script

When does the error occur? If you are using start_script you must remove the ".ecl" var script := Start_Script(":debris:debris/method"); You must enable the package too In pkg.cfg Enabled (0/1) Name (string package name) [Requires (string package name) [(int version)] ...] [Repla...
by Gnafu
Fri May 28, 2010 11:39 pm
Forum: Scripting Help
Topic: About "sleep cycles"
Replies: 11
Views: 6031

Re: About "sleep cycles"

It's quite difficult to say if you have too much sleep cycles or not.
I think 6% it's ok for a tipical script.
If the script it's a critical one you should have no sleep cycles.
by Gnafu
Wed May 26, 2010 7:01 am
Forum: Scripting Help
Topic: Packet Information
Replies: 8
Views: 6121

Re: Packet Information

please explain little bit i have MobileRef and who. so i want to send Target on MobileRef to who. who mast targeting on MobileRef. You can't force someone to target anything. You can only cancel the target cursor while the user has it. Example 1: Server: "Hey, target something" User choos...
by Gnafu
Sun May 16, 2010 7:04 am
Forum: General Help (098)
Topic: POL source code, how to iterate through storage
Replies: 3
Views: 4822

Re: POL source code, how to iterate through storage

StorageAreaImp and StorageAreaIterator are friend but they are defined in storage.cpp and not declared anywhere so I copy-pasted them in my file (uoimport.cpp) adding them as friend too. friend class SAI; friend class SAIMP; StorageArea don't have a "createiterator()" method, I had to do t...
by Gnafu
Sat May 15, 2010 4:21 pm
Forum: General Help (098)
Topic: POL source code, how to iterate through storage
Replies: 3
Views: 4822

POL source code, how to iterate through storage

I spent all the day trying to iterate into the "root" items in a storage area. I don't know what to do. :( :( After getting the StorageArea reference I don't know how to use the StorageAreaIterator I'm stuck with StorageArea *area = storage.find_area("World Bank"); Please help!! ...
by Gnafu
Fri Apr 23, 2010 3:44 am
Forum: General Discussion
Topic: Full Frontal Only?
Replies: 2
Views: 2748

Re: Full Frontal Only?

In anim.mul there are frames for each side of the monster/animal, in UoFiddler (or InsideUO) you can choose which one view by moving the slider in the anim tab. Wild_Guar frames extraction: http://gnafu.altervista.org/_altervista_ht/anim4_203_0_0_0.png http://gnafu.altervista.org/_altervista_ht/anim...
by Gnafu
Tue Apr 20, 2010 5:54 am
Forum: Scripting Help
Topic: Rideables animal
Replies: 5
Views: 4470

Re: Rideables animal

The rideable horse animations like 0x388 are not blank, at least not completely. See the Horses creature animation only goes upto like frame count 65 (or so, don't have my files available and on hand) But rideable mount animations for avatars are at something like frame 115 to start. So animation 0...
by Gnafu
Tue Apr 13, 2010 1:38 pm
Forum: General Help (098)
Topic: Doors
Replies: 11
Views: 9130

Re: Doors

If you don't use door.open() and door.close() the door.isopen never changes, so you need to check the door status in another way.

Edit: In your images the door doesn't change graphic, does it? If not, the "door.graphic -= 1;" code is not working, check it.
by Gnafu
Tue Apr 13, 2010 3:09 am
Forum: Contributed Scripts & Packages
Topic: Web monitor?
Replies: 4
Views: 4807

Re: Web monitor?

Precisely because it's as simple as that, I wouldn't like to spend time coding it! :D We have all different shards, hosting services, websites etc. etc. It's impossible to write something right for everyone: some need an html page, some an xml, someone else need to control over IRC, and I've seen s...
by Gnafu
Mon Apr 12, 2010 3:58 pm
Forum: General Help (098)
Topic: Doors
Replies: 11
Views: 9130

Re: Doors

With pol 098 you can add MOVEITEM_IGNOREMOVABLE flag in MoveObjectToLocation() to avoid door.movable:=1 and door.movable:=0 steps.
by Gnafu
Mon Apr 12, 2010 3:51 pm
Forum: Contributed Scripts & Packages
Topic: Web monitor?
Replies: 4
Views: 4807

Re: Web monitor?

Yes, because it's just a two-line-of-code script :D
Look at the distro (\scripts\www) and at http://docs.polserver.com/pol099/fullfu ... ile=httpem
by Gnafu
Mon Apr 05, 2010 11:31 am
Forum: Scripting Help
Topic: Systime is wrong?
Replies: 6
Views: 4482

Re: Systime is wrong?

Are you running pol (32bit) on a 64bit host?
Maybe (maybe) the system is representing the time with too much bytes and pol can't understand it properly.
Just guessing.
by Gnafu
Mon Apr 05, 2010 11:27 am
Forum: Scripting Help
Topic: Compiling Death.src
Replies: 1
Views: 2254

Re: Compiling Death.src

Can you please post the ecompile.cfg content and, if you don't just use "ecompile", the full string you use to start compiling?
by Gnafu
Sat Feb 20, 2010 7:17 am
Forum: General Discussion
Topic: rider / mount animation
Replies: 6
Views: 7263

Re: rider / mount animation

UP!

This thread is USEFULL, I spent 2 days trying to figure out where does the client get the animation for the horses...
It would be great if uofiddler will list them too.
by Gnafu
Sat Feb 13, 2010 5:32 am
Forum: UOFiddler
Topic: AnimationEdit - Export all to VD
Replies: 0
Views: 2555

AnimationEdit - Export all to VD

Here's the code to export all the valid animations from the selected anim file. private void OnClickExportAllToVD(object sender, EventArgs e) { if (FileType != 0) { using (FolderBrowserDialog dialog = new FolderBrowserDialog()) { dialog.Description = "Select directory"; dialog.ShowNewFolde...
by Gnafu
Wed Feb 10, 2010 9:13 am
Forum: UOFiddler
Topic: MultiMap AccessViolationException
Replies: 0
Views: 2355

MultiMap AccessViolationException

I tried to load a single multimap.rle file. All tabs closed except for "Multimap" and "Skillgrp" (skillgrp cannot be remove by unchecking it in the "view" menu) In "Path settings" I set a dir with only multimap file and it correctly erase all the field except ...
by Gnafu
Mon Jan 11, 2010 4:00 am
Forum: Scripting Help
Topic: Configuration files - loading and unloading
Replies: 2
Views: 2335

Re: Configuration files - loading and unloading

Very good question.
Maybe the POL does the check you wrote when a cfg file is requested; in case it doesn't, it's a very good idea.
by Gnafu
Sat Nov 14, 2009 9:23 am
Forum: Scripting Help
Topic: Flying NPC's
Replies: 11
Views: 7011

Re: Flying NPC's

CanWalk does not move the char, simply checks IF the char can move in that direction and, if the char can it gives you the new z. If you move the char with MoveObjectToLocation() in the direction the char is facing, you will see the walking animation. I discovered that the chars have .movemode prop ...
by Gnafu
Tue Nov 10, 2009 10:33 am
Forum: General Help (098)
Topic: Currently unknown crashes occuring (Stack trace inside)
Replies: 3
Views: 3619

Re: Currently unknown crashes occuring (Stack trace inside)

22%, nice percents. Our shard is always above 75% (Quad core, 4 Gb RAM, linux, but huge maps :P ) If the script that came out twice after the crashes is a frequent script (combat scripts, usually), it isn't strange, maybe the problem isn't there. I think CrazyMan was suggesting to check the memory w...
by Gnafu
Thu Oct 29, 2009 10:16 am
Forum: Scripting Help
Topic: Flying NPC's
Replies: 11
Views: 7011

Re: Flying NPC's

Just thinking, I'm not sure if it can be done, or if it is simple to do.

Simply move the pc and use the packethook to send a dragon graphic to the client.
The client should add the moving effect with the new graphic on its own, maybe a graphic-packet refresh is needed periodically.
by Gnafu
Tue Oct 27, 2009 6:57 am
Forum: Scripting Help
Topic: Completely unloading a PIDed script?
Replies: 3
Views: 3379

Re: Completely unloading a PIDed script?

Yukiko is right, the only thing you can do to reduce server load is to unload the rarely-used-scripts from memory. If you plan to use a script 5000 times, it's better for you to keep it loaded to memory. (Performance tip: if your shard uses more than one map, and there are some of them often empty, ...
by Gnafu
Wed Sep 30, 2009 4:22 am
Forum: Old distros
Topic: buttontileart in gumps.inc
Replies: 1
Views: 3853

buttontileart in gumps.inc

I managed to add a funtion to my gump scripts (based on an old gump pkg) but It seems it is not used in the distro. // Display a "tile button" (returns a key value and can close gump) // // Syntax: x, y, release, press, quit, page, key, tilepic, hue, tile-x, tile-y // (page=0 - it returns ...
by Gnafu
Thu Sep 24, 2009 4:03 am
Forum: Current stable release (099)
Topic: Question about corechanges in 099
Replies: 2
Views: 3135

Question about corechanges in 099

I noticed an update in the corechanges (099) :

Code: Select all

	Spell casting no longer unhides. Be sure to update your scripts to unhide. 
Why this change?
Will be there an option like "SpellsUnhide 0/1" in config files?

Thank you.
by Gnafu
Mon Sep 21, 2009 12:19 am
Forum: Scripting Help
Topic: Is it possible to centralize accounts?
Replies: 5
Views: 5938

Re: Is it possible to centralize accounts?

Maybe in the distro there is a www package to list accounts, pcs, storages... (don't remember exactly)
Actually my shard's site talk with the pol by the http scripts to get online status, account infos and other management functions.
by Gnafu
Thu Aug 20, 2009 1:22 am
Forum: General Discussion
Topic: Racalac's Escript guide for pol098 fix
Replies: 1
Views: 1839

Racalac's Escript guide for pol098 fix

Someone must change var a := dictionary; // empty dictionary var b := struct{"height", "width"}; // dictionary with indexes that have no values. var c := struct{"height"->5, "width"->100}; // dictionary with indexes and values. to var a := dictionary; // empty...