What's new

Poszukuj? scryptu!

Status
Not open for further replies.

Bwin

Active User
Joined
Apr 18, 2008
Messages
65
Reaction score
1
Witam!

Poszukuj? scryptu na "addon dolla".


Za pomoc rep.
Z g?ry dzi?ki.
 

Gremarek

Active User
Joined
Apr 21, 2010
Messages
111
Reaction score
5
Odp: Poszukuj? scryptu!

masz tu talk actiond


<talkaction words="!firstcitizen" script="first citizen.lua"/>
<talkaction words="!secondcitizen" script="second citizen.lua"/>
<talkaction words="!firsthunter" script="first hunter.lua"/>
<talkaction words="!firstjester" script="first jester.lua"/>
<talkaction words="!secondhunter" script="second hunter.lua"/>
<talkaction words="!firstmage" script="first mage.lua"/>
<talkaction words="!firstknight" script="first knight.lua"/>
<talkaction words="!firstnobleman" script="first nobleman.lua"/>
<talkaction words="!firstsummoner" script="first summoner.lua"/>
<talkaction words="!firstwarrior" script="first warrior.lua"/>
<talkaction words="!firstbarbarian" script="first barbarian.lua"/>
<talkaction words="!firstdruid" script="first druid.lua"/>
<talkaction words="!firstwizard" script="first wizard.lua"/>
<talkaction words="!firstoriental" script="first oriental.lua"/>
<talkaction words="!firstpirate" script="first pirate.lua"/>
<talkaction words="!firstassassin" script="first assassin.lua"/>
<talkaction words="!firstbeggar" script="first beggar.lua"/>
<talkaction words="!firstshaman" script="first shaman.lua"/>
<talkaction words="!firstnorseman" script="first norseman.lua"/>
<talkaction words="!firstnightmare" script="first nightmare.lua"/>
<talkaction words="!firstbrotherhood" script="first bro.lua"/>
<talkaction words="!firstyalaharian" script="first yalaharian.lua"/>
<talkaction words="!secondmage" script="second mage.lua"/>
<talkaction words="!secondknight" script="second knight.lua"/>
<talkaction words="!secondnobleman" script="second nobleman.lua"/>
<talkaction words="!secondsummoner" script="second summoner.lua"/>
<talkaction words="!secondwarrior" script="second warrior.lua"/>
<talkaction words="!secondbarbarian" script="second barbarian.lua"/>
<talkaction words="!seconddruid" script="second druid.lua"/>
<talkaction words="!secondwizard" script="second wizard.lua"/>
<talkaction words="!secondoriental" script="second oriental.lua"/>
<talkaction words="!secondpirate" script="second pirate.lua"/>
<talkaction words="!secondassassin" script="second assassin.lua"/>
<talkaction words="!secondbeggar" script="second beggar.lua"/>
<talkaction words="!secondshaman" script="second shaman.lua"/>
<talkaction words="!secondjester" script="second jester.lua"/>
<talkaction words="!secondnorseman" script="second norseman.lua"/>
<talkaction words="!secondnightmare" script="second nightmare.lua"/>
<talkaction words="!secondbrotherhood" script="second bro.lua"/>
<talkaction words="!secondyalaharian" script="second yalaharian.lua"/>


DOWN prosz? cie bardzo Ale mi nie zale?y na , REPUTACJI ! ;)
 
Last edited:

Bwin

Active User
Joined
Apr 18, 2008
Messages
65
Reaction score
1
Odp: Poszukuj? scryptu!

Temat do zamkni?cia!!!
 

Piaskillers

Active User
Joined
Dec 23, 2008
Messages
95
Reaction score
6
Odp: Poszukuj? scryptu!

W data\talkactions\scripts\ tworzymy addon.lua i wklejamy :
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 = {"Command requires GOOD param!", "You dont have Addon Doll!", "Bad param!", "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
W data\talkactions\talkactions.xml dodajemy :
PHP:
<talkaction words="!addon" script="addon.lua"/>

Uzycie:
!addon NAZWA
!addon hunter
!addon barbarian etc.
9693 - ID addon dolla

Moim zdaniem ten skrypt nie wpierdoli ci ca?ego ramu i jest funkcjonalniejszy od tamtego. Dodajesz tylko ID outfit?w, nazwe i masz kolejny addon.
 
Status
Not open for further replies.
Top