Search found 19 matches

by GEEK
Wed Aug 30, 2006 11:41 am
Forum: Scripting Help
Topic: putting item in random position in metallic chest
Replies: 2
Views: 3395

I have tryed and

CreateItemInContainer(container, objname, quantity);

or

CreateItemInContainer(container, objname, quantity);
+
MoveItemToContainer(item, container);

put all items in the same position..... one over one.
by GEEK
Wed Aug 30, 2006 11:00 am
Forum: General Help (096)
Topic: Strange problem with Npc & Pc
Replies: 4
Views: 4745

The strange thing is that when someone has full stamina can pass npc and if has max stamina - 1 can't...
by GEEK
Wed Aug 30, 2006 8:19 am
Forum: Scripting Help
Topic: putting item in random position in metallic chest
Replies: 2
Views: 3395

putting item in random position in metallic chest

I have tryed to create an intem into a chest un random positions, but all attempts are failed:

item.x := RandomInt(150) + 20 + 1;
item.y := RandomInt(130) + 20 + 1;
fail


MoveItemToContainer(item, container, RandomInt(150) + 20 + 1, RandomInt(120) + 20 + 1);

fail

all fails.
by GEEK
Wed Aug 30, 2006 6:22 am
Forum: Feature Request Archive
Topic: CreateItemInContainer(obj, container, x := -1, y := -1 );
Replies: 0
Views: 2772

CreateItemInContainer(obj, container, x := -1, y := -1 );

Add x and y parameter to createitemincontainer ?
by GEEK
Wed Aug 30, 2006 5:21 am
Forum: General Help (096)
Topic: Waah! [nome pg] is dead, but healing damage?
Replies: 1
Views: 2876

Waah! [nome pg] is dead, but healing damage?

What say this message?
A pg died cure itself?
by GEEK
Tue Aug 29, 2006 2:26 pm
Forum: Feature Request Archive
Topic: item.isA(POLCLASS_*)
Replies: 2
Views: 3792

It is not a very fast code to do a loop to scan all possibile POLCLASS_*

const POLCLASS_UOBJECT := 1;
const POLCLASS_ITEM := 2;
const POLCLASS_MOBILE := 3;
const POLCLASS_NPC := 4;
const POLCLASS_LOCKABLE := 5;
const POLCLASS_CONTAINER := 6;
const POLCLASS_CORPSE := 7;
const POLCLASS_DOOR := 8 ...
by GEEK
Tue Aug 29, 2006 4:12 am
Forum: Feature Request Archive
Topic: item.isA(POLCLASS_*)
Replies: 2
Views: 3792

item.isA(POLCLASS_*)

A command like
GetItemPolclass(item) ?
by GEEK
Mon Aug 28, 2006 10:26 am
Forum: Feature Request Archive
Topic: CreateItemInBackpack( of_character, objtype, amount := 1)
Replies: 3
Views: 4914

Beh... I have create item to earth and moved after to backpack but thanks for answers :-)
by GEEK
Mon Aug 28, 2006 7:09 am
Forum: Feature Request Archive
Topic: CreateItemInBackpack( of_character, objtype, amount := 1)
Replies: 3
Views: 4914

CreateItemInBackpack( of_character, objtype, amount := 1)

CreateItemInBackpack( of_character, objtype, amount := 1 );

a new parameter like:
CreateItemInBackpack( of_character, objtype, amount := 1, NO_NOT_USE_STAK_IF_FOUND);

to order command to create new item and not to add ti prevous stack....
by GEEK
Thu Aug 24, 2006 12:39 pm
Forum: General Help (096)
Topic: Strange msg in console
Replies: 6
Views: 7236

I use superior search of Neuropower (versione 1.0, not 2.0) and it it the best to search fast inside entire pol scripts.
by GEEK
Thu Aug 24, 2006 12:31 pm
Forum: General Help (096)
Topic: Bad allocation....
Replies: 4
Views: 4818

mmm also I had this problem. I had all available problems.
by GEEK
Thu Aug 24, 2006 12:28 pm
Forum: General Help (096)
Topic: 270 Connections
Replies: 12
Views: 11036

Also I had this problem. It was not clear why. Now is ok anymore.
by GEEK
Tue Aug 22, 2006 1:26 am
Forum: Scripting Help
Topic: SetAttributeBaseValue()
Replies: 3
Views: 3521

I am rewriting all my scripts not using functions in attributes.inc like
GetStamina() or GetHp()

I don't know if it is the case also to substituite also SetBaseIntelligence() for exampe.
The code is:

function SetBaseIntelligence(who, intelligence)
intelligence := Cint(intelligence * 10);
if ...
by GEEK
Mon Aug 21, 2006 1:01 pm
Forum: Scripting Help
Topic: death.src
Replies: 1
Views: 2592

death.src

On NPC death pol execute death.src
death.src report the corpse in "program death(corpse)".
In corpse I have all cprops was on npc before die.
But if npc had member npc.master, corpse also ha corpse.master?
by GEEK
Mon Aug 21, 2006 6:55 am
Forum: POL Tools
Topic: Statics0.mul -> items.txt ?
Replies: 11
Views: 11415

I don't' know how to use wordforge for pol to convert from statics to items.txt... for all the world.
by GEEK
Mon Aug 21, 2006 3:19 am
Forum: Scripting Help
Topic: SetAttributeBaseValue()
Replies: 3
Views: 3521

SetAttributeBaseValue()

In attributes.inc when the function SetAttributeBaseValue() is used the code check before value:


if(intelligence < 10)
intelligence := 10;
elseif(intelligence > CORE_SETTINGS_MAX_ATTRIBUTE)
intelligence := CORE_SETTINGS_MAX_ATTRIBUTE;
endif
var ret := SetAttributeBaseValue(who, ATTRIBUTEID ...
by GEEK
Sun Aug 06, 2006 3:29 am
Forum: Scripting Help
Topic: source_account.move_char(string destacctname, integer slot)
Replies: 3
Views: 4295

Thanks :-)
by GEEK
Sat Aug 05, 2006 1:40 pm
Forum: Scripting Help
Topic: source_account.move_char(string destacctname, integer slot)
Replies: 3
Views: 4295

source_account.move_char(string destacctname, integer slot)

I have source and destination acocunt, destination character number.... but source character id (1-5) where is?
How can I use this command?
by GEEK
Sat Aug 05, 2006 9:22 am
Forum: Feature Request Archive
Topic: account.createcharacter(Struct { })
Replies: 5
Views: 6186

account.createcharacter(Struct { })

a method for acocunt to create a blank character by script.