Jump to content
  • 0

Help just a little script


eJay

Question


  • Group:  Members
  • Topic Count:  80
  • Topics Per Day:  0.02
  • Content Count:  325
  • Reputation:   76
  • Joined:  03/22/12
  • Last Seen:  

I found this topic

 

http://rathena.org/board/topic/74909-auto-removecard-from-low-and-middle-equip/

 

This is work perfectly

-	script	removecard	-1,{
OnPCLoginEvent:
    getinventorylist;
    for ( .@i = 0; .@i < @inventorylist_count; .@i++ ) {
        if ( !( getiteminfo( @inventorylist_id[.@i], 5 ) & 0 ) && getiteminfo( @inventorylist_id[.@i], 5 ) & 959 && ( @inventorylist_refine[.@i] || @inventorylist_card1[.@i] > 500 || @inventorylist_card4[.@i] > 500 ) ) {
            delitem2 @inventorylist_id[.@i], @inventorylist_amount[.@i], @inventorylist_identify[.@i], @inventorylist_refine[.@i], @inventorylist_attribute[.@i], @inventorylist_card1[.@i], @inventorylist_card2[.@i], @inventorylist_card3[.@i], @inventorylist_card4[.@i];
            getitem @inventorylist_id[.@i], @inventorylist_amount[.@i];
            for ( .@j = 1; .@j <= 4; .@j++ )
                if ( getd("@inventorylist_card"+ .@j +"["+ .@i +"]") )
                    getitem getd("@inventorylist_card"+ .@j +"["+ .@i +"]"), @inventorylist_amount[.@i];
        }
    }
    end;
}


This script is ( All items are auto remove card every login, and all +1 ~ +10 item will go to +0 refine every login )

 

My old server is eAthena and i want to change to my rAthena also some of my items, my old server i already put some slot of gods item like megs [1] and now i don't want to put the slot but some of player having card of on it this script work perfectly.

 

My problem is how to remove this +0 refine every login, and i want to use a certain items because this script will remove all items card so that player will not returned and returned card  every login.

Help guys :(

 

and storage and cart will not include so player trick after using item they will put into storage or cart, so that the card will not remove

Edited by eJay
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

*successremovecards <equipment slot>;

This command will remove all cards from the item found in the specified

equipment slot of the invoking character, create new card items and give them to

the character. If any cards were removed in this manner, it will also show a

success effect.

Reference: trunk/npc/custom/card_remover.txt
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  80
  • Topics Per Day:  0.02
  • Content Count:  325
  • Reputation:   76
  • Joined:  03/22/12
  • Last Seen:  

*Edit to the top.



Up Edited by eJay
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...