Jump to content
  • 0

*equip problem - Client error


llchrisll

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

Hello guys,

 

I'm currently working at an script called Training System, which is nearly finished just a few things left to test.

The problem is I can't get the easiest part to work q.q.

 

I have here the part which bugs, dunno what could cause it....

 

// Recieving Weapon
set @weap_id,getequipid(4);
getitem @weap_id,1;
// Looping till the correct weap has been equipped
while( getequiprefinerycnt(EQI_HAND_R) != 0 && getequipcardcnt(EQI_HAND_R) != 0 && getequipid(4) != 0) {
    equip @weap_id;
    sleep2 500;
}

The way to the error:

Weapon ID: 1505 (Mace[4])

I recieve the Weapon normally, but when it's about to equip it per "equip @weap_id;",the client tells me ingame "State to ban the wearing to be worn." (Not even english, imo xD)

Two pictures:

hc5y.png
2ueb.png
 

When I equip the empty mace during the script it works just fine..., I tried already what I could think of.

 

Server Revision: rAthena 17267 SQL Trunk

Client: 20120410

 

I hope someone can help me with this :).

 

Regards,

Chris

Edited by llchrisll
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

What you need may just be this: http://rathena.org/board/files/file/2240-release-script-command-equip2/

Custom Equip2 command, allowing you to equip a specific item following arguments similar to getitem2 command. This way you don't need to loop through their inventory to equip the item you want.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

Thanks for your reply GmOcean, but what I wanted to know why I recieved that message, like I'm using an client which is too old or like that.

After some after-thoughts I believe I'm gonna drop that part in case I don't get a way around it,also since it was stupid idea, but still thanks for your reply once again.

 

Regards,

Chris

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

It shouldn't be an issue with your client. Perhaps you have this disabled?

conf/battle/items.conf

// Allow changing of equipment while interacting with NPCs? (Note 1)
// Default: yes
item_enabled_npc: yes

Because I'm unable to reproduce your issue :/

Edited by GmOcean
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

Oho gonna check that later, thx for the hint.

Edit: That setting is on yes, maybe it's the *equip commands fault gonna update my svn.

Edited by llchrisll
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...