Solutions
-
Marvok's post in Slot ammo não adiciona atributos. was marked as the answerColocou em movements?
-
Marvok's post in Stamina potion refil was marked as the answerlocal stamina = 42
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if player:getStamina() >= (stamina * 60) then
player:sendCancelMessage("Sua stamina já está cheia.")
else
player:setStamina(stamina * 60)
player:sendCancelMessage("Sua stamina foi recarregada.")
player:getPosition():sendMagicEffect(CONST_ME_MAGIC_RED)
item:remove(1)
end
return true
end
-
Marvok's post in Animação ao usar Spell was marked as the answer@Dk Raps
function onCastSpell(cid, var) local m = {lookType = ?, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 3} local f = {lookType = ?, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 3} local sex = getPlayerSex(cid) if sex == 0 then doSetCreatureOutfit(cid, f, 1000) else doSetCreatureOutfit(cid, m, 1000) end return doCombat(cid, combat, var) end Testa e me fala, basicamente é dessa forma o funcionamento.
-
Marvok's post in Teleport por Talkaction was marked as the answer@manojl
Acredito que você está dificultando muito o trabalho teste isso aqui.
function onSay(cid, words, param, channel)
if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
return true
end
local target = getPlayerByNameWildcard(param)
if(not target) then
target = getCreatureByName(param)
if(not target) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Creature not found.")
return true
end
end
if(isPlayerGhost(target) and getPlayerGhostAccess(target) > getPlayerGhostAccess(cid)) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Creature not found.")
return true
end
local pos = getClosestFreeTile(target, getCreaturePosition(cid), false, false)
if(not pos or isInArray({pos.x, pos.y}, 0)) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Cannot perform action.")
return true
end
local tmp = getCreaturePosition(target)
if(doTeleportThing(target, pos, true) and not isPlayerGhost(target)) then
doSendMagicEffect(tmp, CONST_ME_POFF)
doSendMagicEffect(pos, CONST_ME_TELEPORT)
end
return true
end
para você usar faça: /comando (nome do jogador).
acredito que isso já esteja até inserido no seu ot maaaas, tá aí.
-
Marvok's post in Anti-Exiva was marked as the answerem spells.cpp logo dps de:
Player* playerExiva = g_game.getPlayerByName(param); if (!playerExiva) { return false; } coloca isso
std::string stoNamequequiser; playerExiva->getStorage("141414", stoNamequequiser); if(atoi(stoNamequequiser.c_str()) > 0){ std::stringstream ss; ss << playerExiva->getName() << " blablabla."; player->sendTextMessage(MSG_INFO_DESCR, ss.str().c_str()); return true; } e dps faz uma talk simples para dar essa storage que esta no script.
-
Marvok's post in Tile Bugando Player [AJUDA] was marked as the answerCara no seu item.otb você deve repetir as informações as quais você colocou no cliente, veja em vermelho ali na imagem que você mandou.
Coloque as informações necessárias e corretas que irá funcionar normalmente.
-
Marvok's post in (Resolvido)Retirar proteção de loot dos corpses was marked as the answer@Thensus Warrior
normalmente vc irá conseguir arrumar isso em itens.xml, vc verifica o id que o bicho que morreu está endereçado, dessa forma você consegue modificar esse bloqueio.
-
Marvok's post in (Resolvido)[ERRO] Ao usar ROPE was marked as the answer@Vorkhon Testa esse aqui
function onUse(cid, item, fromPosition, itemEx, toPosition) local storageEx = 923501 local time = 1 ---- EXHAUST ------------------------------------------------------- if(getPlayerStorageValue(cid,storage) >= os.time()) then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return TRUE end doPlayerSetStorageValue(cid, storage, os.time() + time) ---- -------- ------------------------------------------------------- if(toPosition.x == CONTAINER_POSITION) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE) return true end toPosition.stackpos = STACKPOS_GROUND local itemGround = getThingFromPos(toPosition) if(isInArray(SPOTS, itemGround.itemid)) then doTeleportThing(cid, {x = toPosition.x, y = toPosition.y + 1, z = toPosition.z - 1}, false) return true elseif(isInArray(ROPABLE, itemEx.itemid)) then local hole = getThingFromPos({x = toPosition.x, y = toPosition.y, z = toPosition.z + 1, stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE}) if(hole.itemid > 0) then doTeleportThing(hole.uid, {x = toPosition.x, y = toPosition.y + 1, z = toPosition.z}, false) else doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE) end return true end return false end
-
Marvok's post in (Resolvido)Anihi Diferenciada - Halls of Hope 8.6 was marked as the answer@riibeirol Te mandei no PV, ve se funciona por favor.