Fackelmakro

Aus Arindal Wiki

Wechseln zu: Navigation, Suche

Das Fackelmakro dient einfach dazu, eine Fackel per knopfdruck aus der Tasche zu holen und zu entzünden. Drück einfach F8, um die Fackel herauszuholen und anzuzünden. Wenn du nochmal F8 drückst, wird die Fackel wieder weggesteckt, und der vorherige Gegenstand, falls vorhanden, wieder ausgerüstet.

Dieses Makro hat mich beim Erstellen und Testen mit Mac- und Windowsclient übrigens zur Weissglut gebracht. Ich hoffe also inbrünstig, dass irgendwer was damit anfangen kann. :o)

Achja, herunterladen kann man dieses Makro natürlich auch.


// torchmacro 1.1 by Alby
// F6 equips the torch and lights it. A message constantly reminds the user that the torch is still lit,
// for the case someone forgets to unequip the torch (in bright sunlight e.g.)
// Press F6 again to extinguish torch and switch back to the previous item/place back torch into backpack.
// newest version and other macros available at the Arindal Wiki http://aw.dmod.de


f6 call torch

torch
{		
	if @my.left_item == "%trch"
		goto End
	else
		setglobal Prior_Equipment @my.left_item
		"/equip %trch\r"
	pause 1
	"/useitem left /light\r"
		pause 3
		goto cloop
	end if
	
	label cloop
	pause 5
		if @my.left_item == "%trch"
		{	
			message "***Deine Fackel brennt***"
			pause 50
			goto cloop
		else
			goto Endl	
		end if
		}
	end label	
	label End	
	"\unequip %trch \r"
	"\equip " Prior_Equipment \r
	
	label Endl
}
Persönliche Werkzeuge