Jump to content
  • 0

consumable item with "atcommand"


Question

Posted

Hi, i'd like to ask how could i put the script and it do the next:

 

.@r = getrefine(); if (.@r>=6) atcommand  

i've this but after atcommand i tried with: atcommand "@refine 4,+1" but just dont works, what am i doing bad? thanks!

 

what i want? a consume item that let me refine an item but it needs at least X refine level.

 

Thanks!

5 answers to this question

Recommended Posts

  • 0
Posted (edited)

Did you use atcommand outside item bonus script? (Maybe post whole related things here.)

But try use it directly on item bonus script first.

Edited by Start_
  • 0
Posted

if you're running NPC script, use this instead

*successrefitem <equipment slot>{,<count>{,<char_id>}};

This command will refine an item in the specified equipment slot of the invoking
character by +1, or a count if given. For a list of equipment slots see 'getequipid'.
This command will also display a 'refine success' effect on the character and put
appropriate messages into their chat window. It will also give the character fame
points if a weapon reached +10 this way, even though these will only take effect for
blacksmith who will later forge a weapon.
if (getrefine() >= 6) 
	successrefitem EQI_ARMOR, 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...