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

kenny92316

Members
  • Posts

    29
  • Joined

  • Last visited

    Never

kenny92316's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. kenny92316

    Giant Title

    @Jimmy93: > Client side, > open frmEditor_NPC > Select the scroll bar beside value: 0 > Scroll down in the properties until you see "Max 255" > Change the max to 50 000 I'm pretty sure the scroll bars have a maximum of around 32,700 about as much as interger data can max at.
  2. The server it's self don't use much cpu, but the client does. If you're playing on the same computer as the server it lowers its capablitys a bit. Just saying, but even with that hundreds of players if you can get enough players to play it.
  3. You would have to mod your server to read a database for purchasing off a website, and the website would have to write data to the database using mysql, or one of the other database programs. None of which I know how to do.
  4. found it. Stat(1 To Stats.Stat_Count - 1) As Byte change byte to interger, which increases its max to the above number for interger in my above post.
  5. 2\. Public Const MAX_LEVELS As Long = 100 10\. I suspect it's 2.147B as with the long's limit, and in the code it says: Public Const MAX_BYTE As Byte = 255 Public Const MAX_INTEGER As Integer = 32767 Public Const MAX_LONG As Long = 2147483647 ``` If Int(Amount) < 10000 Then ConvertCurrency = Amount ElseIf Int(Amount) < 999999 Then ConvertCurrency = Int(Amount / 1000) & "k" ElseIf Int(Amount) < 999999999 Then ConvertCurrency = Int(Amount / 1000000) & "m" Else ConvertCurrency = Int(Amount / 1000000000) & "b" End If ```8\. I suspect stats are saved as bytes which is a 255 cap, change their dim xxx as byte to interger if you can find it.
  6. I'm a novice when it comes to packets, but if you don't get any answers try looking for packets in the source and see how it's used.
  7. Perhaps trying something along the lines of: ``` if Sleepduration > 0 then If spell(spellslot).type = spell_type_unsleep then 'code for casting here else Exit Sub End if End if ```
  8. In the case else, which would be the character moving, simply place something like: ``` dim Rnum rnum = rand(100,1) if Rnum => 25 then Set Buffer = New clsBuffer Buffer.WriteLong CCast Buffer.WriteLong spellslot SendData Buffer.ToArray() Set Buffer = Nothing SpellBuffer = spellslot SpellBufferTimer = GetTickCount exit sub elseif Rnum < 25 then Call AddText("Your attempt to cast the spell has failed!", BrightRed) end if ```
  9. In my opinion try either using one variable for each database part 1 and 2 or change the varriable you're using into an array so you don't have an issue with it only reading one data.
  10. I finally got a chance to poke around the source for subs that would be used for npc attack, I found one but not exactly sure what the data input is refering to. The StartAddr and ExtraVar in specific. The only thing that I noticed is the buffer.readlong, and the two data types are classified as longs in the call of the sub. ``` Private Sub HandleNpcAttack(ByVal Index As Long, ByRef Data() As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long) Dim i As Long Dim Buffer As clsBuffer ' If debug mode, handle error then exit out If Options.Debug = 1 Then On Error GoTo errorhandler Set Buffer = New clsBuffer Buffer.WriteBytes Data() i = Buffer.ReadLong ' Set player to attacking MapNpc(i).Attacking = 1 MapNpc(i).AttackTimer = GetTickCount ' Error handler Exit Sub errorhandler: HandleError "HandleNpcAttack", "modHandleData", Err.Number, Err.Description, Err.Source, Err.HelpContext Err.Clear Exit Sub End Sub ```
  11. Oh alright, thank you for the clarification soul.
  12. Any ideas to how I could make a npc cast spells or use arrows for range attacks? Any input is appreciated.
  13. @Renzo: > @Soul: > > > There's ice cream cake, chocolate cake, vanilla cake, strawberry cake, carrot cake, etc.. > > [Here is your list of cakes](http://en.wikipedia.org/wiki/List_of_cakes) > > [and here are all the different kinds of pies](http://en.wikipedia.org/wiki/List_of_pies) > and that doesnt even include the different fruits > @Soul: > > > We have artificial flavoring and all you have is fruit. > > I rest my case Great argument, tons more kinds of yummy pies than there are cakes for those who like real flavor, compared to artifical stuff in regular ol' cakes. You dont see Black berry cakes do you, no but theres black berry pies, and nearly every fruit is in several kinds of pie. Not sure about vegitables though, dont think "carrot" cake fits into this category either. In my opinion Pie beats plain ol' cake any day.
  14. well more of what i mean for the 2nd part is it might be a shared friendlist if you use their account(getplayerlogin() not getplayername()) if they have more than 1 character, but good luck with this in getting it how you want it.
×
×
  • Create New...