Jump to content
  • 0

pvp_nightmaredrop


Question

Posted (edited)

Hi,

 

Can I add more than one specific item to nightmaredrop?

And how can I make it 100%?

 

nightmare    mapflag    pvp_nightmaredrop    random,all,10000

 

doesn't give me 100%. :/

 

Oh and is there another way to make a player respawn when he dies other than making the map gvg?

Edited by Greyford

5 answers to this question

Recommended Posts

Posted

here o:

http://svn.rathena.org/svn/rathena/trunk/doc/mapflags.txt

 

this

---------------------------------------

*pvp_nightmaredrop	<id>,<type>,<rate>

Causes players to drop items upon death. This is not grouped with the other PvP mapflags
because it does not necessarily require PvP mode to be set.

<id> determines what will drop. It can be either a specific item ID or "random".
<type> specifies where items are dropped from. It can be "inventory", "equip", or "all".
<rate> is the chance that an item will drop (10000 = 100%).

---------------------------------------

i'm pretty sure that you may misconfig something o: remember to hit tabs (?)

Posted
nightmare%tab%mapflag%tab%pvp_nightmaredrop%tab%random,all,10000

then type @loadnpc npc/mapflag/nightmare.txt

-	script	Respawn	-1,{

OnPCDieEvent:
	recovery 0;
	warp "Save",0,0;
	end;

}
Posted
nightmare%tab%mapflag%tab%pvp_nightmaredrop%tab%random,all,10000

then type @loadnpc npc/mapflag/nightmare.txt

-	script	Respawn	-1,{

OnPCDieEvent:
	recovery 0;
	warp "Save",0,0;
	end;

}

The script works. But still its not 100% drop :/

Posted

ah i found this

http://www.eathena.ws/board/index.php?showtopic=218345

 

read this o:

"Well, i made a diff, if you configure a nightmare mapflag like this:

Example:

CODE
pvp_n_1-1     mapflag    pvp_nightmaredrop    all,all,10000

Everytime a char dies, it will drop everything. The first parameter indicates what drop, everything, random or an specified item, the second equiped items, inventory items or all, the third is the percent of drop, 10000 is 100.00%. If you change the percent, is the percent per item, not to drop all.

So here is the diff:
[Check it in my next post]

I'm not an expert, and i did it fast... So the code could be wrong, but it works, if someone wants to fix it, better. "

 

So, that may be why o:!

Posted (edited)
nightmare%tab%mapflag%tab%pvp_nightmaredrop%tab%random,all,10000

then type @loadnpc npc/mapflag/nightmare.txt

-	script	Respawn	-1,{

OnPCDieEvent:
	recovery 0;
	warp "Save",0,0;
	end;

}

 

Sorry, I just noticed that your script makes people autorespawn on EVERY map. :/ How to fix?

Just added a check for map, sorry. :D

 

Edited by Greyford

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