Jump to content
  • 0

Skull Autodrops in inventory


manuel

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   2
  • Joined:  03/19/14
  • Last Seen:  

a taste 
  I could help on the issue of giving the skull in my inventory please
 

src/map/pc.c

 

if(battle_config.bone_drop==2 || (battle_config.bone_drop==1 && map[sd->bl.m].flag.pvp))
{
struct item item_tmp;
memset(&item_tmp,0,sizeof(item_tmp));
item_tmp.nameid=ITEMID_SKULL_;
item_tmp.identify=1;
item_tmp.card[0]=CARD0_CREATE;
item_tmp.card[1]=0;
item_tmp.card[2]=GetWord(sd->status.char_id,0); // CharId
item_tmp.card[3]=GetWord(sd->status.char_id,1);
map_addflooritem(&item_tmp,1,sd->bl.m,sd->bl.x,sd->bl.y,0,0,0,0,0);
}

 

mmmmm.. give skull item in inventory, don't in the map area

Edited by manuel
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

I think u can make a script that using OnPCKillEvent, strcharinfo(), and getnameditem();

but if u want to edit the src, u can change tha map_addflooritem to

pc_additem(sd,&item_tmp,1,LOG_TYPE_OTHER);
*not tested*
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   2
  • Joined:  03/19/14
  • Last Seen:  

tested ok in my pc 

 

not apply source code 

 

use @ die autodrop skull item in inventory 

If you kill the user in pvp so no revives the dead skull Users

 

 

Ayuda ¡¡

Edited by manuel
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   2
  • Joined:  03/19/14
  • Last Seen:  

help me please Thx

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