
di12345di
Membro
-
Registro em
-
Última visita
Histórico de Curtidas
-
di12345di deu reputação a di12345d em GesiorACC 2019 8.60 UPDATE 29/06/2019Natanael Beckman
Natan to com seu gesior nota 10,http://prnt.sc/bo4nge
enfim eu gostaria de saber se você poderia trocar esse ranking do inicio do site por esse com os 10 primeiros colocados com o addon atual do jogador é possivel ?
http://prntscr.com/bo4ojv
-
di12345di recebeu reputação de subhe em Erro CreatureScripte você ao invez de criticar poderia ter ajudado antes
-
di12345di deu reputação a Sekk em addon scriptTenta ai:
actions/scripts crie addons.lua e coloque isso dentro:
XXXX - ID do item pra usar
actions.xml
<action itemid="XXXX" event="script" value="addons.lua"/> XXXX - ID do item pra usar(mesmo id do item do arquivo na segunda linha)
-
di12345di recebeu reputação de Anuudek em Erro CreatureScripte você ao invez de criticar poderia ter ajudado antes
-
di12345di recebeu reputação de Anuudek em Erro CreatureScriptapague a linha
registerCreatureEvent(cid, "onPrepareDeath")
depois troque por essa registerCreatureEvent(cid, "PlayerDeath")
e no script de playerdeath.lua você troca por esse.
function onDeath(cid, corpse, deathList)
local v = getPlayerSlotItem(cid, CONST_SLOT_NECKLACE)
if v.itemid == 2173 then
doRemoveItem(v.uid)
end
return true
end
-
di12345di recebeu reputação de Anuudek em Erro CreatureScriptconseguiu resolver amigo?
caso sim rep+ e melhor resposta obrigado.
-
di12345di deu reputação a brendoonh em (Resolvido)[VIP]Actions
<action itemid="xxxx" script="vipdonat.lua"/> vipdonat.lua: (13778) storage, mude-a para desejada
function onUse(cid, item, fromPosition, itemEx, toPosition) local config={ removeOnUse = "yes" -- remover quando usar ("yes" or "no") } local days = 30 -- dias que serão adicionados local daysvalue = days * 24 * 60 * 60 local storageplayer = getPlayerStorageValue(cid, 13778) local timenow = os.time() if getPlayerStorageValue(cid, 13778) - os.time() <= 0 then time = timenow + daysvalue else time = storageplayer + daysvalue end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados ".. days .." dias de VIP no seu character.") setPlayerStorageValue(cid, 13778, time) local quantity = math.floor((getPlayerStorageValue(cid, 13778) - timenow)/(24 * 60 * 60)) doSendMagicEffect(getPlayerPosition(cid), math.random(28,30)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. quantity .." dias de VIP restantes.") if (config.removeOnUse == "yes") then doRemoveItem(item.uid, 1) db.executeQuery("UPDATE `players` SET `name` = '[VIP] "..getCreatureName(cid).."' WHERE `id` = "..getPlayerGUID(cid)..";") doPlayerSendTextMessage(cid,25,"Você será kickado em 5 segundos para mudança de nome.") doPlayerAddAddons(cid, 1) addEvent(doRemoveCreature, 5*1000, cid, true) end return TRUE end creatureevents.xml add
<event type="login" name="FimVip" event="script" value="fimvip.lua"/> fimvip.lua creatureevents/script
function onLogin(cid) local temple = { x =160, y = 54, z = 7} if vip.hasVip(cid) == true then if getPlayerStorageValue(cid,13778) ~= 1 then setPlayerStorageValue(cid,13778,1) end else if getPlayerStorageValue(cid,13778) == 1 then doTeleportThing(cid, temple) doPlayerSendTextMessage(cid, 22, "Sua vip acabou!") db.executeQuery("UPDATE `accounts` SET `vip_time` = 0 WHERE `id` = ".. getAccountIdByName(getPlayerName(cid)) ..";") setPlayerPromotionLevel(cid, 1) setPlayerStorageValue(cid, 13778, 0) end end return true end function onLogin(cid) local name = string.gsub(""..getCreatureName(cid).."", ".VIP. ", "") if getPlayerStorageValue(cid, 13778) <= 0 then if getCreatureName(cid) ~= name then db.executeQuery("UPDATE `players` SET `name` = '"..name.."' WHERE `id` = "..getPlayerGUID(cid)..";") addEvent(doRemoveCreature, 2*1000, cid, true) end end return true end movements.xml 29859 (action id do piso que expulsará intrusos)
<movevent type="StepIn" actionid="29859" event="script" value="viptile.lua"/> viptile.lua
function onStepIn(cid, item, position, fromPosition) local config = { msgDenied = "Este lugar é só para vips donate, adquira sua vip no site..", msgWelcome = "Bem vindo a area vip, você tem 20% a mais de xp, bom up.." } if getPlayerStorageValue(cid, 13778) - os.time() <= 0 then doTeleportThing(cid, fromPosition, true) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgDenied) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return TRUE end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgWelcome) return TRUE end
Creditos: alissonxzff2
-
di12345di deu reputação a Wakon em (Resolvido)script npc simplesEm "Data/npc/scripts", arquivo.lua:
local t = { money = 10000, pos = {x = 160, y = 54, z = 7} } local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local msg = msg:lower(); if msgcontains(msg, 'the place of death') then if doPlayerRemoveMoney(cid, t.money) then doTeleportThing(cid, t.pos) selfSay('Boa sorte.', cid) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_TELEPORT) else selfSay('Você não tem '.. t.money ..' gold coins.', cid) end end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Em "Data/npc", arquivo.xml:
<?xml version="1.0" encoding="UTF-8"?> <npc name="NOMEDONPC" script="travelTest.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="128" head="17" body="54" legs="114" feet="0" addons="2"/> <parameters> <parameter key="message_greet" value="Olá |PLAYERNAME|! Eu te levarei a melhor e maior quest por apenas 100kk, diga {The Place of Death} para entrar. MWAHAWAWAHWAWA!"/> </parameters> </npc> Configure o valor que será cobrado do player em money e a position que será levado após falar a msg necessária em pos.
-
di12345di deu reputação a MatheusEnjoy em Capacidade de SobrecargadaTentando trazer ainda mais conteúdo para o forum, achei um código pronto muito interessante que aumenta muito o RPG do servidor.
E um sistema tirado dos jogos da Bethesda como Skyrim e Fallout. Essa modificação faz com o que personagem com a tenha capacidade de carregar infinita, mais ao chegar determinado valor o personagem começa andar mais devagar.
Vamos ao código:
Em config.lua
Abaixo de:
playerFollowExhaust = 0Adicione:
capacityOverload = 0.75Em configmanager.cppAbaixo de:
m_confNumber[FOLLOW_EXHAUST] = getGlobalNumber("playerFollowExhaust", 2000); Adicione:
m_confDouble[CAPACITY_OVERLOAD] = getGlobalDouble("capacityOverload", 0.75); Em configmanager.hAbaixo de:
FORMULA_MAGIC,Adicione:
CAPACITY_OVERLOAD,Em player.cppSubstitua:
windowTextId = nextExAction = 0;Por:
windowTextId = nextExAction = capacityOverload = 0;Substitua:
void Player::updateInventoryWeight()Por:
void Player::updateInventoryWeight() { inventoryWeight = 0.00; if(hasFlag(PlayerFlag_HasInfiniteCapacity) || !g_config.getBool(ConfigManager::USE_CAPACITY)) return; for(int32_t i = SLOT_FIRST; i < SLOT_LAST; ++i) { if(Item* item = getInventoryItem((slots_t)i)) inventoryWeight += item->getWeight(); } if (inventoryWeight >= capacity && !capacityOverload) { capacityOverload = (int32_t)(getSpeed() * g_config.getDouble(ConfigManager::CAPACITY_OVERLOAD)); g_game.changeSpeed(this, -capacityOverload); } else if (inventoryWeight < capacity && capacityOverload) { g_game.changeSpeed(this, capacityOverload); capacityOverload = 0; } }Substitua:
bool Player::hasCapacity(const Item*, uint32_t) constPor:
bool Player::hasCapacity(const Item*, uint32_t) const { return true; }Substitua:
void Player::onThink(uint32_t interval)Por:
void Player::onThink(uint32_t interval) { Creature::onThink(interval); int64_t timeNow = OTSYS_TIME(); if(timeNow - lastPing >= 5000) { if (capacityOverload) { g_game.addMagicEffect(getPosition(), MAGIC_EFFECT_POFF); sendCancel("Your capacity is overloaded!"); } lastPing = timeNow; if(hasClient()) client->sendPing(); else if(g_config.getBool(ConfigManager::STOP_ATTACK_AT_EXIT)) setAttackedCreature(NULL); } if((timeNow - lastPong) >= 60000 && !getTile()->hasFlag(TILESTATE_NOLOGOUT) && !isConnecting && !pzLocked && !hasCondition(CONDITION_INFIGHT)) { if(hasClient()) client->logout(true, true); else if(g_creatureEvents->playerLogout(this, false)) g_game.removeCreature(this, true); } messageTicks += interval; if(messageTicks >= 1500) { messageTicks = 0; addMessageBuffer(); } if(lastMail && lastMail < (uint64_t)(OTSYS_TIME() + g_config.getNumber(ConfigManager::MAIL_ATTEMPTS_FADE))) mailAttempts = lastMail = 0; }Em player.hAbaixo de:
int32_t shieldBlockCount;Adicione:
int32_t capacityOverload;Créditos:Code by: sn3ejk - OTLand
Tradução by: MatheusEnjoy
-
di12345di deu reputação a Yan Liima em (Resolvido)duvidaProcura no seu config.lua rateExperienceFromPlayers e coloque 0 rateExperienceFromPlayers = 0
-
di12345di deu reputação a Absolute em (Resolvido)duvidaCom certeza seu servidor está para ganhar EXP ao matar players, verifique no config.lua e mude para 0. :D
-
-
di12345di deu reputação a .HuRRiKaNe em vpsWindows ou Linux?
-
di12345di deu reputação a Gustavo Ferreira em RME MAp editor ajuda pfDaee diegoo, Problema simples cara!
http://remeresmapeditor.com/marklar.php?clients
Baixa cliete 8.60 site direto do RME,
Coloca a pasta items.XML e Items.Otbm na pasta 8.6 do Rme..
Ai Abre!! veremos o resultado..