Creating Package Item returns error?

Hadeszeus

New member
Messages
651
Points
0
Location
Philippines
buildin_packageitem: item ITEM_NAME isn't a package! yan ang nakikita kung error sa map-server ko.

Gumawa ako ng bagong ITEM ID using sprite ng isang item. Na add ko na idnum2itemresnametable at idnum2itemdesctable

Pati itemInfo.lub na add ko na din ng maayos ni reused ko lng yung existing sprite

sa item db na add ko na yung mga id.

Then yung sa item_packages.conf ko nakagawa na din ako ng new package.

For example:

Vesper_Core03_Box: {
Vesper_Core03_C: {
Random: 1
Expire: 168
Named: true
}

Vesper_Core03_C: {
Random: 1
Expire: 168
Named: true
}

}
 
 
Dun sa item ko nilagay ko na din na 
Script: <" packageitem(); ">
Type: 2 
 
Then pag tenitest ko na mag open nung box walang lumalabas pero na coconsume yung item.
Tapos yun sa map-server ang error:
 
buildin_packageitem: item 'ITEM PACKAGE NAME HERE' isn't a package! ang error tuwing nag bubukas ako.
 
What do you think is the problem?
 
 
paki lagay po yung buong item script at yung item package na tina-try mo i-call

 
Sir ganto po nilagay ko..

ITEM PACKAGE
{
Id: 26024
AegisName: "Ticket_Box"
Name: "Ticket Box"
Type: 2
Buy: 0
Weight: 100
Upper: 63
Script: <" packageitem(); ">
},
 
 
 
ITEMS INSIDE THE PACKAGE
{
Id: 26001
AegisName: "Guarantee_Weapon_8Up"
Name: "Safe to 8 Weapon Certificate"
Type: 3
Buy: 0
},
{
Id: 26002
AegisName: "Guarantee_Weapon_7Up"
Name: "Safe to 7 Weapon Certificate"
Type: 3
Buy: 0
},
{
Id: 26003
AegisName: "Guarantee_Weapon_6Up"
Name: "Safe to 6 Weapon Certificate"
Type: 3
Buy: 0
},
{
Id: 26004
AegisName: "Guarantee_Armor_9Up"
Name: "Safe to 9 Body Armor Certificate"
Type: 3
Buy: 0
},
{
Id: 26005
AegisName: "Guarantee_Armor_8Up"
Name: "Safe to 8 Body Armor Certificate"
Type: 3
Buy: 0
},
{
Id: 26006
AegisName: "Guarantee_Armor_7Up"
Name: "Safe to 7 Body Armor Certificate"
Type: 3
Buy: 0
},
{
Id: 26007
AegisName: "Guarantee_Armor_6Up"
Name: "Safe to 7 Headgear Certificate"
Type: 3
Buy: 0
},
 
sorry po nag post din ako http://herc.ws/board/topic/1244-official-item-grouppackagechain/?p=26929
 
okay, anu ba yung kino-call mo na item package sa item_package.conf?

kasi kung ganito yung nsa item_db mo

{ Id: 26024 AegisName: "Ticket_Box" Name: "Ticket Box" Type: 2 Buy: 0 Weight: 100 Upper: 63 Script: <" packageitem(); ">},
dapat ang nsa item_package.conf mo for example ay ganito

Ticket_Box: { Wrapped_Mask: { Random: 1 Rate: 3 } Poison_Bottle: { Random: 1 Count: 2 Rate: 10 } Set_Of_Taiming_Item: { Random: 1 Rate: 5 } Cookie_Bag: { Random: 1 Count: 2 Rate: 100 } Mysterious_Can2: { Random: 1 Count: 3 Rate: 80 } Mysterious_PET_Bottle2: { Random: 1 Count: 3 Rate: 80 } Speed_Up_Potion: { Random: 1 Count: 2 Rate: 80 } Old_Blue_Box: { Random: 1 Rate: 19 } Branch_Of_Dead_Tree: { Random: 1 Count: 5 Rate: 14 } First_Aid_Kit: { Random: 1 Rate: 19 } Dried_Yggdrasilberry: { Random: 1 Count: 3 Rate: 70 } Angeling_Potion: { Random: 1 Count: 3 Rate: 70 } Ygnizem_Scroll: { Random: 1 Count: 2 Rate: 50 } Doppelganger_Scroll: { Random: 1 Count: 2 Rate: 50 } Wild_Rose_Scroll: { Random: 1 Count: 2 Rate: 60 } Gift_Box: { Random: 1 Rate: 70 } Red_Bag: { Random: 1 Count: 3 Rate: 70 } Cool_Summer_Outfit: { Random: 1 Count: 3 Rate: 70 } Slow_Down_Potion: { Random: 1 Count: 2 Rate: 80 }}
mali ang nakalagay mo sa package xD.. review this 

Code:
<Container_Item_Name>: {    <Entry_Item_Name>: {        Random: 0 - Signs what group type this item belongs to, 0 is "Must", a group of items that come out whenever the package is open (doesn't use rate), anything above 0 is considered "random_group_<value>", a package with 2 random groups for example gets 2 items whenever open, one from each group        Count: 30 - Stands for how much <Entry_Item_Name> will be obtained.        Expire: 2 - Signs how many hours this item will last (makes a rental item).        Announce: True/False - Signs whether to relay a special item obtain announcement when this item comes out of the package.        Rate: 50 - If 'Random' is not 0, a rate from 1 to 10000 (0.01% - 100%) will be given.        Named: True/False - Signs whether the item should have the owner's name in it.
 
Sir tama nman ganto ang nakalagay sa item_package.conf

Ticket_Box: { Wrapped_Mask: { Random: 1 Rate: 3 } Poison_Bottle: { Random: 1 Count: 2 Rate: 10 } Set_Of_Taiming_Item: { Random: 1 Rate: 5 } Cookie_Bag: { Random: 1 Count: 2 Rate: 100 } Mysterious_Can2: { Random: 1 Count: 3 Rate: 80 } Mysterious_PET_Bottle2: { Random: 1 Count: 3 Rate: 80 } Speed_Up_Potion: { Random: 1 Count: 2 Rate: 80 } Old_Blue_Box: { Random: 1 Rate: 19 } Branch_Of_Dead_Tree: { Random: 1 Count: 5 Rate: 14 } First_Aid_Kit: { Random: 1 Rate: 19 } Dried_Yggdrasilberry: { Random: 1 Count: 3 Rate: 70 } Angeling_Potion: { Random: 1 Count: 3 Rate: 70 } Ygnizem_Scroll: { Random: 1 Count: 2 Rate: 50 } Doppelganger_Scroll: { Random: 1 Count: 2 Rate: 50 } Wild_Rose_Scroll: { Random: 1 Count: 2 Rate: 60 } Gift_Box: { Random: 1 Rate: 70 } Red_Bag: { Random: 1 Count: 3 Rate: 70 } Cool_Summer_Outfit: { Random: 1 Count: 3 Rate: 70 } Slow_Down_Potion: { Random: 1 Count: 2 Rate: 80 }}
Random = 1 <-- Para gamitin nya ung percentage or ung rate na naka define.

 
anu ba talaga ang gusto mong mangyari? anung mga items ang nakalagay sa package mo?

 
anu ba talaga ang gusto mong mangyari? anung mga items ang nakalagay sa package mo?
Sir un nga pong nilagay ko ung mga ticket pang ups ang laman ng package.. Random by chance..l
Nacopy ko lng po yung sample mo.. Ibig kung sbihin ganung format...

 
Last edited by a moderator:
edi dapat ganito sa

item_db2.conf mo

{ Id: 26024 AegisName: "Ticket_Box" Name: "Ticket Box" Type: 2 Buy: 0 Weight: 100 Upper: 63 Script: <" packageitem(); ">},

dapat sa item_package.conf mo

Code:
Ticket_Box: {	Guarantee_Weapon_8Up: {		Random: 1		Count: 1		Rate: 50	}	Guarantee_Weapon_7Up: {		Random: 1		Count: 1		Rate: 100	}	Guarantee_Weapon_6Up: {		Random: 1		Count: 1		Rate: 180	}	Guarantee_Armor_9Up: {		Random: 1		Count: 1		Rate: 20	}	Guarantee_Armor_8Up: {		Random: 1		Count: 1		Rate: 50	}	Guarantee_Armor_7Up: {		Random: 1		Count: 1		Rate: 100	}	Guarantee_Armor_6Up: {		Random: 1		Count: 1		Rate: 180	}}
 
edi dapat ganito sa

item_db2.conf mo

{ Id: 26024 AegisName: "Ticket_Box" Name: "Ticket Box" Type: 2 Buy: 0 Weight: 100 Upper: 63 Script: <" packageitem(); ">},

dapat sa item_package.conf mo

Ticket_Box: { Guarantee_Weapon_8Up: { Random: 1 Count: 1 Rate: 50 } Guarantee_Weapon_7Up: { Random: 1 Count: 1 Rate: 100 } Guarantee_Weapon_6Up: { Random: 1 Count: 1 Rate: 180 } Guarantee_Armor_9Up: { Random: 1 Count: 1 Rate: 20 } Guarantee_Armor_8Up: { Random: 1 Count: 1 Rate: 50 } Guarantee_Armor_7Up: { Random: 1 Count: 1 Rate: 100 } Guarantee_Armor_6Up: { Random: 1 Count: 1 Rate: 180 }}
Sige po subukan ko ulit.. ganyan na ganyan talga yung ginawa ko eh! pero ayaw lng lumabas nung item.. Nacoconsume lang yung BOX. 

Sir, salamat ha!
default_rolleyes.gif


 
Sige, balitaan mo nalang ako kung success, and paki mark solved.

 
Back
Top