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

Ruins of Hell

Members
  • Posts

    6715
  • Joined

  • Last visited

    Never

Posts posted by Ruins of Hell

  1. > not sure if its an issue but tab doesnt work to format text in quick reply
    >
    > firefox 14.0.1

    I don't think that's an issue, that's the case with most systems.
  2. Check Public Sub CheckInputKeys() client-side.

    ```

    If GetKeyState(vbKeyControl) < 0 Then

    ```
    [(List here.)](http://msdn.microsoft.com/en-us/library/0z084th3%28v=vs.80%29.aspx)

    Also change:

    ```

    If GetAsyncKeyState(VK_CONTROL) >= 0 Then ControlDown = False

    ```
    [(List here.)](http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731%28v=vs.85%29.aspx)

    Note that if it is a printable key (a, b, c, d, etc.), you'll have to implement a click-to-type system.
  3. Ban system doesn't work, you should probably [open an issue](http://www.touchofdeathforums.com/community/index.php?/tracker/project-1-eclipse-event-system/) in the [tracker](http://www.touchofdeathforums.com/community/index.php?/tracker/project-1-eclipse-event-system/) for it.
  4. > You use visual basic 6 - However, I am confused as to where to make the changes exactly,
    >
    > I have nightly (dragon eclipse) release and things are alittle bit different on mine, can't find "ondeath", even
    >
    > when searching the whole project.

    Sub OnDeath in modPlayer.bas server-side.

    Here's how you can do it for all maps:

    ```

    Call PlayerWarp(index, START_MAP, START_X, START_Y)

    ```

    to:

    ```

    ' Map #3, X 5, Y 7.

    Call PlayerWarp(index, 3, 5, 7)

    ```
  5. There are some specialized functions for that (GetPlayerClass, GetPlayerLevel, GetPlayerSprite). Find (modDatabase):

    ```

    ' **********************

    ' ** Player functions **

    ' **********************

    ```

    for a list.

    Aside from that, you can do Player(index)., where variable is any variable under PlayerRec.
  6. You could just check for overflow, here's a quick example function. Note that it only works for a, b > 0, and integer a and b.

    It wouldn't let you go over 2 billion, but it will prevent the wrapping to negative numbers.

    ```

    ' Returns 0, if there is no overflow, or the overflow, if one exists. '

    Function AddCheckOverflow(ByVal a As Currency, ByVal b As Currency) As Long ' Currency is 8 bytes, as opposed to Long's 4 bytes. ''

    If a + b > MAX_LONG Then

    AddCheckOverflow = CLng((a - MAX_LONG) + ![B)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/cool.png)

    Else

    AddCheckOverflow = 0

    End If

    End Function

    ```

    You could then put the overflow in another stack, and then add on to the other stack (note that you should edit the inventory system to merge stacks when possible).

    Some other options:

    * Add to the packet engine to allow Currency (~1015 gold)
    * Put the overflow in other stacks.
    * Add a new system (like 1,000,000 gold -> 1 billagold; 1,000,000 billagold -> 1 quadgold) to allow a maximum of ~1027 gold, more than you'll ever need.
  7. > Quest(questnum).QuestlvlLimit = txtBox.Text

    Very close, except you can't directly assign a string to an integer, but you can use the Val function instead.

    ```

    Quest(questnum).QuestlvlLimit = Val(txtBox.Text)
    ```
  8. > If I put armour graphics what graphics folder would it be in so when my character equips it it appears on his sprite ingame?

    Read [this guide](http://www.touchofdeathforums.com/community/index.php?/page/index.html/wiki.html/_/eclipse-origins/tutorials-1344890800/addingediting-graphics-r4).
  9. > That's kind of the point, though. (Not to cause flamewars, I mean to have TLDR rating.)

    Understood, but the rating is done by a regular user, and is as good as any other rating. In addition, the whole rating will (obviously) be a topic of much debate by users who feel it is an unfair assessment of their game.

    The community rating, being a function about how the community feels about it, is OK. But an individual rating which receives MORE weight than any other rating is a terrible idea and bound to cause arguments.
  10. > Soul don't help if you don't know the answer ;D

    Didn't I mention that? ![;)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/wink.png)

    > **(Also, see Options.Website server-side.)**

    But to clarify for future readers: Options.Website is used when the client is not up-to-date. It wasn't strictly in the original question, but I thought it was needed. The GAME_WEBSITE constant is the one that shows when the server is down.
  11. > Would I have to download/purchase VB6?

    Most things with Eclipse require VB6, except for the event system, which provides limited functionality but it useful for smaller tasks (such as the ones you would usually used scripting for).
  12. > What is wrong with you, there is nothing bad with what he done… that is to make people read, so the ones that wont will post that they have errors and will be answer with "Read" so they will learn... this is his way to make them learn why spoilering it?

    Although I understand both points of this argument, you cannot force crzy to remove the code blocks from his post and we will not take action to do so.

    On a personal note, I don't believe this is the best way to make people read tutorials, especially since the syntax highlighter defeats your point. Maybe add comments explaining your code, or do a line-by-line explanation instead of a single code block.
×
×
  • Create New...