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

blkcrow

Members
  • Posts

    477
  • Joined

  • Last visited

    Never

Everything posted by blkcrow

  1. to calculate the chances you have to encounter a pokemon use this formula ``` y = (100 / (187.5 / x)) * num_of_steps ``` y would be a double variable that will hold the % chances of encountering that pokemon then get a random number from 0 to 100 and compare it with y. Because i dont think that the random number generator in eclipse can generate float point values you can multiply y with 1000 and then pass it into a long variable then generate a random number between 0 and 100000 this will give you a 3 digit precision. My english really sucks so i cant explain it properly i hope you got what i meant to say
  2. you are never checking to see if the target is an npc or a player so if your target is an npc mytarget holds the wring index
  3. you can just put the loop in an if statement if the the map is safe the loop will not be executed but the rest of the sub will avoiding some of the bugs that have been reported ``` ' Check to see if a player is already on that tile if Map.Moral MAP_MORAL_SAFE then For i = 1 To Player_HighIndex If IsPlaying(i) And GetPlayerMap(i) = GetPlayerMap(MyIndex) Then If GetPlayerX(i) = x Then If GetPlayerY(i) = Y Then CheckDirection = True Exit Function End If End If End If Next i End If ```
  4. Is custom a global variable? If it is you need a custom variable for everyplayer because if you have only one all the player names will render using the same variable wich means the same color
  5. how are you trying to do this? Are you requesting the vitals from the server and display them in when the server sends them or is your code only client side? Also are you checking to see if the target type is NPC or Player? Post your code here it will be easier for us to help you this way
  6. you shouldnt change anything in subs SavePlayer and LoadPlayer just add the variable Hair in the Player UDT
  7. > I'm using a label, it's for npc message box. It displays npc attack say message, but writes out letter by letter through the label. Wich version is that? in EO 2.0 the attack say message are send from the server to the client with the PlayerMsg sub. Anyway whenver you are receiving the packet from the server store the message to a global variable and use the following code in the main loop ``` if Trim$(message) != vbNullString Then if timer < Tick Then if counter < Len(message) Then label.caption = MId$(message, 1, counter) counter = counter + 1 else message = vbNullString counter = 1 end if timer = Tick + 500 'This number means that a letter will be written every 500 milliseconds or half a second change to your liking end if end if ``` message is your global variable wich holds the message, counter is a variable set to 1 outside the loop and timer is the variable wich is used to check if the desired time has passed
  8. are you rendering the text or are you using labels? If you are rendering the text you can do it easily with a timer.
  9. hmmm lets see if i get this right the time you tested it you had 5 people online 2 of those were connected to the server over a lan network while the other 3 over the internet. Have you checked the ping the players are getting the 2 players connected over lan shouldnt have high ping so it might be only a coincidence that the player with the highest index is one of the 2 players connected over lan. Whats the internet speed in the pc you are hosting your server also are you running your server though the exe or though the IDE (vb6)?
  10. > Breakpoints. Lots and lots of breakpoints. > > But in all seriousness, master breakpointing, and you master debugging. seriously learn to use breakpoints you cant even imagine how much they will help you
  11. thats the system we have in realm of darkness online
  12. this bug have been reported and fixed for the engines who use directX 8 **BUT** there is no reason why this wouldnt happen in the directX 7 version of the engine. **DO NOT** use this fix if you arent experiencing this bug. To know for sure if this bug occurs in your version of the engine make 24 spells remove the admin rights from your character **log out and log in again** if you are unable to do anything (wraping, activating events, e.t.c.) exept for walking then and only then you should use this fix
  13. > This is a fix for _Eclipse Origins v2_? because I tested here and works perfectly in player not admin with 24 spells. its for 3.0
  14. blkcrow

    .NET ENGINE v1.0

    is DrawLogin called in every frame? because if it is you are loading 2.png every frame
  15. > Hmm but there is already sub SendUpdateSpellsTo, and this what you added is just same sub but renamed. I think this won´t fix anything. this fixes everything. As i have explained in the topic i posted above every time the server updates a spell the client requests from the server all the spells the player has learned when the spells are more than 23 the server floods. What i have make is another sub that does the same thing but sends the spells the player has learned only once at the end
  16. blkcrow

    .NET ENGINE v1.0

    > Challenge Accepted… lmao. are you making a java engine? ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons//tongue.png) @dexterxx are you gonna use vb controls for the gui? i hope not
  17. blkcrow

    .NET ENGINE v1.0

    i would have been in if it was in java ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons//tongue.png)
  18. i think [this](http://www.angusj.com/resourcehacker/) is what you are looking for
  19. just a question. What happens if a player hasn't got facebook??????
×
×
  • Create New...