SphereCommunity
Item drop down - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Item drop down (/Thread-Item-drop-down)



Item drop down - ograso - 06-09-2014 11:39 PM

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



RE: Item drop down - Feeh - 06-10-2014 02:39 AM

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


RE: Item drop down - ograso - 06-10-2014 03:34 AM

(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


RE: Item drop down - Feeh - 06-10-2014 04:46 AM

[SKILL 18]
DEFNAME=Skill_Fishing
KEY=Fishing
...

ON=@Success
ACTARG2=1


RE: Item drop down - ograso - 06-10-2014 05:42 AM

(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