-
Total de itens
407 -
Registro em
-
Última visita
-
Dias Ganhos
8
-
opa, uma ajudinha no teu script la do topico revivido da Quest Skeleton e pa . se liga no erro..
[Warning - Event::checkScript] Can not load script: scripts/quests/RPG/test_part_1.lua data/actions/scripts/quests/RPG/test_part_1.lua:19: unexpected symbol near '[' [Warning - Event::checkScript] Can not load script: scripts/quests/RPG/test_part_2.lua data/actions/scripts/quests/RPG/test_part_2.lua:13: ')' expected near char(239)
-
Opa, mals demora, estava com problemas no pc.. o script ta igual o teu, só mudei as coordenadas dos itens etc.
SpoilerCode
local itens = {2337,2339,2341,2338,2340,2336,2335} local basin = 1617 local Toten = 3700 local tempo = 2 local actionId = 20021 --local Skeleton = {Skel_parede,Skel_chao,posição no chao,pos_parede} local Skeleton = {5018,2843,{x=32398, y=32188, z=7},{x=32398, y=32187, z=7}} local pos = { {x=32396, y=32188, z=7}, {x=32396, y=32190, z=7}, {x=32396, y=32192, z=7}, {x=32400, y=32188, z=7}, {x=32400, y=32190, z=7}, {x=32400, y=32192, z=7}, {x=32398, y=32190, z=7} } function onUse(cid, item, fromPosition, itemEx, toPosition) for x = 1,7 do local check[x] = getTileItemById(pos[x],itens[x]).uid if check[x] >= 1 and item.actionid == 20021 then local basin = getTileItemById(pos[x],basin).uid doRemoveItem(item.uid,1) doCreateItem(Skeleton[2], 1, Skeleton[3]) doRemoveItem(check[x],1) doRemoveItem(basin,1) doCreateItem(Toten, 1, pos[x]) doSendMagicEffect(pos[x],35) addEvent(Ativar_Caveira, tempo * 60 * 1000) else doPlayerSendCancel(cid,'está faltando itens.') end end return true end function Ativar_Caveira() local caveira = getTileItemById(Skeleton[4],Skeleton[1]).uid if caveira <= 1 then for x = 1,7 do local Toten = getTileItemById(pos[x],Toten).uid local Id_caveira = doCreateItem(Skeleton[1], 1,Skeleton[4]) local basin = getTileItemById(pos[x],basin).uid doItemSetAttribute(Id_caveira, "aid", actionId) doRemoveItem(Toten,1) doCreateItem(basin, 1,pos[x]) end else doBroadcastMessage("Já tem 1 caveira na parede", 21) end return true end