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

[EO 2.0/3.0] Serial Number, Redeem Item or etc [Fixed]


PVJsquad
 Share

Recommended Posts

  • Replies 159
  • Created
  • Last Reply

Top Posters In This Topic

I did this (with some help from others) a thing where you use a command to open a panel. Maybe you could add it the front.

Go to frmMain, make a panel named **redeemcodepanel**, add a textbox and command button. Name them **txtCode** and **cmdClaim**, making sure they are on the inside of the panel. Then, on the corner make a button with the caption **X**, double click it. Add this:

```

Private Sub Close_Click()

reedemcodepanel.Visible = False

End Sub

```

Then double click **cmdClaim** and add this:

```

Dim a As Long

If txtCode.Text = vbNullString Then

txtCode.Text = "Not Valid Code!"

Else

For a = 1 To MAX_SERIAL_NUMBER

If txtCode.Text = Serial(a).Name Then

Call SendSerialGift(MyIndex, Serial(a).Item, Serial(a).ItemValue)

Call ClearSerial(a)

Call SendSaveSerial(a)

txtCode.Text = "Item Send to your Inv..."

Exit Sub

End If

Next

txtCode.Text = "Not Valid Code!"

End If

```

Then, in modInput, find:

```

Case "/editserial"

If GetPlayerAccess(MyIndex) < ADMIN_DEVELOPER Then GoTo Continue

SendRequestSerial

SendRequestEditSerial

```

Place under it

```

Case "/redeemcode"

If frmMain.redeemcodepanel.Visible = True Then

frmMain.redeemcodepanel.Visible = False

Else

frmMain.redeemcodepanel.Visible = True

End If

```

And that should make a good enough menu, and you can modify however you want!
Link to comment
Share on other sites

> I did this (with some help from others) a thing where you use a command to open a panel. Maybe you could add it the front.
>
> Go to frmMain, make a panel named **redeemcodepanel**, add a textbox and command button. Name them **txtCode** and **cmdClaim**, making sure they are on the inside of the panel. Then, on the corner make a button with the caption **X**, double click it. Add this:
>
> ```
>
> Private Sub Close_Click()
>
> reedemcodepanel.Visible = False
>
> End Sub
>
> ```
>
> Then double click **cmdClaim** and add this:
>
> ```
>
> Dim a As Long
>
> If txtCode.Text = vbNullString Then
>
> txtCode.Text = "Not Valid Code!"
>
> Else
>
> For a = 1 To MAX_SERIAL_NUMBER
>
> If txtCode.Text = Serial(a).Name Then
>
> Call SendSerialGift(MyIndex, Serial(a).Item, Serial(a).ItemValue)
>
> Call ClearSerial(a)
>
> Call SendSaveSerial(a)
>
> txtCode.Text = "Item Send to your Inv..."
>
> Exit Sub
>
> End If
>
> Next
>
> txtCode.Text = "Not Valid Code!"
>
> End If
>
> ```
>
> Then, in modInput, find:
>
> ```
>
> Case "/editserial"
>
> If GetPlayerAccess(MyIndex) < ADMIN_DEVELOPER Then GoTo Continue
>
>
>
> SendRequestSerial
>
> SendRequestEditSerial
>
> ```
>
> Place under it
>
> ```
>
> Case "/redeemcode"
>
> If frmMain.redeemcodepanel.Visible = True Then
>
> frmMain.redeemcodepanel.Visible = False
>
> Else
>
> frmMain.redeemcodepanel.Visible = True
>
> End If
>
> ```
>
> And that should make a good enough menu, and you can modify however you want!

I forgot it Thanks
Link to comment
Share on other sites

  • 4 months later...
> Man its been a while since this tutorial was fixed. Anyways I keep getting an error on Prospekt Source. When I try to save the Serial the Server says it stopped running and asks if you want to close or debug.

Can you tell me where the error?
Link to comment
Share on other sites

> that's the weird part no error is displayed not even in the Error log

Its so hard for find it, why you not try to use other engine :biker: 

> Bisa buatkan saya Demo ? pakai Eclipse advanced ? saya memasang ini gagal

itu udah jelas bang, kalo demo ntar lama lagi belum upload lah belum koneksi gagal lah :blink:
Link to comment
Share on other sites

Udah si udah tapi yang terakhir

```
double click the command and add this
Dim a As Long
If txtCode.Text = vbNullString Then
txtCode.Text = "Not Valid Code!"
Else
For a = 1 To MAX_SERIAL_NUMBER
If txtCode.Text = Serial(a).Name Then
Call SendSerialGift(MyIndex, Serial(a).Item, Serial(a).ItemValue)
Call ClearSerial(a)
Call SendSaveSerial(a)

txtCode.Text = "Item Send to your Inv..."
Exit Sub
End If
Next
txtCode.Text = "Not Valid Code!"
End If

```
nah itu buat form lagi ? ato gimana
Link to comment
Share on other sites

> Udah si udah tapi yang terakhir
>
> ```
> double click the command and add this
> Dim a As Long
> If txtCode.Text = vbNullString Then
> txtCode.Text = "Not Valid Code!"
> Else
> For a = 1 To MAX_SERIAL_NUMBER
> If txtCode.Text = Serial(a).Name Then
> Call SendSerialGift(MyIndex, Serial(a).Item, Serial(a).ItemValue)
> Call ClearSerial(a)
> Call SendSaveSerial(a)
>
> txtCode.Text = "Item Send to your Inv..."
> Exit Sub
> End If
> Next
> txtCode.Text = "Not Valid Code!"
> End If
>
> ```
> nah itu buat form lagi ? ato gimana

dobel klik tombol "**cmdClaim**" di frmMain trus masukin tuh kode

Oh iya hapus yang tulisan

```

double click the command and add this
```
Link to comment
Share on other sites

> BTW kan gak ada cmdClaim di frmMain .. :3 buatin tutor untuk E A :3

Liat "add textbox and command button name it **txtCode** and **cmdClaim"** 

di Tutorial CLIENT WORK

berarti kamu coba buka **frmMain **lalu bikin (tambahin) textbox sama command button 

ganti nama textbox jadi txtCode

ganti nama button tadi jadi **cmdClaim (**Sebelumnya biasanya Command1**)**
Link to comment
Share on other sites

> dapet error :D   :  [http://prntscr.com/1hlyv8](http://prntscr.com/1hlyv8)

udah masukin ini di modConstants

"Public Const EDITOR_SERIAL_NUMBER As Byte = 7 'or next number"

Angka 7 bukan berarti harus tujuh liat "Public Const EDITOR_ …" Sebelumnya

Kalo angkanya 5 berarti 

```

Public Const EDITOR_SERIAL_NUMBER As Byte = 6 'or next number

```
ganti angka 7 tadi jadi 6 ,gtu mas
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...