Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

jaekx

Members
  • Posts

    78
  • Joined

  • Last visited

    Never

Posts posted by jaekx

  1. Im trying to design a system that displays a players information upon targeting them. Where would I write the code If player=targeted then drawCharInfo? Under which sub? Im using the latest version of EA. I have enumerated GUI_CHARINFO and i have a sub DrawCharInfo already implemented. Thanks for any help!
  2. Whenever I attack a monster with a shield equipped I get a runtime 9 error and my server shuts down, any ideas?

    debug brings me to the starred off section of this code

    ```

    Public Function GetPlayerStat(ByVal index As Long, ByVal stat As Stats) As Long

    Dim x As Long, i As Long

    If index > MAX_PLAYERS Then Exit Function

    * x = Player(index).stat(stat)*

    For i = 1 To Equipment.Equipment_Count - 1

    If Player(index).Equipment(i) > 0 Then

    If Item(Player(index).Equipment(i)).Add_Stat(stat) > 0 Then

    x = x + Item(Player(index).Equipment(i)).Add_Stat(stat)

    End If

    End If

    Next

    GetPlayerStat = x

    End Function

    ```

    Edit: if it helps any I discovered that if I kill the enemy in 1 shot it doesn't give me the error, its when it takes multiple shots.

    3.0.21

    edit: it is absolutely just shields, i havent had this problem with anything else equipped.
  3. Using current version of EA with Multiple drop tut added in.

    Upon killing monsters with magic and melee weapons the game runs perfectly fine and smooth, the items drop and its all good… Upon killing an enemy with any ranged weapon the game lags to hell, the image of the ammunition flies around screen longer than it needs to, THEN the monster drops loot. Any ideas? Please? ![:D](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/biggrin.png)
  4. I was surfin around the code a little bit and it looks like skill damage is calculated only with will? So if a warrior wanted a skill "double slash" - 2 consecutive attacks - the damage would be based of the number of pts in will and not str? or double shot for bowman, that wouldnt be based on agility either? Is this easily changeable so that skill damage can be based off the weapon type or class type?

    current version of EA

    Edit - can someone also fill me in on what the scroll bar titled vitals in spell editor does? it scrolls all the way to like 20,000…. lol
  5. This is my code

    ```

    // Vector.cpp : Defines the entry point for the console application.

    //

    #include "stdafx.h"

    #include #include #include "time.h"

    using namespace std;

    void PrintVector(const std::vector &MyRand2 );

    int _tmain(int argc, _TCHAR* argv[])

    {

    //Random number stuff

    srand( time(NULL)); // this 'seeds' random number generator

    // The modulus operator is used to manage or control the number

    // Its the ramainded after dividing by the number (10) ans. 0-9

    vector MyVector;

    for(int i=0; i<20; i++)

    {

    MyVector.push_back(rand()%10);

    }

    PrintVector( MyVector );

    system("pause");

    return 0;

    }

    void PrintVector(const std::vector &MyRand2)

    {

    std::vector::const_iterator constIterator;

    for( constIterator = MyRand2.begin(); constIterator != MyRand2.end(); constIterator++ )

    {

    cout << *constIterator << ' ';

    }

    }

    ```
    this is my output

    9 2 8 9 0 0 8 1 7 7 4 5 0 8 3 3 0 5 5 2

    this is my desired output

    9 2 8 9 0 0 8 1 7 7

    4 5 0 8 3 3 0 5 5 2

    I know this is probably god awfully simple, but I cant find where to place endl; effectively.
  6. Im trying to add equipment slots to EA, my question is about adding more columns to the Character_GUI menu.

    I wanna know how to set up the code so I can add more rows of equips, like whats boxed in red, for the added equip slots boxed in blue.

    ![](http://i.imgur.com/jeC1v.png)

    the code for the set up looks like such.

    the -78 was an add from me to heighten the normal 4 equip slots upward to fit my GUI change. As you can see it only accounts for one row, I just want to know how to add more.

    ```

    Public Function IsEqItem(ByVal X As Single, ByVal Y As Single) As Long

    Dim tempRec As RECT

    Dim I As Long

    ' If debug mode, handle error then exit out

    If Options.Debug = 1 Then On Error GoTo errorhandler

    IsEqItem = 0

    For I = 1 To Equipment.Equipment_Count - 1

    If GetPlayerEquipment(MyIndex, I) > 0 And GetPlayerEquipment(MyIndex, I) <= MAX_ITEMS Then

    With tempRec

    .Top = GUIWindow(GUI_CHARACTER).Y + EqTop - 78

    .Bottom = .Top + PIC_Y

    .Left = GUIWindow(GUI_CHARACTER).X + EqLeft + ((EqOffsetX + 32) * (((I - 1) Mod EqColumns)))

    .Right = .Left + PIC_X

    End With

    If X >= tempRec.Left And X <= tempRec.Right Then

    If Y >= tempRec.Top And Y <= tempRec.Bottom Then

    IsEqItem = I

    Exit Function

    End If

    End If

    End If

    Next

    ' Error handler

    Exit Function

    errorhandler:

    HandleError "IsEqItem", "frmGameLogic", Err.Number, Err.Description, Err.Source, Err.HelpContext

    Err.Clear

    Exit Function

    End Function

    ```

    if anyone wants to use some of my gray un equip slot images and possibly set up a tutorial ill add them here.

    ![](http://i.imgur.com/Acf9x.png)

    1- cape

    2- accessory

    3- ring

    4- shoes

    5- mask

    6- gloves

    7- earring

    8- pet equip

    also here is my GUI if anyone wants to steal it.

    ![](http://i.imgur.com/smSqS.png)
  7. Edit - Found how to move the + label but the click event is still lowered?

    current version of EA

    Ive found the section of code that renders the stat labels along with the X & Y coordinates, but I cant seem to find the coordinate position for the level up "+" signs to go with it.

    any help where the coordinates are located for these?

    ![](http://i.imgur.com/Ohw40.png?1)
  8. current version of EA

    I changed the width of my sprite set to better fit paper doll weapons and everything worked out fine except the shadow didnt follow my character. But oddly the name over my head did? Any help?

    /edit - I found shadow in my miscellaneous and attempted to pair it up with the sizing of my sprite box and now there is no shadow anywhere.

    ![](http://i.imgur.com/BzGsu.jpg?1)
  9. Ive searched prior to posting this question, yes. There are quite a few tutorials on how to add MP3 support to your game, though none of them having working download links and all of them require downloads. I cant do much with .midi so if anyone could help me out with adding .mp3 to my game? please? ![:D](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/biggrin.png) ive got a whoooole list of mp3s im eager to add >![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)
×
×
  • Create New...