Jump to content
AnnieRuru

noitem mapflag

Recommended Posts

5 hours ago, Idlaz said:

Hello Annie, do you know why I am getting map crash when using it?

Show coredump.

Share this post


Link to post
Share on other sites

yes look like missing cleanup on server stop and on logout.

Because vector is not array but some kind of custom type with pointer, it should be cleaned manually

Share this post


Link to post
Share on other sites

hahaha .... I think from now on I should close the program by "@mapexit" .... I'm so dump
 

1.7 - plugin
- fix memory leak caused by aStrdup and VECTOR_ENSURE

Share this post


Link to post
Share on other sites
On 3/11/2014 at 5:42 AM, AnnieRuru said:

Download: 1.8
plugin

tested with

prontera mapflag noitem 0,4,5

prontera	mapflag	noitem	0,4,5

prontera mapflag noitem IT_HEALING, IT_WEAPON, IT_ARMOR

prontera	mapflag	noitem	IT_HEALING, IT_WEAPON, IT_ARMOR

disable player from using healing items, and preventing equip weapon and armor.

.

prontera mapflag noitem Poring_Card

prontera	mapflag	noitem	Poring_Card

prontera mapflag noitem 4001

prontera	mapflag	noitem	4001

disable player from using Poring Card

 

  Hide contents

1.0
noitem_20140310

1.1
-- fix a bug which messed up counter, should be [k] in npc.c
----- counter is for string size (w4), [k] counter is the index of the array map->list[m].noitemlist
noitem_20140828.
noitem_20140908

1.2
-- forgot to add aFree(temp), which cause memory leak
noitem_20140911.
noitem_20151030

1.3
plugin
-- remove MAX_RESTRICTED_LIST and hardcoded it as 50
-- and change noitem from state, into number of items restricted, to make it loop lesser

1.4
plugin
-- fix a rare bug if the user put multiple noitem on the same map, it spam non-sensible error
---- although this will overwrite the previous one without warning this time

1.5
plugin
--- remove the 50 items restriction limit by utilizing vector

1.6
plugin
--- fix server crash on certain compiler

1.7 - plugin
- fix memory leak cause by aStrdup and VECTOR_ENSURE

1.8 - plugin
- fix duplicate entry by ShowWarning
- add missing IT_AMMO item type deny

 

Mam @AnnieRuru please do one for rathena

Share this post


Link to post
Share on other sites

Hi cute cute!
Tip: Add a clif_displaymessage
Example: sprintf (output, "You cannot use% s on this map.", Id-> jname);

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
Reply to this topic...

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

×
×
  • Create New...

Important Information

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