Jump to content
  • 0

OnPCLoginEvent: Remove Cards Diff version


mhielo12

Question


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  112
  • Reputation:   4
  • Joined:  08/28/14
  • Last Seen:  

Hi I would like to request a different kind of card remove with OnPCLoginEvent: Remove Cards
character thas has this specific card or acce example: buffalo card <<< will be remove to accessory when login and will be stored at storage

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

-	script	Sample	-1,{
	OnInit:
		.card_id = 4001;
		end;
			
	OnPCLoginEvent:
		if (isequipped(.card_id)) {
			for (.@eqi = EQI_ACC_L; .@eqi < EQI_SHADOW_ACC_L; .@eqi++) {
				for (.@card = 0; .@card < 4; .@card++) {
					if (getequipcardid(.@eqi, .@card) == .card_id) {
						successremovecards .@eqi;
						break;
					}
				}
			}
			// TODO: script command to add item into storage.
		}
		end;
}

you can do something like this, but to add item into storage, that would need a custom source mod to implement it.

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