1
2
2
$this= $id=
1
2
2
$id=buildat $this addstate "object", $id,"eternal fire";
Hey do anybody know how to rotate the the unit for riding?
edited 1×, last 26.05.09 07:59:23 pm
$this= $id=
$id=buildat $this addstate "object", $id,"eternal fire";
page=name title=text trade=start sell=id of item,menge buy=id of item,menge trade=end button=name,text
page=sell title=Trade with pirate # Wine -> Gold trade=start sell=39,1 buy=5,1 trade=end # Pearl -> Gold trade=start sell=108,1 buy=5,1 trade=end # Goldnugget -> Gold trade=start sell=4,1 buy=5,5 trade=end # small Crystal -> Gold trade=start sell=2,1 buy=5,5 trade=end # Crystal -> Gold trade=start sell=3,1 buy=5,8 trade=end button=buy,I want to buy something. button=action:close,Bye.
unitpath UnitId,infoId,infoId,...; (255 infos max)
### Firestone id=22 name=Flint group=tool icon=gfx\firestone.bmp model=gfx\firestone.b3d scale=0.5 behaviour=blade mat=stone weight=500 info=striking two flint stones together provides the sparks needed to start a fire damage=5 healthchange=0 script=start 	//Set on Fire 	on:impact { 		$tmp=impact_class(); 		$tmp2=impact_id(); 		//Only "torch" and "fireplace" 		if (compare_behaviour($tmp,$tmp2,"torch")+compare_behaviour($tmp,$tmp2,"fireplace")>0){ 			//Works only with at least 2 firestones! 			if (playergotitem(22)>1){ 				if (gotstate($tmp,$tmp2,"fire")+gotstate($tmp,$tmp2,"eternalfire")>0){ 					msg "Already burning"; 				}else{ 					if (addstate($tmp,$tmp2,"fire")==1){ 						statevalue $tmp,$tmp2,"fire",0; 						msg "Fire started",4; 					}else{ 						msg "It's too wet!",3; 					} 				} 			}else{ 				msg "I need at least 2",3; 				msg "flints to start a fire!",3; 				speech "negative"; 			} 		} 		freevar $tmp; 		freevar $tmp2; 	} script=end
### Firestone id=22 name=Flint group=tool icon=gfx\firestone.bmp model=gfx\firestone.b3d scale=0.5 behaviour=blade mat=stone weight=500 info=striking two flint stones together provides the sparks needed to start a fire damage=5 healthchange=0 script=start //Set on Fire on:impact { $tmp=impact_class(); $tmp2=impact_id(); //Only "torch" and "fireplace" if (compare_behaviour($tmp,$tmp2,"torch")+compare_behaviour($tmp,$tmp2,"fireplace")>0){ //Works only with at least 2 firestones! if (playergotitem(22)>1){ if (gotstate($tmp,$tmp2,"fire")+gotstate($tmp,$tmp2,"eternalfire")>0){ msg "Already burning"; }else{ if(addstate($tmp,$tmp2,"[b]eternalfire[/b]")==1){ statevalue $tmp,$tmp2,"[b]eternalfire[/b]",0; msg "Fire started",4; }else{ msg "It's too wet!",3; } } }else{ msg "I need at least 2",3; msg "flints to start a fire!",3; speech "negative"; } } freevar $tmp; freevar $tmp2; } script=end