Aegis Support Board: How to create new combos for cards and equips? - Aegis Support Board

Jump to content

ASB News! ASB 5.0 Beta V2 has now been released!. See here for more Info.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to create new combos for cards and equips?

#1 User is offline   980542 

  • Average Member
  • PipPipPipPip
  • Group: Members
  • Posts: 106
  • Joined: 21-December 05

Posted 03 October 2006 - 03:09 PM

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
0

#2 User is offline   Skyvlk 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 9
  • Joined: 22-June 04

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.

This post has been edited by Skyvlk: 03 October 2006 - 07:17 PM

0

#3 User is offline   980542 

  • Average Member
  • PipPipPipPip
  • Group: Members
  • Posts: 106
  • Joined: 21-December 05

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?
0

#4 User is offline   Kolkka 

  • Average Member
  • PipPipPipPip
  • Group: Members
  • Posts: 181
  • Joined: 07-August 03
  • Location:Mexico

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
0

#5 User is offline   980542 

  • Average Member
  • PipPipPipPip
  • Group: Members
  • Posts: 106
  • Joined: 21-December 05

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

Quote

SETITEM_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



Inside std.sc i found this

Quote

declare IsCompleteCombination 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

0

#6 User is offline   Kasuha 

  • Average Member
  • PipPipPipPip
  • Group: Members
  • Posts: 195
  • Joined: 08-February 05

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.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users