• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

addon quest hellp 0.3.6

menio53

New Member
Joined
Mar 6, 2009
Messages
96
Reaction score
0
che zrobić addon questy na całej mapie ale nie wiem jak zrobić skrypt na addony w queście wiem żeby musiało być takie coś np

<action uniqueid="12001" event="script" value="quests/outfits.lua"/> -- Hunter
<action uniqueid="12002" event="script" value="quests/outfits.lua"/> -- Mage
<action uniqueid="12003" event="script" value="quests/outfits.lua"/> -- Knight
<action uniqueid="12004" event="script" value="quests/outfits.lua"/> -- Nobleman
<action uniqueid="12005" event="script" value="quests/outfits.lua"/> -- Summoner
<action uniqueid="12006" event="script" value="quests/outfits.lua"/> -- Warrior
<action uniqueid="12007" event="script" value="quests/outfits.lua"/> -- Barbarian
<action uniqueid="12008" event="script" value="quests/outfits.lua"/> -- Druid
<action uniqueid="12009" event="script" value="quests/outfits.lua"/> -- Wizard
<action uniqueid="12010" event="script" value="quests/outfits.lua"/> -- Oriental
<action uniqueid="12011" event="script" value="quests/outfits.lua"/> -- Pirate
<action uniqueid="12012" event="script" value="quests/outfits.lua"/> -- Assassin
<action uniqueid="12013" event="script" value="quests/outfits.lua"/> -- Beggar
<action uniqueid="12014" event="script" value="quests/outfits.lua"/> -- Shaman
<action uniqueid="12015" event="script" value="quests/outfits.lua"/> -- Norseman
<action uniqueid="12016" event="script" value="quests/outfits.lua"/> -- Knightmare
<action uniqueid="12017" event="script" value="quests/outfits.lua"/> -- Jester
<action uniqueid="12018" event="script" value="quests/outfits.lua"/> -- Brotherhood
<action uniqueid="12019" event="script" value="quests/outfits.lua"/> -- Demon Hunter
<action uniqueid="12020" event="script" value="quests/outfits.lua"/> -- Yalahari
ale co w outfits.luabym musiał mieć żeby dostać np full maga jeżeli wiecie co wpisać w oufits.lua pomóżcie chciałbym także żeby się w outfits.lua znajdował skrypt na wszystkie addony żebym nie musiał pisać np od outfits1.lua do outfits22.lua mam takie coś
function onUse(cid, item, frompos, item2, topos)

if item.uid == 12001 then
if (getPlayerStorageValue(cid,12010) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Hunter Outfit!")
doPlayerAddOutfitId(cid,2,0)
setPlayerStorageValue(cid,12010,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Hunter Outfit.")
end

elseif item.uid == 12002 then
if (getPlayerStorageValue(cid,12011) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Mage Outfit!")
doPlayerAddOutfitId(cid,3,0)
setPlayerStorageValue(cid,12011,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Mage Outfit.")
end

elseif item.uid == 12003 then
if (getPlayerStorageValue(cid,12012) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Knight Outfit!")
doPlayerAddOutfitId(cid,4,0)
setPlayerStorageValue(cid,12012,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Knight Outfit.")
end


elseif item.uid == 12004 then
if (getPlayerStorageValue(cid,12013) == -1) and getPlayerSex(cid) == 1 then
doPlayerSendTextMessage(cid,21,"You now have the Nobleman Outfit!")
doPlayerAddOutfitId(cid,5,0)
setPlayerStorageValue(cid,12013,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else if(getPlayerStorageValue(cid,12013) == -1) and getPlayerSex(cid) == 0 then
doPlayerSendTextMessage(cid,21,"You now have the Noblewoman Outfit!")
doPlayerAddOutfitId(cid,5,0)
setPlayerStorageValue(cid,12013,1)
else
doPlayerSendTextMessage(cid,25,"You Already have this outfit.")
end
end


elseif item.uid == 12005 then
if (getPlayerStorageValue(cid,12014) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Summoner Outfit!")
doPlayerAddOutfitId(cid,6,0)
setPlayerStorageValue(cid,12014,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Summoner Outfit.")
end

elseif item.uid == 12006 then
if (getPlayerStorageValue(cid,12015) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Warrior Outfit!")
doPlayerAddOutfitId(cid,7,0)
setPlayerStorageValue(cid,12015,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Warrior Outfit.")
end

elseif item.uid == 12007 then
if (getPlayerStorageValue(cid,12016) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Barbarian Outfit!")
doPlayerAddOutfitId(cid,8,0)
setPlayerStorageValue(cid,12016,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Barbarian Outfit.")
end

elseif item.uid == 12008 then
if (getPlayerStorageValue(cid,12017) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Druid Outfit!")
doPlayerAddOutfitId(cid,9,0)
setPlayerStorageValue(cid,12017,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Druid Outfit.")
end

elseif item.uid == 12009 then
if (getPlayerStorageValue(cid,12018) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Wizard Outfit!")
doPlayerAddOutfitId(cid,10,0)
setPlayerStorageValue(cid,12018,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Wizard Outfit.")
end

elseif item.uid == 12010 then
if (getPlayerStorageValue(cid,12019) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Oriental Outfit!")
doPlayerAddOutfitId(cid,11,0)
setPlayerStorageValue(cid,12019,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Oriental Outfit.")
end

elseif item.uid == 12011 then
if (getPlayerStorageValue(cid,12020) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Pirate Outfit!")
doPlayerAddOutfitId(cid,12,0)
setPlayerStorageValue(cid,12020,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Pirate Outfit.")
end

elseif item.uid == 12012 then
if (getPlayerStorageValue(cid,12021) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Assassin Outfit!")
doPlayerAddOutfitId(cid,13,0)
setPlayerStorageValue(cid,12021,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Assassin Outfit.")
end

elseif item.uid == 12013 then
if (getPlayerStorageValue(cid,12022) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Beggar Outfit!")
doPlayerAddOutfitId(cid,14,0)
setPlayerStorageValue(cid,12022,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Beggar Outfit.")
end

elseif item.uid == 12014 then
if (getPlayerStorageValue(cid,12023) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Shaman Outfit!")
doPlayerAddOutfitId(cid,15,0)
setPlayerStorageValue(cid,12023,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Shaman Outfit.")
end

elseif item.uid == 12015 then
if (getPlayerStorageValue(cid,12024) == -1) and getPlayerSex(cid) == 1 then
doPlayerSendTextMessage(cid,21,"You now have the Norseman Outfit!")
doPlayerAddOutfitId(cid,16,0)
setPlayerStorageValue(cid,12024,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else if(getPlayerStorageValue(cid,12024) == -1) and getPlayerSex(cid) == 0 then
doPlayerSendTextMessage(cid,21,"You now have the Norsewoman Outfit!")
doPlayerAddOutfitId(cid,16,0)
setPlayerStorageValue(cid,12024,1)
else
doPlayerSendTextMessage(cid,25,"You Already have this outfit.")
end
end


elseif item.uid == 12016 then
if (getPlayerStorageValue(cid,12025) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Nightmare Outfit!")
doPlayerAddOutfitId(cid,17,0)
setPlayerStorageValue(cid,12025,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Nightmare Outfit.")
end

elseif item.uid == 12017 then
if (getPlayerStorageValue(cid,12026) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Jester Outfit!")
doPlayerAddOutfitId(cid,18,0)
setPlayerStorageValue(cid,12026,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Jester Outfit.")
end

elseif item.uid == 12018 then
if (getPlayerStorageValue(cid,12027) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Brotherhood Outfit!")
doPlayerAddOutfitId(cid,19,0)
setPlayerStorageValue(cid,12027,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Brotherhood Outfit.")
end

elseif item.uid == 12019 then
if (getPlayerStorageValue(cid,12028) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Demonhunter Outfit!")
doPlayerAddOutfitId(cid,20,0)
setPlayerStorageValue(cid,12028,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Demonhunter Outfit.")
end

elseif item.uid == 12020 then
if (getPlayerStorageValue(cid,12029) == -1) then
doPlayerSendTextMessage(cid,21,"You now have the Yalahari Outfit!")
doPlayerAddOutfitId(cid,21,0)
setPlayerStorageValue(cid,12029,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"You Already have the Yalahari Outfit.")
end

end
return TRUE
end
ale to nie działa na tfs 0.3.6 pisze tylko że dostałem addony a a tak naprawdę ich niema i tu brakuje citizena i warmastera
 
actions.xml:
Code:
    <action uniqueid="7001" event="script" value="quests/outfit.lua"/>
    <action uniqueid="7002" event="script" value="quests/outfit.lua"/>
    <action uniqueid="7003" event="script" value="quests/outfit.lua"/>
    <action uniqueid="7004" event="script" value="quests/outfit.lua"/>
quests/outfit.lua:
Code:
function onUse(cid, item, frompos, item2, topos)
    local script = {
                        [7001]={1, "Citzen"},
                        [7002]={2, "Hunter"},
                        [7003]={3, "Mage"},
                        [7004]={4, "Knight"}
                    }
                        
    if(canPlayerWearOutfitId(cid, script[item.uid][1], 3)) then
        doPlayerSendTextMessage(cid, 25, "You Already have the "..script[item.uid][2].." outfit!")
        return true
    end
        
    doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
    doPlayerSendTextMessage(cid, 21, "You now have the "..script[item.uid][2].." outfit!")
    doPlayerAddOutfitId(cid, script[item.uid][1], 3)    
    return true
    
end
12:11 You now have the Citzen outfit!
12:13 You Already have the Citzen outfit!
Testowane, działa, rep++
 
Last edited:
dzięki wielki za to że napisałeś skrypt to rep leci a ja i tak sobie zrobiłem inaczej 22 skrypty napisałem bo mi się nie chciało czekać :p)
 
Back
Top