The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Item drop down
Author Message
ograso
Journeyman
*

Posts: 135
Likes Given: 10
Likes Received: 2 in 2 posts
Joined: May 2014
Reputation: 0



Post: #1
Item drop down
hey all again,

All fish drop down to the ground when I catch up a fish in Fishing system. I am using this trigger but nothing changed.

Did I missed something??

Code:
On=@ItemDropOn_Ground
if (<act.attr> == 04008)
act.attr 0
endif

if !((<weight> + <act.weight>) > <weightmax>)
    if ((<action> == id(skill_fishing)) || (<action> == skill_fishing))
       if (<act.type> == t_fish)
          act.bounce
       endif
       elseif ((<action> == id(skill_magery)) || (<action> == skill_magery))
  if (<act.type> == t_food)
  act.bounce
       endif
  endif
endif
06-09-2014 11:39 PM
Find all posts by this user Like Post Quote this message in a reply
Feeh
Sphere Developer
*****

Posts: 156
Likes Given: 6
Likes Received: 40 in 29 posts
Joined: Sep 2012
Reputation: 4



Post: #2
RE: Item drop down
Always read the revisions file, useful changes to scripts are logged there

Changed: Harvesting skills (Fishing/Mining/Lumberjacking) can now pack or place the harvested resource at feet
Override ACTARG2 on either @SkillSuccess and @Success (remember that @SkillSuccess is called first)
ACTARG2 = 0 -> Put the resource at feet
ACTARG2 = 1 -> Pack the resource

Smile

Feeh/Epila - Nightly releases / SphereWiki / Github Issues / Sphere's GitHub
06-10-2014 02:39 AM
Find all posts by this user Like Post Quote this message in a reply
ograso
Journeyman
*

Posts: 135
Likes Given: 10
Likes Received: 2 in 2 posts
Joined: May 2014
Reputation: 0



Post: #3
RE: Item drop down
(06-10-2014 02:39 AM)Feeh Wrote:  Always read the revisions file, useful changes to scripts are logged there

Changed: Harvesting skills (Fishing/Mining/Lumberjacking) can now pack or place the harvested resource at feet
Override ACTARG2 on either @SkillSuccess and @Success (remember that @SkillSuccess is called first)
ACTARG2 = 0 -> Put the resource at feet
ACTARG2 = 1 -> Pack the resource

Smile

Thank you so much but I dont know to use. Can you give an example to use that. I did something but nothing changed
06-10-2014 03:34 AM
Find all posts by this user Like Post Quote this message in a reply
Feeh
Sphere Developer
*****

Posts: 156
Likes Given: 6
Likes Received: 40 in 29 posts
Joined: Sep 2012
Reputation: 4



Post: #4
RE: Item drop down
[SKILL 18]
DEFNAME=Skill_Fishing
KEY=Fishing
...

ON=@Success
ACTARG2=1

Feeh/Epila - Nightly releases / SphereWiki / Github Issues / Sphere's GitHub
06-10-2014 04:46 AM
Find all posts by this user Like Post Quote this message in a reply
ograso
Journeyman
*

Posts: 135
Likes Given: 10
Likes Received: 2 in 2 posts
Joined: May 2014
Reputation: 0



Post: #5
RE: Item drop down
(06-10-2014 04:46 AM)Feeh Wrote:  [SKILL 18]
DEFNAME=Skill_Fishing
KEY=Fishing
...

ON=@Success
ACTARG2=1

I used @skillsuccess first but there wasnt. Which one is first success or skillsuccess

When I used ON=@Success first, perfectly work.

Tyvm Feeh
(This post was last modified: 06-10-2014 05:44 AM by ograso.)
06-10-2014 05:42 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)