-
-
-
[AJUDA] passiva do electabuzz
não resolveria adicionar essa linha mais 2 vezes não? sendStickEff(cid, t[a])
-
Summon Protect
Se for player quem vai perder hp e quem tirar for summon vai ser cancelado Se o player for atacante (qualquer player, caso queira que mude somente para o dono me avise) e summon quem vai perder o hp então vai ser cancelado Se um summon fazer outro summon perder hp e eles tiverem o mesmo dono vai ser cancelado
-
-
Summon Protect
em creaturescripts/scripts: function onTarget(cid, target) if isPlayer(cid) and isSummon(target) then doPlayerSendCancel(cid, "Você não pode atacar seu summon") end return false end function onStatsChange(cid, attacker, type) if type == STATSCHANGE_HEALTHLOSS then if isPlayer(cid) and isSummon(attacker) or isPlayer(attacker) and isSummon(cid) or isSummon(cid) and isSummon(attacker) and getCreatureMaster(cid) == attacker then end end return false end tags em creaturescripts.xml: <event type="target" name="nomeevent1" event="script" value="summonattack.lua"/> <event type="statschange" name="nomeevent2" event="script" value="summonattack.lua"/> em login.lua registerCreatureEvent(cid, "nomeevent1") registerCreatureEvent(cid, "nomeevent2") no arquivo .xml do summon/monstro registre o evento 2: <script> <event name="nameevent2"/> </script>
-
-
(Resolvido)[Action] Criar item que teleporta pro corpo
Creaturescripts: function onDeath(cid) local posx =getCreaturePosition(cid).x local posy =getCreaturePosition(cid).y local posz =getCreaturePosition(cid).z local storx = 98189 local story = 98190 local storz = 98191 if isPlayer(cid) then setPlayerStorageValue(cid, storx, posx) setPlayerStorageValue(cid, story, posy) setPlayerStorageValue(cid, storz, posz) return true end return true end Actions: function onUse(cid, item) local pos = {x=getPlayerStorageValue(cid,98189),y=getPlayerStorageValue(cid, 98190),z=getPlayerStorageValue(cid, 98191)} doTeleportThing(cid, pos) return true end Caso queria que o item seja removido: function onUse(cid, item) local pos = {x=getPlayerStorageValue(cid,98189),y=getPlayerStorageValue(cid, 98190),z=getPlayerStorageValue(cid, 98191)} doTeleportThing(cid, pos) doRemoveItem(item) return true end
-
-
-
-
-
-
-
-
-
- Queria por fly para free
-
-
(Resolvido)Script De Teleport (!bug)
function onSay(cid, words, param)pos = {x=1059, y=1051, z=7} if getCreatureCondition(cid, CONDITION_INFIGHT) then doPlayerSendCancel(cid, "Nao ira fugir quando estiver de battle!") else doSendMagicEffect(getPlayerPosition(cid),19) doPlayerSendCancel(cid,"Teleportado!") doTeleportThing(cid,pos) end return true end
-
-
Tfs Error!
No arquivo .xml do npc está esse diretório, procure o npc e apague-o.
- {RESOLVIDO} [bug] Ao dar look
-
proteção time
Desculpe, não sabia que existia isso no config.lua.
-
Erro nos item.xml
Deve estar faltando um </item> ou sobrando.
-
Erro nos item.xml
Tem certeza que esse é a linha 2930? O meu aqui é esse: <item id="2356" article="a" name="small oil lamp"> <attribute key="weight" value="500" /> </item>
-
proteção time
Deu algum erro?
-
-
(Resolvido)Falar nome + group ao logar
Sim, sim, prefiro um novo arquivo.
-
(Resolvido)Falar nome + group ao logar
Prefiro criar um novo arquivo para ficar mais organizado, pois fica meio difícil depois para editar no meio de uma bagunça se todo script de função onLogin eu adicionar no login.lua.
-
-
(Resolvido)Falar nome + group ao logar
data/creaturescripts