Jump to content

Lord Ganja

Members
  • Posts

    444
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Lord Ganja

  1. - You can use stash save to save the changes - Then git pull to update - Stash pop to put the changes back
  2. Can anyone create an npc script for me that shows the top 10 pk killers. I just don't know how to script using query_sql. The variable of the point is #PK_Points(account based) and the npc will also show the character names of the account This is the explanation of the picture below [ Top 10 PK Killers ] 1. (How much point does this account id has) // here the list of the character names of the account id and if the character is online or offline - character name [online/offline] - character name 2 [online/offline] and so on.. . Thanks in advance!
  3. AFAIK cards shouldn't be rented or bounded. But if you're looking to check if the equipped item is bounded try this Search for this part set .@part,select(.@menu$); Then add this below if( countbound() ) { for( .@a = 0; .@a < getarraysize( @bound_items ); .@a++ ) { if( @bound_items[.@a] == getequipid(.@part) ) { mes "[Wise Old Woman]"; mes "Young one... Sorry. I can't remove cards from bounded items."; close; } } }
  4. Wouldn't it affect anything if I removed the whole thing? It's okay as long as the accountlock table is already created? EDIT: FIXED after updating to ebaefc14762b519479ec17596dedf8f53cb37388
  5. Even if I removed it, this part still keeps on triggering even if the table is already created.. query_sql "show tables like 'accountlock'",.@AL$; if (.@AL$[0] == "") { debugmes "MySQL - Creating `accountlock` table ..."; // create table the first time - myzter set $accountlock$,"2.0"; query_sql "CREATE TABLE IF NOT EXISTS `accountlock` ( `account_id` int(11) unsigned NOT NULL DEFAULT '0',`passwd` varchar(255) NOT NULL DEFAULT '0',`recov_pwd` varchar(255) NOT NULL DEFAULT '0',PRIMARY KEY (`account_id`)) ENGINE=MyISAM"; end; } Maybe I should change? dunno if (.@AL$[0] == "") {
  6. May I request this source coz I can't make it on my own.. getequipbound <equipment slot>; It returns the bound type of the currently equipped item. 0 - Equipment is not bounded 1 - Account Bound 2 - Guild Bound 3 - Party Bound 4 - Character Bound I will use this to my custom pvp room wherein when you killed a player you have a chance to steal his currently equipped item and I want the bound type to be the same. OnPCDieEvent: for(.@i=0; .@i < 10; .@i++) { if( getequipisequiped(.@i) ) { .@itemid = getequipid(.@i); .@refine = getequiprefinerycnt(.@i); .@card1 = getequipcardid(.@i,0); .@card2 = getequipcardid(.@i,1); .@card3 = getequipcardid(.@i,2); .@card4 = getequipcardid(.@i,3); if( getequipbound(.@i) ) .@bound = getequipbound(.@i); if( rand(1,100) <= 20 ) { delequip .@i; if ( .@bound ) getitembound2 .@itemid,1,1,.@refine,0,.@card1,.@card2,.@card3,.@card4,.@bound,killerrid; else getitem2 .@itemid,1,1,.@refine,0,.@card1,.@card2,.@card3,.@card4,killerrid; } } } end; Thanks in advance! EDIT: Ended up doing this on my own. Can anyone check if it has some glitches? LOL I'm not actually into source. but this script command is working fine with me. BUILDIN_FUNC(getequipbound) { int i, num, type; TBL_PC *sd; num=script_getnum(st,2); sd=script_rid2sd(st); if (num > 0 && num <= ARRAYLENGTH(equip)) i=pc_checkequip(sd,equip[num-1]); type = sd->status.inventory[i].bound; if( i > 0 && type ) script_pushint(st,type); else script_pushint(st,0); return SCRIPT_CMD_SUCCESS; }
  7. This is what appears on my mapserver. [Info]: Git Hash: '6295c77d393555fe5a366f092a75f4cf0d2de933'
  8. Can anyone fix this for me? Thanks in advance! After updating my rAthena files to the Latest GIT, this scripts doesn't display any ranking information. Might be because of the 'query' scripts. I just don't understand queries so I can't fix it on my own :/ Dota Ladder by AnnieRuru - It doesn't display the ranking information. Always says "The ladder currently is empty". Emperium Breaker Ladder by Sandbox - It also doesn't display the ranking info of the top emperium breakers. - Tried to change global_reg_value to char_reg_num because of the Script Engine Update, but still not working Guild Ranker posted by Capuche - Same thing. Doesn;t display the guild ranking info my agit_main.txt // The Emperium has been broken. OnAgitBreak: if ( strcharinfo(3) == "prtg_cas01" || strcharinfo(3) == "prtg_cas02" || strcharinfo(3) == "payg_cas05" || strcharinfo(3) == "aldeg_cas02" || strcharinfo(3) == "gefg_cas01" || strcharinfo(3) == "payg_cas04" ) { query_sql "update guild set woe_points = woe_points +1 where guild_id = "+ getcharid(2); set brokeemp,brokeemp+1; // For Top 10 Emperium Breaker } This is the script that im currently using: Ladder.txt
  9. I already did contact him. But seems he's not really active.. Anyway, thanks. And favor please, if you ever tried it and encountered the same problem as mine, please let me know of what solution you did.
  10. it creates a table for `accountlock` for debugmes so nothing to worry about it. It should only create the table once right? But everytime I restart/reload the server, the debug mes always appear.. PLUS the full npc script doesn't work. I already checked the table `accountlock on the database, and it's already created.. But still whenever I restart/reload the server the debug mes still appear.
  11. I'm always getting this debug msg after I updated to the latest GIT [Debug]: script debug : 0 110007296 : MySQL - Creating `accountlock` table ... Could it be because of the Script Engine Upgrade? This is the part of the script, OnInit: query_sql "show tables like 'accountlock'",.@AL$; if (.@AL$[0] == "") { debugmes "MySQL - Creating `accountlock` table ..."; // create table the first time - myzter set $accountlock$,"2.0"; query_sql "CREATE TABLE IF NOT EXISTS `accountlock` ( `account_id` int(11) unsigned NOT NULL DEFAULT '0',`passwd` varchar(255) NOT NULL DEFAULT '0',`recov_pwd` varchar(255) NOT NULL DEFAULT '0',PRIMARY KEY (`account_id`)) ENGINE=MyISAM"; end; } it should only show the debugmes on the first time I run the script. but now it always show the debug.
  12. How to add new mapflag? Seems this one is not updated. TIA!
  13. I've added the patch OnPCUseSkillEvent and modified Warpgodelay (which only triggers on players vs players) Now im trying to tick the gowarpdelay using an npc script triggered by OnPCUseSkillEvent. is that possible? Example: OnPCUseSkillEvent: if( @useskilltarget == 1002 ) { // If a skill is used on poring the gowarpdelay will tick // What should I put here to tick the gowarpdelay? } Someone said I need to create a custom script_command to trigger. But I don't know how to make I custom script command. Help please? Thanks in advance!
  14. I didn't the one that alukas made. Anyway thanks Emistry. I'll try the script later. I'll give updates here. EDIT: Okay. I tried this one, and it seems working fine Thank you! anyway the file that annie uploaded is deleted already. Do you have these files? EDIT2: I also figured out that @useskilltarget doesn't work well on mobs/monsters. It returns numbers but not the ID of mobs/monsters you casted the skill
  15. Does anyone has this diff for the latest git revision? I badly need it especially the script that saves the target GID. Thanks in advance!
  16. That's sad maybe i'll just wait. hope someone can help me with this. anyway, thank you.
  17. What about the one that you suggested, the mod on atcommand.c?
  18. I need help in applying a .diff file.. I somehow messed up my trunk files so I decided to re-download the latest rathena GIT (Since the one I messed up was also the latest GIT). Before my files are messed up, I saved my all of my modifications using the 'Save unified diff' and created a .diff file.. Now, I was wondering on how could I apply this diff to my fresh rAthena trunk without applying them manually since it would take too much time.. I tried doing this: BTW im using Windows 7 OS 1) I put my .diff file inside my rathena folder. Then right click the diff file > TortoiseGIT > Apply Patch Serial This is the result: git.exe am --3way --ignore-space-change --keep-cr "C:\Users\LordGanja\Desktop\rAthena\mods.diff" Patch does not have a valid e-mail address. Fail 2) Because it failed, I put my email address on the TortoiseGIT settings under User Info (Config Source: Global), then I tried to patch it again, I got the same error. For all who can help, Thanks in advance!
  19. Thanks for your reply Jezznar. Anyway, I don't wan't to mess up anything in mob_db when I change the mode. I want it to stay the same.. Btw, the one that you're telling me about the modification in the atcommand.c, can you help me through it? im really bad at src. I can only do slight/easy modifcations but not the complicated ones. LOL I was thinking about using the OnPCStatCalcEvent so I can specify which monster's while being attacked will trigger the script. But I don't know how to create a 'target' variable so I can filter the target. Example: OnPCStatCalcEvent: if( target == <monster id> ) { // I will put the script here that will trigger the warpgodelay }
  20. I'm trying to modify the warpgodelay. I only wanted it to work on BOSS monsters and players. A delay timer will tick whenever you inflict or received damage from boss monsters and players only. But I couldn't make it to work for boss monsters. PS: The warpgodelay for players is already fully working. The only problem here is the trigger for Boss monsters. I'm still trying to modify it to work but im really noob at src mod. But I think i'm almost there. Can anyone give me tips for this? I think this part is only the problem: if( src->type == BL_PC || src->type == BL_MOB && is_boss(src) ) { sd->warpgodelay_tick = tick + warpgodelaycd; //This is the timer md->warpgodelay_tick = tick + warpgodelaycd; //This is the timer } Whenever I used this part src->type == BL_MOB && is_boss(src) , it somehow works, but not fully working. warpgodelay is ONLY triggered when im attacked. And even the mobs like Salamander, Necromancer attacked me, it is triggered. I only wanted it to work for boss only. Should I just change this part "src->type == BL_MOB && is_boss(src)"? or I still need to add something? my main purpose for this is to avoid the Champion MVP Hunting while warping after casting Asura Strike. Here's the part of the script: /*========================================== * Invoked when a player has received damage *------------------------------------------*/ void pc_damage(struct map_session_data *sd,struct block_list *src,unsigned int hp, unsigned int sp) { unsigned int tick = gettick(); int warpgodelaycd = 5000; //This is the delay in milliseconds you can set what ever delay you want struct map_session_data *md = (struct map_session_data *)src; if (sp) clif_updatestatus(sd,SP_SP); if (hp) clif_updatestatus(sd,SP_HP); else return; if( !src || src == &sd->bl ) return; if( src->type == BL_PC || src->type == BL_MOB && is_boss(src) ) { sd->warpgodelay_tick = tick + warpgodelaycd; //This is the timer md->warpgodelay_tick = tick + warpgodelaycd; //This is the timer } if( pc_issit(sd) ) { pc_setstand(sd, true); skill_sit(sd,0); } if( sd->progressbar.npc_id ) clif_progressbar_abort(sd); if( sd->status.pet_id > 0 && sd->pd && battle_config.pet_damage_support ) pet_target_check(sd->pd,src,1); if( sd->status.ele_id > 0 ) elemental_set_target(sd,src); sd->canlog_tick = gettick(); } I'm willing to pay if it's needed. Just drop me a message here. Thank you!
×
×
  • Create New...