Search found 118 matches

by Lagoon
Mon Dec 04, 2006 5:18 am
Forum: General Discussion
Topic: References and Values; Objects, Values and ByVal/ByRef
Replies: 4
Views: 5375

Recently I'm prefering the use of struct too ^_^
by Lagoon
Mon Dec 04, 2006 1:55 am
Forum: General Discussion
Topic: References and Values; Objects, Values and ByVal/ByRef
Replies: 4
Views: 5375

I'm adding a case where it's very good to use byref. Spometimes you need a function which returns more than a value. There are two ways to do this:

1) returning an array, a struct (I prefere to use a struct when returned variables have different types, but it's not mandatory) or (in some particular ...
by Lagoon
Wed Nov 29, 2006 4:26 am
Forum: Scripting Help
Topic: Summon in front of me instead of summon in my tile
Replies: 5
Views: 5158

Yes, that's what I'm using to find the coords ^_^
Thanx :)
by Lagoon
Wed Nov 29, 2006 1:31 am
Forum: Scripting Help
Topic: Summon in front of me instead of summon in my tile
Replies: 5
Views: 5158

Yes, why not? :)
Targetable would be nice... and needs the same checks. I think checking the return value of GetWorldHeight() not to be an error and checking LOS should be enough
by Lagoon
Tue Nov 28, 2006 4:09 pm
Forum: Scripting Help
Topic: Summon in front of me instead of summon in my tile
Replies: 5
Views: 5158

Summon in front of me instead of summon in my tile

I'd like to have a summon spell which summons the npc in first tile in front of the character. Of course this requires some checks, which summoning in the caster tile doesn't require. I'd like to have suggestions about which checks are necessary to be sure the tile is ok for summoning. I think I ...
by Lagoon
Tue Nov 28, 2006 4:02 pm
Forum: Scripting Help
Topic: Performance of ReadConfigFile()
Replies: 4
Views: 4675

Thank you all, you gave me interesting points of view to better evaluate the problem ^_^
by Lagoon
Sat Nov 25, 2006 7:20 am
Forum: Scripting Help
Topic: Performance of ReadConfigFile()
Replies: 4
Views: 4675

Performance of ReadConfigFile()

I'd like to have some hint from experienced scripters about the performance of ReadConfgFile(). In particular, I'm talking about the performance when the config file is already in the core's cache, I don't care about first load performance.
I'm asking because I had the habit to avoid the use of ...
by Lagoon
Sun Nov 19, 2006 4:12 am
Forum: Feature Request Archive
Topic: New member: who.minions
Replies: 6
Views: 5567

I agree with marilla, no need for such a hardcoded method, cprops and scripts con do it quite well and hopefully scripted mobiles methods will do it even better
by Lagoon
Tue Nov 14, 2006 2:09 pm
Forum: Feature Request Archive
Topic: use also 0 as index in arrays?
Replies: 9
Views: 10058

This time I have to agree with Austin
Do you ever consider the consequences of such changes?
Most pol scripters would have to update thousands of scripts (yes, thousands, not even hundreds) to take into consideration arrays starting with 0 index and this... to have which benefit? This is a proposal ...
by Lagoon
Sun Nov 12, 2006 5:23 am
Forum: Feature Request Archive
Topic: define regions by script
Replies: 5
Views: 5757

Ok, that's what I was planning to do in case no core support could be provided. I'll try this and do some benchmarks...
by Lagoon
Sat Nov 11, 2006 5:19 am
Forum: Feature Request Archive
Topic: define regions by script
Replies: 5
Views: 5757

I suspect you didn't read the whole post :?
I'm talking about dynamic script defined regions. I know there are already regions, but the only way to have dynamic reagions with the actual system is to define hundreds of static regions and check cpropc which enable or disable them... which is pure ...
by Lagoon
Fri Nov 10, 2006 6:18 am
Forum: Feature Request Archive
Topic: define regions by script
Replies: 5
Views: 5757

define regions by script

What about the ability to define by script regions (with size multiple of blocks, like the config defined areas) with their enter scripts and exit scripts?
Do you like the idea? Devs, would it be too heavy in performance? Of course it would be an optional thing, no need to use them in one doesn't ...
by Lagoon
Thu Nov 09, 2006 5:20 pm
Forum: Feature Request Archive
Topic: Fastwalk system
Replies: 53
Views: 146422

I like the idea, but only if optional as suggested
by Lagoon
Fri Nov 03, 2006 6:39 am
Forum: Contributed Scripts & Packages
Topic: Queues Package: Stop Using set_critical() blocks!
Replies: 1
Views: 3322

A very nice tutorial, personally I use this system to avoid long critical blocks, which would be otherwise required by some of the gameplay systems I need for my server. I'm talking about something like 400 lines of code which alter, with a complex logic, a data altered by other scripts too. Doing ...
by Lagoon
Fri Nov 03, 2006 4:43 am
Forum: Feature Request Archive
Topic: Packets when changing mobile props[POL-29-10-2006 and older]
Replies: 8
Views: 7679

I quote you, this behaviour should be changed, I often change mobs color too and that statbar and paperdoll closing is annoying
by Lagoon
Tue Oct 24, 2006 4:59 am
Forum: Feature Request Archive
Topic: character.forcelogin()
Replies: 6
Views: 5166

Any hint? :roll:
by Lagoon
Thu Oct 19, 2006 10:02 am
Forum: Scripting Help
Topic: Change corpse graphic
Replies: 29
Views: 21563

Thank you very much, an useful guide ^_^
I plan to code such a system soon...
by Lagoon
Wed Oct 18, 2006 3:16 am
Forum: Feature Request Archive
Topic: character.forcelogin()
Replies: 6
Views: 5166

Are you sure it works in pol097 latest beta? I tryed to move an offline character... he moved, but didn't appear in game.


program textcmd_teleoff(pc)
var serial := 0xd0;
var pc_2 := SystemFindObjectBySerial(serial, SYSFIND_SEARCH_OFFLINE_MOBILES);
if(pc_2)
MoveObjectToLocation(pc_2, pc_2.x ...
by Lagoon
Wed Oct 18, 2006 2:41 am
Forum: Scripting Help
Topic: Change corpse graphic
Replies: 29
Views: 21563

I'm curious what'd they think about my server which has no place where to put an item so that it can't be stolen :|
by Lagoon
Wed Oct 18, 2006 1:50 am
Forum: Scripting Help
Topic: Change corpse graphic
Replies: 29
Views: 21563

I mean character deleted. I know it's far from easy to find players willing to play with such setting ^_^
by Lagoon
Tue Oct 17, 2006 12:59 am
Forum: Scripting Help
Topic: Change corpse graphic
Replies: 29
Views: 21563

Not exactly, I have death too
hp <1 -> death
stamina <1 -> unconscious
I agree dying often ruins the mood, in fact, when my shard will have a decent players base, I'll probably ask them if they agree in the introduction of permanent death :P
by Lagoon
Sat Oct 14, 2006 2:50 pm
Forum: Scripting Help
Topic: Change corpse graphic
Replies: 29
Views: 21563

what I'm trying to do is even worse, I want my Polymorph spell (which can be directed toward any target mobile in range) to work also on mobiles who fainted (which I simulate with death), so I have to change the graphic and color of corpses ^_^
by Lagoon
Sat Oct 14, 2006 2:46 pm
Forum: Feature Request Archive
Topic: Adding a OnlineStatus flag to EnumerateOnlineCharacters
Replies: 10
Views: 7078

No one can predict who will use a feature until it's there to use.

Following this logic the devs should code anything suggested in this boards... And vital fixes and much more needed improvements would never be coded. I'm sorry, but someone (not me, I'm just giving my opinion) has to pretend he ...
by Lagoon
Sat Oct 14, 2006 1:10 pm
Forum: Feature Request Archive
Topic: KillMobile() with NO_CORPSE argument
Replies: 4
Views: 4544

I like this one, but isn't better a flag in ApplyRawDamage and in RawDamage, default to corpse creation?
by Lagoon
Sat Oct 14, 2006 1:06 pm
Forum: Scripting Help
Topic: Change corpse graphic
Replies: 29
Views: 21563

Ok, thanx, I'll try to live with the trick of replacing the corpse :P