What's new

Amulet - blessy + aol

Status
Not open for further replies.

Honly

Active User
Joined
Oct 28, 2010
Messages
146
Reaction score
2
Wi?c chcia?em zrobi? sobie amulet kt?ry dawa?by blessy (po za?o?eniu) + dzia?a?by jak aol (nie spada?yby itemki). Wi?c wykorzysta?em ten skrypt http://tibia.net.pl/actions/66226-8-4-bless-runa.html i zmieni?em ?eby zamiast runki by? naszyjnik. Dodatkowo doda?em na pocz?tku
Code:
if(item.uid ~= getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).uid) then
		return false
end
I prawie wszystko dzia?a opr?cz 2 rzeczy: amulet po dedzie zostaje oraz aby si? uaktywni? trzeba go za?o?y? (w miejsce naszyjnika) i klikn?? "Use". Jak kto? by mi pomog? reput leci :)
 

Honly

Active User
Joined
Oct 28, 2010
Messages
146
Reaction score
2
Odp: Amulet - blessy + aol

Nikt nie wie jak to zrobi?? :(
 

mcfly

Advanced User
Joined
Mar 12, 2009
Messages
163
Reaction score
12
Odp: Amulet - blessy + aol

Jak w items.xml dodasz temu itemowi

<attribute key="charges" value="1" />
<attribute key="preventDrop" value="1" />

to powinien zlatywa? po ?mierci

co do u?ywania go to musisz do zrobi? w movements nie actions.


Pozdrawiam
 

Honly

Active User
Joined
Oct 28, 2010
Messages
146
Reaction score
2
Odp: Amulet - blessy + aol

A jak zrobi? to w movements? Bo kompletnie si? na tym nie znam :(
 

Honly

Active User
Joined
Oct 28, 2010
Messages
146
Reaction score
2
Odp: Amulet - blessy + aol

Dobra, pr?bowa?em majstrowa? co? samemu w movements i naj czuj czuja (nie umiem lua) zrobi?em co? takiego:
Code:
onEquip(cid, item, slot)
		for i = 1,5 do
			doPlayerAddBlessing(cid,i)
	        end
	doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have received 5 Blessings")
        end
end
OnDeEquip(cid, item, slot)
if getPlayerBlessing(cid,5) then
	doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You haven't  been blessed already.")
        else
end

ale nie dzia?a :( Pomocy!
 

mcfly

Advanced User
Joined
Mar 12, 2009
Messages
163
Reaction score
12
Odp: Amulet - blessy + aol

onEquip(cid, item, slot)

zgubi?e? "function"

tzn. powinno by?

function onEquip(cid, item, slot)


@edit szuka?em na li?cie funkcji tfs'a i nie ma funkcji od usuwania bless?w, wi?c albo sam zrobisz albo nie b?dzie amuletu
 
Last edited:

Honly

Active User
Joined
Oct 28, 2010
Messages
146
Reaction score
2
Odp: Amulet - blessy + aol

A m?g?by kto? wyt?umaczy? jak to zrobi?? Bo jestem kompletnie zielony :(
 
Status
Not open for further replies.
Top