Jump to content
  • 0

OnPCLoginEvent: Remove Cards Diff version


Question

Posted

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

1 answer to this question

Recommended Posts

  • 0
Posted
-	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.

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