Ir para conteúdo

joderson

Campones
  • Total de itens

    36
  • Registro em

  • Última visita

Tudo que joderson postou

  1. o meu sistema vip e dakeles ke quando vc usa um item vc recebe 30 dias de vip ae o scrpit: 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 * 30 * 60 * 60 local storageplayer = getPlayerStorageValue(cid, 13540) local timenow = os.time() if getPlayerStorageValue(cid, 13540) - 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, 13540, time) local quantity = math.floor((getPlayerStorageValue(cid, 13540) - timenow)/(30 * 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) end return TRUE end
  2. o meu npc ele ja da promotion mais ele fika pra sempre eu kero ke acabe junto com a minha vip. 1° NPC Script 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 local node1 = keywordHandler:addKeyword({'promot'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can promote you for 20000 gold coins. Do you want me to promote you?'}) node1:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 20000, level = 20, promotion = 1, text = 'Congratulations! You are now promoted.'}) node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true}) npcHandler:addModule(FocusModule:new()) XML <npc name="The King" script="data/npc/scripts/promotion.lua" floorchange="0" access="5" level="1" maglevel="1"> <health now="150" max="150"/> <look type="132" head="114" body="114" legs="94" feet="132" addons="3" corpse="2212"/> <parameters> <parameter key="message_greet" value="Hello |PLAYERNAME|. I sell {promotion}." /> </parameters> </npc>
  3. puts no meu tbm tipo nao aparece a vocaçao dai eu tento de outro geito so ke dai aparece no account manager
  4. eu kero ke nao apareça no account manager. eu axo tem ke ser um creaturescripts login mais eu nao sei fazer.
  5. local config = { loginMessage = getConfigValue('loginMessage') } function onLogin(cid) local loss = getConfigValue('deathLostPercent') if(loss ~= nil) then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10) end local accountManager = getPlayerAccountManager(cid) if(accountManager == MANAGER_NONE) then local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage if(lastLogin > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "." else str = str .. " Please choose your outfit." doPlayerSendOutfitWindow(cid) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) elseif(accountManager == MANAGER_NAMELOCK) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?") elseif(accountManager == MANAGER_ACCOUNT) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.") end if(not isPlayerGhost(cid)) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) end registerCreatureEvent(cid, "Mail") registerCreatureEvent(cid, "KillingInTheNameOf") registerCreatureEvent(cid, "GuildMotd") registerCreatureEvent(cid, "Idle") registerCreatureEvent(cid, "SkullCheck") registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, "conected") registerCreatureEvent(cid, "reborn") registerCreatureEvent(cid, "DeathBroadcast") registerCreatureEvent(cid, "rep") registerCreatureEvent(cid, "onPrepareDeath") registerCreatureEvent(cid, "ArenaKill") -- if he did not make full arena 1 he must start from zero if getPlayerStorageValue(cid, 42309) < 1 then for i = 42300, 42309 do setPlayerStorageValue(cid, i, 0) end end -- if he did not make full arena 2 he must start from zero if getPlayerStorageValue(cid, 42319) < 1 then for i = 42310, 42319 do setPlayerStorageValue(cid, i, 0) end end -- if he did not make full arena 3 he must start from zero if getPlayerStorageValue(cid, 42329) < 1 then for i = 42320, 42329 do setPlayerStorageValue(cid, i, 0) end end if getPlayerStorageValue(cid, 42355) == -1 then setPlayerStorageValue(cid, 42355, 0) -- did not arena level end setPlayerStorageValue(cid, 42350, 0) -- time to kick 0 setPlayerStorageValue(cid, 42352, 0) -- is not in arena return true end
  6. eu kero vocaçoes vip tipo ke nao apareça no account manager ke mude os fromvoc pq dai quando eu relogar eu viro outra vocaçao como eu faço ke o player quando relogue nao troque de vocaçao e nem ke apareça no account manager. mais o meu objetivo é fazer novas vocaçoes para por magias vip mais se alguem souber outro meio ta valendo rep ++
  7. nao eu axei o ploblema pq eu nao entrava mais nao sei resolver e o logvoc.lua algo esta errado la.puts nao tem outro geito sera de fazer vocaçoes vip vc's tem ot né. se tem como fizeram as voc vip
  8. [12/03/2012 01:20:42] Joder has logged in. [12/03/2012 01:20:42] Joder has logged out. ta dando isso
  9. agora eu nao consigo entrar no jogo aparece assim no execultavel ke eu entrei mais dai eu sai mais nao aparece no tibia.exe [12/03/2012 01:02:31] [Warning - Vocations::getVocation] Vocation 4294967295 not found. [12/03/2012 01:02:31] [Warning - Vocations::getVocation] Vocation 4294967295 not found.
  10. deu esse erro [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/loginvoc.lua) [12/03/2012 00:46:41] data/creaturescripts/scripts/loginvoc.lua:12: '<eof>' expected near 'end'
  11. dai em creatutescrpits xml como eu coloco. e a storage é eu ke crio ela?
  12. ae ke ta se eu por from voc quando eu relogar vo virar elite knight
  13. Ei nao fecha ainda nao eu kero saber como eu faço pra fazer vocaçoes vip sem aparecer no account manager e ke nao bug a vocaçao. eu fiz magias editadas eu to precisando muito plis
  14. 1° vo passar meu vocations xml ta imcompleto mais da pra ter uma base <?xml version="1.0" encoding="UTF-8"?> <vocations> <vocation id="0" name="None" description="none" needpremium="0" gaincap="500" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="1" name="Master Sorcerer" description="a Master Sorcerer" needpremium="0" gaincap="100" gainhp="10" gainmana="60" gainhpticks="2" gainhpamount="1000" gainmanaticks="1" gainmanaamount="1500" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="1"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="2" name="Elder Druid" description="a Elder Druid" needpremium="0" gaincap="100" gainhp="10" gainmana="60" gainhpticks="2" gainhpamount="1000" gainmanaticks="1" gainmanaamount="1500" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="2"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="3" name="Royal Paladin" description="a Royal Paladin" needpremium="0" gaincap="200" gainhp="20" gainmana="30" gainhpticks="2" gainhpamount="1500" gainmanaticks="2" gainmanaamount="1300" manamultiplier="1.4" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="3"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="4" name="Elite Knight" description="a Elite Knight" needpremium="0" gaincap="250" gainhp="30" gainmana="10" gainhpticks="1" gainhpamount="1700" gainmanaticks="2" gainmanaamount="800" manamultiplier="3.0" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="4"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="5" name="Sorcerer" description="a Sorcerer" needpremium="0" gaincap="100" gainhp="10" gainmana="60" gainhpticks="2" gainhpamount="1000" gainmanaticks="1" gainmanaamount="1500" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="5"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="6" name="Druid" description="a Druid" needpremium="0" gaincap="100" gainhp="10" gainmana="60" gainhpticks="2" gainhpamount="1000" gainmanaticks="1" gainmanaamount="1500" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="6"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="7" name="Paladin" description="a Paladin" needpremium="0" gaincap="100" gainhp="10" gainmana="60" gainhpticks="2" gainhpamount="1000" gainmanaticks="1" gainmanaamount="1500" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="7"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="8" name="Knight" description="a Knight" needpremium="0" gaincap="100" gainhp="10" gainmana="60" gainhpticks="2" gainhpamount="1000" gainmanaticks="1" gainmanaamount="1500" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="8"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="9" name="Mixed Assassin" description="a Mixed Assassin" needpremium="0" gaincap="100" gainhp="10" gainmana="60" gainhpticks="2" gainhpamount="1000" gainmanaticks="1" gainmanaamount="1500" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="9"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> </vocations> 2° ta vendo entao kero saber como ke faço ke essa vocaçao nao apareça no account manager.
  15. ae man vo ver um filme agora depois eu testo blz vlw ae se funfa do rep + ei até ke deu certo sim. mais antes eu keria reset vocaçao pela quest dai eu nao axei eu resolvi fazer um npc ke desse promotion dai eu botava ele no final da quest e dava o promotion. so ke as vocaçoes fika no account manager dai eu ponho. ex: formvoc:1 dai ele nao aparece no account manager mais dai quando reloga volta a vocaçao 1 eu kero ke quando ganhe promotion fike na mesma vocaçao sem buga a vocaçao e sem ke apareça no account manager. tipo no vocations xml eu coloquei nas vocaçoes de promotion esse baguizinho <!-- dai no final --> mais isso nao funciona vc sabe algo ke ue possa fazer ke nao apareça no account manager e nem ke volta a vocaçao normal.
  16. Ta aê 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, 'Promote') or msgcontains(msg, 'promote')) then selfSay('Deseja virar {Lonely Star} por 20 crystal coins?', cid) talkState[talkUser] = 1 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then if(getPlayerItemCount(cid, 2160) >= 20) then doPlayerRemoveItem(cid, 2160, 20) doPlayerSetVocation(cid,14) selfSay('Vocação trocada com sucesso , Agora você é um Lonely Star.', cid) else selfSay('Você não tem {crystal coins} Suficientes.', cid) end talkState[talkUser] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Mais e assim ke eu kero e tipo fazer um npc de promotion ke quando eu seja promovido eu ganhe tal vocaçao e ganhe novas magias isso e facil mais quando eu fiz as vocaçoes apareceu no account manager dai eu kero ke nao apareça no account manager e nem quando eu reloge vire outra vocaçao. plis valendo rep +
  17. o meu problema e diferente pakas eu nao consigo fazer uma nova vocaçao vip tipo eu fiz um npc de promotion ae eu vo dar look ta sem nome da vocaçao. plis alguem me ajuda
  18. eu tbm kero saber isso
  19. meu playstation 3 :'( foi roubado tnc
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...