7 horas atrás, Step Records disse:Versão do Servidor: TFS - 0.3.4Tipo de Script: actionsHello, how to make a box that will add addon to the player for completing the quest
Hello my friend, test this, in my base it works 100% ^ ^
Go in data/actions/scripts and create a Lua file > Outfitquest
inside add:
--by Ayron/Sepultura-- function onUse(cid, item, frompos, fromPosition, topos, itemEx, toPosition) if item.uid == 12154 then --- unique do bau quest = getPlayerStorageValue(cid, 31503) ---- storage da quest if quest == -1 then setPlayerStorageValue(cid, 181655, 1) ---- storage da quest da roupa que se encontra em XML/outfits.xml doPlayerSendTextMessage(cid, 22, "Você Ganhou Um Novo Outfit.") setPlayerStorageValue(cid, 31503, 1) else doPlayerSendCancel(cid, "Você Já Concluiu A Quest.") end end end
In actions.xml add this tag:
<!-- Addon quest --> <action uniqueid="12154" event="script" value="Outfitquest.lua"/>
Now just open the rme map editor and put the unique number of the xml tag in the desired chest ... which is 12154
remember that outfit storage (181655) you find in XML / outfits.xml
example of how it will be there:
<outfit id = "59" quest = "181655">
<list gender = "0" lookType = "1498" name = "Christmas" />
<list gender = "1" lookType = "1497" name = "Christmas" />
</ outfit>
Change the script values as desired.
That's all ... I hope I have helped. ^^





info
Grupo: Campones
Registrado: 24/05/18
Posts: 82
Reputação: +1
Gênero: Masculino
Hello, how to make a box that will add addon to the player for completing the quest