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

Experience Multiplier


Riiicardoo
 Share

Recommended Posts

Server Side

Create a checkBox, textBox a timer and 2 textBox with the following settings

checkBox

Name: chkMult

timer

Name: tmrMult
Interval = 1
Enabled = False

TextBox1

Name: txtMult
Text: Temp

TextBox2

Name: txtMult2
Text: experiment

Within the timer add:

```
chkMult.Value = 0
tmrMult.Enabled = False
```
Within the checkBox add:

```
If chkMult.Value = 1 Then
tmrMult.Interval = txtMult.Text * 1000
tmrMult.Enabled = True
Call GlobalMsg("The experiment is being multiplied by " & txtMult2.Text, 1)
End If
```
Within the textBox1 add:

```
If chkMult.Value = 1 Then
tmrMult.Interval = txtMult.Text * 1000
End If
```
Within the checkBox2 add:

```
If chkMult.Value = 1 Then
Call GlobalMsg("The experiment is being multiplied by " & txtMult2.Text, 1)
End If
```
Look for:

```
        ' Calculate exp to give attacker
        exp = (GetPlayerExp(victim) \ 10)
```
And add up:

Look for:

```
        ' Multiplier Exp
        If frmServer.chkMult.Value = 1 Then
            exp = exp * frmServer.txtMult2.Text
        End If
```
```
        ' Calculate exp to give attacker
        exp = NPC(npcNum).exp
```
And add up:

```
        ' Multiplier Exp
        If frmServer.chkMult.Value = 1 Then
            exp = exp * frmServer.txtMult2.Text
        End If
```
Credits:

me
Link to comment
Share on other sites

I tried this out and it doesn't work at all besides displaying your displaying your global msg…. Also i dont understand why you added the timer with
```
chkMult.Value = 0
tmrMult.Enabled = False
```
also dont know how it will work with just adding "exp = exp * frmServer.txtMult2.Text" I thought adding  a NPC(npcNum).exp * instead would work and it didn't? Am I just having trouble understanding you or did you not even test this?
Link to comment
Share on other sites

I tested here and take, I q and a fault was in the abir chekbox first and then by the values ​​of the textbox to fix it so put this code in textbox1:

If chkMult.Value = 1 Then
tmrMult.Interval = txtMult.Text * 1000
End If

And textBox2

If chkMult.Value = 1 Then
Call GlobalMsg("The experiment is being multiplied by " & txtMult2.Text, 1)
End If
Link to comment
Share on other sites

Ok cool but can you explain to me what this does? I thought it was just for changing the exp rate (like double exp weekends =p)? Which I got it to do but I deleted the timer and first txt box and changed the code slightly…. Or is it suppose to do something else sorry im just confused  :embarrassed:
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...