Jump to content
  • 0
AnnieRuru

noitem plugin

Question

64 answers to this question

Recommended Posts

  • 0

Hope this mapflag will be implemented fully on Hercules since its very very useful specially on events and a lot more... and also, to fix known issues. 

 

 

Good job @AnnieRuru !! /no1

 

Reputation +1

Edited by Jezu

Share this post


Link to post
Share on other sites
  • 0

Wow, :) nice addition.. :D but hopefully, in the future there could be a possibility that we could use plugin system to add mapflags, OnCustomEvents, and edit some complicated things in skill.c and status.c :D

Share this post


Link to post
Share on other sites
  • 0

hahaha .... that known issue is a false alarm

I was having another plugin that crash the server ... thanks to the core dump

there was nothing wrong with the patch at all

 

@Jezu

actually I rather have the map_zone_db.conf have a config to unequip the equipments

so this one stay custom, that one should get a pull request

 

@Samuel

the current mapflag implementation sucks

there should be just a function to add a mapflag, then from that global function handle the rest

Share this post


Link to post
Share on other sites
  • 0
  On 3/14/2014 at 9:33 AM, Darkpurple said:

can use in rathena?

rathena users use that one

http://rathena.org/board/topic/77088-certain-map-weapon-restriction/?p=239342

 

but it doesn't support item names like hercules does, everything has to be filled in by numbers

Share this post


Link to post
Share on other sites
  • 0

Hello Annie :)

 

this script looks very very interessting.

 

But I have two questions:

- Can it be enabled / disabled by using setmapflag / removemapflag script commands ?

- If YES, how ? ( Can I add mf_noitem to const.txt ?, cause setmapflag / removemapflag use that. )

 

MfG

 

Snowflake

Edited by snowflake1963

Share this post


Link to post
Share on other sites
  • 0
  On 4/21/2014 at 12:52 PM, snowflake1963 said:

But I have two questions:

- Can it be enabled / disabled by using setmapflag / removemapflag script commands ?

no ... setmapflag in script.c is
BUILDIN_DEF(setmapflag,"si?"),
which only allow 2 parameters

its better to leave it as mapflags as mine can support up to 50 items

.

.

.

  On 8/26/2014 at 6:46 PM, THPO said:

this should be added officially on Hercules.

no, custom mod should stay custom ... this is not an official feature

.

.

.

  On 8/26/2014 at 6:46 PM, THPO said:

anyone can apply this as Plugin?

probably no ... there is currently no known way to add mapflags through plugin

.

.

.

and ... update the patch

Edited by AnnieRuru

Share this post


Link to post
Share on other sites
  • 0
i finally got it. wonderful!!!!!  will it support multiple items to disable? because i tried, map server wont load "stuck in loading mapflag file"
 
 
guild_vs1 mapflag noitem 4047, 4134, 4135, 4137, 4138, 4142, 4143, 4144, 4145, 4146, 4147, 4148, 4168, 4276, 4305, 4302, 4318, 4324
Edited by tlacson7

Share this post


Link to post
Share on other sites
  • 0

MUAHAHAHAHAHA !!

for so many months nobody noticed this bug

I messed up the , it should be [k]

 

everyone should download the new one

 

fix in noitem_20140828

Share this post


Link to post
Share on other sites
  • 0

yes but ...

I just found out rathena already has this config

https://github.com/rathena/rathena/blob/master/conf/battle/items.conf#L91

hmm ... well it doesn't unequipped disabled card, so ... might as well update it

 

in that topic I mean

Share this post


Link to post
Share on other sites
  • 0

on the recent map_zone_db update are this already added can we now globally add Item Type like: IT_HEALING, IT_WEAPON, IT_ARMOR to restrict them for using

Share this post


Link to post
Share on other sites
  • 0

i have warning memory leak on map server console for npc.c, have i messed up ?

 

 

  Reveal hidden contents

 

Edited by Litro

Share this post


Link to post
Share on other sites
  • 0

I'm not sure though I think it had conflicts with the recent update that we're Pulled.

 

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

 

Share this post


Link to post
Share on other sites
  • 0

yeah, the conflicts are from my own patch as well

 

anyway, just update 1st post, so try download again

Share this post


Link to post
Share on other sites
  • 0

im managed to revert all patch and re patch it again, but it still cause memory leak..

Memory manager: Memory leaks found at 2014/09/08 16h50m28s (SVN rev '14608M').0001 : npc.c line 4008 size 20 address 0x0xb4bf650c0002 : npc.c line 4008 size 20 address 0x0xb4bfbedc0003 : npc.c line 4008 size 20 address 0x0xb4bfd4fc0004 : npc.c line 4008 size 20 address 0x0xb4bfd70c0005 : npc.c line 4008 size 20 address 0x0xb4bff08c0006 : npc.c line 4008 size 20 address 0x0xb4bff71c0007 : npc.c line 4008 size 20 address 0x0xb4c5bdfc0008 : npc.c line 4008 size 20 address 0x0xb4c5cfcc0009 : npc.c line 4008 size 20 address 0x0xb4c5d71c0010 : npc.c line 4008 size 20 address 0x0xb4c5defc0011 : npc.c line 4008 size 20 address 0x0xb4c5e1cc0012 : npc.c line 4008 size 20 address 0x0xb4c61b8c0013 : npc.c line 4008 size 20 address 0x0xb4c6359c0014 : npc.c line 4008 size 20 address 0x0xb4e46c540015 : npc.c line 4008 size 20 address 0x0xb4e47e840016 : npc.c line 4008 size 20 address 0x0xb4e49e340017 : npc.c line 4008 size 20 address 0x0xb4e4aa340018 : npc.c line 4008 size 20 address 0x0xb4e4bba40019 : npc.c line 4008 size 20 address 0x0xb4e4d4c40020 : npc.c line 4008 size 20 address 0x0xb4e4d6d40021 : npc.c line 4008 size 20 address 0x0xb4e4e4e4[Warning]: Memory manager: Memory leaks found and fixed.

 

This is npc.c patch from my compiled svn

 

  Reveal hidden contents


 

npc.c line 4008 : char *temp = (char*)aMalloc( strlen(w4) +1 );  is anyone have face it too ?

Share this post


Link to post
Share on other sites
  • 0

i just tried the current patch and no errors from compiling it and also I tried doing @mapexit there we're no memory leak pointing to npc.c.

Share this post


Link to post
Share on other sites
  • 0
  On 9/8/2014 at 1:08 PM, THPO said:

i just tried the current patch and no errors from compiling it and also I tried doing @mapexit there we're no memory leak pointing to npc.c.

 

try put the mapflag in your script, and do map exit or ctrl + c on the map console

guild_vs2	mapflag	noitem	IT_WEAPON, IT_ARMOR

Share this post


Link to post
Share on other sites
  • 0

Ayt confirmed it too it generates memory leak.

  Quote

 

Memory manager: Memory leaks found at 2014/09/09 11h45m27s (Git rev '58875ccc2e4601499c465
329a597483c8d1f8770').
0001 : c:usersdelldesktopherc_localsrcmapnpc.c line 4008 size 32 address 0x067
E2B5C
[09 11:45][Warning]: Memory manager: Memory leaks found and fixed.
 
Map-Server has shutdown successfully.
Restarting in 15 seconds, press Ctrl+C to cancel.
[status]: Memory manager initialized: log/map-server.exe.leaks

dunno where to find the log lol.

Share this post


Link to post
Share on other sites
  • 0
  On 9/9/2014 at 8:50 AM, THPO said:

Ayt confirmed it too it generates memory leak.

  Quote

 

Memory manager: Memory leaks found at 2014/09/09 11h45m27s (Git rev '58875ccc2e4601499c465
329a597483c8d1f8770').
0001 : c:usersdelldesktopherc_localsrcmapnpc.c line 4008 size 32 address 0x067
E2B5C
[09 11:45][Warning]: Memory manager: Memory leaks found and fixed.
 
Map-Server has shutdown successfully.
Restarting in 15 seconds, press Ctrl+C to cancel.
[status]: Memory manager initialized: log/map-server.exe.leaks

dunno where to find the log lol.

 

Waiting for maam to reproduce its, i have small vps with 512 mb ram :lol: , memory leak will cause lag

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.


×
×
  • Create New...

Important Information

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