What's new

[8.1]Ouffit/Addon ;[

Status
Not open for further replies.

Xeder

Active User
Joined
Apr 4, 2008
Messages
63
Reaction score
2
Cholera sciagnolem juz drugi raz b-fox 7 z dwuch innych szrude? i caly czas mam taki blad ze jak sie zaczyna gre 8 lvl to postac ma all ouffity dla pac?w a nei ma zasdnych dla facc, po drugie gdy chce kupic addon u zioma np pisze second mage addon on chce ferumbas hata daje mu go on mi go zabiera pisze ze juz mam addon a ja wchodze ci zeby zmienic ouffit a tu nie ma :( CZEMU ??
 

Norbi

User
Joined
Apr 7, 2008
Messages
31
Reaction score
0
chcesz zebys niemial tych ouffitow dla pacc mosisz zrobic tak
data/ouffit
i jest tam cos takiego

<!-- Female outfits -->
<outfit type="0" looktype="136" addons="3" name="Citizen" premium="0"/>
<outfit type="0" looktype="137" addons="3" name="Hunter" premium="0"/>
<outfit type="0" looktype="138" addons="3" name="Summoner" premium="1"/>
<outfit type="0" looktype="139" addons="3" name="Knight" premium="0"/>
<outfit type="1" looktype="267" addons="3" name="Plywak"/>
<outfit type="0" looktype="140" addons="3" name="Nobleman" premium="1"/>
<outfit type="0" looktype="141" addons="3" name="Mage" premium="0"/>
<outfit type="0" looktype="142" addons="3" name="Warrior" premium="1"/>
<outfit type="0" looktype="147" addons="3" name="Barbarian" premium="1"/>
<outfit type="0" looktype="148" addons="3" name="Druid" premium="1"/>
<outfit type="0" looktype="149" addons="3" name="Wizard" premium="1"/>
<outfit type="0" looktype="269" addons="3" name="Nightmare"/>
<outfit type="0" looktype="150" addons="3" name="Oriental" premium="1"/>
<outfit type="0" looktype="270" addons="3" name="Blazen2"/>
<outfit type="0" looktype="279" addons="3" name="Death"/>
<outfit type="0" looktype="155" addons="3" name="Pirate" premium="1"/>
<outfit type="0" looktype="156" addons="3" name="Assassin" premium="1"/>
<outfit type="0" looktype="157" addons="3" name="Beggar" premium="1"/>
<outfit type="2" looktype="12" addons="3" name="Szatan" premium="1"/>
<!-- Male outfits -->
<outfit type="1" looktype="128" addons="0" name="Citizen" premium="0"/>
<outfit type="1" looktype="129" addons="0" name="Hunter" premium="0"/>
<outfit type="1" looktype="130" addons="0" name="Mage" premium="0"/>
<outfit type="1" looktype="131" addons="0" name="Knight" premium="0"/>
<outfit type="1" looktype="273" addons="3" name="Blazen"/>
<outfit type="1" looktype="132" addons="3" name="Nobleman" premium="1"/>
<outfit type="1" looktype="133" addons="3" name="Summoner" premium="1"/>
<outfit type="1" looktype="134" addons="3" name="Warrior" premium="1"/>
<outfit type="1" looktype="143" addons="3" name="Barbarian" premium="1"/>
<outfit type="1" looktype="144" addons="3" name="Druid" premium="1"/>
<outfit type="1" looktype="145" addons="3" name="Wizard" premium="1"/>
<outfit type="1" looktype="146" addons="3" name="Oriental" premium="1"/>
<outfit type="1" looktype="151" addons="3" name="Pirate" premium="1"/>
<outfit type="1" looktype="268" addons="3" name="Nightmare"/>
<outfit type="1" looktype="278" addons="3" name="Deating"/>
<outfit type="1" looktype="152" addons="3" name="Assassin" premium="1"/>
<outfit type="1" looktype="153" addons="3" name="Beggar" premium="1"/>
<outfit type="1" looktype="267" addons="3" name="Plywak"/>


tam gdzie jest PREMIUM to znaczy ze premium wymaga czy nie dasz tam 0 niewymaga premium 1 wymaga pacc

2.
by ci npc sprzedawal addony ZA KASE 5k first i second 10k wejdz w

data/npc i stworz plik o nazwie VARKHAL
i wklej do niego to
Code:
<?xml version="1.0"?>

<npc name="Varkhal" script="data/npc/scripts/addon.lua" access="5" lookdir="2" autowalk="25">
	<mana now="800" max="800"/>
	<health now="200" max="200"/>
<look type="134" head="78" body="88" legs="0" feet="88"/>
</npc>
dalej w chodzis npc/sripts i tworzyrz plik o nazwie addon i wklejasz to

Code:
local focus = 0
local talk_start = 0
local target = 0
local following = false
local attacking = false

function onThingMove(creature, thing, oldpos, oldstackpos)

end


function onCreatureAppear(creature)

end


function onCreatureDisappear(cid, pos)
  	if focus == cid then
          selfSay('Good bye then.')
          focus = 0
          talk_start = 0
  	end
end


function onCreatureTurn(creature)

end


function msgcontains(txt, str)
  	return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))
end


function onCreatureSay(cid, type, msg)
  	msg = string.lower(msg)

  	if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then
  		selfSay('Hello ' .. creatureGetName(cid) .. '! I sell the first addon for 5k and the second addon for 10k.')
  		focus = cid
  		talk_start = os.clock()

  	elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
  		selfSay('Sorry, ' .. creatureGetName(cid) .. '! I talk to you in a minute.')

	elseif focus == cid then
		talk_start = os.clock()

		if msgcontains(msg, 'first addon') then
			selfSay('Do you want to buy the first addon for 5k?')
			talk_state = 1

		elseif msgcontains(msg, 'second addon') then
			selfSay('Do you want to buy the second addon for 10k?')
			talk_state = 2	
		
		elseif talk_state == 1 then
			if msgcontains(msg, 'yes') then
				if pay(cid,5000) then
					addon(cid, 1)
				else
					selfSay('Sorry, you don\'t have enough money.')
				end
 			end
			talk_state = 0

		elseif talk_state == 2 then
			if msgcontains(msg, 'yes') then
				if pay(cid,10000) then
					addon(cid, 2)
				else
					selfSay('Sorry, you don\'t have enough money.')
				end
 			end
			talk_state = 0
			
		elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then
			selfSay('Good bye, ' .. creatureGetName(cid) .. '!')
			focus = 0
			talk_start = 0
		end
	end
end


function onCreatureChangeOutfit(creature)

end


function onThink()
	doNpcSetCreatureFocus(focus)
	if (os.clock() - talk_start) > 30 then
  		if focus > 0 then
  			selfSay('Next Please...')
  		end
  			focus = 0
  	end
 	if focus ~= 0 then
 		if getDistanceToCreature(focus) > 5 then
 			selfSay('Good bye then.')
 			focus = 0
 		end
 	end
end


ok jezeli ci ocos innego chodzilo pisz ja ci odpisze ;)
 

Xeder

Active User
Joined
Apr 4, 2008
Messages
63
Reaction score
2
napisz na gadu gadu bo tak t osie nei dogadamy moje to 9666572 caly czas dostapny jestem

potrzbuje skrypt do takich addon?w tylko!
Code:
<!-- Female outfits -->
	<outfit type="0" looktype="136" addons="0" name="Citizen" premium="0"/>
	<outfit type="0" looktype="137" addons="0" name="Hunter" premium="0"/>
	<outfit type="0" looktype="138" addons="0" name="Summoner" premium="1"/>
	<outfit type="0" looktype="139" addons="0" name="Knight" premium="0"/>
	<outfit type="0" looktype="140" addons="0" name="Nobleman" premium="1"/>
	<outfit type="0" looktype="141" addons="0" name="Mage" premium="0"/>
	<outfit type="0" looktype="142" addons="0" name="Warrior" premium="1"/>
	<outfit type="0" looktype="147" addons="0" name="Barbarian" premium="1"/>
	<outfit type="0" looktype="148" addons="0" name="Druid" premium="1"/>
	<outfit type="0" looktype="149" addons="0" name="Wizard" premium="1"/>
	<outfit type="0" looktype="150" addons="0" name="Oriental" premium="1"/>
	<outfit type="0" looktype="155" addons="0" name="Pirate" premium="1"/>
	<outfit type="0" looktype="156" addons="0" name="Assassin" premium="1"/>
	<outfit type="0" looktype="157" addons="0" name="Beggar" premium="1"/>
	<outfit type="0" looktype="158" addons="0" name="Shaman" premium="1"/>
	<!-- Male outfits -->
	<outfit type="1" looktype="128" addons="0" name="Citizen" premium="0"/>
	<outfit type="1" looktype="129" addons="0" name="Hunter" premium="0"/>
	<outfit type="1" looktype="130" addons="0" name="Mage" premium="0"/>
	<outfit type="1" looktype="131" addons="0" name="Knight" premium="0"/>
	<outfit type="1" looktype="132" addons="0" name="Nobleman" premium="1"/>
	<outfit type="1" looktype="133" addons="0" name="Summoner" premium="1"/>
	<outfit type="1" looktype="134" addons="0" name="Warrior" premium="1"/>
	<outfit type="1" looktype="143" addons="0" name="Barbarian" premium="1"/>
	<outfit type="1" looktype="144" addons="0" name="Druid" premium="1"/>
	<outfit type="1" looktype="145" addons="0" name="Wizard" premium="1"/>
	<outfit type="1" looktype="146" addons="0" name="Oriental" premium="1"/>
	<outfit type="1" looktype="151" addons="0" name="Pirate" premium="1"/>
	<outfit type="1" looktype="152" addons="0" name="Assassin" premium="1"/>
	<outfit type="1" looktype="153" addons="0" name="Beggar" premium="1"/>
	<outfit type="1" looktype="154" addons="0" name="Shaman" premium="1"/>
 
Last edited:

dadi11

New User
Joined
Apr 8, 2008
Messages
3
Reaction score
1
pomocy

pomocy

pomozcie, jak zrobic addony do nowych outfitow na 8.1 ? plzzz
 

BHZ

New User
Joined
Apr 9, 2008
Messages
5
Reaction score
0
ja mam ten sam problem tylko mi chodzi o to ze jak daje itemy na addon to on mi zabiera i w zamian nic nie daje i chcia? bym ?eby podali?cie skrypta takiego ?e daje sie itemy potrzebne na addon i on dawal ten addon
 
G

Gudio

Guest
B-FOX to najwi?kszy shit na sql -,-
?ci?gnijcie sobie TFS'a - nie do?? ?e stabilniejszy to i jeszcze wygodny (moim zdaniem ;P )
Co do outfits.xml pewnie masz ustawione w nie kt?rych (tych dla pacca) masz premium="0" ;]
 
Status
Not open for further replies.
Top