SphereCommunity
New question - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: New question (/Thread-New-question)



New question - Elmortis - 12-15-2012 09:02 PM

I hava custom craft system, and when player wont make something good, hi must learn recepie, system work good, but have one bag, when charecter put recepie scroll on the recepie book, scroll add but where musr be name of recepie i see 0 , i attachment screenshoot in web link <a href = "http://www.imageup.ru/img249/1144842/bokker.gif"> Image </a>


RE: New question - Shaklaban - 12-16-2012 12:31 AM

what is the <TAG0.Recipes> ? can you try

serv.log <SERV.ITEMDEF.<ARGV[<dLOCAL._FOR>]>.NAME> <ARGV[<dLOCAL._FOR>]>

and

dcroppedtext +35 +0 110 20 0 TESTESTTEST

for the finding the source of the problem.

also your item definition is weird

[ITEMDEF 51001]
DEFNAME=i_recipe_alchemy_agility
NAME=Recipe: Agility Potion
ID=0e9a
TYPE=t_recipe
WEIGHT=.1
VALUE=3000
CATEGORY=Recipes
SUBSECTION=Alchemy
DESCRIPTION=Agility Potion


must be

[ITEMDEF i_recipe_alchemy_agility]
ID=0e9a
NAME=Recipe: Agility Potion
TYPE=t_recipe
WEIGHT=.1
VALUE=3000
CATEGORY=Recipes
SUBSECTION=Alchemy
DESCRIPTION=Agility Potion

because you are not defining a base item you are creating sub-item which has based on 0e9a.


RE: New question - Elmortis - 12-16-2012 01:44 AM

But i hava shadow ingot and hi is correct written in the book but i have error in sphere about multidef

Code:
[ITEMDEF 52004]
DEFNAME=i_recipe_blacksmith_shadow
NAME=Recipe: Shadow Weapons
ID=0e9a
TYPE=t_recipe
WEIGHT=.1
VALUE=8000
CATEGORY=Recipes
SUBSECTION=Blacksmith
DESCRIPTION=Mastery (Shadow)

ON=@Create
COLOR=0060
MORE2=52004
TAG.SkillID=Blacksmithing
TAG.SkillReq=60.0

In sphere
Code:
CRITICAL:(sphereworld.scp,974)Error Pri=2, Code=0, Desc='CTileTerrainType.ReadInfo: TileData Read', in GetItemData

whay?


RE: New question - Shaklaban - 12-16-2012 02:15 AM

its depend on line 974 in sphereworld.scp


RE: New question - Elmortis - 12-16-2012 03:10 AM

When i create this item i see world bit gem, when i put to backpack i see lamp post, and i make dclick on this item,and recepie add in my book's, and i see normal name into the book, i understand more2 in items when create, in more2 i have id and i change id i don't have name. But i can use more2 = like args? or more2 only numerical.

Thnak all. close this topic


RE: New question - Mordaunt - 12-16-2012 03:30 AM

0e9a is not a valid item id


RE: New question - Elmortis - 12-16-2012 04:30 AM

In this system hi take name whith scroll but when scroll create a have like

[my recip]
id =
name =
...

On@Create
More2=my recip

And when your put this scroll on the book, book reed more2 and work with more2. sorry i very bad written in english