-
Total de itens
109 -
Registro em
-
Última visita
Tudo que Nathan96 postou
-
Testa o que eu uso ai pra ver si funciona. [spoiler] local config = { removeOnUse = "yes", usableOnTarget = "yes", -- can be used on target? (fe. healing friend) splashable = "no", realAnimation = "no", -- make text effect visible only for players in range 1x1 healthMultiplier = 1.0, manaMultiplier = 1.0 } config.removeOnUse = getBooleanFromString(config.removeOnUse) config.usableOnTarget = getBooleanFromString(config.usableOnTarget) config.splashable = getBooleanFromString(config.splashable) config.realAnimation = getBooleanFromString(config.realAnimation) local POTIONS = { [8704] = {empty = 7636, splash = 2, health = {160, 210}}, -- small health potion [7618] = {empty = 7636, splash = 2, health = {210, 300}}, -- health potion [7588] = {empty = 7634, splash = 2, health = {280, 340}, level = 50, vocations = {3, 4, 7, 8}, vocStr = "knights and paladins"}, -- strong health potion [7591] = {empty = 7635, splash = 2, health = {500, 700}, level = 80, vocations = {4, 8}, vocStr = "knights"}, -- great health potion [8473] = {empty = 7635, splash = 2, health = {800, 1000}, level = 130, vocations = {4, 8}, vocStr = "knights"}, -- ultimate health potion [7620] = {empty = 7636, splash = 7, mana = {150, 320}}, -- mana potion [7589] = {empty = 7634, splash = 7, mana = {330, 480}, level = 50, vocations = {1, 2, 3, 5, 6, 7, 9, 10, 11, 13, 14, 15, 31, 32, 33, 34, 21, 22, 23, 24,39 ,40 ,41 ,42}, vocStr = "sorcerers, druids and paladins"}, -- strong mana potion [7590] = {empty = 7635, splash = 7, mana = {700, 950}, level = 80, vocations = {1, 2, 5, 6 ,9 ,10 ,13 ,14 ,31 ,32 ,33 ,34,39 ,40 ,41 ,42}, vocStr = "sorcerers and druids"}, -- great mana potion [8472] = {empty = 7635, splash = 3, health = {200, 400}, mana = {110, 190}, level = 80, vocations = {3, 7}, vocStr = "paladins"} -- great spirit potion } local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100)) function onUse(cid, item, fromPosition, itemEx, toPosition) local potion = POTIONS[item.itemid] if(not potion) then return false end if(not isPlayer(itemEx.uid) or (not config.usableOnTarget and cid ~= itemEx.uid)) then if(not config.splashable) then return false end if(toPosition.x == CONTAINER_POSITION) then toPosition = getThingPos(item.uid) end doDecayItem(doCreateItem(2016, potion.splash, toPosition)) doTransformItem(item.uid, potion.empty) return true end if(hasCondition(cid, CONDITION_EXHAUST_HEAL)) then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return true end if(((potion.level and getPlayerLevel(cid) < potion.level) or (potion.vocations and not isInArray(potion.vocations, getPlayerVocation(cid)))) and not getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES)) then doCreatureSay(itemEx.uid, "Only " .. potion.vocStr .. (potion.level and (" of level " .. potion.level) or "") .. " or above may drink this fluid.", TALKTYPE_ORANGE_1) return true end local health = potion.health if(health and not doCreatureAddHealth(itemEx.uid, math.ceil(math.random(health[1], health[2]) * config.healthMultiplier))) then return false end local mana = potion.mana if(mana and not doPlayerAddMana(itemEx.uid, math.ceil(math.random(mana[1], mana[2]) * config.manaMultiplier))) then return false end doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE) if(not realAnimation) then doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1) else for i, tid in ipairs(getSpectators(getCreaturePosition(cid), 1, 1)) do if(isPlayer(tid)) then doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1, false, tid) end end end doAddCondition(cid, exhaust) if(not potion.empty or config.removeOnUse) then doRemoveItem(item.uid, 1) return true end doRemoveItem(item.uid, 1) doPlayerAddItem(cid, potion.empty, 1) pot_count = getPlayerItemCount(cid, potion.empty) doPlayerRemoveItem(cid, potion.empty, pot_count) doPlayerAddItem(cid, potion.empty, pot_count) return true end [/spoiler] Mas ai você edita diacordo com o seu server
-
Cara no meu server também tinha isso das runas não serem infinitas ai a carga de 100 mandava tudo de uma veis então de look na suas runas i vai no items.xml i apague essa tag de todas que você desejar que vai da certo <attribute key="charges" value="2" />
-
talkaction [ Talkaction ]Teleport Por Talk. Para Vip
tópico respondeu ao Vodkart de Nathan96 em Actions e Talkactions
Entra msn ai Thiago para você mi tirar uma duvida -
posta o vocation.xml todo ai pra eu fazer um teste aqui para ver si é o seu distro que não suporta.
-
action Cassino System 100% By Drakylucas
tópico respondeu ao drakylucas de Nathan96 em Actions e Talkactions
belíssimo script, Rep + -
Si fosse facil assim eu não estaria aqui com essa duvida né amigo , na área que eu estava planejando é tipo uma área de pvp enforced la você não cata pk ao atacar outro player i é isso que o pvp zone tool faz, só que quando o player chega no 0 de HP ao em veis de morrer ele é teleportado ao templo com full mana i full hp.
-
Não teria como fazer uma área com Pvp Zone tool i ao invés do player ser teleportado para o templo, ele morrer (perde skill,level,etc) ?
-
Anti Account Manager Mage Bomb Crash
tópico respondeu ao luisfe23 de Nathan96 em Globalevents e Spells
Agora sim em rep + -
Anti Account Manager Mage Bomb Crash
tópico respondeu ao luisfe23 de Nathan96 em Globalevents e Spells
Unable load createrscripts ! -
Anti Account Manager Mage Bomb Crash
tópico respondeu ao luisfe23 de Nathan96 em Globalevents e Spells
Copiei de la ai o servidor nem liga depois da script implantada. -
Anti Account Manager Mage Bomb Crash
tópico respondeu ao luisfe23 de Nathan96 em Globalevents e Spells
Abri mage bomb no meu server i não deu depois fui olhar no distro ai tava esse erro [04/07/2012 00:00:52] [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/antimbcrash.lua:5: 'then' expected near '&' [04/07/2012 00:00:52] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/antimbcrash.lua) [04/07/2012 00:00:52] data/creaturescripts/scripts/antimbcrash.lua:5: 'then' expected near '&' -
@caotic eu pensei nisso também i fiz so que ai nem uma account entra. no caso sha1 as senha sao psicografadas ai eu teria de (resetar o ot) ;/
-
Estou com um erro no distro que esta impossibilitando a entrada dos player no meu server. [02/07/2012 17:50:41] > WARNING: You cannot switch from hashed passwords to plain text, change back the passwordType in config.lua to the passwordType you were previously using. i na conf.lua esta certinho mais ta dando esse erro encryptionType = "plain" Rep + pra quem ajudar
-
Que isso Tamos ai pra ajudar, Peso que a moderação feche o topico.
- 4 respostas
-
- sei la oq pego
- otserv
-
(e 2 mais)
Tags:
-
Man o seu erro é na tag do xml, troque a sua ali por <instant name="Katon Goukakyuu no Jutsu!" words="Katon Goukakyuu no Jutsu" lvl="85" mana="720" prem="0" direction="1" range="3" blockwalls="1" exhaustion="1500" needlearn="0" event="script" value="sasuke/Goukakyuu no Jutsu.lua"> <vocation id="2"> </instant>
- 4 respostas
-
- sei la oq pego
- otserv
-
(e 2 mais)
Tags:
-
Muito obrigado man, mais eu já resolvi o problema, era o piso de baixo da porta que estava a bugando. Mais vlw a intensão ! Por favor fechem o topico.
-
Quando você voltar mi adicione msn para gente conversar melhor, nathanfm2010@hotmail.com
-
isso que eu fiz man so mudei a tag para ser com keys diferentes mais 3 estáo dando erro ;s, eu já fiz, refiz i nada dela funcionar
-
Man mais é o seguinte eu fiz essa mesma script em 7 portas tudo certinho ai 4 funcionarão i 3 não isso ta mi matando de raiva já, 3 portas não funcionam i o pior que nem erro no distro da ;s
-
mais a sua funciona ?
-
Deu errado ;/ não funcionou também
-
Vo testar aqui vlw pela dica.
-
Belo npc Rep +, Thiago da pra entrar msn ?
-
Estou com um probleminha aqui i gostaria que alguém pudesse mi ajudar, Rep + claro ;s function onUse(cid, item, frompos, item2, topos) local pausa = 30000 local door = {x=687, y=1266, z=8, stackpos=1} local ddoor = getThingfromPos(door) local open_door = 5734 local itemU = 24004 local verify = 0 if item2.uid == itemU then if ddoor.itemid ~= verify then doTransformItem(ddoor.uid,open_door) addEvent(close,pausa,door) end else doPlayerSendCancel(cid,"Esta chave nao pode ser usado aqui") end return 1 end function close(door) local to_close_door = 5733 local the_close_door = getThingfromPos(door) doTransformItem(the_close_door.uid,to_close_door) end <action itemid="2088" script="tools/chaveanfallas3.lua" /> Eu vou no map editor i coloco la na porta action 2088 i unique 24004. ai nao da certo ai entao pelo jogo eu apago a porta crio outra de mesmo id i fasso as mesmas coisas com /attr ai a porta si abre...Si alguém puder ajudar desde já grato.
-
Agora sim.
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.