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