Ir para conteúdo

[ Action ] Addons Em Quests


danitero

Da pra entender o script?  

19 votos

  1. 1. Você consegue entender/usar o script?

    • Sim
      14
    • Não, porquê?
      5


Posts Recomendados

  • 1 month later...

queria saber como conserto isso \/

 

[Error - LuaScriptInterface::loadFile] data/actions/scripts/addons.lua:45: '<eof>' expected near 'end'
[Warning - Event::loadScript] Cannot load script <data/actions/scripts/addons.lua>
data/actions/scripts/addons.lua:45: '<eof>' expected near 'end'
[Error - LuaScriptInterface::loadFile] data/actions/scripts/addons.lua:45: '<eof>' expected near 'end'
[Warning - Event::loadScript] Cannot load script <data/actions/scripts/addons.lua>
data/actions/scripts/addons.lua:45: '<eof>' expected near 'end'
[Error - LuaScriptInterface::loadFile] data/actions/scripts/addons.lua:45: '<eof>' expected near 'end'
[Warning - Event::loadScript] Cannot load script <data/actions/scripts/addons.lua>
data/actions/scripts/addons.lua:45: '<eof>' expected near 'end'
[Error - LuaScriptInterface::loadFile] data/actions/scripts/addons.lua:45: '<eof>' expected near 'end'
[Warning - Event::loadScript] Cannot load script <data/actions/scripts/addons.lua>
data/actions/scripts/addons.lua:45: '<eof>' expected near 'end'

 

 

------------------------------------------------------------------------------------

ta ai o script\/

 

 

if item.uid == 8913 then

queststatus = getPlayerStorageValue(cid,1500)

if queststatus == -1 then

doPlayerSendTextMessage(cid,22,"You have found the citizen addon full.")

doPlayerAddOutfit(cid, 128, 3)

doPlayerAddOutfit(cid, 136, 3)

setPlayerStorageValue(cid,1500,1)

else

doPlayerSendTextMessage(cid,22,"It is empty.")

end

elseif item.uid == 8914 then

queststatus = getPlayerStorageValue(cid,1600)

if queststatus == -1 then

doPlayerSendTextMessage(cid,22,"You have found the hunter addon full.")

doPlayerAddOutfit(cid, 129, 3)

doPlayerAddOutfit(cid, 137, 3)

setPlayerStorageValue(cid,1600,1)

else

doPlayerSendTextMessage(cid,22,"It is empty.")

end

elseif item.uid == 8915 then

queststatus = getPlayerStorageValue(cid,1700)

if queststatus == -1 then

doPlayerSendTextMessage(cid,22,"You have found the mage addon full.")

doPlayerAddOutfit(cid, 138, 3)

doPlayerAddOutfit(cid, 130, 3)

setPlayerStorageValue(cid,1700,1)

else

doPlayerSendTextMessage(cid,22,"It is empty.")

end

elseif item.uid == 8916 then

queststatus = getPlayerStorageValue(cid,1800)

if queststatus == -1 then

doPlayerSendTextMessage(cid,22,"You have found the knight addon full.")

doPlayerAddOutfit(cid, 139, 3)

doPlayerAddOutfit(cid, 131, 3)

setPlayerStorageValue(cid,1800,1)

else

doPlayerSendTextMessage(cid,22,"It is empty.")

end

else

return 0

end

 

return 1

end

Link para o comentário
Compartilhar em outros sites

  • 1 year later...
  • 1 month later...

Quando eu vou ligar da esse erro aki :

 



data/actions/actions.xml:343: parser error : expected '>'
</actions>
       ^
data/actions/actions.xml:344: parser error : Premature end of data in tag action
line 6

^
data/actions/actions.xml:344: parser error : Premature end of data in tag action
line 5

^
data/actions/actions.xml:344: parser error : Premature end of data in tag action
line 4

^
data/actions/actions.xml:344: parser error : Premature end of data in tag action
s line 2

^
[Warning - BaseEvents::loadFromXml] Cannot open actions.xml file.
Line: 344, Info: Premature end of data in tag actions line 2


> ERROR: Unable to load Actions!

Link para o comentário
Compartilhar em outros sites

mas por exemplo :

 

Aki tem um active de citezin :

        if item.uid == 8913 then
               queststatus = getPlayerStorageValue(cid,1500)
               if queststatus == -1 then
                       doPlayerSendTextMessage(cid,22,"You have found the citizen addon full.")
                       doPlayerAddOutfit(cid, 128, 3)
                       doPlayerAddOutfit(cid, 136, 3)
                       setPlayerStorageValue(cid,1500,1)
               else
                       doPlayerSendTextMessage(cid,22,"It is empty.")
               end

Mas se eu quiser ue seja mage :

        if item.uid == 8913 then  <-- Sei que precisa, mas qual é o numero ??
               queststatus = getPlayerStorageValue(cid,1500)
               if queststatus == -1 then
                       doPlayerSendTextMessage(cid,22,"You have found the mage addon full.") <-- Mudei ...
                       doPlayerAddOutfit(cid, 138, 3) <-- Lista que ta no Topic
                       doPlayerAddOutfit(cid, 130, 3) <-- Lista que ta no Topic
                       setPlayerStorageValue(cid,1500,1) <-- Precisa mudar ??
               else
                       doPlayerSendTextMessage(cid,22,"It is empty.")
               end

(Perguntas estam no "code"

Editado por Princeziin
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...