Jump to content

Angelmelody

Members
  • Content Count

    772
  • Joined

  • Last visited

  • Days Won

    23

Everything posted by Angelmelody

  1. try this --- a/src/map/pc.c +++ b/src/map/pc.c @@ -496,6 +496,25 @@ void pc_rental_expire(struct map_session_data *sd, int i) { } clif->rental_expired(sd->fd, i, sd->status.inventory[i].nameid); + + { // expiration return card + int s,flag =0; + for (s = 0; s < MAX_SLOTS; s++) { + if( itemdb->exists(sd->status.inventory[i].card[s]) != NULL ){ + struct item card_it; + memset(&card_it,0,sizeof(card_it)); + card_it.nameid=sd->status.inventory[i].card[s]; + card_it.identify=itemdb->isidentified(card_it.nameid); + if ((flag = pc->additem(sd, &card_it, 1 ,LOG_TYPE_NONE))) + { + clif->additem(sd, 0, 0, flag); + storage->additem(sd,&card_it,1); + + } + } + } + } + pc->delitem(sd, i, sd->status.inventory[i].amount, 0, 0, LOG_TYPE_OTHER); } void pc_inventory_rentals(struct map_session_data *sd)
  2. There are a lot of report bugs , Can devs take time to fix them?
  3. ALT+255 shouldn't pass the checking click 255 -->alt+255
  4. I think there are only 2 tables required you can search 'query_sql' to check how many tables she used CREATE TABLE IF NOT EXISTS `pvpladder` (char_id int(11) not null default '0' primary key,name varchar(30) not null default '',streaks smallint(6) unsigned not null default '0',kills smallint(6) unsigned not null default '0',deaths smallint(6) unsigned not null default '0',streaktime datetime) engine = myisam;CREATE TABLE IF NOT EXISTS `ownladder` (guild_id int(11) not null default '0' primary key,name varchar(24) not null default '',currentown smallint(6) unsigned not null default '0',highestown smallint(6) unsigned not null default '0',owntime datetime) engine = myisam;
  5. Have you ever thought about those characters were the other country's charset not installed in your OS ? I have ever experienced this kind of issues , if player use Japanese characters I cant see his/her name.
  6. prontera,151,189,5 script example 100,{ mes "-------"+.npcname$+"-------"; mes "123456789abcdefgh........"; close;OnInit: .npcname$ = strnpcinfo(1);end;}
  7. maybe query_sql only affect offline Character, coz online Character's permanent variable was stored in ram
  8. Hello, Im trying to add it here. can you help me. if ( GetPartyLeader(getcharid(1),2) == getcharid(0)) { mes "Sorry, I cant warp you. You are the party leader."; }else if( !isloggedin( .@party_leader_aid,.@party_leader_cid ) ){ mes "Party Leader not online..."; }else if( strcharinfo(3) == .@party_leader_map$ ){ mes "Both of you at same map."; }else if( !Hp ){ mes "Your party leader is dead. I can't warp you there."; Thank you! try to change this line }else if( !Hp ){ to } else if(set(.@tempaid,getcharid(3)) && attachrid(GetPartyLeader(getcharid(1),1)) && !Hp && attachrid(.@tempaid) ) {
  9. try this - script asdf1234 -1,{end;OnPCDieEvent: set .@pid,getcharid(1); if(!.@pid) end; set .@daid,getcharid(3); if(getpartyleader(.@pid,1)== .@daid ) { getpartymember getcharid(1),2; for(set .@i,0;.@i<$@partymembercount;set .@i,.@i+1) { if($@partymemberaid[.@i]==.@daid) continue; if(attachrid($@partymemberaid[.@i])) message strcharinfo(0), "Your party leader is dead!"; } }end;}
  10. in my option , I would add an option to show mob's hp barbattle.c{ "show_mob_info", &battle_config.show_mob_info, 0, 0, 1|2|4|8, } conf/battle/monster.conf // Display some mob info next to their name? (add as needed) // (does not works on guardian or Emperium) // 1: Display mob HP (Hp/MaxHp format) // 2: Display mob HP (Percent of full life format) // 4: Display mob's level // 8:Display mob's HP bar show_mob_info: 1 in mob.c if(battle_config.show_mob_info&8) { show pink hp bar..... }
  11. maybe its drop item cause your client to crash
  12. what does 'group user player 2' mean? Super Player? yes query_sql("SELECT account_id FROM `login` WHERE group_id=2" ,.@g2aid); .@size = getarraysize(.@g2aid); for(.@i=0;.@i<.@size;.@i++) { if (attachrid(.@g2aid[.@i])) announce "blah blah........",bc_blue|bc_self; } where do i put this code? in your broadcast npc
  13. what does 'group user player 2' mean? Super Player? yes query_sql("SELECT account_id FROM `login` WHERE group_id=2" ,.@g2aid); .@size = getarraysize(.@g2aid); for(.@i=0;.@i<.@size;.@i++) { if (attachrid(.@g2aid[.@i])) announce "blah blah........",bc_blue|bc_self; }
  14. what does 'group user player 2' mean? Super Player?
  15. http://herc.ws/board/tracker/issue-3680-npc-onbuyitem-when-attacked-by-wpe/ I think It was already fixed by Ai4rei https://code.google.com/p/eathena/source/detail?r=14616
  16. the below Code Snippet is dangerous , after submitting the select option, script should ValidateCost again if( select( "^0000FFPurchase^000000:Cancel" ) == 1 ){ if( getitemname( atoi( @Currency$ ) ) != "null" ) delitem atoi( @Currency$ ),@TotalCost; else{ set getd( @Currency$ ),getd( @Currency$ ) - @TotalCost; } for(set @i,0; @i < getarraysize( @bought_nameid ); set @i,@i+1) getitem @bought_nameid[@i],@bought_quantity[@i]; //message strcharinfo(0),"Received "+getarraysize( @bought_nameid )+" Items."; message strcharinfo(0),"[Cash Shop] Transaction completed."; mes "thx!"; }
  17. http://herc.ws/board/topic/302-introducing-hercules-map-zone-database/
  18. OnPCLoadMapEvent: if(lastmap$!="" && strcharinfo(3)!=lastmap$) { player leaves a map } lastmap$ = strcharinfo(3); end;
  19. just wanna download some scripts but I can't link anymore...
  20. you can try this not tested - script asdfjkl -1,{end;OnClock0800:OnClock1900: .@tt = 1;OnInit: atcommand "@reloadbattleconf"; if(gettime(4)!=5 && gettime(4)!=6 && ( !gettime(4) && !@tt ? 0 : 1 ) ) end; if((gettime(3) >= 1 && gettime(3) < 8 ) || (gettime(3) >= 14 && gettime(3) < 19) ) end; announce "double drop rate started", bc_all; setbattleflag ("base_exp_rate", getbattleflag("base_exp_rate")*2); setbattleflag ("job_exp_rate", getbattleflag("job_exp_rate")*2); setbattleflag ("item_rate_common", getbattleflag("item_rate_common")*2); setbattleflag ("item_rate_heal", getbattleflag("item_rate_heal")*2); setbattleflag ("item_rate_use", getbattleflag("item_rate_use")*2); setbattleflag ("item_rate_equip", getbattleflag("item_rate_equip")*2); end;OnClock0100: .@mo = 1;OnClock1400: if(gettime(4)!=5 && gettime(4)!=6 && ( !gettime(4) && !.@mo ? 0 : 1 ) ) end; atcommand "@reloadbattleconf"; announce "double drop rate ended", bc_all; end;}
  21. set ModExp, 200; --->2Xset ModDrop, 300; ---->3X set ModDeath, 50; ---->0.5X
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.