Jump to content
  • 0
AnnieRuru

noitem plugin

Question

64 answers to this question

Recommended Posts

  • 0

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
  • 0

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
  • 0
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
  • 0
1 hour ago, Kuroyama said:

Memory leak:

image.png.f7bc8a1cc6b66631725bfa03e3e13d32.png

I think I've fixed memory leak issue since version 1.7

but the line shown in screenshot is indeed version 1.8, latest version

 

did you reproduce this with `@loadnpc` gm command ?

I tested if use `@loadnpc` only once, there are no memory leak, but `@loadnpc` multiple times on the same file will indeed causes memory leak

 

otherwise you have to tell me how to reproduce this memory leak issue

Share this post


Link to post
Share on other sites
  • 0
6 hours ago, AnnieRuru said:

I think I've fixed memory leak issue since version 1.7

but the line shown in screenshot is indeed version 1.8, latest version

 

did you reproduce this with `@loadnpc` gm command ?

I tested if use `@loadnpc` only once, there are no memory leak, but `@loadnpc` multiple times on the same file will indeed causes memory leak

 

otherwise you have to tell me how to reproduce this memory leak issue

Hi mam annie, I do nothing but to install the plugin properly and put "noitem (lhz cards itemid here) in GvG mapflag on map_zone_db".

Share this post


Link to post
Share on other sites
  • 0

tested with

prontera	mapflag	noitem	4,5
payon	mapflag	noitem	4,5
izlude	mapflag	noitem	4001,4002,4003

izlude	mapflag	gvg

type `@mapexit`

[Status]: Terminating...
[Status]: Cleaned up 982 maps.
[Status]: Close Map DB Connection....
[Status]: Close Log DB Connection....
[Status]: Finished.
[Info]: Memory manager: No memory leaks found.

no memory leak

I can't reproduce your problem

 

let me fix that `@loadnpc` anyway

 

1.9 - plugin

- fix memory leak when do multiple `@loadnpc`

Share this post


Link to post
Share on other sites
  • 0

Hello, 
in v1.9
the IT_HEALING or 0 type is not working. 
its not being added to vector

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

×
×
  • Create New...

Important Information

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