Jump to content
  • 0
Sign in to follow this  
mrlongshen

Remove scroll

Question

An item that will remove a card from a weapon.

can someone share this script ? when click the item, it will detect which one item you want to remove. then remove the card..

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

i edited the card removal npc

 

try this , but all parts not only weapon

 

on your item db weapon use call func

 

example : 

 

{	Id: 18000	AegisName: "Removal_Card_Scroll"	Name: "Removal Card Scroll"	Type: 11	Buy: 2000	Weight: 10	Script: <" callfunc "Remover"; ">},

 

 

 

and the function script :

 

 

 

function<tab>script<tab>Remover<tab>{	set .zenycost,0; // Set base cost in zeny of the card remover services	set .percardcost,0; // set cost per card of the card remover services	set .faildestroy,0; // Should the card remover have a chance of failure that destroys items? 1 = Yes, 0 = No.		set .@iwep,607; // the voucher / scroll item id.		setarray .@position$[1], "Head","Body","Left hand","Right hand","Robe","Shoes","Accessory 1","Accessory 2","Head 2","Head 3";		set .@menu$,"";		for( set .@i,1; .@i <= 10; set .@i,.@i+1 )		{			if( getequipisequiped(.@i) )			set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]";			set .@menu$, .@menu$ + ":";		}		set .@part,select(.@menu$);		if(!getequipisequiped(.@part)) {			mes "Young one... Your not wearing anything there that I can remove cards from.";						getitem .@iwep,1;			close;		}		if(getequipcardcnt(.@part) == 0) {			mes "[Wise Old Woman]";			mes "Young one... There are no cards compounded on this item. I can do nothing with it, I'm afraid.";						getitem .@iwep,1;			close;		}		set .@cardcount,getequipcardcnt(.@part);				if (!checkweight(1202,(.@cardcount+1))) { 			mes "Check your weight";			mes "Come Back Later";						getitem .@iwep,1;			close;		}		successremovecards .@part;		close;}
Edited by Max

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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