Remove scroll

mrlongshen

Noobies
Messages
1,126
Points
0
Age
36
Location
localhost 127.0.0.1
Emulator
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..

 
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 :

Code:
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;}
 
Last edited by a moderator:
Back
Top