Jump to content
  • 0

Command to Skill?


Blazing Spear

Question


  • Group:  Members
  • Topic Count:  58
  • Topics Per Day:  0.01
  • Content Count:  208
  • Reputation:   1
  • Joined:  01/06/12
  • Last Seen:  

is there anyway how to make command into skill. Im planning to make @storage to active skill like identify in merchant

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  143
  • Reputation:   30
  • Joined:  12/23/11
  • Last Seen:  

Guide +
skill.c / skill_castend_damage_id function

...
case YOUR_SKILL:
if(sd)
if (storage_storageopen(sd))
return -1;
break;
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  58
  • Topics Per Day:  0.01
  • Content Count:  208
  • Reputation:   1
  • Joined:  01/06/12
  • Last Seen:  

i already tried but when i try in game nothing happen. i put it in item when item put on enable to use storage



	case ALL_STORAGE:
	if (sd->npc_id || sd->state.vending || sd->state.buyingstore || sd->state.trading || sd->state.storage_flag)
		return -1;

	if (storage_storageopen(sd) == 1)
		break;

 

 

is that wrong??

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  143
  • Reputation:   30
  • Joined:  12/23/11
  • Last Seen:  

Hmm

I'm tried to make new skill (but i don't create new skil 'cause it takes time and i'm too lazy, just replace code for MC_IDENTIFY) and it works

All i do is

replaced this

    case MC_IDENTIFY:
        if(sd)
            clif_item_identify_list(sd);
        break;
with this
    case MC_IDENTIFY:
        if(sd)
            if (storage_storageopen(sd))
                return -1;
        break;
 

 

and wrote in the beginning

#include "storage.h"
 

What i'm doing wrong? (=

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  58
  • Topics Per Day:  0.01
  • Content Count:  208
  • Reputation:   1
  • Joined:  01/06/12
  • Last Seen:  

ok i think my problem is in the client side ;) thanks btw

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  58
  • Topics Per Day:  0.01
  • Content Count:  208
  • Reputation:   1
  • Joined:  01/06/12
  • Last Seen:  

I tried it hard but when i clicked the skill still no happen. i already put it right and it appear in the misc tab but unlike other item like aura mazda when item put on the skill appear in misc tab when the item put off the skill gone in misc tab. unlike my custom skill it is already in misc tab even the item is not on or off it is active but still no happen when i clicked but when i use @useskill its 100% working

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