Ir para conteúdo

Featured Replies

Postado
please friend i need ::(
that when I clicked on a lever, I teleported and made a monster to that teleported place. and that can only be used once a day. Anihi style for 5 players but it is not mandatory that the 5 players are, but that the X players give them the same storage so they can not do it up to 24 hours
 

 

Editado por tiburons (veja o histórico de edições)

Postado
local config =	{
	storage = 9844, -- storage
	days = 1 -- days to use a lever
}

function onUse(cid, item, frompos, item2, topos)

local teleport = {x=986, y=926, z=7} -- Coordinates to where the player will be teleported.

	if getPlayerStorageValue(cid, config.storage) >= os.time() then
		doPlayerSendTextMessage(cid,25, string.format('You can teleport after %d day%s', config.days, config.days ~= 1 and "s" or ""))
		return true
	end

    doPlayerSendTextMessage(cid, 25, string.format('Congratulations! You you are teleported, you can get your item after %d day%s', config.days, config.days ~= 1 and "s" or ""))
	setPlayerStorageValue(cid, config.storage, os.time() + config.days * 86400)
    doTeleportThing(cid, teleport)
	doSendMagicEffect(getCreaturePosition(cid), 2)
	return true
end

 

giphy.gif

Postado
2 horas atrás, tiburons disse:

Thanks, its actionid? For 5 players?SUMMON MONSTER? 

 

Yes, it is action, but it is not for 5 players and nor does it summon any monster, each player to be teleported has to pull the lever once every 24 hours

giphy.gif

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo