Search found 34 matches

by itec
Fri Mar 27, 2009 10:26 am
Forum: General Help (098)
Topic: POL 098 Win32, Linux and FreeBSD RC1 - Beer and Waffles
Replies: 8
Views: 2005

Re: POL 098 Win32, Linux and FreeBSD RC1 - Beer and Waffles

I tried it out with the new core and it's still there. I also found the reason. Sending non-string data to trim() is causing it.

for example:
Trim(0) will crash the core
Trim(error) causes "bad allocation"
by itec
Thu Mar 26, 2009 11:33 am
Forum: General Help (098)
Topic: POL 098 Win32, Linux and FreeBSD RC1 - Beer and Waffles
Replies: 8
Views: 2005

Re: POL 098 Win32, Linux and FreeBSD RC1 - Beer and Waffles

Whoa, great job. And so many new features!

At first try the core seems to crash quiet a lot. I'll research further and bugreport it soon but seems like it's Trim() in one of the packethooks (speech hook to be exact) that is causing it.
by itec
Tue Mar 17, 2009 10:32 pm
Forum: Bug Reports Archive (098)
Topic: [Fixed] SendCharacterRaceChanger() skin color
Replies: 2
Views: 1506

[Fixed] SendCharacterRaceChanger() skin color

As encouraged by MuadDib in another thread, here's another massive bug.

When SendCharacterRaceChanger(who) sets the skin color, it's missing the first bit that is used to make the underwear uncolored. Add 0x8000 to the color value and it should be set as it should.
by itec
Mon Mar 16, 2009 3:08 pm
Forum: Bug Reports Archive (098)
Topic: Crash: Using local variable in dowhile
Replies: 0
Views: 1269

Crash: Using local variable in dowhile

Just discovered this one, using it causes core to crash. I'm guessing compiler should catch it.

Code: Select all

	do
		var some := 1;
	dowhile(some);
by itec
Sat Feb 21, 2009 7:04 am
Forum: General Discussion
Topic: New Pol98 Docs..
Replies: 9
Views: 2567

Re: New Pol98 Docs..

Nice job on this one, you also fixed the class hierarchy tree!

Just a small suggestion, how about adding quick link to packet guide?
by itec
Sat Feb 21, 2009 6:47 am
Forum: Bug Reports Archive (098)
Topic: [Fixed] Spellbook opens at the wrong page
Replies: 2
Views: 1444

[Fixed] Spellbook opens at the wrong page

This is a small weirdness I encountered. When I change the location of spellbook and open it, the book opens at the first page. Now if I close the book and open it the second time, it opens where the bookmark is (last used spell). This happens only when the book is in hand, when the spellbook is in ...
by itec
Sat Feb 21, 2009 5:55 am
Forum: Feature Request Archive
Topic: Restart()
Replies: 4
Views: 1814

Re: Restart()

I would like to point out this suggestion http://forums.polserver.com/viewtopic.php?f=4&t=2165 It's probably much easier to engineer this than the suggested above. Only thing needed is to use batch errorlevels and the batch handles the restart or shutdown. And you could even control all kinds of oth...
by itec
Wed Feb 18, 2009 4:12 pm
Forum: Feature Request Archive
Topic: Setting item name on creation
Replies: 1
Views: 1269

Setting item name on creation

As I'm encouraged in the development's current direction, I bring this topic up as there are currently no right way to set name for custom items. I think this is one of the more essential missing features in Pol. Setting item name on creation: var desc := GetItemDescriptor("bench"); desc.color := 25...
by itec
Mon Jun 23, 2008 3:23 pm
Forum: Bug Reports (097)
Topic: character.clientversion
Replies: 2
Views: 1969

Thanks for reporting this. I was having hard time figuring out the reason why some of the clientversion info I stored in cprops, were messed up at the end with the next cprop. Ie. content of my account's "Client"-cprop: "5.0.1jCPropLastIp a1:a2:S13:...."
by itec
Sat May 24, 2008 8:47 am
Forum: Feature Request Archive
Topic: Shutdown(return value)
Replies: 0
Views: 1232

Shutdown(return value)

Core support for rebooting would be nice, but that would probably be quite a tough task to achieve. Best way to be sure nothing is left hanging, is to kill the whole server process. And thus, if shutdown would take optional parameter (1 byte integer) that is returned to OS, this could be achieved. W...
by itec
Wed May 07, 2008 4:57 pm
Forum: POL Tools
Topic: Some questions about editors
Replies: 2
Views: 3672

1) http://forums.polserver.com/ftopic1924.php 2) Multis are set of items (defined at client side) that can be created from server side. Player bought houses and boats are multis. And the statics, all unmovable items in world map (towns, bridges) are defined in statics. 3) The part you want to destro...
by itec
Wed Apr 30, 2008 11:17 am
Forum: General Help (097)
Topic: Coordinates
Replies: 0
Views: 1078

Coordinates

Here's a topic that I think would need some improvement. Current habit is to use coordinates in four different variables. Instead of that, I suggest everyone to start using coordinates in a struct: {x, y, z, realm} It's more easy to use (takes less time writing), simpler, cleaner. In the end, it wou...
by itec
Tue Apr 08, 2008 10:38 pm
Forum: Feature Request Archive
Topic: ECompiler: for loop variable declaration (minor issue)
Replies: 12
Views: 2374

The current logic for this is probably derived from C, where it works this way too. More then that, I'd like to see support for this: for i := 5 to 1 Iterating backwards with this shorter version. ... seriously? of all the things we have to fix, improve, and add.... And that's why we shouldn't talk ...
by itec
Thu Apr 03, 2008 10:18 am
Forum: Solved Bugs (097)
Topic: [fixed] OnRemoveScript - item_amount parameter
Replies: 1
Views: 1270

[fixed] OnRemoveScript - item_amount parameter

program onremovescript(character, container, item, item_amount, movetype) Item_amount parameter is missing here, instead it sends movetype in place of item_amount. Since the script runs before the item is actually dragged, item.amount would return the original stack amount, not the amount that is b...
by itec
Tue Mar 04, 2008 1:37 am
Forum: Contributed Scripts & Packages
Topic: Share-a-function thread
Replies: 1
Views: 1359

Share-a-function thread

To encourage everyone to give something back to the community, share a small (or big) helper function you are frequently using in your scripting. Maybe some of thease would fit in the distro as well. To start off, here's two of our item functions. /* Reaches Checks if player reaches the wanted item....
by itec
Tue Feb 19, 2008 3:50 am
Forum: General Help (097)
Topic: Character members: cursor, gump and prompt
Replies: 2
Views: 1148

Thanks for the info. I hope we get the new core soon, these members would come handy.
by itec
Mon Feb 18, 2008 10:50 pm
Forum: General Help (097)
Topic: Character members: cursor, gump and prompt
Replies: 2
Views: 1148

Character members: cursor, gump and prompt

In pol refs, you can find these members listed for character: cursor Boolean True if the client has an active target cursor r/o gump Boolean True if the client has any active gumps from SendGump r/o prompt Boolean True if the client has any active String or Unicode prompt windows r/o Still none of t...
by itec
Sat Feb 16, 2008 2:25 pm
Forum: Feature Request Archive
Topic: Mobile MethodScripts (Both NPC and PC)
Replies: 2
Views: 1683

Since it's almost two years ago this was suggested and it is still a great idea, did this feature get any closer to being made? It really should! It's that good.
by itec
Fri Nov 30, 2007 6:12 pm
Forum: Scripting Help
Topic: frozen tag
Replies: 2
Views: 1123

Use mob.paralyzed instead of frozen and it wont show. I don't think there's any other difference.
by itec
Fri Nov 30, 2007 6:05 pm
Forum: POL Tools
Topic: How to "freeze" dynamics into statics
Replies: 2
Views: 4007

You can use:

a) RunUO, it has built-in feature to freeze items.

b) WorldForge for Pol. It's more work to use, but you get to use Pol for house building. http://forums.polserver.com/ftopic284.php

c) CentrED, full-fledged editor for statics. http://www.aksdb.de/CentrED/
by itec
Thu Nov 01, 2007 5:33 am
Forum: Scripting Help
Topic: Spec Ranger/ Hitscript
Replies: 8
Views: 1432

You should debug the code, starting from very basics. Try replacing this: if( weapon.attribute == "ARCHERY" ) var ranger := GetObjProperty( attacker, CLASSEID_RANGER); var skill := GetEffectiveSkill( attacker, SKILLID_ARCHERY ); var base := CInt( basedamage * (attacker.dexterity + 0)/(attacker.stren...
by itec
Wed Oct 31, 2007 6:02 am
Forum: Scripting Help
Topic: ReadConfigFile or Datafile.
Replies: 5
Views: 1181

The example I described above let's you create linear one quest after another progress in one cprop. If you want to have non-linear approach to quests, you should use dictionaries = player can complete the quests in any order they want. The cprop is saved to player, so you don't have to save the cha...
by itec
Wed Oct 31, 2007 4:46 am
Forum: Scripting Help
Topic: ReadConfigFile or Datafile.
Replies: 5
Views: 1181

You could use datafiles, but since they need little more hassle to work with, I suggest using cprops if you lack the experience. You can only read and write config files, deleting is not allowed so it's not fit for this kind of job. And ReadFile() is only good for printing text files to player. A si...
by itec
Tue Oct 30, 2007 6:46 pm
Forum: Scripting Help
Topic: Spec Ranger/ Hitscript
Replies: 8
Views: 1432

I could be wrong, but the skillIDs are removed in POL95, instead of:

if( weapon.skillid == SKILLID_ARCHERY )

you should use:

if (weapon.attribute == "Archery")
by itec
Tue Oct 30, 2007 6:40 pm
Forum: Scripting Help
Topic: Difference between XObjProperty() and .XProp()
Replies: 5
Views: 1350

Who uses this anywhere apart from like data files (guilds/accs) anyway? Me for once, it's faster to write obj.GetProp("Prop"), then GetObjProperty(obj, "Prop"), and the method way feels more like the cprop is part of the object. If I had to guess, I'd say it's another one of those forgotten feature...