Skrypty & Kody 8.6+ TFS Outfity !!??

Status
Zamknięty.

Creme

User
Zarejestrowany
Dołączył
Lipiec 7, 2010
Posty
31
Liczba reakcji
0
Witam

na ots tfs 0.4 sa dostepne chyba wszystkie outfity czyli :

["citizen"]={128}, ["hunter"]={129}, ["mage"]={130}, ["knight"]={131}, ["nobleman"]={132},["summoner"]={133}, ["warrior"]={134}, ["barbarian"]={143}, ["druid"]={144}, ["wizard"]={145}, ["oriental"]={146}, ["pirate"]={151}, ["assassin"]={152}, ["beggar"]={153}, ["shaman"]={154}, ["norsewoman"]={251}, ["nightmare"]={268}, ["jester"]={273}, ["brotherhood"]={278}, ["demonhunter"]={289}, ["yalaharian"]={325}

ale po wejsciu do gry, pierwszy raz nowa postacia sa nie wszystkie dostepne czyli :

["citizen"]={128}, ["hunter"]={129}, ["mage"]={130}, ["knight"]={131}, ["nobleman"]={132},["summoner"]={133}, ["warrior"]={134}, ["barbarian"]={143}, ["druid"]={144}, ["wizard"]={145}, ["oriental"]={146},

i problem tego typu ze jak daje " !addon jester " to mimo ze nie mialem tego outfitu - automatycznie mi sie dodaje wraz z addonem,

i teraz mam problem bo uzywam doll'a do dodawania addonow, i chcialbym zeby wszystkie outfity byly "na start" da sie to zrobic czy nie da rady ?? albo doll'a ustawic zeby nie dawal addonow tych co nie masz outfita, nie wiem jak to zrobic ; >

wklejam jeszcze skrypt dolla.

PHP:
function onSay(cid, words, param)
    local femaleOutfits = { ["citizen"]={136}, ["hunter"]={137}, ["mage"]={138}, ["knight"]={139}, ["nobleman"]={140}, ["summoner"]={141}, ["warrior"]={142}, ["barbarian"]={147}, ["druid"]={148}, ["wizard"]={149}, ["oriental"]={150}, ["pirate"]={155}, ["assassin"]={156}, ["beggar"]={157}, ["shaman"]={158}, ["norsewoman"]={252}, ["nightmare"]={269}, ["jester"]={270}, ["brotherhood"]={279}, ["demonhunter"]={288}, ["yalaharian"]={324} }
    local maleOutfits = { ["citizen"]={128}, ["hunter"]={129}, ["mage"]={130}, ["knight"]={131}, ["nobleman"]={132},["summoner"]={133}, ["warrior"]={134}, ["barbarian"]={143}, ["druid"]={144}, ["wizard"]={145}, ["oriental"]={146}, ["pirate"]={151}, ["assassin"]={152}, ["beggar"]={153}, ["shaman"]={154}, ["norsewoman"]={251}, ["nightmare"]={268}, ["jester"]={273}, ["brotherhood"]={278}, ["demonhunter"]={289}, ["yalaharian"]={325} }
    local msg = {"przyklad !addon citizen", "You dont have Jester Doll!", "Full Addon Set sucesfully added!"}
    local param = string.lower(param) 
 
    if(getPlayerItemCount(cid, 9693) > 0) then
        if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then
            doPlayerRemoveItem(cid, 9693, 1)
            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4])
                doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
            if(getPlayerSex(cid) == 0)then
              doPlayerAddOutfit(cid, femaleOutfits[param][1], 3)
            else
              doPlayerAddOutfit(cid, maleOutfits[param][1], 3)
            end
        else
          doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])
        end
    else
      doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])
    end
end

Sugestie ? propozycje ? cokolwiek ?

dzieki wielki !
 
Odp: 8.6+ TFS Outfity !!??

rozwiazany mozna zamknac,
 
Odp: 8.6+ TFS Outfity !!??

PHP:
<?xml version="1.0"?>
<outfits>
    <outfit id="1">
        <list gender="0" lookType="136" name="Citizen">
        <attribute speed="10"/>
        <stats maxHealth="100"/>
            </list>
        <list gender="1" lookType="128" name="Citizen">
        <attribute speed="10"/>
        <stats maxHealth="100"/>
            </list>
    </outfit>
 
    <outfit id="2">
        <list gender="0" lookType="137" name="Hunter">
        <skills dist="3"/>
        </list>
        <list gender="1" lookType="129" name="Hunter">
        <skills dist="3"/>
        </list>
    </outfit>
 
    <outfit id="3">
        <list gender="0" lookType="138" name="Mage">
        <stats magLevel="2"/>
        <stats maxMana="200"/>
        </list>
        <list gender="1" lookType="130" name="Mage">
        <stats magLevel="2"/>
        <stats maxMana="200"/>
        </list>
    </outfit>
 
    <outfit id="4">
        <list gender="0" lookType="139" name="Knight">
        <skills sword="3"/>
        </list>
        <list gender="1" lookType="131" name="Knight">
        <skills sword="3"/>
        </list>
    </outfit>
 
    <outfit id="5" premium="no">
        <list gender="0" lookType="140" name="Noblewoman">
        <skills club="3"/>
        </list>
        <list gender="1" lookType="132" name="Nobleman">
        <skills club="3"/>
        </list>
    </outfit>
 
    <outfit id="6" premium="no">
        <list gender="0" lookType="141" name="Summoner">
        <stats magLevel="3"/>
        <stats maxMana="200"/>
        </list>
        <list gender="1" lookType="133" name="Summoner">
        <stats magLevel="2"/>
        <stats maxMana="200"/>
        </list>
    </outfit>
 
    <outfit id="7" premium="no">
        <list gender="0" lookType="142" name="Warrior">
        <skills melee="3"/>
        </list>
        <list gender="1" lookType="134" name="Warrior">
        <skills melee="3"/>
        </list>
    </outfit>
 
    <outfit id="8" premium="no">
        <list gender="0" lookType="147" name="Barbarian">
        <skills axe="5"/>
        <skills sword="2"/>
        <skills club="2"/>
         <stats maxHealth="200"/>
        </list>
        <list gender="1" lookType="143" name="Barbarian">
        <skills axe="3"/>
        <skills sword="2"/>
        <skills club="2"/>
        <stats maxHealth="200"/>
        </list>
    </outfit>
 
    <outfit id="9" premium="no">
        <list gender="0" lookType="148" name="Druid">
        <stats magLevel="3"/>
    <absorb percentPoison="5"/>
        </list>
        <list gender="1" lookType="144" name="Druid">
        <stats magLevel="3"/>
    <absorb percentPoison="5"/>
        </list>
    </outfit>
 
    <outfit id="10" premium="no">
        <list gender="0" lookType="149" name="Wizard">
        <stats magLevel="1"/>
         <stats maxHealth="100"/>
        <stats maxMana="200"/>
    <absorb percentDeath="5"/>
        </list>
        <list gender="1" lookType="145" name="Wizard">
        <stats magLevel="1"/>
         <stats maxHealth="100"/>
        <stats maxMana="200"/>
    <absorb percentDeath="5"/>
        </list>
    </outfit>
 
    <outfit id="11" premium="no">
        <list gender="0" lookType="150" name="Oriental">
        <stats maxHealth="200"/>
        <stats maxMana="200"/>
        <attribute speed="50"/>
            </list>
        <list gender="1" lookType="146" name="Oriental">
        <stats maxHealth="200"/>
        <stats maxMana="200"/>
        <attribute speed="50"/>
            </list>
    </outfit>
 
    <outfit id="12" premium="no">
        <list gender="0" lookType="155" name="Pirate">
        <stats maxHealth="100"/>
        <skills club="5"/>
        </list>
        <list gender="1" lookType="151" name="Pirate">
        <stats maxHealth="100"/>
        <skills club="5"/>
        </list>
    </outfit>
 
    <outfit id="13" premium="no" >
        <list gender="0" lookType="156" name="Assassin">
        <attribute speed="80"/>
        <skills dist="3"/>
        <stats magLevel="2"/>
            </list>
        <list gender="1" lookType="152" name="Assassin">
        <attribute speed="80"/>
        <skills dist="3"/>
        <stats magLevel="2"/>
            </list>
    </outfit>
 
    <outfit id="14" premium="no" >
        <list gender="0" lookType="157" name="Beggar">
        <absorb percentAll="5"/>
        </list>
        <list gender="1" lookType="153" name="Beggar">
        <absorb percentAll="5"/>
        </list>
    </outfit>
 
    <outfit id="15" premium="no" >
        <list gender="0" lookType="158" name="Shaman">
        <stats magLevel="2"/>
    <absorb percentEnergy="5"/>
        </list>
        <list gender="1" lookType="154" name="Shaman">
        <stats magLevel="2"/>
    <absorb percentEnergy="5"/>
        </list>
    </outfit>
 
    <outfit id="16" premium="no" >
        <list gender="0" lookType="252" name="Norsewoman">
        <skills shielding="5"/>
    <absorb percentIce="15"/>
        <stats maxHealth="200"/>
        <skills club="3"/>
        <stats magLevel="2"/>
        </list>
        <list gender="1" lookType="251" name="Norseman">
        <skills shielding="5"/>
    <absorb percentIce="15"/>
        <stats maxHealth="200"/>
        <skills club="3"/>
        <stats magLevel="2"/>
        </list>
    </outfit>
 
    <outfit id="17" premium="no" >
        <list gender="0" lookType="269" name="Nightmare">
        <skills shielding="5"/>
    <absorb percentPhysical="15"/>
        </list>
        <list gender="1" lookType="268" name="Nightmare">
        <skills shielding="5"/>
    <absorb percentPhysical="15"/>
        </list>
    </outfit>
 
    <outfit id="18" premium="no">
        <list gender="0" lookType="270" name="Jester">
        <stats maxMana="100"/>
        <attribute speed="50"/>
        <stats maxHealth="100"/>
        </list>
        <list gender="1" lookType="273" name="Jester">
        <stats maxMana="100"/>
        <attribute speed="50"/>
        <stats maxHealth="100"/>
        </list>
    </outfit>
 
    <outfit id="19" premium="no">
        <list gender="0" lookType="279" name="Brotherhood">
        <stats magLevel="3"/>
    <absorb percentDeath="5"/>
        <stats maxHealth="100"/>
        </list>
        <list gender="1" lookType="278" name="Brotherhood">
        <stats magLevel="3"/>
    <absorb percentDeath="5"/>
        <stats maxHealth="100"/>
        </list>
    </outfit>
 
    <outfit id="20" premium="no" >
        <list gender="0" lookType="288" name="Demonhunter">
        <attribute speed="10"/>
        <stats maxHealth="300"/>
    <absorb percentFire="5"/>
        </list>
        <list gender="1" lookType="289" name="Demonhunter">
        <attribute speed="10"/>
        <stats maxHealth="300"/>
    <absorb percentFire="5"/>
        </list>
    </outfit>
 
    <outfit id="21" premium="no" >
        <list gender="0" lookType="324" name="Yalaharian">
        <attribute speed="20"/>
        <stats magLevel="2"/>
        <stats maxHealth="250"/>
        <stats maxMana="250"/>
        </list>
        <list gender="1" lookType="325" name="Yalaharian">
        <attribute speed="20"/>
        <stats magLevel="2"/>
        <stats maxHealth="250"/>
        <stats maxMana="250"/>
        </list>
    </outfit>

    <outfit id="22" premium="no">
        <list gender="0" lookType="336" name="Warmaster">
        <stats maxMana="200"/>
        <stats maxHealth="200"/>
        <stats magLevel="2"/>
    <absorb percentHoly="5"/>
        </list>
        <list gender="1" lookType="335" name="Warmaster">
        <stats maxMana="200"/>
        <stats maxHealth="200"/>
        <stats magLevel="2"/>
    <absorb percentHoly="5"/>
        </list>
    </outfit>

    <outfit id="23" premium="no">
        <list gender="0" lookType="366" name="Wayfarer"/>
        <list gender="1" lookType="367" name="Wayfarer"/>
    </outfit>

    <outfit id="24" premium="no" default="0">
        <list gender="0" lookType="329" name="Wedding"/>
        <list gender="1" lookType="328" name="Wedding"/>
    </outfit>

    <outfit id="25" access="5" premium="no">
        <list gender="0-3" lookType="12" name="Archdemon"/>
    </outfit>

    <outfit id="26" access="5" premium="no">
        <list gender="0-3" lookType="159" name="Elf"/>
    </outfit>

    <outfit id="27" access="5" premium="no">
        <list gender="0-3" lookType="160" name="Dwarf"/>
    </outfit>

    <outfit id="28" access="5" premium="no">
        <list gender="0-3" lookType="226" name="Frog"/>
    </outfit>

    <outfit id="29" access="5" premium="no">
        <list gender="0-3" lookType="194" name="Cult"/>
    </outfit>

    <outfit id="30" access="5" premium="no">
        <list gender="0-3" lookType="253" name="Headsplitter"/>
    </outfit>

    <outfit id="31" access="5" premium="no">
        <list gender="0-3" lookType="254" name="Skullhunter"/>
    </outfit>

    <outfit id="32" access="5" premium="no">
        <list gender="0-3" lookType="255" name="Bloodwalker"/>
    </outfit>

    <outfit id="33" access="5" premium="no">
        <list gender="0-3" lookType="264" name="Brutetamer"/>
    </outfit>

    <outfit id="34" access="3" premium="no">
        <list gender="0-3" lookType="75" name="Gamemaster"/>
    </outfit>

    <outfit id="35" access="4" premium="no">
        <list gender="0-3" lookType="266" name="Community Manager"/>
    </outfit>

    <outfit id="36" access="5" premium="no">
        <list gender="0-3" lookType="302" name="God"/>
    </outfit>
</outfits>

w xml/outfits.xml

to jest rozwiazanie.
 
Status
Zamknięty.
Back
Do góry