manuel Posted April 5, 2014 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 48 Reputation: 2 Joined: 03/19/14 Last Seen: April 16 Share Posted April 5, 2014 (edited) 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 April 5, 2014 by manuel Quote Link to comment Share on other sites More sharing options...
Cydh Posted April 5, 2014 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 748 Joined: 06/16/12 Last Seen: February 21 Share Posted April 5, 2014 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* Quote Link to comment Share on other sites More sharing options...
manuel Posted April 5, 2014 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 48 Reputation: 2 Joined: 03/19/14 Last Seen: April 16 Author Share Posted April 5, 2014 (edited) 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 April 8, 2014 by manuel Quote Link to comment Share on other sites More sharing options...
manuel Posted April 14, 2014 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 48 Reputation: 2 Joined: 03/19/14 Last Seen: April 16 Author Share Posted April 14, 2014 help me please Thx Quote Link to comment Share on other sites More sharing options...
Question
manuel
src/map/pc.c
mmmmm.. give skull item in inventory, don't in the map area
Edited by manuelLink to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.