Jump to content

OceanusPT

Miembro
  • Contador contenido

    11
  • Ingreso

  • Última visita

Mensajes publicados por OceanusPT

  1. #### Src/game/cmd.cpp

    //Search:

    { "full_set",	do_full_set, 0, POS_DEAD,		GM_LOW_WIZARD},

     

    And change it to:

    { "full_set",	do_full_set, 0, POS_DEAD,		GM_PLAYER},

     

     

    quest:

    quest give_basic_weapon begin
    	state start begin
    		when login begin
    			command("/full_set")
    			set_state(__COMPLETE__)
    		end
    	end
    
    	state __COMPLETE__ begin
    	end
    end

     

     

    ***But this is so bad. How will you avoid\block players from spam and sell items with  the command /full_set?   

    Everytime they tipe that, they get all items.

     

    Maybe this is NOT what you need

  2. --Quest realizada por ReuS para metin2zone
    -- Discord : ReuS#4312

    quest drop_piedras begin
        state start begin
            when 101.kill begin
                if math.random(1,1) == 1 then game.drop_item_with_ownership(number(28430,28443), 1) end 
            end
        end
        
    --editable, 1,1 significa que siempre dropeara \\ math.random(1,2) == 50% \\  math.random(1,100) == 1% sucess drop

  3. Boas tardes,

     

    Shogun, o código que esta no post nº1 esta todo em uma linha.... é para ficar assim?

    da para corrir a imagem de forma a que se possa entender melhor?

     

     

    o meu Auth.log esta cheio de:

     

     

     

    Dec 29 16:08:26 ns341257 sshd[82323]: Failed password for root from 122.225.97.68 port 42692 ssh2
    Dec 29 16:08:26 ns341257 sshd[82325]: Failed password for root from 122.225.97.68 port 42702 ssh2
    Dec 29 16:08:28 ns341257 sshd[82323]: Failed password for root from 122.225.97.68 port 42692 ssh2
    Dec 29 16:08:28 ns341257 sshd[82325]: Failed password for root from 122.225.97.68 port 42702 ssh2
    Dec 29 16:08:28 ns341257 sshd[82327]: Failed password for root from 122.225.97.68 port 43364 ssh2
    Dec 29 16:08:29 ns341257 sshd[82327]: Failed password for root from 122.225.97.68 port 43364 ssh2
    Dec 29 16:08:29 ns341257 sshd[82323]: Failed password for root from 122.225.97.68 port 42692 ssh2
    Dec 29 16:08:29 ns341257 sshd[82327]: Failed password for root from 122.225.97.68 port 43364 ssh2
    Dec 29 16:08:30 ns341257 sshd[82327]: Failed password for root from 122.225.97.68 port 43364 ssh2
    Dec 29 16:08:30 ns341257 sshd[82323]: Failed password for root from 122.225.97.68 port 42692 ssh2
    Dec 29 16:08:30 ns341257 sshd[82327]: Failed password for root from 122.225.97.68 port 43364 ssh2
    Dec 29 16:08:30 ns341257 sshd[82325]: Failed password for root from 122.225.97.68 port 42702 ssh2
    Dec 29 16:08:30 ns341257 sshd[82323]: Failed password for root from 122.225.97.68 port 42692 ssh2
    Dec 29 16:08:30 ns341257 sshd[82327]: Failed password for root from 122.225.97.68 port 43364 ssh2
    Dec 29 16:08:30 ns341257 sshd[82327]: Disconnecting: Too many authentication failures for root [preauth]
    Dec 29 16:08:30 ns341257 sshd[82325]: Failed password for root from 122.225.97.68 port 42702 ssh2
    Dec 29 16:08:31 ns341257 sshd[82323]: Failed password for root from 122.225.97.68 port 42692 ssh2
    Dec 29 16:08:31 ns341257 sshd[82323]: Disconnecting: Too many authentication failures for root [preauth]
    Dec 29 16:08:31 ns341257 sshd[82325]: Failed password for root from 122.225.97.68 port 42702 ssh2
    Dec 29 16:08:35 ns341257 sshd[82325]: Failed password for root from 122.225.97.68 port 42702 ssh2

     
     
    penso que seria boa ideia meter a firewall ... não ? :\
  4. não trabalha Shogun :\

     

     

     

    #!/bin/bash
    #DATOS MYSQL
    FECHA=$(date)
    DBUSER=xxxx
    DBPASS=xxxxxxxxxxxÑA
    TABLA=account
    DBASE=account
    #BONOS 1 AL 5
    BONOS15='
    MAX_HP-1
    MAX_SP-2
    CON-3
    INT-4
    STR-5
    DEX-6
    ATT_SPEED-7
    MOV_SPEED-8
    CAST_SPEED-9
    HP_REGEN-10
    SP_REGEN-11
    POISON_PCT-12
    STUN_PCT-13
    SLOW_PCT-14
    CRITICAL_PCT-15
    PENETRATE_PCT-16
    ATTBONUS_HUMAN-17
    ATTBONUS_ANIMAL-18
    ATTBONUS_ORC-19
    ATTBONUS_MILGYO-20
    ATTBONUS_UNDEAD-21
    ATTBONUS_DEVIL-22
    STEAL_HP-23
    STEAL_SP-24
    MANA_BURN_PCT-25
    BLOCK-27
    DODGE-28
    RESIST_SWORD-29
    RESIST_TWOHAND-30
    RESIST_DAGGER-31
    RESIST_BELL-32
    RESIST_FAN-33
    RESIST_BOW-34
    RESIST_FIRE-35
    RESIST_ELEC-36
    RESIST_MAGIC-37
    RESIST_WIND-38
    REFLECT_MELEE-39
    POISON_REDUCE-41
    EXP_DOUBLE_BONUS-43
    GOLD_DOUBLE_BONUS-44
    ITEM_DROP_BONUS-45
    IMMUNE_STUN-48
    IMMUNE_SLOW-49
    ATT_GRADE_BONUS-53
    '
    #BONOS 6 Y 7
    BONOS67='
    MAX_HP-1
    MAX_SP-2
    CON-3
    INT-4
    STR-5
    DEX-6
    ATT_GRADE_BONUS-53
    ATT_BONUS_TO_MONSTER-63
    ATT_BONUS_TO_WARRIOR-59
    ATT_BONUS_TO_ASSASSIN-60
    ATT_BONUS_TO_SURA-61
    ATT_BONUS_TO_SHAMAN-62
    RESIST_WARRIOR-78
    RESIST_ASSASSIN-79
    RESIST_SURA-80
    RESIST_SHAMAN-81
    '
    #CONSULTA BONOS 1 AL 5
    for i in $BONOS15; do
    line=$i
    NOMBRE=${line%-*}
    VALUE=${line#*-}
    #echo $NOMBRE
    #echo $VALUE
    MAX=`echo "SELECT player.item_attr.lv5 FROM player.item_attr WHERE apply='$NOMBRE' ;" | mysql -N -B -u $DBUSER -p$DBPASS $DBASE`
    for valmax in $MAX ;
    do
    #echo $valmax
    RES=`echo "SELECT player.player.account_id FROM player.item, player.player WHERE ((attrtype0=$VALUE and attrvalue0 > $valmax) OR (attrtype1=$VALUE and attrvalue1 > $valmax) OR (attrtype2=$VALUE and attrvalue2 > $valmax) OR (attrtype3=$VALUE and attrvalue3 > $valmax) OR (attrtype4=$VALUE and attrvalue4 > $valmax) OR (attrtype5=$VALUE and attrvalue5 > $valmax) OR (attrtype6=$VALUE and attrvalue6 > $valmax)) and ((player.item.owner_id = player.player.id) or (player.item.owner_id = player.player.account_id)) ;" | mysql -N -B -u $DBUSER -p$DBPASS $DBASE`
    for data in $RES ;
    do
    #aki bannear a la banda o hacer el informe
    BANEO=`echo "UPDATE account SET status='AUTOBAN' WHERE id='$data' ;" | mysql -N -B -u $DBUSER -p$DBPASS $DBASE`
    echo $FECHA account: $data bono: $NOMBRE valor maximo: $valmax
    done
    done
    done
    #CONSULTA BONOS 6 Y 7
    for i in $BONOS67; do
    line=$i
    NOMBRE=${line%-*}
    VALUE=${line#*-}
    #echo $NOMBRE
    #echo $VALUE
    MAX=`echo "SELECT player.item_attr_rare.lv5 FROM player.item_attr_rare WHERE apply='$NOMBRE' ;" | mysql -N -B -u $DBUSER -p$DBPASS $DBASE`
    for valmax in $MAX ;
    do
    #echo $valmax
    RES=`echo "SELECT player.player.account_id FROM player.item, player.player WHERE ((attrtype0=$VALUE and attrvalue0 > $valmax) OR (attrtype1=$VALUE and attrvalue1 > $valmax) OR (attrtype2=$VALUE and attrvalue2 > $valmax) OR (attrtype3=$VALUE and attrvalue3 > $valmax) OR (attrtype4=$VALUE and attrvalue4 > $valmax) OR (attrtype5=$VALUE and attrvalue5 > $valmax) OR (attrtype6=$VALUE and attrvalue6 > $valmax)) and ((player.item.owner_id = player.player.id) or (player.item.owner_id = player.player.account_id)) ;" | mysql -N -B -u $DBUSER -p$DBPASS $DBASE`
    for data in $RES ;
    do
    #aki bannear a la banda o hacer el informe
    BANEO=`echo "UPDATE account SET status='AUTOBAN' WHERE id='$data' ;" | mysql -N -B -u $DBUSER -p$DBPASS $DBASE`
    echo $FECHA account: $data bono: $NOMBRE valor maximo: $valmax
    done
    done
    done
    #mail -s "Informe Baneo Automatico" "[email protected]" < RES.TXT

×
×
  • Crear nuevo...