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

Recommended Posts

Posted
http://www.touchofdeathforums.com/community/index.php?/topic/125864-eo-2030-serial-number-redeem-item-or-etc-fixed/

The Tutorial is fixed

Tell me what wrong if still error
  • Replies 159
  • Created
  • Last Reply

Top Posters In This Topic

Posted
> Compile Error (Server)
>
> Sub or Function not defined
>
> **GivePlayerItems** index, Item, Value

replace this Line With

```
GiveInvItem index, Item, Value
```
Posted
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!
Posted
> 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
  • 4 months later...
Posted
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.
Posted
> 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?
Posted
> 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:
Posted
> ane error terus -_-

ulang lagi bang kalo bisa masih seger tuh mesinya (EO atau EA nya) ikuti dengan baik pasti jalan kok

saya sudah coba tutorial ini pada EclipseVB (EO) sukses gila bang  :D
Posted
> Buatin aja lah bang .. Kirim link via PM :3

kalo ini dibuatin , tutor yang lain bakalan kaga bisa bang 

mending nyoba dulu kalo error Screen Shot dan kasih tau ane
Posted
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
Posted
> 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
```
Posted
> 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**)**
Posted
> 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

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

×
×
  • Create New...