DA

[ Action ] Addons Em Quests

Por danitero, 28 de set. de 2009 em Actions e Talkactions

script
21
6.8k
ZaskxDZ
20 de julho de 2010 às 13:19

Vou Testar no meu oT! mais pareçe ser bom!

2 meses depois...
NomadeN
17 de setembro de 2010 às 00:04

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

1 ano depois...
miikroM
27 de setembro de 2011 às 20:42

Muito legal, mais e se eu quiser adicionar outfits como Dwarf, Elf e etc. Tem como?

2 meses depois...
HannahHelenaTeiH
07 de novembro de 2011 às 09:37

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!

SkyDangerousS
07 de novembro de 2011 às 09:56

A tag que ele posto ta errada o.0'

 

adiciona isso.

 

<action uniqueid="8913;8914;8915;8916" script="addons.lua" />

HannahHelenaTeiH
07 de novembro de 2011 às 11:50

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 Novembro 7 por Princeziin