
Tudo que Summ postou
- Oque um OTSERVER precisa?
-
Helmet of the ancients como carregar
function onUse(cid, item, fromPosition, itemEx, toPosition) local cost = 20000 -- Preço... if doPlayerRemoveMoney(cid, cost) then doRemoveItem(item.uid, 1) doPlayerAddItem(cid, 2343, 1) doSendMagicEffect(getThingPos(cid), 12) else doPlayerSendTextMessage(cid, 20, "Sorry, but you need ".. cost .." gold coins to get a new helmet of the ancients.") end return true end <action itemid="2342" script="ARQUIVO.lua"/>
-
(Resolvido)Talkaction Teleport
function onSay(cid, words, param) local pos = {x=32369, y=32241, z=7} local level = 8 if not getCreatureCondition(cid, CONDITION_INFIGHT) then if getTileInfo(getPlayerPosition(cid)).protection then if getPlayerLevel(cid) <= level then doSendMagicEffect(getPlayerPosition(cid),53) doPlayerSendTextMessage(cid, "Boa Sorte!") doTeleportThing(cid,pos) else doPlayerSendCancel(cid,"You dont have level.") end else doPlayerSendCancel(cid,"You need stay in a pz zone.") end else doPlayerSendCancel(cid, "You can not be in battle") end return true end
-
(Resolvido)Efeito Vocation
local tab = { [9] = 35, -- [vocationID] = número da cor do texto animado [10] = 10, [11] = 18, [12] = 180 } function ariseText(cid) local texts = {"´ . ,", ". ´ ,", "` . ,", ", ´ ."} if tab[getPlayerVocation(cid)] then doSendAnimatedText(getThingPos(cid), texts[math.random(1, #texts)], tab[getPlayerVocation(cid)]) addEvent(function() if isPlayer(cid) then ariseText(cid) end end, 1000) end return true end function onLogin(cid) ariseText(cid) return true end
-
(Resolvido)Ajuda Em criar 1 Npc De Informações
infodonates.lua local info = [[As informações de deposito : Banco do Brasil Nome : Flavio Agência : 6576-5 Conta : 9.751-9 ]] local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} 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 talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if msgcontains(msg:lower(), "deposito") or msgcontains(msg:lower(), "deposit") then selfSay(cid, info) elseif msgcontains(msg:lower(), "bye") or msgcontains(msg:lower(), "tchau") then selfSay(cid, "Volte sempre!!") end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) npc.XML <?xml version="1.0" encoding="UTF-8"?> <npc name="QUALQUERNAME" script="data/npc/scripts/infodonates.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="152" head="95" body="95" legs="29" feet="56" addons="2" corpse="6080"/> <parameters> <parameter key="message_greet" value="Ola senhor gostaria de comprar items donate? diga {deposito} para saber os dados bancarios para o {deposito}." /> </parameters> </npc>
-
Enem foda-se
vender drogas pra arrumar dinheiro + estudos na net(só pedir no skype) = fucking god
-
Fabio Brazza
- Erros mysql
posta esse script : <data/creaturescripts/scripts/firstitems.lua:53>- Erros mysql
CREATE TABLE `tile_store` ( `house_id` INT UNSIGNED NOT NULL, `world_id` TINYINT(4) UNSIGNED NOT NULL DEFAULT 0, `data` LONGBLOB NOT NULL, FOREIGN KEY (`house_id`) REFERENCES `houses` (`id`) ON DELETE CASCADE ) ENGINE = InnoDB; CREATE TABLE IF NOT EXISTS `player_inboxitems` ( `player_id` int(11) NOT NULL, `sid` int(11) NOT NULL, `pid` int(11) NOT NULL DEFAULT '0', `itemtype` smallint(6) NOT NULL, `count` smallint(5) NOT NULL DEFAULT '0', `attributes` blob NOT NULL, UNIQUE KEY `player_id_2` (`player_id`,`sid`), KEY `player_id` (`player_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;- Como DXAR poketibia online por VPS
Exato se tu comprar por apenas 1 mês, ai tu escolhe se compra plano de 1 mês, 3, 6, 12 ...- Parabéns pra mim \õ
eu não sou otaku rsrsrs, se for seguir o real sentido da palavra todos nós somos ... eu vejo muitos animes, mas não me intitulo otaku, como outros, apenas sou um mero apreciador da arte japonesa hu3dur- Qual sua área Preferida?
/\ errar é humano AKPSOAKPOSKPAOOPKSK- Qual sua área Preferida?
Scripting/Programação- Parabéns pra mim \õ
:foreverhappy: agora posso ser preso- PORTA + STORAGE
function onStepIn(cid, item, position, lastPosition) if(item.uid == 3087) then if getPlayerLevel(cid) > 79 and getPlayerStorageValue(cid, 30) < 1 then setPlayerStorageValue(cid, 30, 52) Player(cid):setStorageValue(12021, 3) -- StorageValue for Questlog "Mission 10: The Final Battle" doCreatureSay(cid, "It seems by defeating Azerus you have stopped this army from entering your world! Better leave this ghastly place forever.", TALKTYPE_ORANGE_1) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_BLUE) end end return true end- (Resolvido)Bless
eu troquei apenas a callback : function onDeath(cid, corpse, deathList) Essa callback como no próprio nome já diz "Death", ela é ativada quando uma criatura morre. ai troquei por essa, pois se da melhor com o script em questão : function onLogin(cid)- Por que?
- Por que?
- (Resolvido)Bless
blessedplayer.lua (data/creaturescripts/scripts): function onLogin(cid) for b = 1, 5 do if isPlayer(cid) and getPlayerBlessing(cid, b) and getCreatureSkullType < 4 then doCreatureSetDropLoot(cid, false) end end return true end <event type="login" name="BlessedPlayer" script="blessedplayer.lua"/> Não precisa registrar por ser callback onLogin.- Mapper King
- (Resolvido)(Pedido de Script) Aura Por Vocação e Outra Por lvl!
Se sua dúvida/pedido foi sanada ou respondido, marque o post que te ajudou como melhor resposta pro tópico ficar como resolvido. abrçs- Barra de life passando do limite
o correto era ir aumentando por si só, a life = maxlife, mana = maxmana, tenta fazer o que o daniel postou acima.- (Resolvido)(Pedido de Script) Aura Por Vocação e Outra Por lvl!
Testado e funcionando ambos agora : EffectPos.lua level = 300; -- LEVEL function effectPos(cid) local config = { effect = 2; -- EFFEITO } local tidpos = getCreaturePos(cid); local tableeffect = { [1] = {x=tidpos.x-1, y=tidpos.y-1, z=tidpos.z}; [2] = {x=tidpos.x, y=tidpos.y-1, z=tidpos.z}; [3] = {x=tidpos.x+1, y=tidpos.y-1, z=tidpos.z}; [4] = {x=tidpos.x+1, y=tidpos.y, z=tidpos.z}; [5] = {x=tidpos.x+1, y=tidpos.y+1, z=tidpos.z}; [6] = {x=tidpos.x, y=tidpos.y+1, z=tidpos.z}; [7] = {x=tidpos.x-1, y=tidpos.y+1, z=tidpos.z}; [8] = {x=tidpos.x-1, y=tidpos.y, z=tidpos.z}; } for x = 1, 8 do if not isPlayerPzLocked(cid) then addEvent(doSendMagicEffect, x * 2000, tableeffect[x], config.effect); addEvent(function () if isPlayer(cid) then effectPos(cid); end end , 1000); end end return 1; end function onAdvance(cid, skill, oldLevel, newLevel) skill = SKILL_LEVEL; if skill == level then effectPos(cid); doPlayerSendTextMessage(cid, 19, "Congratulations !!"); doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FIREWORK_YELLOW); end return 1; end function onLogin(cid) if getPlayerLevel(cid) >= level then effectPos(cid); end return 1; end EffectText.lua local config = { ["1-5"] = 120; -- [VOCATION] = CORES; ["2-6"] = 130; ["3-7"] = 140; ["4-8"] = 150; } function effectText(cid) local texts = "´ . ,"; for vocations, color in pairs(config) do local v = vocations:explode("-"); if getPlayerVocation(cid) == (tonumber(v[1]) or tonumber(v[2])) then eff = color break end end if eff then doSendAnimatedText(getThingPos(cid), texts, eff); addEvent(function() if isPlayer(cid) then effectText(cid) end end, 800); end return 1; end function onLogin(cid) effectText(cid) return 1; end- Mapper King
- (Resolvido)(Pedido de Script) Aura Por Vocação e Outra Por lvl!
Eu já to de saída mas amanhã quando eu entrar eu dou uma olhada e corrijo - Erros mysql
Informação Importante
Confirmação de Termo