Page 92 of 396

Re: Ask a simple question, get a simple answer

Posted: Sat Sep 12, 2015 12:46 pm
by The cube
Is it possible to add markers to the map by a script?
I found this from the scripting reference:
MapMarkerComponent (Component)
Adds a marker with text on the automap.

MapMarkerComponent:getText()
MapMarkerComponent:setText(string)
But it doesn't explain anything about how it is used, and my quick search from the forums offered no help.

Alternatively, is it possible to make your own version of the cursed compass?
The item definition for it had nothing special in it.
Never mind. You just have to place a map marker object.

Re: Ask a simple question, get a simple answer

Posted: Sun Sep 13, 2015 12:29 am
by Isaac
Modraneth wrote:its only that last thing and i finish my mod... this is making me crazy..
This is a basic overview of the CD command in the DOS prompt.
http://www.c3scripts.com/tutorials/msdos/cd.html

It should help with the esoteric usage. 8-)

If it doesn't help enough, youtube and google have many tutorials for basic DOS command usage.
You'll have to get the hang of it if you intend to use ffmpeg. It's a command-line tool.

Re: Ask a simple question, get a simple answer

Posted: Mon Sep 14, 2015 12:43 am
by Drakkan
hi guys, please help. I spawn some item easily like this -
-- spawn("scroll_something",4,11,21,2,0,"i_need_destruct")

and now I need to destroy this item. I am using -- i_need_destruct:destroy()
If it is somewhere on the map its ok, it dissapears. However if the item is in any champion inventory (or container) game crash down (no error). How can I destroy such a spawned item no matter where it is ? Do i need somehow iterrate champion inventories first ?

Re: Ask a simple question, get a simple answer

Posted: Mon Sep 14, 2015 2:09 am
by Isaac
Drakkan wrote:Do i need somehow iterrate champion inventories first ?
I believe so, yes.

Re: Ask a simple question, get a simple answer

Posted: Fri Sep 18, 2015 3:36 pm
by Modraneth
hi
someone can tell me what the program we need to create a new monster?
i want to give a shoot, maybe i can create something good.
and if u have videos i want to watch them.

Re: Ask a simple question, get a simple answer

Posted: Wed Sep 23, 2015 12:37 am
by AndakRainor
Does the bonus damage of skills similar to "heavy weapons" apply on the base damage of the weapon only, or also on the added damage from strength or dexterity ?

Re: Ask a simple question, get a simple answer

Posted: Wed Sep 23, 2015 3:15 pm
by Drakkan
Modraneth wrote:hi
someone can tell me what the program we need to create a new monster?
i want to give a shoot, maybe i can create something good.
and if u have videos i want to watch them.
viewtopic.php?f=22&t=7055
part 12 and 13 you want to check definitely

Re: Ask a simple question, get a simple answer

Posted: Wed Sep 23, 2015 6:23 pm
by minmay
AndakRainor wrote:Does the bonus damage of skills similar to "heavy weapons" apply on the base damage of the weapon only, or also on the added damage from strength or dexterity ?
base, same for the dual wielding penalty (which is 25% of the reason light weapons are so much better than heavy weapons in this game, the other 75% being backstabbing)

Re: Ask a simple question, get a simple answer

Posted: Wed Sep 23, 2015 6:40 pm
by Zo Kath Ra
Are there any websites where you can get free 3d models of fantasy weapons?
I realize that they'd have to be converted into LoG2's format, and that I'd have to make 2d gui sprites by taking screenshots of the weapons and editing them until they look good.

Re: Ask a simple question, get a simple answer

Posted: Fri Oct 02, 2015 3:49 am
by Eleven Warrior
I know I can add these two hooks to a item(s) when thrown.

1 -

Code: Select all

	onThrowAttackHitMonster = function(self, monster)
		item_counter.counter:decrement()
		--monster:setCondition("sleep", 20)
			print("yes")
    end,
2 -

Code: Select all

	class = "UsableItem",
		onUseItem = function(self, champion)
				item_counter.counter:decrement()
end,

Is there a way to add a hook to the item(s) when the player throws the Item at walls, door, object etc.. and the item is destroyed when it hits these objects, then the item.counter.counter:decrements ??