Jump to content

STAR NINJA

Member
  • Content Count

    46
  • Joined

  • Last visited

Reputation Activity

  1. Upvote
    STAR NINJA reacted to Mor3nao in Script Aura   
    ahh nao sabia, eu só fiz um q funcionasse no meu, n sei diferenciar as versoes, na real, nem uso o tfs, uso o otbr kk
  2. Thanks
    STAR NINJA reacted to changos in (Resolvido)ITEM SKIN   
    local dolls = { [6506] = {name='Noob',outfit = 19, voc={1,2,5,6}}, [11207] = {name='Puto',outfit = 9, voc={4,8}}, [9019] = {name='Pendejo',outfit = 12,voc={3,7}} } function onUse(cid,item,frompos,itemEx,topos) local r,v = dolls[item.itemid],getThingPos(cid) if r then if isInArray(r.voc,getPlayerVocation(cid)) then if getCreatureOutfit (cid).lookType ~= r.outfit then doCreatureChangeOutfit(cid, {lookType = r.outfit}) doPlayerSendTextMessage(cid,MESSAGE_FIRST,'Skin: '..r.name..'!') --doRemoveItem(item.uid,1) else doPlayerSendCancel(cid,'You already wear this outfit!') doSendMagicEffect(v,CONST_ME_POFF) end else doPlayerSendCancel(cid,'You have the wrong vocation!') doSendMagicEffect(v,CONST_ME_POFF) end else doPlayerSendCancel(cid,'Sorry not possible.') end return true end use this change the names and ids xd
    <action itemid="id;id;id" event="script" value="name.lua"/>
     
     
    with genders
     
    local dolls = { [6506] = {name='Noob',outfit = {18,19}, voc={1,2,5,6}}, [11207] = {name='Puto',outfit = {8,9}, voc={4,8}}, [9019] = {name='Pendejo',outfit = {11,12},voc={3,7}} } function onUse(cid,item,frompos,itemEx,topos) local r,v = dolls[item.itemid],getThingPos(cid) if r then if isInArray(r.voc,getPlayerVocation(cid)) then --for i = 1, 2 do if getCreatureOutfit (cid).lookType ~= r.outfit then doCreatureChangeOutfit(cid, {lookType = r.outfit[getPlayerSex(cid) + 1]}) doPlayerSendTextMessage(cid,MESSAGE_FIRST,'Skin: '..r.name..'!') --doRemoveItem(item.uid,1) else doPlayerSendCancel(cid,'You already wear this outfit!') doSendMagicEffect(v,CONST_ME_POFF) end --end else doPlayerSendCancel(cid,'You have the wrong vocation!') doSendMagicEffect(v,CONST_ME_POFF) end else doPlayerSendCancel(cid,'Sorry not possible.') end return true end  
  3. Upvote
    STAR NINJA got a reaction from Kramer in (Resolvido)!akatsuki   
    @Storm Agora da esse erro mano,nao aparece nem um aviso no game e da esse erro!
  4. Thanks
    STAR NINJA reacted to Storm in (Resolvido)!akatsuki   
    @REI DAVID 
    local storage = 43455 local t = { [1] = {lookType = 203}, -- [vocation ID] = {lookType = outfit id} [2] = {lookType = 204}, } function onSay(cid, words, param, channel) local pos = getCreaturePosition(cid) if getPlayerStorageValue(cid, storage) == 1 then local outfit = t[getPlayerVocation(cid)] if outfit then if outfit ~= getCreatureOutfit(cid).lookType then doChangeCreatureOutfit(cid, outfit) db.executeQuery("UPDATE `players` SET `looktype`=".. outfit .." WHERE `players`.`id`= ".. getPlayerGUID(cid) .."") doSendMagicEffect(pos, 10) doCreatureSay(cid, "AKATSUKI!!", TALKTYPE_MONSTER) return true else doPlayerSendTextMessage(cid, 27, "Voce ja esta transformado!") doSendMagicEffect(pos, 4) return true end else doPlayerSendTextMessage(cid, 27, "Sua vocacao nao se transformar em akatsuki") doSendMagicEffect(pos, 4) return true end else doPlayerSendTextMessage(cid, 27, "Voce nao tem a storage") doSendMagicEffect(pos, 4) return true end return true end  
  5. Thanks
    STAR NINJA reacted to SlowK in (Resolvido)Npc Event Points   
    Esse script é comum em baiaks, mas vou economizar o seu tempo.
     
    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 talkState = {} local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid local shopWindow = {} local moeda = 6527 -- id da sua moeda vip local t = { [12396] = {price = 400}, [12575] = {price = 400}, [7440] = {price = 200}, [7443] = {price = 400}, [8981] = {price = 750}, [5468] = {price = 250}, [2346] = {price = 200} } local onBuy = function(cid, item, subType, amount, ignoreCap, inBackpacks) if t[item] and not doPlayerRemoveItem(cid, moeda, t[item].price) then selfSay("You don't have "..t[item].price.." "..getItemNameById(moeda), cid) else doPlayerAddItem(cid, item) selfSay("Here are you.", cid) end return true end if (msgcontains(msg, 'trade') or msgcontains(msg, 'TRADE'))then for var, ret in pairs(t) do table.insert(shopWindow, {id = var, subType = 0, buy = ret.price, sell = 0, name = getItemNameById(var)}) end openShopWindow(cid, shopWindow, onBuy, onSell) end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())  
    <?xml version="1.0" encoding="UTF-8"?> <npc name="Event Seller" script="data/npc/scripts/eventcoins.lua" walkinterval="2000" speed="100" walkradius="4" floorchange="0" skull="green"> <health max="100" now="100"/> <look type="160" head="96" body="99" legs="99" feet="115" addons="2" mount="0"/> <parameters> <!--MESSAGES--> <parameter key="message_greet" value="Hello |PLAYERNAME| I change {event coins} for {items}, say {trade}, Ola |PLAYERNAME| Eu troco {event coins} por {items}, diga {trade}."/> <!--KEYWORDS--> <parameter key="module_keywords" value="1"/> </parameters> </npc>  
    O script não é de minha autoria. Só configurar o id da moeda e os items igual está no script
  6. Thanks
    STAR NINJA reacted to Psgamerbr in (Resolvido)[Pedido] Atualizar Client   
    Olá, gostaria de pedir uma ajuda.
     
    É possível atualizar a versão do client ? Tipo de 8.54 para 8.60
     
    Se não for possível, tem como alguém ajudar a "Estender o client ou aumentar o limite de sprites"
     
    OBRIGADO E REP+ PARA QUEM AJUDAR
  7. Thanks
    STAR NINJA reacted to KiraConquest in Como mudar o effect do Exeta Res   
    local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, Efeitoaqui) local area = createCombatArea(AREA_SQUARE1X1) setCombatArea(combat, area) function onTargetCreature(cid, target) return doChallengeCreature(cid, target) end setCombatCallback(combat, CALLBACK_PARAM_TARGETCREATURE, "onTargetCreature") function onCastSpell(cid, var)     return doCombat(cid, combat, var) end Imagino que seja onde digitei efeitoaqui
  8. Thanks
    STAR NINJA reacted to LeoTK in Como mudar o effect do Exeta Res   
    @REI DAVID 
     
    troca isso
     
    setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
     
    por isso
     
     
    setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ID DO EFEITO)
×
×
  • Create New...

Important Information

Confirmação de Termo