What's new

[8.1] Si?a ataku i naprawa AOLa

Status
Not open for further replies.

Folari

User
Joined
Apr 12, 2008
Messages
38
Reaction score
1
Czy moglby mi ktos powiedziec jak naprawic sile ataku? Tzn jak ja zmienic, poniewaz na 10 discie gosc bije z power bolta po 200... nie wiem czemu.

Druga sprawa to aol. Nie wiem jak go naprawic;/ w items.xml jest takie cos
<item id="2173" article="an" name="amulet of loss">
<attribute key="weight" value="420"/>
<attribute key="slotType" value="necklace"/>
jesli cos trzeba zmienic napiszcie co plz

Ups przepraszam nie ten temat. Prosze o przeniesienie do wlasciwego tematu
 

luniobo1

User
Joined
Apr 7, 2008
Messages
12
Reaction score
0
Wejdz w silnik i edutuj notatnikiem plik items.xml odnajdz item power bolt i w linijce
<attribute key="attack" value="40"/> 40 to si?a ataku zwi?krzaj?c ta liczbe b?dziesz mocniej wali? i tyle potem tylko zapisujesz i gites :)
 

Black Blade

Active User
Joined
Jun 6, 2008
Messages
113
Reaction score
5
Z boltem nic nie da. Po prostu masz co? z serverem. Co do aola musisz wej?? w data/movements/scripts znajd? aol.lua.
Otw?rz ten plik usu? zawarto?? i wklej to:
Code:
function onEquip(cid, item, pos)

	if getWorldType() < 3 then
	    	if getPlayerSkull(cid) < 3 then
	    		pos = getPlayerPosition(cid)	
	    		doSendMagicEffect(pos, 11)			
	    		setPlayerStorageValue(cid,217325,1)
	    	else
	    		doPlayerSendTextMessage(cid, 21, "It will be not work until You have Red Skull.")		
	    	end	
	else
	    	doPlayerSendTextMessage(cid, 21, "Aol not working in PVP-ENF servers.")			
	end
end




function onDeEquip(cid, item, pos)

	if getPlayerStorageValue(cid,217325) == 1 then	
	    setPlayerStorageValue(cid,217325,0)
	end	

end
I aol dzia?a:)
 

Black Blade

Active User
Joined
Jun 6, 2008
Messages
113
Reaction score
5
Z boltem nic nie da. Po prostu masz co? z serverem. Co do aola musisz wej?? w data/movements/scripts znajd? aol.lua.
Otw?rz ten plik usu? zawarto?? i wklej to:
Code:
function onEquip(cid, item, pos)

	if getWorldType() < 3 then
	    	if getPlayerSkull(cid) < 3 then
	    		pos = getPlayerPosition(cid)	
	    		doSendMagicEffect(pos, 11)			
	    		setPlayerStorageValue(cid,217325,1)
	    	else
	    		doPlayerSendTextMessage(cid, 21, "It will be not work until You have Red Skull.")		
	    	end	
	else
	    	doPlayerSendTextMessage(cid, 21, "Aol not working in PVP-ENF servers.")			
	end
end




function onDeEquip(cid, item, pos)

	if getPlayerStorageValue(cid,217325) == 1 then	
	    setPlayerStorageValue(cid,217325,0)
	end	

end

Teraz idziemy do data/movements i wchodzimy do movements.xml i wklejamy to:

Code:
--------- AOL ------

<movevent event="Equip" itemid="2173" slot="necklace" script="aol.lua" />
<movevent event="DeEquip" itemid="2173" slot="necklace" script="aol.lua" />
 
Status
Not open for further replies.
Top