Jump to content
  • 0

Duplicating SC_ITEMSCRIPT


Reducto

Question


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  231
  • Reputation:   9
  • Joined:  12/16/11
  • Last Seen:  

Can anybody here help me duplicate this status. I'm having trouble duplicating this status. Thanks!

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  231
  • Reputation:   9
  • Joined:  12/16/11
  • Last Seen:  

Thanks! Did what you said. The problem now is when I use the item with ITEMSCRIPT2, I turned into stone. Hmmm.. Help me pls.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  231
  • Reputation:   9
  • Joined:  12/16/11
  • Last Seen:  

Still the same. :(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

Oh dang, did you add entry into /db/const.txt?

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  231
  • Reputation:   9
  • Joined:  12/16/11
  • Last Seen:  

Oh forgot to add those. Thank you very much its working now! :)

123.jpg

Edited by Cuspid
Link to comment
Share on other sites

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.

×
×
  • Create New...