Fishing (resolved)
Moderator: Team Members
Forum rules
READ THE FORUM STICKY THREADS BEFORE ASKING FOR HELP!
Most information can be found there, and if not, the posts will help you determine the information required to get assistance from the development team.
Incomplete Help Requests will be locked or deleted.
READ THE FORUM STICKY THREADS BEFORE ASKING FOR HELP!
Most information can be found there, and if not, the posts will help you determine the information required to get assistance from the development team.
Incomplete Help Requests will be locked or deleted.
-
bolly
- Retired
- Posts: 389
- Joined: Mon Sep 21, 2009 3:03 pm
- Location: Leeds, UK
Fishing (resolved)
Hey all,
I'm a bit confused on the harvesting front as i'm not seeing anything pop up or a right click menu when I assign a primary command to an npc (ie 5 for fish or 4 for harvest)
I've got entries in my spawn_ground and groundspawn_items but i'm wondering if there's something else I need to do
just to note i can set this npc as say bank or npcfinder and it's fine
Cheers in advance
Bolly
I'm a bit confused on the harvesting front as i'm not seeing anything pop up or a right click menu when I assign a primary command to an npc (ie 5 for fish or 4 for harvest)
I've got entries in my spawn_ground and groundspawn_items but i'm wondering if there's something else I need to do
just to note i can set this npc as say bank or npcfinder and it's fine
Cheers in advance
Bolly
Last edited by bolly on Thu Oct 01, 2009 2:50 am, edited 1 time in total.
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Re: Fishing
Soon as you give the command_primary to the NPC, that command should show up when you right-click, even if none of the other stuff is configured. Fiddle with the attackable, targetable, etc... booleans, see if they change anything.
This is a screen shot from our editor, showing the setup of one of our fishing nodes. This alone should show the right-click menu.
This is a screen shot from our editor, showing the setup of one of our fishing nodes. This alone should show the right-click menu.
You do not have the required permissions to view the files attached to this post.
-
bolly
- Retired
- Posts: 389
- Joined: Mon Sep 21, 2009 3:03 pm
- Location: Leeds, UK
Re: Fishing
show_command_icon was the one! thanks again!
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Re: Fishing
Ahh yes, that makes the command visible doesn't it...
I knew it was one of them.
-
bolly
- Retired
- Posts: 389
- Joined: Mon Sep 21, 2009 3:03 pm
- Location: Leeds, UK
Re: Fishing
ya it must be with certain skills because banking and merchants etc are fine! 
-
bolly
- Retired
- Posts: 389
- Joined: Mon Sep 21, 2009 3:03 pm
- Location: Leeds, UK
Re: Fishing
hmm pops up but nothing happens on click, i have my fishing showing in the skills tab
*ponders something to do with spells*?
*ponders something to do with spells*?
- Scatman
- Retired
- Posts: 1688
- Joined: Wed Apr 16, 2008 5:44 am
- EQ2Emu Server: Scatman's Word
- Characters: Scatman
- Location: New Jersey
Re: Fishing
Yeah add a spell called fishing (case sensitive). When I re-did the way entity commands are processed, I forgot about harvesting
Eventually I'd like to make it so you won't need a spell.
-
bolly
- Retired
- Posts: 389
- Joined: Mon Sep 21, 2009 3:03 pm
- Location: Leeds, UK
Re: Fishing
hey, got it working but have to go into my spell book to run it (it's called lowercase 'fishing') > i did kinda clone my harvesting one though (which strangely also allows me to harvest fish!)
I'm gonna poke about with the flags on the spell now and see if i can change the animation and get it to fire when i right click a school of fish, but any tips would be appreciated!
I'm gonna poke about with the flags on the spell now and see if i can change the animation and get it to fire when i right click a school of fish, but any tips would be appreciated!
- Scatman
- Retired
- Posts: 1688
- Joined: Wed Apr 16, 2008 5:44 am
- EQ2Emu Server: Scatman's Word
- Characters: Scatman
- Location: New Jersey
Re: Fishing
You shouldn't need to go into your spell book. Make sure the groundspawn uses the fishing skill (collection_skill in spawns_ground table). Also make sure the groundspawn is set to attackable=0 and of course show_entity_command=1.
-
bolly
- Retired
- Posts: 389
- Joined: Mon Sep 21, 2009 3:03 pm
- Location: Leeds, UK
Re: Fishing
this is what i had in my spawn_ground
mysql> select * from spawn_ground;
+----+----------+-----------------+--------------------------+----------------------+------------------+
| id | spawn_id | number_harvests | num_attempts_per_harvest | groundspawn_entry_id | collection_skill |
+----+----------+-----------------+--------------------------+----------------------+------------------+
| 1 | 89 | 5 | 1 | 1 | Fishing |
+----+----------+-----------------+--------------------------+----------------------+------------------+
1 row in set (0.00 sec)
mysql> select * from spawn_ground;
+----+----------+-----------------+--------------------------+----------------------+------------------+
| id | spawn_id | number_harvests | num_attempts_per_harvest | groundspawn_entry_id | collection_skill |
+----+----------+-----------------+--------------------------+----------------------+------------------+
| 1 | 89 | 5 | 1 | 1 | Fishing |
+----+----------+-----------------+--------------------------+----------------------+------------------+
1 row in set (0.00 sec)
-
bolly
- Retired
- Posts: 389
- Joined: Mon Sep 21, 2009 3:03 pm
- Location: Leeds, UK
Re: Fishing
mysql> select * from spawn where id = 89;
+----+----------------+-----------+------+------------+------+-------------+------------+-----------+-----------------+-------------------+--------------+------------+------------+-------------------+-------------------+------------+------------------+----+-------+-------------+--------------+---------------+
| id | name | sub_title | race | model_type | size | size_offset | targetable | show_name | command_primary | command_secondary | visual_state | attackable | show_level | show_command_icon | display_hand_icon | faction_id | collision_radius | hp | power | merchant_id | transport_id | merchant_type |
+----+----------------+-----------+------+------------+------+-------------+------------+-----------+-----------------+-------------------+--------------+------------+------------+-------------------+-------------------+------------+------------------+----+-------+-------------+--------------+---------------+
| 89 | School of Fish | NULL | 255 | 4159 | 32 | 0 | 1 | 1 | 5 | 3452816845 | 0 | 0 | 0 | 1 | 0 | 0 | 32 | 26 | 26 | 0 | 0 | 0 |
+----+----------------+-----------+------+------------+------+-------------+------------+-----------+-----------------+-------------------+--------------+------------+------------+-------------------+-------------------+------------+------------------+----+-------+-------------+--------------+---------------+
1 row in set (0.00 sec)
mysql>
spawn is that too, seems ok to me!
+----+----------------+-----------+------+------------+------+-------------+------------+-----------+-----------------+-------------------+--------------+------------+------------+-------------------+-------------------+------------+------------------+----+-------+-------------+--------------+---------------+
| id | name | sub_title | race | model_type | size | size_offset | targetable | show_name | command_primary | command_secondary | visual_state | attackable | show_level | show_command_icon | display_hand_icon | faction_id | collision_radius | hp | power | merchant_id | transport_id | merchant_type |
+----+----------------+-----------+------+------------+------+-------------+------------+-----------+-----------------+-------------------+--------------+------------+------------+-------------------+-------------------+------------+------------------+----+-------+-------------+--------------+---------------+
| 89 | School of Fish | NULL | 255 | 4159 | 32 | 0 | 1 | 1 | 5 | 3452816845 | 0 | 0 | 0 | 1 | 0 | 0 | 32 | 26 | 26 | 0 | 0 | 0 |
+----+----------------+-----------+------+------------+------+-------------+------------+-----------+-----------------+-------------------+--------------+------------+------------+-------------------+-------------------+------------+------------------+----+-------+-------------+--------------+---------------+
1 row in set (0.00 sec)
mysql>
spawn is that too, seems ok to me!
-
bolly
- Retired
- Posts: 389
- Joined: Mon Sep 21, 2009 3:03 pm
- Location: Leeds, UK
Re: Fishing
you sure it's not fish as the spell name? *scratches head* the entity command i'm linked to is called fish but i can't see how that fires off the spell *pokes about in the source*
-
bolly
- Retired
- Posts: 389
- Joined: Mon Sep 21, 2009 3:03 pm
- Location: Leeds, UK
Re: Fishing
This the bad boy? I'm pretty sure it's enumed as upper case Fishingif(type == GetHarvestSpellType()) {
Spell* spell = master_spell_list.GetSpellByName((char*)collection_skill.c_str());
if (spell)
client->GetCurrentZone()->ProcessSpell(spell, client->GetPlayer(), client->GetPlayer()->GetTarget());
-
bolly
- Retired
- Posts: 389
- Joined: Mon Sep 21, 2009 3:03 pm
- Location: Leeds, UK
Re: Fishing
hoo ya!! she's fishing ;D


- Scatman
- Retired
- Posts: 1688
- Joined: Wed Apr 16, 2008 5:44 am
- EQ2Emu Server: Scatman's Word
- Characters: Scatman
- Location: New Jersey
Re: Fishing
Hehe ya that's why I said it was case sensitive. I guess I should've said "Fishing", sorry 
Who is online
Users browsing this forum: No registered users and 0 guests