Ir para conteúdo

godjean

Campones
  • Total de itens

    61
  • Registro em

  • Última visita

Tudo que godjean postou

  1. Ola galera do xtibia Hoje venho aqui perdir um script que é o seguinte No meu servidor tem 20 vocations Sendo que eu queria que tipo vocation id 8 - só pode-se se ataca e não pode-se ataca 9+ e 9 + não pode-se atacar 8- Explicando de outra forma-- Vocations:1,2,3,4,5,6,7 e 8 pode se matar porem elas não podem ser atacadas pela 9,10,11,12,13,14,15,16,17,18 e 20 e visse versa.
  2. godjean

    Script Bugado

    Deu erro nesse script
  3. godjean

    Script Bugado

    eu ja concertei boa parte porem ta só dando bug na addOutfitCondition(Chronos, 0, 251, 114, 114, 114, 114)
  4. godjean

    Script Bugado

    Ola pessoal do xtibia Então eu tenho um script que ele meio que não funciona gostaria de saber se algo pode-se me ajudar :S local function Blood30(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) end end local function Blood29(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood30, 1 * 1000, cid) end end local function Blood28(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood29, 1 * 1000, cid) end end local function Blood27(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood28, 1 * 1000, cid) end end local function Blood26(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood27, 1 * 1000, cid) end end local function Blood25(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood26, 1 * 1000, cid) end end local function Blood24(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood25, 1 * 1000, cid) end end local function Blood23(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood24, 1 * 1000, cid) end end local function Blood22(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood23, 1 * 1000, cid) end end local function Blood21(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood22, 1 * 1000, cid) end end local function Blood20(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood21, 1 * 1000, cid) end end local function Blood19(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood20, 1 * 1000, cid) end end local function Blood18(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood19, 1 * 1000, cid) end end local function Blood17(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood18, 1 * 1000, cid) end end local function Blood16(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood17, 1 * 1000, cid) end end local function Blood15(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood16, 1 * 1000, cid) end end local function Blood14(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood15, 1 * 1000, cid) end end local function Blood13(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood14, 1 * 1000, cid) end end local function Blood12(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood13, 1 * 1000, cid) end end local function Blood11(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood12, 1 * 1000, cid) end end local function Blood10(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood11, 1 * 1000, cid) end end local function Blood9(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood10, 1 * 1000, cid) end end local function Blood8(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood9, 1 * 1000, cid) end end local function Blood7(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood8, 1 * 1000, cid) end end local function Blood6(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood7, 1 * 1000, cid) end end local function Blood5(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood6, 1 * 1000, cid) end end local function Blood4(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood5, 1 * 1000, cid) end end local function Blood3(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood4, 1 * 1000, cid) end end local function Blood2(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood3, 1 * 1000, cid) end end local function Blood1(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood2, 1 * 1000, cid) end end local Chronos = createConditionObject(CONDITION_OUTFIT) setConditionParam(Chronos, CONDITION_PARAM_TICKS, 30000) addOutfitCondition(Chronos, 0, 251, 114, 114, 114, 114) local Kazard = createConditionObject(CONDITION_OUTFIT) setConditionParam(Kazard, CONDITION_PARAM_TICKS, 30000) addOutfitCondition(Kazard, 0, 262, 114, 114, 114, 114) local Hazus = createConditionObject(CONDITION_OUTFIT) setConditionParam(Hazus, CONDITION_PARAM_TICKS, 30000) addOutfitCondition(Hazus, 0, 194, 114, 114, 114, 114) local Muted = createConditionObject(CONDITION_MUTED) setConditionParam(Muted , CONDITION_PARAM_TICKS, 30000 * 10000) local Speed = createConditionObject(CONDITION_HASTE) setConditionParam(Speed, CONDITION_PARAM_TICKS, 30000) setConditionFormula(Speed, 0, 3000, 0, 3000) local Health = createConditionObject(CONDITION_REGENERATION) setConditionParam(Health, CONDITION_PARAM_TICKS, 30000) setConditionParam(Health, CONDITION_PARAM_HEALTHGAIN, 1000) setConditionParam(Health, CONDITION_PARAM_HEALTHTICKS, 1) setConditionParam(Health, CONDITION_PARAM_MANAGAIN, 1000) setConditionParam(Health, CONDITION_PARAM_MANATICKS, 1) function onUse(cid, item, frompos, item2, topos) Blood = math.random(1,3) HP = math.random(4000,10000) MP = math.random(4000,10000) if getPlayerSoul(cid) >= 0 then if Blood == 1 then doPlayerAddHealth(cid,HP) doPlayerAddMana(cid,MP) doTargetCombatCondition(0, cid, Chronos, 51) doTargetCombatCondition(0, cid, Health, 51) doPlayerSendTextMessage(cid,20,"Você Me Invocou, Agora Você é Um Chronos.") doPlayerSay(cid, "MUAHAHAHA!", TALKTYPE_ORANGE_1) doPlayerAddSoul(cid,-0) doRemoveItem(item.uid,1) addEvent(Blood1, 1*1000,cid) elseif Blood == 2 then doPlayerAddHealth(cid,HP) doPlayerAddMana(cid,MP) doTargetCombatCondition(0, cid, Kazard, 51) doTargetCombatCondition(0, cid, Health, 51) doTargetCombatCondition(0, cid, Speed, 51) doPlayerSendTextMessage(cid,20,"Você Me Invocou, Agora Você é Um Kazard.") doPlayerSay(cid, "MUAHAHAHA!", TALKTYPE_ORANGE_1) doPlayerAddSoul(cid,-0) doRemoveItem(item.uid,1) addEvent(Blood1, 1*1000,cid) elseif Blood == 3 then doPlayerAddHealth(cid,HP) doPlayerAddMana(cid,MP) doTargetCombatCondition(0, cid, Hazus, 51) doTargetCombatCondition(0, cid, Health, 51) doTargetCombatCondition(0, cid, Muted, 51) doPlayerSendTextMessage(cid,20,"Você Me Invocou, Agora Você é Um Hazus.") doPlayerSay(cid, "MUAHAHAHA!", TALKTYPE_ORANGE_1) doPlayerAddSoul(cid,-50) doRemoveItem(item.uid,1) addEvent(Blood1, 1*1000,cid) end else doPlayerSendTextMessage(cid,20,"Desculpe, vocé não tem 50 almas para usa esse Blood Of God\'s.") end end
  5. godjean

    Sistema De Blood

    Ola pessoal do xtibia Então eu tenho um script que ele meio que não funciona gostaria de saber se algo pode-se me ajudar :S local function Blood30(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) end end local function Blood29(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood30, 1 * 1000, cid) end end local function Blood28(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood29, 1 * 1000, cid) end end local function Blood27(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood28, 1 * 1000, cid) end end local function Blood26(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood27, 1 * 1000, cid) end end local function Blood25(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood26, 1 * 1000, cid) end end local function Blood24(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood25, 1 * 1000, cid) end end local function Blood23(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood24, 1 * 1000, cid) end end local function Blood22(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood23, 1 * 1000, cid) end end local function Blood21(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood22, 1 * 1000, cid) end end local function Blood20(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood21, 1 * 1000, cid) end end local function Blood19(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood20, 1 * 1000, cid) end end local function Blood18(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood19, 1 * 1000, cid) end end local function Blood17(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood18, 1 * 1000, cid) end end local function Blood16(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood17, 1 * 1000, cid) end end local function Blood15(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood16, 1 * 1000, cid) end end local function Blood14(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood15, 1 * 1000, cid) end end local function Blood13(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood14, 1 * 1000, cid) end end local function Blood12(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood13, 1 * 1000, cid) end end local function Blood11(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood12, 1 * 1000, cid) end end local function Blood10(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood11, 1 * 1000, cid) end end local function Blood9(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood10, 1 * 1000, cid) end end local function Blood8(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood9, 1 * 1000, cid) end end local function Blood7(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood8, 1 * 1000, cid) end end local function Blood6(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood7, 1 * 1000, cid) end end local function Blood5(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood6, 1 * 1000, cid) end end local function Blood4(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood5, 1 * 1000, cid) end end local function Blood3(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood4, 1 * 1000, cid) end end local function Blood2(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood3, 1 * 1000, cid) end end local function Blood1(cid) if isPlayer(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), 51) addEvent(Blood2, 1 * 1000, cid) end end local Chronos = createConditionObject(CONDITION_OUTFIT) setConditionParam(Chronos, CONDITION_PARAM_TICKS, 30000) addOutfitCondition(Chronos, 0, 251, 114, 114, 114, 114) local Kazard = createConditionObject(CONDITION_OUTFIT) setConditionParam(Kazard, CONDITION_PARAM_TICKS, 30000) addOutfitCondition(Kazard, 0, 262, 114, 114, 114, 114) local Hazus = createConditionObject(CONDITION_OUTFIT) setConditionParam(Hazus, CONDITION_PARAM_TICKS, 30000) addOutfitCondition(Hazus, 0, 194, 114, 114, 114, 114) local Muted = createConditionObject(CONDITION_MUTED) setConditionParam(Muted , CONDITION_PARAM_TICKS, 30000 * 10000) local Speed = createConditionObject(CONDITION_HASTE) setConditionParam(Speed, CONDITION_PARAM_TICKS, 30000) setConditionFormula(Speed, 0, 3000, 0, 3000) local Health = createConditionObject(CONDITION_REGENERATION) setConditionParam(Health, CONDITION_PARAM_TICKS, 30000) setConditionParam(Health, CONDITION_PARAM_HEALTHGAIN, 1000) setConditionParam(Health, CONDITION_PARAM_HEALTHTICKS, 1) setConditionParam(Health, CONDITION_PARAM_MANAGAIN, 1000) setConditionParam(Health, CONDITION_PARAM_MANATICKS, 1) function onUse(cid, item, frompos, item2, topos) Blood = math.random(1,3) HP = math.random(4000,10000) MP = math.random(4000,10000) if getPlayerSoul(cid) >= 0 then if Blood == 1 then doPlayerAddHealth(cid,HP) doPlayerAddMana(cid,MP) doTargetCombatCondition(0, cid, Chronos, 51) doTargetCombatCondition(0, cid, Health, 51) doPlayerSendTextMessage(cid,20,"Você Me Invocou, Agora Você é Um Chronos.") doPlayerSay(cid, "MUAHAHAHA!", TALKTYPE_ORANGE_1) doPlayerAddSoul(cid,-0) doRemoveItem(item.uid,1) addEvent(Blood1, 1*1000,cid) elseif Blood == 2 then doPlayerAddHealth(cid,HP) doPlayerAddMana(cid,MP) doTargetCombatCondition(0, cid, Kazard, 51) doTargetCombatCondition(0, cid, Health, 51) doTargetCombatCondition(0, cid, Speed, 51) doPlayerSendTextMessage(cid,20,"Você Me Invocou, Agora Você é Um Kazard.") doPlayerSay(cid, "MUAHAHAHA!", TALKTYPE_ORANGE_1) doPlayerAddSoul(cid,-0) doRemoveItem(item.uid,1) addEvent(Blood1, 1*1000,cid) elseif Blood == 3 then doPlayerAddHealth(cid,HP) doPlayerAddMana(cid,MP) doTargetCombatCondition(0, cid, Hazus, 51) doTargetCombatCondition(0, cid, Health, 51) doTargetCombatCondition(0, cid, Muted, 51) doPlayerSendTextMessage(cid,20,"Você Me Invocou, Agora Você é Um Hazus.") doPlayerSay(cid, "MUAHAHAHA!", TALKTYPE_ORANGE_1) doPlayerAddSoul(cid,-50) doRemoveItem(item.uid,1) addEvent(Blood1, 1*1000,cid) end else doPlayerSendTextMessage(cid,20,"Desculpe, vocé não tem 50 almas para usa esse Blood Of God\'s.") end end
  6. godjean

    Npc retira item

    Esse é o script todo (ta meio bagunçado) 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 -- Conversa Jogador/NPC if(msgcontains(msg, 'offer') or msgcontains(msg, 'Offer')) then selfSay('I can make an item element or amulets energyze your item element, I just need all "paste", "charm" or "spells" amulet, can also bless a mortal and reset a little god! To see what types of necklaces I say energyze "energyze amulets".', cid) elseif(msgcontains(msg, 'energyze amulets') or msgcontains(msg, 'Energyze Amulets')) then selfSay('I can tell your amulet energyze just say "energyze elemental necklace" "energyze elemental spirit amulet" "energyze elemental magic amulet.', cid) --talkState[talkUser] = 1 elseif(msgcontains(msg, 'bless') or msgcontains(msg, 'Bless')) then selfSay('want to buy bless?', cid) talkState[talkUser] = 2 elseif(msgcontains(msg, 'energyze elemental necklace') or msgcontains(msg, 'Energyze Elemental Necklace')) then selfSay('I can energyze your elemental necklace for 50k, would you like to energyza?', cid) talkState[talkUser] = 3 elseif(msgcontains(msg, 'elemental necklace') or msgcontains(msg, 'Elemental Necklace')) then selfSay('You change a mysterious, dragon breath, scorpion, platinum, fluids and vampire tooth,change all for a Elemental necklace?', cid) talkState[talkUser] = 4 elseif(msgcontains(msg, 'energyze spirit elemental amulet') or msgcontains(msg, 'Energyze Spirit Elemental Amulet')) then selfSay('I can energyze your spirit elemental amulet for 100k, would you like to energyza?', cid) talkState[talkUser] = 5 elseif(msgcontains(msg, 'spirit elemental amulet') or msgcontains(msg, 'Spirit Elemental Amulet')) then selfSay('You change a need a Ialamar, frozzen, sickness, Samantha, Mastafar, priest and eletric, change for a Spirit Elemental amulet?', cid) talkState[talkUser] = 6 elseif(msgcontains(msg, 'energyze magic elemental amulet') or msgcontains(msg, 'Energyze Magic Elemental Amulet')) then selfSay('I can energyze your magic elemental amulet for 150k, would you like to energyza?', cid) talkState[talkUser] = 7 elseif(msgcontains(msg, 'magic elemental amulet') or msgcontains(msg, 'Magic Elemental Amulet')) then selfSay('You change a Merlian, relic of the hell, Broonier, Thordain, dark wyzard, angel and gaya,change all for Elemental magic amulet?', cid) talkState[talkUser] = 8 elseif(msgcontains(msg, 'poem scroll') or msgcontains(msg, 'Poem Scroll')) then selfSay('Our beautiful that parchment ... Our ancient scriptures that it is very important for my pesquisa.You trade him for an Arcane Wand?', cid) talkState[talkUser] = 9 -- Confirmação da Compra elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 2) then if getPlayerBlessing(cid, 1) and getPlayerBlessing(cid, 2) and getPlayerBlessing(cid, 3) and getPlayerBlessing(cid, 4) and getPlayerBlessing(cid, 5) then selfSay('You have already got one or more blessings!', cid) else if(doPlayerRemoveMoney(cid, 500000) == true) then selfSay('You received the blessing of Isolde.', cid) doPlayerAddBlessing(cid, 1) doPlayerAddBlessing(cid, 2) doPlayerAddBlessing(cid, 3) doPlayerAddBlessing(cid, 4) doPlayerAddBlessing(cid, 5) talkState[talkUser] = 0 else selfSay('Sorry, but you do not have enough money.', cid) talkState[talkUser] = 0 end end elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 3) then if(doPlayerRemoveItem(cid, 2197, 1) == true) then if(doPlayerRemoveMoney(cid, 50000) == true) then selfSay('Thanks!', cid) doPlayerAddItem(cid, 11962, 1) talkState[talkUser] = 0 else selfSay('You do not have enough diamonds.', cid) talkState[talkUser] = 0 end end -------------------------------------------------------------------------------- --elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 4) then --if (doPlayerRemoveItem(cid,2198,1)== true) then --if (doPlayerRemoveItem(cid,2170,1)== true) then --if (doPlayerRemoveItem(cid,2171,1)== true) then --if (doPlayerRemoveItem(cid,2172,1)== true) then --if (doPlayerRemoveItem(cid,2161,1)== true) then --if (doPlayerRemoveItem(cid,2201,1)== true) then -- if doPlayerRemoveItem(cid,2201,1) == 0 then -- elseif doPlayerRemoveItem(cid,2198,1) == 0 then -- elseif doPlayerRemoveItem(cid,2170,1) == 0 then -- elseif doPlayerRemoveItem(cid,2171,1) == 0 then -- elseif doPlayerRemoveItem(cid,2172,1) == 0 then -- elseif doPlayerRemoveItem(cid,2161,1) == 0 then --selfSay('Thanks!', cid) --doPlayerAddItem(cid, 2197, 1) --talkState[talkUser] = 0 --else --selfSay('You do not have enough diamonds.', cid) --talkState[talkUser] = 0 --end --end --end --end --end --end -------------------------------------------------------------------------------- elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 4) then if doPlayerRemoveItem(cid,2201,1) == 0 then elseif doPlayerRemoveItem(cid,2198,1) == 0 then elseif doPlayerRemoveItem(cid,2170,1) == 0 then elseif doPlayerRemoveItem(cid,2171,1) == 0 then elseif doPlayerRemoveItem(cid,2172,1) == 0 then elseif doPlayerRemoveItem(cid,2161,1) == 0 then elseif doPlayerAddItem(cid,2197,1) == 0 then selfSay('change the amulet\'s for one elemental necklace sucessfull.') else selfSay('change the amulet\'s for one elemental necklace sucessfull.') end end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  7. godjean

    Npc retira item

    Tipo acabei de cria um npc tudo certo ele tira os itens e poem o item que eu quero mas ha um porem ele não ta pedindo todos os items por exemplo eu tiro um item e falo yes ele troca do mesmo jeito :S ae o script do npc elseif(msgcontains(msg, 'elemental necklace') or msgcontains(msg, 'Elemental Necklace')) then selfSay('You change a mysterious, dragon breath, scorpion, platinum, fluids and vampire tooth,change all for a Elemental necklace?', cid) talkState[talkUser] = 4 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 4) then if doPlayerRemoveItem(cid,2201,1) == 0 then elseif doPlayerRemoveItem(cid,2198,1) == 0 then elseif doPlayerRemoveItem(cid,2170,1) == 0 then elseif doPlayerRemoveItem(cid,2171,1) == 0 then elseif doPlayerRemoveItem(cid,2172,1) == 0 then elseif doPlayerRemoveItem(cid,2161,1) == 0 then elseif doPlayerAddItem(cid,2197,1) == 0 then selfSay('change the amulet\'s for one elemental necklace sucessfull.') else selfSay('change the amulet\'s for one elemental necklace sucessfull.') end E tambem outro script tipo se vc não tiver o dinheiro ele retira o item poem outro e retira o outro e vc fica com nada:@ elseif(msgcontains(msg, 'energyze elemental necklace') or msgcontains(msg, 'Energyze Elemental Necklace')) then selfSay('I can energyze your elemental necklace for 50k, would you like to energyza?', cid) talkState[talkUser] = 3 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 3) then if(doPlayerRemoveItem(cid, 2197, 1) == true) then if(doPlayerRemoveMoney(cid, 50000) == true) then selfSay('Thanks!', cid) doPlayerAddItem(cid, 11962, 1) talkState[talkUser] = 0 else selfSay('You do not have enough diamonds.', cid) talkState[talkUser] = 0 end end
  8. godjean

    Script Npc

    Não tipo os items serão uma base para mim fazer o resto e o bless vc tem que paga uma taxa :S
  9. godjean

    Script Npc

    doPlayerRemoveItem(cid,2201,1) doPlayerRemoveItem(cid,2198,1) doPlayerRemoveItem(cid,2170,1) doPlayerRemoveItem(cid,2171,1) doPlayerRemoveItem(cid,2172,1) doPlayerRemoveItem(cid,2161,1) doPlayerAddItem(cid,2197,1) Ae os itens e o bless acho que é até 5
  10. godjean

    Script Npc

    É versão 7.92 e não to achando como refazer esse script poderia só posta 2 base no mesmo script tipo a do bless e uma que troque os itens?
  11. godjean

    Script Npc

    Ola galera do Xtibia Então eu vim aqui pedir um script de npc que faça o Seguinte Ele vai ter varias funções e tal... eu tenho um aqui como base porem não esta funcionando corretamente... ae ele local focus = 0 local talk_start = 0 local target = 0 local days = 0 function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye then.') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function onCreatureSay(cid, type, msg) msg = string.lower(msg) if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then selfSay('Hi ' .. creatureGetName(cid) .. '! what you want mortal?') focus = cid talk_start = os.clock() elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Sorry, ' .. creatureGetName(cid) .. '! I talk to you in a minute.') elseif focus == cid then talk_start = os.clock() if msgcontains(msg, 'energyze elemental necklace') and getItemStackable(cid,2173) then selfSay('I can energyze your necklace for 50k, amulet for 100k or your magic amulet for 150k, do you want energyze?') talk_state = 2 elseif talk_state == 1 then if msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid,2197,1) == 1 then doPlayerSendTextMessage(cid,22,"Voce Energizou seu Elemental necklace.") buy(cid,13682,getCount(msg),50000) selfSay('energyze the elemental necklace sucessfull.') else selfSay('Sorry, you do not have elemental necklace.') end end talk_state = 0 elseif msgcontains(msg, 'energyze spirit elemental amulet') or msgcontains(msg, 'energyze 2') then selfSay('I can energyze your necklace for 50k, amulet for 100k or your magic amulet for 150k, do you want energyze?') talk_state = 2 elseif talk_state == 2 then if msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid,2173,1) == 1 then buy(cid,13683,getCount(msg),100000) doPlayerSendTextMessage(cid,22,"Voce Energizou seu Spirit elemental necklace.") selfSay('energyze the spirit necklace sucessfull.') else selfSay('Sorry, you do not have one spirit elemental necklace.') end end talk_state = 0 elseif msgcontains(msg, 'energyze magic elemental amulet') or msgcontains(msg, 'energyze 3') then selfSay('I can energyze your necklace for 50k, amulet for 100k or your magic amulet for 150k, do you want energyze?') talk_state = 3 elseif talk_state == 3 then if msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid,2125,1) == 1 then buy(cid,13684,getCount(msg),150000) doPlayerSendTextMessage(cid,22,"Voce Energizou seu Magic elemental amulet.") selfSay('energyze the magic amulet sucessfull.') else selfSay('Sorry, you do not have one magic amulet.') end end talk_state = 0 elseif msgcontains(msg, 'elemental necklace') or msgcontains(msg, 'necklace') then selfSay('You change a mysterious, dragon breath, scorpion, platinum, fluids and vampire tooth,change all for a Elemental necklace?') talk_state = 4 elseif talk_state == 4 then if msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid,2201,1) == 0 then elseif doPlayerRemoveItem(cid,2198,1) == 0 then elseif doPlayerRemoveItem(cid,2170,1) == 0 then elseif doPlayerRemoveItem(cid,2171,1) == 0 then elseif doPlayerRemoveItem(cid,2172,1) == 0 then elseif doPlayerRemoveItem(cid,2161,1) == 0 then elseif doPlayerAddItem(cid,2197,1) == 0 then selfSay('change the amulet\'s for one elemental necklace sucessfull.') else selfSay('change the amulet\'s for one elemental necklace sucessfull.') end end talk_state = 0 elseif msgcontains(msg, 'spirit elemental necklace') or msgcontains(msg, 'spirit necklace') then selfSay('You change a need a Ialamar, frozzen, sickness, Samantha, Mastafar, priest and eletric, change for a Spirit Elemental amulet?') talk_state = 5 elseif talk_state == 5 then if msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid,2129,1) == 0 then elseif doPlayerRemoveItem(cid,2199,1) == 0 then elseif doPlayerRemoveItem(cid,2135,1) == 0 then elseif doPlayerRemoveItem(cid,2126,1) == 0 then elseif doPlayerRemoveItem(cid,2131,1) == 0 then elseif doPlayerRemoveItem(cid,2130,1) == 0 then elseif doPlayerRemoveItem(cid,2133,1) == 0 then elseif doPlayerAddItem(cid,2173,1) == 0 then selfSay('change the amulet\'s for one spirit elemental necklace sucessfull.') else selfSay('change the amulet\'s for one spirit elemental necklace sucessfull.') end end talk_state = 0 elseif msgcontains(msg, 'magic elemental amulet') or msgcontains(msg, 'magic amulet') then selfSay('You change a Merlian, relic of the hell, Broonier, Thordain, dark wyzard, angel and gaya,change all for Elemental magic amulet?') talk_state = 6 elseif talk_state == 6 then if msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid,2138,1) == 0 then elseif doPlayerRemoveItem(cid,2139,1) == 0 then elseif doPlayerRemoveItem(cid,2142,1) == 0 then elseif doPlayerRemoveItem(cid,2200,1) == 0 then elseif doPlayerRemoveItem(cid,2196,1) == 0 then elseif doPlayerRemoveItem(cid,2132,1) == 0 then elseif doPlayerRemoveItem(cid,2136,1) == 0 then elseif doPlayerAddItem(cid,2125,1) == 0 then selfSay('change the amulet\'s for one elemental magic amulet sucessfull.') else selfSay('change the amulet\'s for one elemental magic amulet sucessfull.') end end talk_state = 0 elseif msgcontains(msg, 'bless') or msgcontains(msg, 'blessing') then getPlayerBlessing(cid,1) getPlayerBlessing(cid,2) getPlayerBlessing(cid,3) getPlayerBlessing(cid,4) getPlayerBlessing(cid,5) selfSay('deseja compra o bless ?') talk_state = 7 elseif talk_state == 7 then if msgcontains(msg, 'yes') then if pay(cid,1000000) then doPlayerAddBlessing(cid, 1) doPlayerAddBlessing(cid, 2) doPlayerAddBlessing(cid, 3) doPlayerAddBlessing(cid, 4) doPlayerAddBlessing(cid, 5) doPlayerSendTextMessage(cid,22,"Você recebeu a benção de Isolda.") else selfSay('Desculpe, mas voce não tem Ruby Coin suficiente.') end end talk_state = 0 elseif msgcontains(msg, 'reset') then selfSay('is necessary for you to reset this level 500 and Valan. Would you like to reset?') talk_state = 8 elseif msgcontains(msg, 'yes') then if getPlayerVocation(cid) > 12 then selfSay('You have no vocation required.') talk_state = 0 if getPlayerVocation(cid) < 9 then selfSay('You have no vocation required.') talk_state = 0 elseif getPlayerLevel(cid) < 500 then selfSay('Desculpe, você precisa ser level 50 para se tornar promoted.') talk_state = 0 elseif not isPremium(cid) then selfSay('Desculpe, você precisa ser premium account para ser promoted.') talk_state = 0 elseif doPlayerRemoveItem(cid,5958,1) == 1 then doPlayerSetVocation(cid, getPlayerVocation(cid)+4) doSendAnimatedText(getPlayerPosition(cid), "Promoted", TEXTCOLOR_LIGHTGREEN) doSendMagicEffect(getPlayerPosition(cid),14) selfSay('You have been reset successfully.') doPlayerSendTextMessage(cid,21,"Reset Complet.'.") talk_state = 0 else selfSay('Voce não tem o item necessario para fazer o seu Promotion.') talk_state = 1 end talk_state = 0 elseif msgcontains(msg, 'offer') then selfSay('I can do an element item or energyze your element item, i only need all "necklace", "amulet" ou "magics" amulet, also can bless a little mortal and reset a god!') elseif msgcontains(msg, 'energyze') then selfSay('I can tell your amulet energyze just say "energyze elemental necklace" "energyze elemental spirit amulet" "energyze elemental magic amulet.') elseif msgcontains(msg, 'necklace') then selfSay('I only need a mysterious, dragon breath, scorpion, platinum, fluids and vampire tooth, accept change all for a Elemental necklace?') elseif msgcontains(msg, 'amulet') then selfSay('I only need a Ialamar, frozzen, sickness, Samantha, Mastafar, priest and eletric, accept change all for a Spirit Elemental amulet?') elseif msgcontains(msg, 'magics') then selfSay('I only need a Merlian, relic of the hell, Broonier, Thordain, dark wyzard, angel and gaya, accept change all for a Elemental magic amulet?') elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then selfSay('Good bye, ' .. creatureGetName(cid) .. '!') focus = 0 talk_start = 0 end end end function onCreatureChangeOutfit(creature) end function onThink() doNpcSetCreatureFocus(focus) if (os.clock() - talk_start) > 30 then if focus > 0 then selfSay('Next Please...') end focus = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Good bye then.') focus = 0 end end end end Ele é um pouco antigo deve ser por isso
  12. godjean

    Bug Script

    ae funciono shushsauhhsausa porem não usei o coisa de Drop_id Eu tirei e depois substitui pela tag que tava no item xml da versão 8.6 e funciono vlw ae @Vodkart muito obrigado quando o servidor tiver online eu ponho os creditos la pra ti e tambem vo por pro @caotic e @Jhon992
  13. godjean

    Bug Script

    mas precisa deixa la no item.xml o preventloss ?
  14. godjean

    Bug Script

    não quiz dizer isso... eu perguntei se ta funcionando que nem amulet of loss
  15. godjean

    Bug Script

    Calma ae Não ele não dropa nenhum item do jogador é isso que ele faz?Ele ta funcionando que nem o Amulet of loss?
  16. godjean

    Bug Script

    drop_id = {11962,11963,11964} Evitaria perda de item ao morre?
  17. godjean

    Bug Script

    11962 11963 11964
  18. godjean

    Bug Script

    Ola pessoal do Xtibia então vou explica a minha situação. Estou com um problema com uns script (tem nada haver com o script e sim com uma tag no Item.Xml) O script ta de boa e tal porem quando ponho por exemplo essa tag no item.xml "<attributekey="preventLoss"value="1"/>" E ao mesmo tempo poem o script pra funciona ele buga o servidor e fixa o exe do servidor :S E o Script é o seguinte Quando o jogador morre e ele tiver com X item no slot 2 esse X item vira item Y Ae o script -- Adaptado para Mod por @Vodkart Partes Criadas Por @caotic e @Jhon992 <?xml version="1.0" encoding="UTF-8"?> <mod name="TransAmulet" version="1.0" author="Jhon" contact="xtibia.com" enabled="yes"> <config name="trans_func"><![CDATA[[/size][/font][/color] [color=#282828][font=helvetica, arial, sans-serif][size=3]itemTransf = { -- id do item que tem que ter, id do item que vai transformar [2173] = 2130, [2130] = 2135, [2135] = 2173 } ]]></config> <event type="login" name="TransformRegister" event="script"><![CDATA[ function onLogin(cid) registerCreatureEvent(cid, "TransDeath") return true end]]></event> <event type="death" name="TransDeath" event="script"><![CDATA[ domodlib('trans_func') function onDeath(cid, corpse, deathList) if isPlayer(cid) and itemTransf[getPlayerSlotItem(cid, 2).itemid] then doTransformItem(getPlayerSlotItem(cid, 2).uid, itemTransf[getPlayerSlotItem(cid, 2).itemid]) end return true end ]]></event> </mod> E o item que eu queria para muda ficaria assim <item id="11964" name="magic elemental amulet"> <attribute key="weight" value="4200"/> <attribute key="slotType" value="necklace"/> <attribute key="absorbPercentAll" value="30"/> <attribute key="increaseMagicPercent" value="30"/> <attribute key="healthGain" value="3"/> <attribute key="healthTicks" value="1"/> <attribute key="manaGain" value="3"/> <attribute key="manaTicks" value="1"/> <attribute key="preventLoss" value="1"/> <attribute key="armor" value="6"/> <attribute key="description" value="It's a item maked by Isolta, medium Elemental essenses, a mixture of all amulets. [Abs.All 30%, Inc.Magic 30%, Regen.Life 3/1, Regen.Mana 3/1, Pre.Loss]"/> </item> Porem não pode ter esse "preventloss" Então teria como por o item para não cair os item ao morre sem ter essa tag?Fazer isso tudo por um script? Agradeço desde ja Jean
  19. Tipo tem como testar o meu exe pra ver se é só aqui ou é o problema do exe.E se for qual você recomenda para mim? Testei aqui outro exe The Forgotten Server 0.3.6 e continua a mesma coisa :S Acabei de testar com Vancini OT 0.0.3.9 e nada Sera que ha algum problema do script se para outra versão e não para a que eu estou usando?Estou usando a Versão 8.54 acho que eu sei oque aconteceu tipo testei com outro tipo de cordão tipo transformando isso em outro que não tenha a função "<attribute key="preventLoss" value="1"/>"no item.xml agora não sei como por isso sem isso acontecer pois eu preciso que o item tal não deixe dropar os outro items... teria como fazer um outro script como preventloss? Tambem acabei de testar sem a tag no item.xml <attributekey="preventLoss"value="1"/> e funciono... @vodkard tem como ajudar?
  20. Ainda não mas outra pergunta tem problema em eu ta usando um exe copilado por mim?
  21. É só a descrição a unica coisa que ta meio bugado é o [ que vira ? no jogo e outra duvida @Vodkard tem como fazer isso pelas soucer?
  22. OMG deu erro denovo vo manda tudo oque tme relacionado ao item> Esse é no item.xml <item id="2197" article="a" name="elemental necklace"> <attribute key="weight" value="4200"/> <attribute key="slotType" value="necklace"/> <attribute key="absorbPercentAll" value="10"/> <attribute key="increaseMagicPercent" value="10"/> <attribute key="healthGain" value="1"/> <attribute key="healthTicks" value="1"/> <attribute key="manaGain" value="1"/> <attribute key="manaTicks" value="1"/> <attribute key="armor" value="2"/> <attribute key="description" value="It's a item maked by Isolta, medium Elemental essenses, a mixture of all necklace. [Abs.All 10%, Inc.Magic 10%, Regen.Life 1/1, Regen.Mana 1/1]"/> </item> <item id="2173" article="an" name="spirit elemental amulet"> <attribute key="weight" value="4200"/> <attribute key="slotType" value="necklace"/> <attribute key="absorbPercentAll" value="20"/> <attribute key="increaseMagicPercent" value="20"/> <attribute key="healthGain" value="2"/> <attribute key="healthTicks" value="1"/> <attribute key="manaGain" value="2"/> <attribute key="manaTicks" value="1"/> <attribute key="armor" value="4"/> <attribute key="description" value="It's a item maked by Isolta, medium Elemental essenses, a mixture of all necklace. [Abs.All 20%, Inc.Magic 20%, Regen.Life 2/1, Regen.Mana 2/1]"/> </item> <item id="2125" article="a" name="magic elemental amulet"> <attribute key="weight" value="4200"/> <attribute key="slotType" value="necklace"/> <attribute key="absorbPercentAll" value="30"/> <attribute key="increaseMagicPercent" value="30"/> <attribute key="healthGain" value="3"/> <attribute key="healthTicks" value="1"/> <attribute key="manaGain" value="3"/> <attribute key="manaTicks" value="1"/> <attribute key="armor" value="6"/> <attribute key="description" value="It's a item maked by Isolta, medium Elemental essenses, a mixture of all necklace. [Abs.All 30%, Inc.Magic 30%, Regen.Life 3/1, Regen.Mana 3/1]"/> </item> <item id="11962" name="elemental necklace"> <attribute key="weight" value="4200"/> <attribute key="slotType" value="necklace"/> <attribute key="absorbPercentAll" value="10"/> <attribute key="increaseMagicPercent" value="10"/> <attribute key="healthGain" value="1"/> <attribute key="healthTicks" value="1"/> <attribute key="manaGain" value="1"/> <attribute key="manaTicks" value="1"/> <attribute key="preventLoss" value="1"/> <attribute key="armor" value="2"/> <attribute key="description" value="It's a item maked by Isolta, medium Elemental essenses, a mixture of all necklace. [Abs.All 10%, Inc.Magic 10%, Regen.Life 1/1, Regen.Mana 1/1, Pre.Loss]"/> </item> <item id="11963" name="spirit elemental amulet"> <attribute key="weight" value="4200"/> <attribute key="slotType" value="necklace"/> <attribute key="absorbPercentAll" value="20"/> <attribute key="increaseMagicPercent" value="20"/> <attribute key="healthGain" value="2"/> <attribute key="healthTicks" value="1"/> <attribute key="manaGain" value="2"/> <attribute key="manaTicks" value="1"/> <attribute key="preventLoss" value="1"/> <attribute key="armor" value="4"/> <attribute key="description" value="It's a item maked by Isolta, medium Elemental essenses, a mixture of all amulets. [Abs.All 20%, Inc.Magic 20%, Regen.Life 2/1, Regen.Mana 2/1, Pre.Loss]"/> </item> <item id="11964" name="magic elemental amulet"> <attribute key="weight" value="4200"/> <attribute key="slotType" value="necklace"/> <attribute key="absorbPercentAll" value="30"/> <attribute key="increaseMagicPercent" value="30"/> <attribute key="healthGain" value="3"/> <attribute key="healthTicks" value="1"/> <attribute key="manaGain" value="3"/> <attribute key="manaTicks" value="1"/> <attribute key="preventLoss" value="1"/> <attribute key="armor" value="6"/> <attribute key="description" value="It's a item maked by Isolta, medium Elemental essenses, a mixture of all amulets. [Abs.All 30%, Inc.Magic 30%, Regen.Life 3/1, Regen.Mana 3/1, Pre.Loss]"/> </item> E ae o Movement.xml <movevent type="Equip" itemid="11962" slot="necklace" event="function" value="onEquipItem"/> <movevent type="DeEquip" itemid="11962" slot="necklace" event="function" value="onDeEquipItem"/> <movevent type="Equip" itemid="11963" slot="necklace" event="function" value="onEquipItem"/> <movevent type="DeEquip" itemid="11963" slot="necklace" event="function" value="onDeEquipItem"/> <movevent type="Equip" itemid="11964" slot="necklace" event="function" value="onEquipItem"/> <movevent type="DeEquip" itemid="11964" slot="necklace" event="function" value="onDeEquipItem"/> <movevent type="Equip" itemid="2125" slot="necklace" event="function" value="onEquipItem"/> <movevent type="DeEquip" itemid="2125" slot="necklace" event="function" value="onDeEquipItem"/> <movevent type="Equip" itemid="2173" slot="necklace" event="function" value="onEquipItem"/> <movevent type="DeEquip" itemid="2173" slot="necklace" event="function" value="onDeEquipItem"/> <movevent type="Equip" itemid="2197" slot="necklace" event="function" value="onEquipItem"/> <movevent type="DeEquip" itemid="2197" slot="necklace" event="function" value="onDeEquipItem"/>
  23. Eu ponho isso na pasta "mods" ou "mods/scripts"?
  24. aff ainda ta bugado olha ae tudo oque eu mexi. login.lua 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, "GuildMotd") registerCreatureEvent(cid, "Idle") registerCreatureEvent(cid, "SkullCheck") registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, "repKill") registerCreatureEvent(cid, "repLook") registerCreatureEvent(cid, "repMonster") 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 registerCreatureEvent(cid, "aol") return true end e Aol.lua function onDeath(cid, corpse, deathList) local itemTransf = { -- id do item que tem que ter, id do item que vai transformar [11962] = 2197, [11963] = 2173, [11964] = 2125 } if isPlayer(cid) and itemTransf[getPlayerSlotItem(cid, 2).itemid] then doTransformItem(getPlayerSlotItem(cid, 2).uid, itemTransf[getPlayerSlotItem(cid, 2).itemid]) end return true end Creaturescript.xml <?xml version="1.0" encoding="UTF-8"?> <creaturescripts> <event type="login" name="PlayerLogin" event="script" value="login.lua"/> <event type="login" name="PlayerLogin" event="script" value="login2.lua"/> <event type="login" name="FirstItems" event="script" value="firstitems.lua"/> <event type="kill" name="ArenaKill" event="script" value="arenakill.lua"/> <event type="joinchannel" name="GuildMotd" event="script" value="guildmotd.lua"/> <event type="receivemail" name="Mail" event="script" value="mail.lua"/> <event type="reportbug" name="SaveReportBug" script="reportbug.lua"/> <event type="think" name="Idle" event="script" value="idle.lua"/> <event type="think" name="SkullCheck" event="script" value="skullcheck.lua"/> <!--reset --> <event type="login" name="Reset" event="script" value="reset.lua"/> <event type="death" name="aol" event="script" value="aol.lua"/> </creaturescripts> Tem Algo errado?
  25. Ainda continua =l não sei oque ta acontecendo to pondo tudo certo no creaturesscript.xml to pondo- <event type="death" name="aol" event="script" value="aol.lua"/> e no login.lua to pondo - registerCreatureEvent(cid, "aol") Tem algo errado?
  • Quem Está Navegando   0 membros estão online

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