What's new

Skrypt na ten sam outfit

Status
Not open for further replies.

screny12

User
Joined
Apr 5, 2011
Messages
14
Reaction score
0
Witam Poszukuje skryptu do elf bota na ustawienie outfitu takiego samego jaki ma dany gracz :p
 

ancio

Advanced User
Joined
Mar 31, 2009
Messages
158
Reaction score
7
Odp: Skrypt na ten sam outfit

W talkactions zr?b party.lua i w nim wklej
Code:
local config = 
{
	sexChangeable = false,
	copyOutfitAndAddonsEverytime = false
}
 
function onSay(cid, words, param, channel)
	party = getPlayerParty(cid)
	if (config.sexChangeable == true) then
		sex = getPlayerSex(cid)
	end
	if (party) then
		if (party == cid) then
			outfit = getCreatureOutfit(cid)
			members = getPartyMembers(party)
			if (#members >= 1) then	
				tmp = outfit
				for i=1,#members do	
					if (config.sexChangeable == true) then
						if (sex ~= getPlayerSex(members[i])) then
							doPlayerSetSex(members[i], sex)
						end
					end
					if(config.copyOutfitAndAddonsEverytime == false) then
						local tmpOutfit = getCreatureOutfit(members[i])
						tmp.lookType = tmpOutfit.lookType
						tmp.lookAddons = tmpOutfit.lookAddons
					end
					doCreatureChangeOutfit(members[i], tmp)
					doSendMagicEffect(getCreaturePosition(members[i]), 66)
				end
			end
		else
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "This command can use only leader of a party!")
		end
	else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You must be in a party!")
	end
	return true
end

Po?niej to Talkactions.xml dodaj linijke

Code:
<talkaction words="!pt" script="party.lua"/>

Po wpisanie komendy "!pt" wszyscy kt?rzy s? w party maj? ten sam outfit co lider.
My?l?,?e o to Ci chodzi?o ;>
 

screny12

User
Joined
Apr 5, 2011
Messages
14
Reaction score
0
Odp: Skrypt na ten sam outfit

Po wpisanie komendy "!pt" wszyscy kt?rzy s? w party maj? ten sam outfit co lider.
My?l?,?e o to Ci chodzi?o ;>

Nie do konca o to mi chodzilo , nie napisalem ze potrzebuje skrypt do Elf Bota m?j blad :pP
 

Dubler

Lua Factory =)
Joined
Apr 8, 2009
Messages
1,874
Reaction score
112
Odp: Skrypt na ten sam outfit

No to z?y dzia? ziomeczku
 

ancio

Advanced User
Joined
Mar 31, 2009
Messages
158
Reaction score
7
Odp: Skrypt na ten sam outfit

W lists/friends wpisz nazwe gracza i zaznacz team marks i team outfit ;>
 

screny12

User
Joined
Apr 5, 2011
Messages
14
Reaction score
0
Odp: Skrypt na ten sam outfit

W lists/friends wpisz nazwe gracza i zaznacz team marks i team outfit ;>

Nie chodzilo mi o zaznaczenie na niebiesko przyjaciela. Tylko o to zeby ustawic identyczny outfit jaki on ma.
 

Ciamciaj Bigos

&#3585;&#3657;&#3657;&#3657;&#3657;&#3657;&#3657;&
Joined
Jun 6, 2013
Messages
2,081
Reaction score
192
Odp: Skrypt na ten sam outfit

Code:
auto 2000 foreach 'screenplayers' $sc if [$sc.isfriend == 1] {setoutfit $sc.outfit}
mozesz tez dodac $sc.name zeby ci bot nie szalal z tymi outfitami jak beda 2 friendsy na ekranie
 

Shackai

User
Joined
Jul 2, 2013
Messages
48
Reaction score
4
Odp: Skrypt na ten sam outfit

Taki skrypt m?g?bym zrobi?, jednak dawa? by on efekt tylko u Ciebie - Ty widzia? by? u siebie ten sam outfit co gracz X, ale inni nie widzieli by u Ciebie zmiany. Je?eli chcesz mog? taki zrobi?, ale zapewne chcesz aby wszyscy to widzieli. Je?eli tak to raczej nie ma takiego, chyba ?e jestem w bl?dzie.
Pozdrawiam
 
Status
Not open for further replies.
Top