Jump to content
  • 0

Disabling some Healing Items?


Diconfrost VaNz

Question


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  974
  • Reputation:   41
  • Joined:  11/13/11
  • Last Seen:  

How to disable healing items in a pvp map? biggrin.png

for example i have PVP Map 1 and PvP Map 2, and i want the PvP Map 2 to disable players to use healing items while pvp'ing inside it.

Link to comment
Share on other sites

11 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  318
  • Reputation:   37
  • Joined:  12/30/11
  • Last Seen:  

you can use the Item Restrict.db or just use this script from Emistry

http://rathena.org/b...-limited-items/

Edited by ossi0110
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  974
  • Reputation:   41
  • Joined:  11/13/11
  • Last Seen:  

thanks for this :D gonna check this out :D

this script makes the server slow. any other options?

up :D i need help

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

https://rathena.org/board/index.php?/files/file/2769-restock-onpcconsumeevent/



wee...you can try this...but it's not free >.<
you can just create a float npc with the OnPCConsumeEvent label..and check if they consumed any healing items...if they did...warp them out..
work the same as the script proposed above..but i think this would be more resource friendly than the script above..

else i think you gonna need some custom source mod to alter the healing effect of etc way....

and of course there are alot solutions you can try...
nulify the heal effect in the map using this
if( strcharinfo(3) != "mapname" ) percentheal 100,100;



or...
trunk/db/re/item_noequip.txt

it's depend on how you want it to work....or...you want to try it or not...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  974
  • Reputation:   41
  • Joined:  11/13/11
  • Last Seen:  

@Emistry = well i will buy that if it will really works. i need to talk to you, are you online in your fb?do you have any YM account? :D

anyone please?

Edited by Diconfrost VaNz
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

EXCELLENT!

I was trying to get a chance to rewrite my student's script

https://rathena.org/board/index.php?/files/file/2769-restock-onpcconsumeevent/

wee...you can try this...but it's not free >.<

you can just create a float npc with the OnPCConsumeEvent label..

I actually don't like people showing off their paid scripts where the solution isn't shown to public

if you want to do that, please do it in PMs

otherwise, I'm rewriting your script

getstorageitem patch

http://pastebin.com/raw.php?i=XsYif6tL

item script

update item_db_re set script = concat( script, ' callfunc "restock_pot", 501;' ) where id = 501;

npc script

function    script    restock_pot    {
   .@restock_rate = 5;
   if ( !countitem( getarg(0) ) ) {
       if ( countstorageitem( getarg(0) ) >= .@restock_rate ) {
           delstorageitem getarg(0), .@restock_rate;
           getitem getarg(0), .@restock_rate;
       }
   }
   return;
}


and check if they consumed any healing items...if they did...warp them out..

no need to add another event label like OnPCConsumeEvent:

can just do it with callfunc or doevent

update item_db_re set script = concat( script, ' callfunc "restrict_item";' ) where id = 501;

function    script    restrict_item    {
   if ( strcharinfo(3) == "guild_vs2" )
       warp "SavePoint", 0,0;
   return;
}


How to disable healing items in a pvp map?
I'm trying to rewrite this noitem mapflag also ... give me some time
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  974
  • Reputation:   41
  • Joined:  11/13/11
  • Last Seen:  

@AnnieRuru = please help me out on here :D/heh thanks :D if possible, only script not with a scr code :P (if only possible) /heh/kis

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

noitem_mapflag_17101.patch

prontera	mapflag	noitem	0

disable all healing items in prontera

or you can use

https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/db/re/item_noequip.txt

to disable using an items, its better to use item_noequip.txt by database

or use this source modifications ...

using npc scripts seems wasting server resources

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  974
  • Reputation:   41
  • Joined:  11/13/11
  • Last Seen:  

i've already downloaded it. It means i will edit the restricted.txt and put "prontera mapflag noitem 0" is that right?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

no, I recommend just the source modification enough

noitem_mapflag_17101.patch

prontera    mapflag    noitem    0

disable all healing items in prontera

just like this enough

btw if you are satisfy with this source modification, I'll move this topic into source request

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  974
  • Reputation:   41
  • Joined:  11/13/11
  • Last Seen:  

Is there any npc scripts out there that can do this? /heh or this is the only way?

Edited by Diconfrost VaNz
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  113
  • Reputation:   2
  • Joined:  10/29/12
  • Last Seen:  

You can make an entrance NPC that does @storeall if that suits your case or checks on healing items with an array which may tend to be tedious considering how many items out there give HP :)

Link to comment
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.   Paste as plain text instead

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