Jump to content
  • 0

Disabling some Healing Items?


Question

11 answers to this question

Recommended Posts

Posted

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

Posted (edited)

@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
Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...