Jump to content
  • 0
mhielo12

OnPCLoginEvent: Remove Cards Diff version

Question

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
-	script	Sample	-1,{
	OnInit:
		.card_id = 4001;
		end;
			
	OnPCLoginEvent:
		if (isequipped(.card_id)) {
			for ([email protected] = EQI_ACC_L; [email protected] < EQI_SHADOW_ACC_L; [email protected]++) {
				for ([email protected] = 0; [email protected] < 4; [email protected]++) {
					if (getequipcardid([email protected], [email protected]) == .card_id) {
						successremovecards [email protected];
						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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.