Mirage Source

Free ORPG making software.
It is currently Thu Mar 28, 2024 5:27 pm

All times are UTC


Forum rules


Make sure your tutorials are kept up to date with the latest MS4 releases.



Post new topic Reply to topic  [ 1259 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 51  Next
Author Message
 Post subject: Re: Fishing
PostPosted: Sat Apr 11, 2009 4:22 pm 
Offline
Persistant Poster
User avatar

Joined: Thu Jul 24, 2008 6:42 am
Posts: 703
Google Talk: infectiousbyte@gmail.com
So I would use a loop?

_________________
Image
GIAKEN wrote:
Since I'm into men, not women

GIAKEN wrote:
I can't take these huge penises anymore! All that's left is shame! And blood


Top
 Profile  
 
 Post subject: Re: Fishing
PostPosted: Sat Apr 11, 2009 5:38 pm 
Nean wrote:
So I would use a loop?


No, that's what this does:

Code:
If GetPlayerInvItemNum(Index, GetPlayerEquipmentSlot(Index, Weapon)) = FishRod Then


Top
  
 
 Post subject: Re: Fishing
PostPosted: Sat Apr 11, 2009 5:43 pm 
Offline
Persistant Poster
User avatar

Joined: Thu Jul 24, 2008 6:42 am
Posts: 703
Google Talk: infectiousbyte@gmail.com
Matt wrote:
Nean wrote:
So I would use a loop?


No, that's what this does:

Code:
If GetPlayerInvItemNum(Index, GetPlayerEquipmentSlot(Index, Weapon)) = FishRod Then


Well that's all good and whatnot, however when I try to attack on a fish tile, without the fishing tool, it gives me a packet error (Packet Modification), and then it just says that I have lost my connection with MIrage Source. But when I just have it [code] If GetPlayerEquipMentSlot(index, Weapon) = FishRod Then [code], it works fine. Maybe there's something wrong with the GetPlayerInvItemNum function.

_________________
Image
GIAKEN wrote:
Since I'm into men, not women

GIAKEN wrote:
I can't take these huge penises anymore! All that's left is shame! And blood


Top
 Profile  
 
 Post subject: Re: Fishing
PostPosted: Sat Apr 11, 2009 7:09 pm 
Nean wrote:
Matt wrote:
Nean wrote:
So I would use a loop?


No, that's what this does:

Code:
If GetPlayerInvItemNum(Index, GetPlayerEquipmentSlot(Index, Weapon)) = FishRod Then


Well that's all good and whatnot, however when I try to attack on a fish tile, without the fishing tool, it gives me a packet error (Packet Modification), and then it just says that I have lost my connection with MIrage Source. But when I just have it [code] If GetPlayerEquipMentSlot(index, Weapon) = FishRod Then [code], it works fine. Maybe there's something wrong with the GetPlayerInvItemNum function.


The problem is, when you equip the fishing rod, it fills the weapon's slot. So basically, you equip the rod as a weapon. Which is fine. Good idea, imo anyways. Now, when you use your check, you're just getting the slot in the inventory that your weapon is in.

So, if you have your fishing rod as item number 200 and you have it in your inventory as item number 2, it'll never work. It would need to be in inventory slot 200 to work. See what I mean? By changing it to what I posted, you're checking the actual weapon's item number against the rod's item number, not the inventory slot it's in.

Hopefully that explains it a bit better. Lol.


Top
  
 
 Post subject: Re: Fishing
PostPosted: Sat Apr 11, 2009 10:11 pm 
Offline
Persistant Poster
User avatar

Joined: Thu Jul 24, 2008 6:42 am
Posts: 703
Google Talk: infectiousbyte@gmail.com
Matt wrote:
Nean wrote:
Matt wrote:
Nean wrote:
So I would use a loop?


No, that's what this does:

Code:
If GetPlayerInvItemNum(Index, GetPlayerEquipmentSlot(Index, Weapon)) = FishRod Then


Well that's all good and whatnot, however when I try to attack on a fish tile, without the fishing tool, it gives me a packet error (Packet Modification), and then it just says that I have lost my connection with MIrage Source. But when I just have it [code] If GetPlayerEquipMentSlot(index, Weapon) = FishRod Then [code], it works fine. Maybe there's something wrong with the GetPlayerInvItemNum function.


The problem is, when you equip the fishing rod, it fills the weapon's slot. So basically, you equip the rod as a weapon. Which is fine. Good idea, imo anyways. Now, when you use your check, you're just getting the slot in the inventory that your weapon is in.

So, if you have your fishing rod as item number 200 and you have it in your inventory as item number 2, it'll never work. It would need to be in inventory slot 200 to work. See what I mean? By changing it to what I posted, you're checking the actual weapon's item number against the rod's item number, not the inventory slot it's in.

Hopefully that explains it a bit better. Lol.


Oh, okay I get it. Thanks for the explanation. Any ideas on how to fix this then? I'm pretty clueless ,I don't see why it's causing packet errors.

_________________
Image
GIAKEN wrote:
Since I'm into men, not women

GIAKEN wrote:
I can't take these huge penises anymore! All that's left is shame! And blood


Top
 Profile  
 
 Post subject: Re: Fishing
PostPosted: Sat Apr 11, 2009 10:22 pm 
Offline
Pro
User avatar

Joined: Sun Aug 05, 2007 2:26 pm
Posts: 547
I assume you are getting "hacking attempt, packet modification" errors. (I am too lazy to look at the other page). I was getting those too recently. It is caused when there is an error in the game from something run from inside the handledata sub (and all subs it calls, and all subs they call, etc). Turn off the error checking and you should see your error.

_________________
GIAKEN wrote:
I think what I see is this happening:

Labmonkey gets mod, everybody loves him, people find out his code sucks, he gets demoted, then banned, then he makes an engine called Chaos Engine.


Top
 Profile  
 
 Post subject: Re: Fishing
PostPosted: Mon Apr 13, 2009 3:20 am 
Offline
Regular
User avatar

Joined: Tue Jun 03, 2008 6:22 pm
Posts: 50
Entire project search cannot find

Code:
' Used for map key open editor
Public KeyOpenEditorX As Long

Public KeyOpenEditorY As Long




using labmonkeys Latest MS4 version.

:ps: everything else was found. except that.


Top
 Profile  
 
 Post subject: Re: Fishing
PostPosted: Mon Apr 13, 2009 4:17 am 
Offline
Persistant Poster
User avatar

Joined: Thu Jul 24, 2008 6:42 am
Posts: 703
Google Talk: infectiousbyte@gmail.com
Don't mind that, it was taken out. just throw the code up at the top of ModGameEditors, I think it is.

_________________
Image
GIAKEN wrote:
Since I'm into men, not women

GIAKEN wrote:
I can't take these huge penises anymore! All that's left is shame! And blood


Top
 Profile  
 
 Post subject: Re: Fishing
PostPosted: Mon Apr 13, 2009 4:25 am 
Offline
Persistant Poster
User avatar

Joined: Wed Nov 29, 2006 11:25 pm
Posts: 860
Location: Ayer
Nean wrote:
Matt wrote:
Nean wrote:
Matt wrote:
Nean wrote:
So I would use a loop?


No, that's what this does:

Code:
If GetPlayerInvItemNum(Index, GetPlayerEquipmentSlot(Index, Weapon)) = FishRod Then


Well that's all good and whatnot, however when I try to attack on a fish tile, without the fishing tool, it gives me a packet error (Packet Modification), and then it just says that I have lost my connection with MIrage Source. But when I just have it [code] If GetPlayerEquipMentSlot(index, Weapon) = FishRod Then [code], it works fine. Maybe there's something wrong with the GetPlayerInvItemNum function.


The problem is, when you equip the fishing rod, it fills the weapon's slot. So basically, you equip the rod as a weapon. Which is fine. Good idea, imo anyways. Now, when you use your check, you're just getting the slot in the inventory that your weapon is in.

So, if you have your fishing rod as item number 200 and you have it in your inventory as item number 2, it'll never work. It would need to be in inventory slot 200 to work. See what I mean? By changing it to what I posted, you're checking the actual weapon's item number against the rod's item number, not the inventory slot it's in.

Hopefully that explains it a bit better. Lol.


Oh, okay I get it. Thanks for the explanation. Any ideas on how to fix this then? I'm pretty clueless ,I don't see why it's causing packet errors.

_________________
Image


Top
 Profile  
 
 Post subject: Re: Fishing
PostPosted: Fri Jun 19, 2009 7:21 pm 
Offline
Newbie
User avatar

Joined: Thu Jun 18, 2009 3:50 pm
Posts: 5
Well Helloooo There :P

Okay Quick Problem I've run into...
I've put everything in, but now when I click on the opt in the mapeditor and I go to place it it gives me

I've finished the tutorial now.. And I place the fishing attribute down on the map (Is it not supposed to show up like a block ... Eg: Block as a B. Does Fishing have an F?)
Anyways It just gave my Server a Runtime Error 9 when I hit ctrl on the spot

It Specifically highlights this
Code:
Public Function GetPlayerInvItemNum(ByVal Index As Long, ByVal InvSlot As Long) As Long
    GetPlayerInvItemNum = Player(Index).Char(TempPlayer(Index).CharNum).Inv(InvSlot).Num
End Function

_________________
Image
Image
(Un)Plugged


Top
 Profile  
 
 Post subject: Re: Fishing
PostPosted: Sat Jun 20, 2009 2:15 am 
Offline
Regular

Joined: Wed Jan 16, 2008 8:50 pm
Posts: 60
First, check your version of MS. This may not work with a different version if they've changes a few things.

Second, are you sure you are copying it correctly? This bit of code Client Side makes it show up on the map as a blue F.

Code:
                       Case TILE_TYPE_FISHING
                            DrawText TexthDC, ((X * PIC_X) - 4) + (PIC_X * 0.5), ((Y * PIC_Y) - 7) + (PIC_Y * 0.5), "F", QBColor(Blue)


Top
 Profile  
 
 Post subject: Re: Fishing
PostPosted: Sat Jun 20, 2009 12:51 pm 
InvSlot prolly equals 0.


Top
  
 
 Post subject: Re: Fishing
PostPosted: Sat Jun 20, 2009 6:56 pm 
Offline
Newbie
User avatar

Joined: Thu Jun 18, 2009 3:50 pm
Posts: 5
deathknight wrote:
First, check your version of MS. This may not work with a different version if they've changes a few things.

Second, are you sure you are copying it correctly? This bit of code Client Side makes it show up on the map as a blue F.

Code:
                       Case TILE_TYPE_FISHING
                            DrawText TexthDC, ((X * PIC_X) - 4) + (PIC_X * 0.5), ((Y * PIC_Y) - 7) + (PIC_Y * 0.5), "F", QBColor(Blue)


Yeah I fixed that part already and it started showing up and

Matt wrote:
InvSlot prolly equals 0.


What do you suggest I do to fix this?

I feel bad for asking so many questions >.< :P

_________________
Image
Image
(Un)Plugged


Top
 Profile  
 
 Post subject: Re: Fishing
PostPosted: Sat Jun 20, 2009 8:53 pm 
Hyperion wrote:
deathknight wrote:
First, check your version of MS. This may not work with a different version if they've changes a few things.

Second, are you sure you are copying it correctly? This bit of code Client Side makes it show up on the map as a blue F.

Code:
                       Case TILE_TYPE_FISHING
                            DrawText TexthDC, ((X * PIC_X) - 4) + (PIC_X * 0.5), ((Y * PIC_Y) - 7) + (PIC_Y * 0.5), "F", QBColor(Blue)


Yeah I fixed that part already and it started showing up and

Matt wrote:
InvSlot prolly equals 0.


What do you suggest I do to fix this?

I feel bad for asking so many questions >.< :P


Don't feel bad. First thing, you have to find the line that is passing the wrong number. Then you have to look at the code that gets you the inv slot. Something with it needs tweaked.


Top
  
 
 Post subject: Re: Fishing
PostPosted: Sun Jun 21, 2009 2:55 am 
Offline
Newbie
User avatar

Joined: Thu Jun 18, 2009 3:50 pm
Posts: 5
I've searched through some of the code and from what I can tell and what you've told me is that its getting bugged because the Invslot is equalling Zero when its looking for a number? Specifically the number of the fishing rod? If so the only line that would have to do with info about the fishing rod would be

Code:
 'Make sure they have the fishing rod.
    If GetPlayerInvItemNum(Index, GetPlayerEquipmentSlot(Index, Weapon)) = FishRod Then


Am I on the right track here or pulling nothing from no where :P

_________________
Image
Image
(Un)Plugged


Top
 Profile  
 
 Post subject: Re: Fishing
PostPosted: Fri Aug 14, 2009 1:02 am 
Offline
Newbie

Joined: Fri Aug 07, 2009 4:49 pm
Posts: 23
the form download form the first post is not available any more. can any one else host it?


Top
 Profile  
 
 Post subject: Re: Fishing
PostPosted: Wed Dec 01, 2021 8:34 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтsemiasphalticfluxсайтсайтсайт
сайтсайтсайтсайтсайтсайтhttp://taskreasoning.ruсайтсайтсайтинфосайтсайтtuchkasсайтсайт


Top
 Profile  
 
 Post subject: Re: Fishing
PostPosted: Sun Jan 02, 2022 5:16 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Econ


Top
 Profile  
 
 Post subject: Re: Fishing
PostPosted: Sun Jan 02, 2022 5:17 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
77.8


Top
 Profile  
 
 Post subject: Re: Fishing
PostPosted: Sun Jan 02, 2022 5:19 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Bett


Top
 Profile  
 
 Post subject: Re: Fishing
PostPosted: Sun Jan 02, 2022 5:20 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Bett


Top
 Profile  
 
 Post subject: Re: Fishing
PostPosted: Sun Jan 02, 2022 5:21 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Anne


Top
 Profile  
 
 Post subject: Re: Fishing
PostPosted: Sun Jan 02, 2022 5:22 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Bimd


Top
 Profile  
 
 Post subject: Re: Fishing
PostPosted: Sun Jan 02, 2022 5:23 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Imti


Top
 Profile  
 
 Post subject: Re: Fishing
PostPosted: Sun Jan 02, 2022 5:24 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Defo


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1259 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 51  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group