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

Blizzie

Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Blizzie's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Omg, I'm so excited! I did it! :D
  2. Annahstas, if you have a dynamic IP you should get a DUC. Register at no-ip.com and download their DUC. Set up a free domain there and edit the IP in your config.ini file to your no-ip domain. Everytime you boot your computer you will have to start the DUC, but atleast you won't have to send out a new version of your client or tell people to edit their config.ini file everytime you reboot. The other option is setting up a static IP, but that didn't work for me. Or well, it did for about 20 minutes, then I had to set a new IP, so yeah… What a DUC does is it checks your IP every now and then (No-IP's DUC checks and updates every 5 seconds) redirects your domain towards your IP.
  3. I'm not sure about how to edit the font and size of names, but their color can be changed in modText in client.vbp. Search for ' Check access level Then just edit the following lines of code: ``` Select Case GetPlayerAccess(Index) Case 0 color = RGB(255, 96, 0) Case 1 color = QBColor(DarkGrey) Case 2 color = QBColor(Cyan) Case 3 color = QBColor(BrightGreen) Case 4 color = QBColor(Yellow) End Select Else color = QBColor(BrightRed) ```
  4. Thanks Robin. I got it to work now. :D When I tried yesterday I didn't know how to compile, so I was all like "Why doesn't it work!? D:". :P
  5. Alright, so I'm currently trying to add a "block" feature to my game, but I just can't get it right. I've edited in modCombat and modPlayer (Yes, I've moved on from only editing modCombat! :D), but I believe I'll have to edit somewhere else too. I know that it's healthy to learn stuff on your own, but it's not that easy when you have no clue where to edit the code. As I said, I believe I'll have to edit somewhere else too, but I'll go ahead and post my code so far. Here's my block code from modCombat: ``` Public Function CanPlayerBlock(ByVal index As Long) As Boolean Dim rate As Long Dim rndNum As Long Dim Shieldslot As Long Shieldslot = GetPlayerEquipment(index, Shield) If Shieldslot > 0 Then rate = Item(Shieldslot).Data2 * (1 + (GetPlayerStat(index, Endurance) / 40)) * (1 + (GetPlayerStat(index, Willpower) / 50)) rndNum = RAND(1, 100) If rndNum
  6. Blizzie

    More lives

    @Robin: > Seems Captain Obvious commented your code. ;] Heeh… :embarrassed: @Grim: > thx ima see if it works right now x3 > I just got home from school so i will see if it works right now Alright, good luck. And if it works: Happy to help. ;)
  7. Blizzie

    More lives

    @Grim: > good job but is there a way to make the max hp 999? Try this, it might not be optimized, but it does the trick. ;) Add the following right before End Function in GetPlayerMaxVital in modCombat. The comments explain the code. ``` If GetPlayerMaxVital > 999 Then ' This says that if the player has more than 999 HP GetPlayerMaxVital = 999 ' It sets the HP to 999. End If ' This ends the If-command. ``` It should look like this: ``` Function GetPlayerMaxVital(ByVal index As Long, ByVal Vital As Vitals) As Long If index > MAX_PLAYERS Then Exit Function Select Case Vital Case HP Select Case GetPlayerClass(index) Case 1 ' Warrior GetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Endurance) / 2)) * 999 + 150 Case 2 ' Mage GetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Endurance) / 2)) * 5 + 65 Case Else ' Anything else - Warrior by default GetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Endurance) / 2)) * 15 + 150 End Select Case MP Select Case GetPlayerClass(index) Case 1 ' Warrior GetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Intelligence) / 2)) * 5 + 25 Case 2 ' Mage GetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Intelligence) / 2)) * 30 + 85 Case Else ' Anything else - Warrior by default GetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Intelligence) / 2)) * 5 + 25 End Select End Select If GetPlayerMaxVital > 999 Then ' This says that if the player has more than 999 HP GetPlayerMaxVital = 999 ' It sets the HP to 999. End If ' This ends the If-command. End Function ``` Sorry if I'm not allowed to make code for others and just give it to them, but I did add comments explaining the code so that people can learn.
  8. Blizzie

    More lives

    I'm not quite sure what you mean, but I'd assume you want to reduce the Max HP of players… If this is the case, and you're running EO 2.0, I'll proudly share what little knowledge of sourcing I have. Start off by opening server.vbp. When it has loaded, view the code of modCombat. In there you'll find the following code: ``` Function GetPlayerMaxVital(ByVal index As Long, ByVal Vital As Vitals) As Long If index > MAX_PLAYERS Then Exit Function Select Case Vital Case HP Select Case GetPlayerClass(index) Case 1 ' Warrior GetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Endurance) / 2)) * 15 + 150 Case 2 ' Mage GetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Endurance) / 2)) * 5 + 65 Case Else ' Anything else - Warrior by default GetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Endurance) / 2)) * 15 + 150 End Select Case MP Select Case GetPlayerClass(index) Case 1 ' Warrior GetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Intelligence) / 2)) * 5 + 25 Case 2 ' Mage GetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Intelligence) / 2)) * 30 + 85 Case Else ' Anything else - Warrior by default GetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Intelligence) / 2)) * 5 + 25 End Select End Select End Function ```Editing the different cases would change the health of your different classes. Change them to something like ``` Case 1 ' Warrior GetPlayerMaxVital = (GetPlayerLevel(index) * 10) + (GetPlayerStat(index, Endurance) * 5) + 150 Case 2 ' Mage GetPlayerMaxVital = (GetPlayerLevel(index) * 10) + (GetPlayerStat(index, Endurance) * 5) + 150 Case Else ' Anything else - Warrior by default GetPlayerMaxVital = (GetPlayerLevel(index) * 10) + (GetPlayerStat(index, Endurance) * 5) + 150 ```If a level 100 player has 500 Endurance, they would have 3650 HP. Edit: Right, the topic says "More lives", so just change it to something else. ``` Case 1 ' Warrior GetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Endurance) / 2)) * 30 + 150 Case 2 ' Mage GetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Endurance) / 2)) * 10 + 65 Case Else ' Anything else - Warrior by default GetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Endurance) / 2)) * 30 + 150 ```This would almost double their health at higher levels.
  9. Alright, so me and my friend started playing around with EO 2.0 yesterday. Today I decided I should try to edit the source, and so I did. The thing is, I want to set how often players (and NPCs) regenerate HP and MP. I've set the amount to regenerate, but I didn't find any "regen timer" or "tick" or whatever. So, is there any way to change how often a player's vitals are updated and how often they regenerate HP? I've mostly been poking around in modCombat in Server.vbp, but I tried searching for "vitals", "tick" and "update" in some of the other files, but had no luck.
×
×
  • Create New...