-
Total de itens
118 -
Registro em
-
Última visita
Tudo que Bennyhappy postou
-
uma arma para atacar, dependendo do seu skills y level ,por exemplo: magic level * 1.5 + 100 + player level = dano total da arma mesmo por espada exemplo: skill sword * 2.0 + 150 + player level = dano total da arma mesmo para arco exemplo: skill dist *1.8 + 80 + player level = dano total da arma
-
action Ajuda com função doClean (pos) em action
pergunta respondeu ao Bennyhappy de Bennyhappy em Scripts
Obrigado, isso funcionou perfeitamente ;D -
action Ajuda com função doClean (pos) em action
pergunta respondeu ao Bennyhappy de Bennyhappy em Scripts
e para 5 id's portas diferentes ? lucasromero -
Olá boa noite, eu preciso de você para me ajudar com esta action, quando você ativar a alavanca, como você pode ver as portas também são removidos function onUse(cid, item, fromPosition, itemEx, toPosition) local monstros ={ {{x = 1101, y = 946, z = 7}, "Dragon"}, {{x = 1104, y = 946, z = 7}, "Dragon"}, {{x = 1108, y = 944, z = 7}, "Dragon"}, {{x = 1110, y = 943, z = 7}, "Dragon"}, {{x = 1102, y = 951, z = 7}, "Dragon"}, {{x = 1102, y = 953, z = 7}, "Dragon"}, {{x = 1115, y = 951, z = 7}, "Dragon"}, {{x = 1115, y = 955, z = 7}, "Dragon"}, {{x = 1115, y = 949, z = 7}, "Dragon"}, {{x = 1114, y = 948, z = 7}, "Dragon"}, {{x = 1118, y = 946, z = 7}, "Dragon"}, {{x = 1112, y = 948, z = 7}, "Dragon Lord"}, {{x = 1112, y = 949, z = 7}, "Dragon Lord"}, {{x = 1109, y = 948, z = 7}, "Dragon Lord"}, {{x = 1115, y = 954, z = 7}, "Dragon Lord"}, {{x = 1108, y = 954, z = 7}, "Dragon Lord"}, {{x = 1104, y = 955, z = 7}, "Dragon Lord"}, {{x = 1119, y = 949, z = 7}, "Dragon Lord"}, {{x = 1114, y = 946, z = 7}, "Dragon Lord"}, {{x = 1112, y = 955, z = 7}, "Dragon Lord"}, {{x = 1119, y = 954, z = 7}, "Dragon Lord"}, {{x = 1114, y = 948, z = 7}, "Dragon Lord"}, {{x = 1110, y = 947, z = 7}, "Dragon Lord Hatchling"}, {{x = 1116, y = 946, z = 7}, "Dragon Lord Hatchling"}, {{x = 1118, y = 945, z = 7}, "Dragon Lord Hatchling"}, {{x = 1119, y = 951, z = 7}, "Dragon Lord Hatchling"} } if SevenFloor() == false then return doPlayerSendCancel(cid, "sorry already have monster.") end for _, summon in pairs(monstros) do doCreateMonster(summon[2], summon[1]) end doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945) return true end function SevenFloor() local fromPosition,toPosition = {x = 1100, y = 944, z = 7},{x = 1120, y = 956, z = 7} -- começo e final da ára for x = fromPosition.x, toPosition.x do for y = fromPosition.y, toPosition.y do local pos = {x=x, y=y, z=fromPosition.z} local m = getTopCreature(pos).uid if m ~= 0 and isMonster(m) then return false end doCleanTile(pos) end end return true end antes de puxar a alavanca: ao puxar a alavanca , Também as portas são removidos. bumb
-
[GESIOR] VictorWEBMaster 2019v
tópico respondeu ao VictorWEBMaster de Bennyhappy em Websites & Layouts
tem alguns bugs, mas eu amei o gerente de contas eo sistema de loja! Isso vai cuidar do meu site -
Error ejecutando consulta: near "unsigned": syntax error <simple query executor>
- 3 respostas
-
- accountstorage
- storagevalue
- (e 3 mais)
-
obrigado Infante +REPPPPP
-
porque eu sempre obter o mesmo número? como posso fazer para torná-lo ramdom regeneração e é igual à mensagem que sai? ........................................................................................................................................................... because I always get the same number? as I can do to make it ramdom regeneration and is equal to the message coming out? AMMO_id = 11754 --- Id del ferumbras SEC = 3 HP = math.random(50, 100) MP = math.random(50, 100) function onEquip(cid, item, slot) local slots = getPlayerSlotItem(cid, slot ) if slots.itemid ~= item.itemid then return true end addEvent(regenMP, SEC * 1000, cid) doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'Ahora Estas Absorviendo Los Misticos Poderes De La Bestia Ferumbras.') return ERROR end function onDeEquip(cid, item, slot) doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'As Dejado De Absorver Los Poderes De Ferumbras.') doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return true end function regenMP(cid) if((getPlayerSlotItem(cid, CONST_SLOT_AMMO).itemid == AMMO_id) == true) then doSendMagicEffect(getPlayerPosition(cid), 13) doCreatureAddMana(cid, HP) doSendAnimatedText(getCreaturePosition(cid), '+ '..HP..'', TEXTCOLOR_PURPLE) addEvent(regenHP, SEC * 1000, cid) return false end end function regenHP(cid) if((getPlayerSlotItem(cid, CONST_SLOT_AMMO).itemid == AMMO_id) == true) then doSendMagicEffect(getPlayerPosition(cid), 13) doCreatureAddHealth(cid, MP) doSendAnimatedText(getCreaturePosition(cid), '+ '..MP..'', TEXTCOLOR_GREEN) addEvent(regenMP, SEC * 1000, cid) return false end end
-
Este código me ajuda a não funcionar correctamente, é para um evento (solved use movement no momento do morir) please close this topic local bmale = createConditionObject(CONDITION_OUTFIT) setConditionParam(bmale, CONDITION_PARAM_TICKS, -1) addOutfitCondition(bmale, {lookType = 328, lookHead = 59, lookBody =114, lookLegs = 85, lookFeet = 85, lookTypeEx = 0, lookAddons = 3}) local bfemale = createConditionObject(CONDITION_OUTFIT) setConditionParam(bfemale, CONDITION_PARAM_TICKS, -1) addOutfitCondition(bfemale, {lookType = 329, lookHead = 59, lookBody =114, lookLegs = 85, lookFeet = 85, lookTypeEx = 0, lookAddons = 3}) local StorageNovia = 38381 local arena_event_pos = {x = 794, y = 513, z = 7} --- centro de la arena del evento local zonaSpawn = {x = 794, y = 528, z = 6} -- zona spawn local timeSpawn = 15 function onKill(cid, target) if getPlayerStorageValue(target, StorageNovia) >= 1 then setPlayerStorageValue(target, StorageNovia, 0) doAddCondition(target, bmale) doTeleportThing(target, arena_event_pos) doSendMagicEffect(getPlayerPosition(target), CONST_ME_TELEPORT) addEvent(SendSpawnEventNovia, timeSpawn * 1000, target) doAddCondition(cid, bfemale) setPlayerStorageValue(cid, StorageNovia, 1) end return true end function SendSpawnEventNovia(target) doTeleportThing(target, arena_event_pos) doSendMagicEffect(getPlayerPosition(target), CONST_ME_TELEPORT) end [18/03/2014 14:46:10] [Error - CreatureScript Interface] [18/03/2014 14:46:10] In a timer event called from: [18/03/2014 14:46:10] data/creaturescripts/scripts/addonFrags.lua:onKill [18/03/2014 14:46:10] Description: [18/03/2014 14:46:10] (luaDoTeleportThing) Thing not found [18/03/2014 14:46:10] [Error - CreatureScript Interface] [18/03/2014 14:46:10] In a timer event called from: [18/03/2014 14:46:10] data/creaturescripts/scripts/addonFrags.lua:onKill [18/03/2014 14:46:10] Description: [18/03/2014 14:46:10] (luaGetThingPosition) Thing not found
-
compilar esta função funciona?
-
ser possível ajustar? to tfs 0.3.6?
-
[13/08/2013 14:24:48] [Error - TalkAction Interface] [13/08/2013 14:24:48] data/talkactions/scripts/speed.lua:onSay [13/08/2013 14:24:48] Description: [13/08/2013 14:24:48] data/lib/global.lua:2: attempt to call global 'ModalWindow' (a nil value) [13/08/2013 14:24:48] stack traceback: [13/08/2013 14:24:48] data/lib/global.lua:2: in function 'doPlayerAddDialog' [13/08/2013 14:24:48] data/talkactions/scripts/speed.lua:27: in function <data/talkactions/scripts/speed.lua:26> para tfs 0.3.6? server 8.6?
-
talkaction Descubra Senha e Account De Player Rápido !
tópico respondeu ao KillerMapper de Bennyhappy em Actions e Talkactions
e para shal1? -
creatureevent Mensagem Ao Morrer
tópico respondeu ao jhowzikah de Bennyhappy em Globalevents e Spells
temta asim function onKill(cid, target, lastHit) if isPlayer(target) == TRUE then doBroadcastMessage("O jogador ".. getCreatureName(cid) .." ["..getPlayerLevel(cid).."] acabou de matar o Noob " .. getCreatureName(target) .. " ["..getPlayerLevel(target).."!, MESSAGE_EVENT_ADVANCE) end return TRUE end -
RT @Xavi_Gattuso: Recuerdos que no voy a borrar .. personas que no voy a olvidar ... aromas que me quiero llevar .. silencios que prefie ...
-
creatureevent Trainer Off Sytem Beta By Caotic
tópico respondeu ao caotic de Bennyhappy em Globalevents e Spells
nao funciona 8.6?- 18 respostas
-
- trainer off
- trainer off by caotic
- (e 6 mais)
-
nao esta completo o script xD!
-
nao abre spoiler bro
-
[01/12/2012 18:02:51] [Error - LuaScriptInterface::loadFile] data/spells/scripts/healing/spell scroll heal.lua:32: '=' expected near '...' [01/12/2012 18:02:51] [Warning - Event::loadScript] Cannot load script (data/spells/scripts/healing/spell scroll heal.lua) [01/12/2012 18:02:51] data/spells/scripts/healing/spell scroll heal.lua:32: '=' expected near '...' function onCastSpell(cid, var) local YellowBag = getItemsInContainerById(getPlayerSlotItem(cid, 3).uid, 1992) --verifica se tem a yellow bag dentro da bag principal... if #YellowBag >= 1 then for i = 1, #YellowBag do 5952 bump
-
aqui nesta linha local Item = getItemsInContainerById(YellowBag, ITEMID) --verifica se tem o item dentro de alguma yellow bag... colocar o ID 1992 do bag asim: [color=#282828][size=2]local[/size][/color][color=#282828][size=2] [/size][/color][color=#282828][size=2]Item[/size][/color][color=#282828][size=2] [/size][/color][color=#282828][size=2]=[/size][/color][color=#282828][size=2] getItemsInContainerById[/size][/color][color=#282828][size=2]([/size][/color][color=#282828][size=2]YellowBag[/size][/color][color=#282828][size=2][[/size][/color][color=#282828][size=2]i[/size][/color][color=#282828][size=2]],[/size][/color][color=#282828][size=2] 1992[/size][/color][color=#282828][size=2])[/size][/color][color=#282828][size=2] [/size][/color][color=#282828][size=2]--[/size][/color][color=#282828][size=2]verifica se tem o item dentro de alguma yellow bag[/size][/color][color=#282828][size=2]...[/size][/color] e também tentar o ID 5952 do scroll asim: [color=#282828][size=2]local[/size][/color][color=#282828][size=2] [/size][/color][color=#282828][size=2]Item[/size][/color][color=#282828][size=2] [/size][/color][color=#282828][size=2]=[/size][/color][color=#282828][size=2] getItemsInContainerById[/size][/color][color=#282828][size=2]([/size][/color][color=#282828][size=2]YellowBag[/size][/color][color=#282828][size=2][[/size][/color][color=#282828][size=2]i[/size][/color][color=#282828][size=2]],[/size][/color][color=#282828][size=2]5952[/size][/color][color=#282828][size=2])[/size][/color][color=#282828][size=2] [/size][/color][color=#282828][size=2]--[/size][/color][color=#282828][size=2]verifica se tem o item dentro de alguma yellow bag[/size][/color][color=#282828][size=2]...[/size][/color] mas não consegue fazê-lo funcionar colocar o ID 1992 do bag asim: aqui nesta linha: local Item = getItemsInContainerById(YellowBag[i], 5952) --verifica se tem o item dentro de alguma yellow bag... colocar o ID 1992 do bag asim: [/size][size=4]local Item = getItemsInContainerById(YellowBag[i], [/size][color=#282828][font=helvetica, arial, sans-serif]1992[/font][/color][size=4]) --verifica se tem o item dentro de alguma yellow bag...[/size] [size=4] e também tentar o ID 5952 do scroll asim: [/size][size=4]local Item = getItemsInContainerById(YellowBag[i], 5952) --verifica se tem o item dentro de alguma yellow bag...[/size] [size=4] mas não consegue fazê-lo funcionar Eu não posso editar o meu post errado
-
Eu ainda tenho o mesmo problema, eu estou fazendo errado? function getItemsInContainerById(container, itemid) -- Function By Kydrai local items = {1992,5952} if isContainer(container) and getContainerSize(container) > 0 then for slot=0, (getContainerSize(container)-1) do local item = getContainerItem(container, slot) if isContainer(item.uid) then local itemsbag = getItemsInContainerById(item.uid, itemid) for i=0, #itemsbag do table.insert(items, itemsbag[i]) end else if itemid == item.itemid then table.insert(items, item.uid) end end end end return items end local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, 15000, 0, 20000) function onCastSpell(cid, var) local YellowBag = getItemsInContainerById(getPlayerSlotItem(cid, 3).uid, 1992) --verifica se tem a yellow bag dentro da bag principal... if #YellowBag >= 1 then for i = 1, #YellowBag do --coloque o id aki! local Item = getItemsInContainerById(YellowBag[i], ITEMID) --verifica se tem o item dentro de alguma yellow bag... if #Item >= 1 then return doCombat(cid, combat, var) end end end return FALSE end bump
-
basta mudar o ID do item no yellow bag aqui? local Item = getItemsInContainerById(YellowBag, ITEMID) ---? Eu fiz isso, mas não funcionou, configure-o errado? yellow bag IItemID: [1992]. poem scroll ItemID: [5952]. function getItemsInContainerById(container, itemid) -- Function By Kydrai local items = {} if isContainer(container) and getContainerSize(container) > 0 then for slot=0, (getContainerSize(container)-1) do local item = getContainerItem(container, slot) if isContainer(item.uid) then local itemsbag = getItemsInContainerById(item.uid, itemid) for i=0, #itemsbag do table.insert(items, itemsbag[i]) end else if itemid == item.itemid then table.insert(items, item.uid) end end end end return items end local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -11, -80, -11, -120, 60, 60, 9.9, 9.9) function onCastSpell(cid, var) local YellowBag = getItemsInContainerById(getPlayerSlotItem(cid, 3).uid, 1992) --verifica se tem a yellow bag dentro da bag principal... if #YellowBag >= 1 then for i = 1, #YellowBag do --coloque o id aki! local Item = getItemsInContainerById(YellowBag[i], 5952) --verifica se tem o item dentro de alguma yellow bag... if #Item >= 1 then return doCombat(cid, combat, var) end end end return FALSE end ajuda BUMP ajudaaaaaaaaaaaaaaaaaa bump
-
Mas isso script não necessariamente tem que ser na minha yellow bag Não sei como poderia ser?
-
nao abre o spoiler
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.