Actually it's not a 'new' combo, i want to make the shinobi sash and ninja suit combo to work.
Tried to adda line with the equipments on combiitem.sc and then tell the effect of the combo on special.sc. I get not token map as error and i dont know where to declare this new combo.
Can't we make other combos or did i miss something? :o
Page 1 of 1
How to create new combos for cards and equips?
#2
Posted 03 October 2006 - 07:17 PM
Add this to the itemdata/combiitem.sc and itemdata/special.sc and then run the server, that should be enough.
itemdata/special.sc
item COMBIITEM_Shinobi_Belt
event OnStartEquip:
SubSPconsumption 20
AddExtParam User VAR_MAXHPAMOUNT 300
return
event OnFinishEquip:
AddSPconsumption 20
SubExtParam User VAR_MAXHPAMOUNT 300
return
itemdata/combiitem.sc
COMBIITEM_Shinobi_Belt
{
Ninja_Suit
Shinobi_Belt
}
It works just fine with the old 10.2 zone. You may have a different names of the items, though.
itemdata/special.sc
item COMBIITEM_Shinobi_Belt
event OnStartEquip:
SubSPconsumption 20
AddExtParam User VAR_MAXHPAMOUNT 300
return
event OnFinishEquip:
AddSPconsumption 20
SubExtParam User VAR_MAXHPAMOUNT 300
return
itemdata/combiitem.sc
COMBIITEM_Shinobi_Belt
{
Ninja_Suit
Shinobi_Belt
}
It works just fine with the old 10.2 zone. You may have a different names of the items, though.
This post has been edited by Skyvlk: 03 October 2006 - 07:17 PM
#3
Posted 12 October 2006 - 08:04 AM
Thx for the help but...
Copy pasted your example. I even copy pasted those db names afer /item to be sure they were right.
The zone loads perfectly but i cant get the effects of the combo.
Can a combo that doesnt use cards be made on ep 10.2?
Copy pasted your example. I even copy pasted those db names afer /item to be sure they were right.
The zone loads perfectly but i cant get the effects of the combo.
Can a combo that doesnt use cards be made on ep 10.2?
#4
Posted 12 October 2006 - 05:41 PM
Try to use
SETITEM_Shinobi_Belt
{
Ninja_Suit
Shinobi_Belt
}
then in special.sc
item SETITEM_Shinobi_Belt
event OnStartEquip:
etc
SETITEM_Shinobi_Belt
{
Ninja_Suit
Shinobi_Belt
}
then in special.sc
item SETITEM_Shinobi_Belt
event OnStartEquip:
etc
#5
Posted 15 November 2006 - 03:44 AM
I was looking in itp.def inside itemdata folder, and found out that COMBITEMs have ID, never found them in the database tho. I thought they may get an ID while server is running from a free number, but when I created an item with ID 30001, COMBIITEM_2 kepts its number... So i end up with 2 items with same ID. They get a little conflict but it doest affect other combos... (i didnt test them all)
Shinobi belt combo appeared too:
SETITEM_Shinobi_Belt 30028
Took the following names from the same file:
Shinobi_Belt 2654
Ninja_Suit 2337
I used in CombiItem.sc
And in special.sc
Inside std.sc i found this
Should it be used instead of on start equip or something?
Shinobi belt combo appeared too:
SETITEM_Shinobi_Belt 30028
Took the following names from the same file:
Shinobi_Belt 2654
Ninja_Suit 2337
I used in CombiItem.sc
Quote
SETITEM_Shinobi_Belt
{
Ninja_Suit
Shinobi_Belt
}
{
Ninja_Suit
Shinobi_Belt
}
And in special.sc
Quote
item SETITEM_Shinobi_Belt
event OnStartEquip:
SubSPconsumption 20
AddExtParam User VAR_MAXHPAMOUNT 300
return
event OnFinishEquip:
AddSPconsumption 20
SubExtParam User VAR_MAXHPAMOUNT 300
return
event OnStartEquip:
SubSPconsumption 20
AddExtParam User VAR_MAXHPAMOUNT 300
return
event OnFinishEquip:
AddSPconsumption 20
SubExtParam User VAR_MAXHPAMOUNT 300
return
Inside std.sc i found this
Quote
declare IsCompleteCombination s ENUM++ // Æó±âóºÐ
declare IsBreakCombination s ENUM++ //
declare IsBreakCombination s ENUM++ //
Should it be used instead of on start equip or something?
This post has been edited by 980542: 15 November 2006 - 03:46 AM
#6
Posted 15 November 2006 - 06:05 AM
There's a difference - OnStartEquip/OnFinishEquip are trigger IDs, while IsCompleteCombination/IsBreakCombination are function IDs, you still need to use them inside some trigger. As for now, I can't imagine any fair use for them.
Share this topic:
Page 1 of 1

Help











