Jump to content
  • 0

Duplicating SC_ITEMSCRIPT


Question

6 answers to this question

Recommended Posts

Posted (edited)

Open up status.c, find

StatusChangeFlagTable[sC_ITEMSCRIPT] |= SCB_ALL;

Add below

StatusChangeFlagTable[sC_ITEMSCRIPT2] |= SCB_ALL;

Find

if( sc->count && sc->data[sC_ITEMSCRIPT] )
{
 struct item_data *data = itemdb_exists(sc->data[sC_ITEMSCRIPT]->val1);
 if( data && data->script )
  run_script(data->script,0,sd->bl.id,0);
}

Add below

if( sc->count && sc->data[sC_ITEMSCRIPT2] )
{
 struct item_data *data = itemdb_exists(sc->data[sC_ITEMSCRIPT2]->val1);
 if( data && data->script )
  run_script(data->script,0,sd->bl.id,0);
}

For status.h, find

#ifdef RENEWAL
SC_EXTREMITYFIST2,
#endif

Add below

SC_ITEMSCRIPT2,

Then use sc_start sc_itemscript2 instead for 2nd sc

Edited by darristan
  • Upvote 1
Posted (edited)

Then I think you need define a sc_number to sc_itemscript2 in status.h, it must have been skipping to sc_max and which will returns to stone curse as 0.

You can try

SC_ITEMSCRIPT2 = 544,

Edited by darristan
  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...