Jump to content

Firerain

Members
  • Posts

    43
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Firerain

  1. I made my own NPC buffer, but when I start up my gameserver it gives this error:

     

    Failed executing script: \gameserver\data\scripts\custom\9999_NpcBuffer\__init__.py

     

    When I check the error log, it says this:

    Error on: C:\hurf\gameserver\data\scripts\custom\9999_NpcBuffer\__init__.py.error.log
    Line: -1 - Column: -1
    
    Traceback (innermost last):
      (no code object) at line 0
    SyntaxError: ('invalid syntax', ('__init__.py', 24, 1, 'def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)'))

    Any ideas?

  2. Did. Same error. You don't understand. The error I get happens as soon as I open up the .bat. I didn't even touch anything =/

    I don't even get to change anything, and I think it's supposed to ask me for my password, but it doesn't. It just gives that screen.

     

    Like I said, this database installer came with it's own configuration file, which I posted above.

     

     

  3. There isn't one. It has a file called database_installer.sh. I'm using L2JFree Interlude btw.

     

    Here's the original database_installer.sh config:

    #!/bin/bash
    ############################################
    ## WARNING!  WARNING!  WARNING!  WARNING! ##
    ##                                        ##
    ## DON'T USE NOTEPAD TO CHANGE THIS FILE  ##
    ## INSTEAD USE SOME DECENT TEXT EDITOR.   ##
    ## NEWLINE CHARACTERS DIFFER BETWEEN DOS  ##
    ## AND UNIX.                              ##
    ##                                        ##
    ## USING NOTEPAD TO SAVE THIS FILE LEAVE  ##
    ## IT IN A BROKEN STATE!!!                ##
    ############################################
    ## Writen by DrLecter                     ##
    ## License: GNU GPL                       ##
    ## Based on Tiago Tagliaferri's script    ##
    ## E-mail: tiago_tagliaferri@msn.com      ##
    ## From "L2J-DataPack"                    ##
    ## Modified for L2JFree                   ##
    ############################################
    trap finish 2
    
    configure() {
    echo "#############################################"
    echo "# You entered script configuration area     #"
    echo "# No change will be performed in your DB    #"
    echo "# I will just ask you some questions about  #"
    echo "# your hosts and DB.                        #"
    echo "#############################################"
    MYSQLDUMPPATH=`which mysqldump 2>/dev/null`
    MYSQLPATH=`which mysql 2>/dev/null`
    if [ $? -ne 0 ]; then
    echo "We were unable to find MySQL binaries on your path"
    while :
    do
      echo -ne "\nPlease enter MySQL binaries directory (no trailing slash): "
      read MYSQLBINPATH
        if [ -e "$MYSQLBINPATH" ] && [ -d "$MYSQLBINPATH" ] && [ -e "$MYSQLBINPATH/mysqldump" ] && [ -e "$MYSQLBINPATH/mysql" ]; then
           MYSQLDUMPPATH="$MYSQLBINPATH/mysqldump"
           MYSQLPATH="$MYSQLBINPATH/mysql"
           break
        else
           echo "The data you entered is invalid. Please verify and try again."
           exit 1
        fi
    done
    fi
    #LS
    echo -ne "\nPlease enter MySQL Login Server hostname (default localhost): "
    read LSDBHOST
    if [ -z "$LSDBHOST" ]; then
      LSDBHOST="localhost"
    fi
    echo -ne "\nPlease enter MySQL Login Server database name (default l2jdb): "
    read LSDB
    if [ -z "$LSDB" ]; then
      LSDB="l2jdb"
    fi
    echo -ne "\nPlease enter MySQL Login Server user (default root): "
    read LSUSER
    if [ -z "$LSUSER" ]; then
      LSUSER="root"
    fi
    echo -ne "\nPlease enter MySQL Login Server $LSUSER's password (won't be displayed) :"
    stty -echo
    read LSPASS
    stty echo
    echo ""
    if [ -z "$LSPASS" ]; then
      echo "Hum.. i'll let it be but don't be stupid and avoid empty passwords"
    elif [ "$LSUSER" == "$LSPASS" ]; then
      echo "You're not too brilliant choosing passwords huh?"
    fi
    #GS
    echo -ne "\nPlease enter MySQL Game Server hostname (default $LSDBHOST): "
    read GSDBHOST
    if [ -z "$GSDBHOST" ]; then
      GSDBHOST="$LSDBHOST"
    fi
    echo -ne "\nPlease enter MySQL Game Server database name (default $LSDB): "
    read GSDB
    if [ -z "$GSDB" ]; then
      GSDB="$LSDB"
    fi
    echo -ne "\nPlease enter MySQL Game Server user (default $LSUSER): "
    read GSUSER
    if [ -z "$GSUSER" ]; then
      GSUSER="$LSUSER"
    fi
    echo -ne "\nPlease enter MySQL Game Server $GSUSER's password (won't be displayed): "
    stty -echo
    read GSPASS
    stty echo
    echo ""
    if [ -z "$GSPASS" ]; then
      echo "Hum.. i'll let it be but don't be stupid and avoid empty passwords"
    elif [ "$GSUSER" == "$GSPASS" ]; then
      echo "You're not too brilliant choosing passwords huh?"
    fi

    Can somebody tell me what needs to be edited? I changed the passwords to mysql pass. I'm using MySql 5.1.

  4. Hey, I'm trying to make a table for my GM Shop NPC. I have the rows and columns down, I'm just trying to make it display "Weapons, Armor, Misc" above it. I sort of have it, but as you can see in the picture below, not quite. What am I doing wrong?

     

    Here's what it looks like ingame:

    vql1q9.png

     

    Here's the code:

    <html>
    <title>GM-Shop</title>
    <body>
    
    <table border="0" width="120" cellspacing="15">
       
    <tr>
    <td>Weapons</td>
    <th>Armor</th>
    <th>Misc</th>
    </tr>
    
    <tr>
    <td><button value="D-Grade" action="bypass -h npc_%objectId%_multisell 40006" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
    <td><button value="D-Grade" action="bypass -h npc_%objectId%_multisell 40008" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
    <td><button value="Jewels" action="bypass -h npc_%objectId%_multisell 40008" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
    </tr>
    
    <tr>
    <td><button value="C-Grade" action="bypass -h npc_%objectId%_multisell 40007" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
    <td>r2, c2</td>
    <td>r2, c3</td>
    </tr>
    
    <tr>
    <td><button value="B-Grade" action="bypass -h npc_%objectId%_multisell 40008" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
    <td>r3, c2</td>
    <td>r3, c3</td>
    </tr>
    
    <tr>
    <td><button value="A-Grade" action="bypass -h npc_%objectId%_multisell 40009" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
    <td>r3, c2</td>
    <td>r3, c3</td>
    </tr>
    
    <tr>
    <td><button value="S-Grade" action="bypass -h npc_%objectId%_multisell 40010" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
    <td>r3, c2</td>
    <td>r3, c3</td>
    </tr>
    
    </table> 
    
    </body>
    </html>
    

  5. Thanks Sensei. Here's the code for Shield Reflect Magic if anyone needs it.

     

    <skill id="916" levels="4" name="Shield Deflect Magic">
      <set name="hitTime" val="1500"/>
      <set name="target" val="TARGET_SELF"/>
      <set name="skillType" val="BUFF"/>
      <set name="operateType" val="OP_ACTIVE"/>
      <set name="reuseDelay" val="45000"/>
      <for>
        <effect name="Buff" time="12" val="0">
          <mul order="0x30" stat="reflectSkillMagic" val="1.3"/>
        </effect>
      </for>
    </skill>

     

    Haven't had a chance to test it yet, the val for the stat might be off but it should work.

     

    Resolved ~

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock