Jump to content
  • 0
Sign in to follow this  
Chocolate31

Equipment Restriction.

Question

3 answers to this question

Recommended Posts

  • 0

Hi!

 

Npc that warps the player into a given map with a wide list of restricted items

If the player have that item equiped or in the inventory they are not allowed to enter the map.

 

Please help.

here's the script by AngelMelody

 

-	script	Vanilla1	-1,{OnPCLoadMapEvent:getmapxy(.@map$,.@mapx,.@mapy,0);if(.@map$ == "prtg_cas01"){	for(set .@i,0; .@i < getarraysize(.itemcheck); set .@i, .@i + 1){		if(countitem(.itemcheck[.@i])){			dispbottom "[ Info ] : item ["+getitemname(.itemcheck[.@i])+"] found (Inventory). Kicking..";            			warp "prontera",200,180;			end; 		}		if(query_sql("SELECT `nameid` FROM `cart_inventory` WHERE `char_id` = " + getcharid(0), .itemcheck[0]) {			dispbottom "[ Info ] : item ["+getitemname(.itemcheck[.@i])+"] found (Cart). Kicking..";            			warp "prontera",200,180;			end;		}    }end;OnInit:setarray .itemcheck[0],2383,2204,20025,20026,20027,20028,20029,20030,20031,20032,20033;end;}prtg_cas01    mapflag    loadevent

i just search it here

Share this post


Link to post
Share on other sites
  • 0

holy ... that method so unoptimized

and using query_sql to check online player is not recommended, it only save periodically

better use *getcartinventorylist;

 

or its better to use db(pre-)remap_zone_db.conf

and disabled_items: it

 

to unequip the equipment has to add a config

// Unequip the equipments that has disabled by map_zone_db.conf ?

// 0 : disabled equipments and cards are nullify (official)

// 1 : disabled equipments are unequip, disabled cards are nullify

// 2 : disabled equipments are nullify, disabled cards will caused the equipment to unequip

// 3 : disabled equipments are unequip, disabled cards will caused the equipment to unequip (1+2)

unequip_restricted_equipment: 0

change to 3

 

 

EDIT: Euphy ? I thought Euphy only active in rathena ..

Edited by AnnieRuru

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.