Jump to content

Lord Ganja

Members
  • Posts

    444
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Lord Ganja

  1. Hi can anyone help me edit this source of enchantment system. I need it to select which card slot is to be enchanted.. This source functions like this 'successenchant <equip location>,<enchant orb id>;' I need to be like 'successenchant <equip location>,<card slot>,<enchant orb id>;' script.c BUILDIN_FUNC(successenchant) { int i = -1, num, enchant, ep; TBL_PC *sd; num = script_getnum(st,2); // Equip Slot enchant = script_getnum(st,3); // Equip Enchant sd = script_rid2sd(st); if( sd == NULL || !itemdb_isenchant(enchant) ) return 0; if( num > 0 && num <= ARRAYLENGTH(equip) ) i = pc_checkequip(sd, equip[num - 1]); if( i < 0 ) return 0; if( !sd->inventory_data[i] || sd->inventory_data[i]->slot >= MAX_SLOTS ) return 0; // Cannot enchant an item with 4 slots. Enchant uses last slot. ep = sd->status.inventory[i].equip; log_pick_pc(sd, LOG_TYPE_SCRIPT, -1, &sd->status.inventory[i]); pc_unequipitem(sd,i,2); clif_delitem(sd,i,1,3); sd->status.inventory[i].card[MAX_SLOTS - 1] = enchant; log_pick_pc(sd, LOG_TYPE_SCRIPT, 1, &sd->status.inventory[i]); clif_additem(sd,i,1,0); pc_equipitem(sd,i,ep); clif_misceffect(&sd->bl,3); return 0; } ................................................................. BUILDIN_DEF(successenchant,"ii"), itemdb.h #define itemdb_isenchant(i) (i >= 4700 && i <= 4999) Thanks in advance!
  2. Anybody willing to help me about this? I successfully added custom jobs using Neo's Guide, but I still want to get rid of the warnings when compiling. \src\map\itemdb.c(361): warning C4293: '<<' : shift count negative or too big, undefined behavior and as Neo, said So can anyone help me change 32bit into 64bit variable? Thanks in advance!
  3. Can anyone help me how to convert the votepoints(from Feefty's Vote for Points) into another point? Because I'm trying to create a pointshop using the votepoints but I don't know which variable is used in feefty's voteforpoints.. I tried the variable 'votepoints' and '#votepoints' but I got no luck. thanks in advance!
  4. The last time he replied to me on skype was April 12.. And it is 9 days from April 03. And as for my opinion, there are lots of internet sources. Atleast he should've give me some updates regarding his situation.
  5. I was in a bit hurry to finish the script and couldn't wait for a free support that's why I asked him since we already had a previous successful transaction. Thought he already had a good reputation that he wouldn't ruin. But guess, that's it. I learned from my mistake and other's advice.
  6. I'm currently using the default one of the latest git but I still got those. :/
  7. Do you know what file affects this one? btw, thanks for the response.
  8. My mapserver is printing this out. But it didn't show any error, warning, or debug.. Should I worry about this? I don't have idea why it showed up. [Info]: pc_readdb_job_basehpsp: HP value at entry 38 col 103 is lower than previous level (job=4052,lvl=100,oldval=3029,val=100). [Info]: pc_readdb_job_basehpsp: HP value at entry 39 col 103 is lower than previous level (job=4050,lvl=100,oldval=5029,val=100). [Info]: pc_readdb_job_basehpsp: HP value at entry 40 col 103 is lower than previous level (job=4051,lvl=100,oldval=4254,val=100). [Info]: pc_readdb_job_basehpsp: SP value at entry 41 col 103 is lower than previous level (job=0,lvl=100,oldval=109,val=100). [Info]: pc_readdb_job_basehpsp: SP value at entry 41 col 103 is lower than previous level (job=23,lvl=100,oldval=109,val=100). [Info]: pc_readdb_job_basehpsp: SP value at entry 41 col 103 is lower than previous level (job=4001,lvl=100,oldval=109,val=100). [Info]: pc_readdb_job_basehpsp: SP value at entry 41 col 103 is lower than previous level (job=4023,lvl=100,oldval=109,val=100). [Info]: pc_readdb_job_basehpsp: SP value at entry 41 col 103 is lower than previous level (job=4045,lvl=100,oldval=109,val=100). [Info]: pc_readdb_job_basehpsp: SP value at entry 41 col 103 is lower than previous level (job=4190,lvl=100,oldval=109,val=100). [Info]: pc_readdb_job_basehpsp: SP value at entry 41 col 103 is lower than previous level (job=4191,lvl=100,oldval=109,val=100). [Info]: pc_readdb_job_basehpsp: SP value at entry 79 col 103 is lower than previous level (job=4052,lvl=100,oldval=307,val=100). [Info]: pc_readdb_job_basehpsp: SP value at entry 80 col 103 is lower than previous level (job=4050,lvl=100,oldval=307,val=100). [Info]: pc_readdb_job_basehpsp: SP value at entry 81 col 103 is lower than previous level (job=4051,lvl=100,oldval=703,val=100).
  9. Does KA-Type(Kaite, Kaahi, Kaupe, Kaizel) skills can really be casted even without soullink? How do I make them like the previous one? If you cast KA-Type skills without soul link the caster will be stunned. I try to changed it at skill_db.txt. But whenever I make it a spirit skill(0x8), the skill level stays at level 1 only. from 465,9,6,16,0,0x1,0,7,1,yes,0,0,0,magic,0,0x20, SL_KAITE,Kaite to 465,9,6,16,0,0x1,0,7,1,yes,0,0x8,0,magic,0,0x20, SL_KAITE,Kaite Please just move this if I post it on the wrong section. Thanks in advance.
  10. Hi. Can anyone check this script? It's not working fine with me.. My only problem here is it doesn't kick the party member when the party member logged out. But if the party member changed map, the script is triggered. Does this script still continue to run even when the player logged out? Since I didnt put an 'end;' at OnPCLogoutEvent, it should continue run until OnPCStatCalcEvent right? But doesn't work for me. OnPCLogoutEvent: if( @insta_event ) .@logged = 1; OnPCStatCalcEvent: if( @insta_event ) { ............. ........................ Here's the full script: - script custom_event_checker -1,{ OnPCLoadMapEvent: getmapxy(.@map$,.@x,.@y,0); if( .@map$ == "guild_vs2-2" || .@map$ == "ph_dun01" || .@map$ == "ph_dun02" || .@map$ == "ph_dun03" ) { if(getgmlevel() > 0 && getgmlevel() < 99) { atcommand "@storeall"; atcommand "@job novice"; atcommand "@adjgroup 30"; end; } else { atcommand "@autoloot 100"; @insta_event = 1; end; } } end; OnPCLogoutEvent: if( @insta_event ) .@logged = 1; OnPCStatCalcEvent: if( @insta_event ) { if ( strcharinfo(3) == "ph_dun01" && !.@logged || strcharinfo(3) != "ph_dun01" && .@logged || strcharinfo(3) == "ph_dun02" && !.@logged || strcharinfo(3) != "ph_dun02" && .@logged || strcharinfo(3) == "ph_dun03" && !.@logged || strcharinfo(3) != "ph_dun03" && .@logged || strcharinfo(3) == "guild_vs2-2" && !.@logged || strcharinfo(3) != "guild_vs2-2" && .@logged || getcharid(1) == 0 ) end; .@party_id = getcharid(1); if ( getcharid(0) != getpartyleader( .@party_id, 2 ) ) party_delmember(); else { .i = 0; if ( instance_check_party(.@party_id,2) == 0 ) party_destroy(.@party_id); else { addrid( 2, 0, .@party_id ); if( !.i && !.@party_id ) { .i = 1; party_changeleader getcharid(1), getcharid(0); } else if( .@party_id ) party_delmember(); } } @insta_event = 0; } end; }
  11. Thanks for this. Anyway what if I added some announcement. announcing the name of the selected player '.@pm_aid' ?
  12. Can anyone provide me a script that will select a random player from a party? I am currently making a script that will select a random player from a party and give a reward to the selected party member. Thanks in advance!
  13. Try to read this links it might help you out Packet Obfuscation Support LINK
  14. are you using the latest git with custom database? afaik players are not considered in RC_DEMIHUMAN anymore. They are now RC_PLAYER maybe you need to update your database.
  15. I just want to share something of my previous experience. So I talked to this guy named Kichi on this forums regarding some paid services. I had a successful transaction with him around year 2012. And last March 2015, I ask him again to do something for me for a paid service(a custom source code). Then I paid him last March 31,2015. Anyway before I paid him, he always reply from my msgs, but then after I paid him, I rarely got any of his replies. I know it's just $20, but the thing is his reputation. I trusted him coz we already had a successful transaction before, plus he was really a nice guy. I even posted a review from him HERE and somehow replied from someone who's giving him bad rep. Actually I ask him for a 2 source codes, and he gave me a price $50 for that codes (1 for $30 and the other for $20 plus a free fix of some outdated src). And after that, I told him that I was a bit short coz I had to pay my bills, so I told him that I will have to pay him with the $20 first, but he doesn't need to work with the $30 one if I haven't paid him yet. So our deal is like, I pay him $20 then give me that worth $20 code, and if I have already paid the $30 one, that's when he will start the other project. I don't know if that's why he isn't replying from my msgs, but he could have told me right? plus he already agreed with the $20 first, which is not really a problem coz the codes has a specific price. I really have a patience, but atleast he should have gave me any updates regarding the matter so I could understand and we can talk further. I somehow wanted to understand him, but everytime I dropped him a msg, he's always online but I haven't got any replies. HERE HE TOLD ME THAT HE WAS GOING TO START THE PROJECT THAT NIGHT APRIL 3,2015 THEN AFTER 3 DAYS, I ASKED HIM IF HE GOT ANY UPDATES. i THINK 3 DAYS IS ENOUGH TO MAKE THAT CODE COZ I THINK IT'S NOT REALLY COMPLICATED BUT THEN, I UNDERSTAND HIM COZ HE TOLD ME HE GOT BUSY WITH HIS REAL LIFE TASKS THEN AFTER ALMOST A WEEK, HE TOLD ME THAT HE WAS JUST BEGINNING WITH THE PROJECT AFTER THAT, I HAVEN'T GOT ANY UPDATES FROM HIM. HE'S ALWAYS ONLINE BUT I DON'T GET ANY REPLIES FROM HIM. HE WAS JUST IGNORING MY MESSAGES. UNTIL I FINALLY MADE MY OWN SOURCE CODE SIMILAR FROM WHAT I WAS ASKING FROM HIM. AND TOLD HIM THAT THE MONEY I SENT TO HIM WILL JUST BE USED FOR THE 3D LOGO. BUT INTIL NOW, I HAVEN'T GOT ANY MSGS FROM HIM.
  16. You can try this attached file. Im currently using that as my background for my scr_logo. just edit it XD scr_logo.rar
  17. Yeah. It's working well for me. I tried cash, zeny, and item. and they are reloaded after the server restart. [Info]: Vending loaded for 'LordGanja1' with '1' items at turbo_room (77,132) [Info]: Vending loaded for 'LordGanja2' with '1' items at turbo_room (77,129) [Info]: Vending loaded for 'LordGanja3' with '1' items at turbo_room (77,128)
  18. It is not compatible with the last Git Rathena, few important bugs need to fixed... Seems working fine for me. But I just want to get rid of the warning XD Did you turned on autotrade function ? The problem is When player opened vending and restart server, the vending people doesn't reopen their shop when server restarted...... This is also working fine for me. Vendors reopen their shop whenever server is restarted. [Info]: Vending loaded for 'LordGanja' with '1' items at turbo_room (77,129)
  19. It is not compatible with the last Git Rathena, few important bugs need to fixed... Seems working fine for me. But I just want to get rid of the warning XD
  20. I currently created a new script command but it's not working well I'm not good on src modifcation This script is basically just a copy paste from getitem script and get some ideas from costume system but this one works differently. I need it to only work on equipments (armor,garment,shoes,accessory,weapon,shields and headgears) My problem here is whenever the script runs on this part below, it doesn't went through. It always returns the error even if the script im using is getsealeditem 2383,1; // 2383 is an armor if( !(it.equip&EQP_HEAD_TOP) || !(it.equip&EQP_ARMOR) || !(it.equip&EQP_HAND_L) || !(it.equip&EQP_HAND_R) || !(it.equip&EQP_GARMENT) || !(it.equip&EQP_SHOES) || !(it.equip&EQP_ACC_L) || !(it.equip&EQP_ACC_R) || !(it.equip&EQP_HEAD_MID) || !(it.equip&EQP_HEAD_LOW) ) { ShowError("script_getsealeditem: Cannot create this sealeditem, it only works for equipments."); return 0; } This is the whole part script.c BUILDIN_FUNC(getsealeditem) { int amount, get_count, i; unsigned short nameid; struct item it; TBL_PC *sd; struct script_data *data; unsigned char flag = 0; const char* command = script_getfuncname(st); struct item_data *id = NULL; data = script_getdata(st,2); get_val(st,data); if( data_isstring(data) ) {// "<item name>" const char *name = conv_str(st,data); id = itemdb_searchname(name); if( id == NULL ){ ShowError("buildin_getitem: Nonexistant item %s requested.\n", name); return SCRIPT_CMD_FAILURE; //No item created. } nameid = id->nameid; } else if( data_isint(data) ) {// <item id> nameid = conv_num(st,data); if( !(id = itemdb_exists(nameid)) ){ ShowError("buildin_getitem: Nonexistant item %d requested.\n", nameid); return SCRIPT_CMD_FAILURE; //No item created. } } else { ShowError("buildin_getitem: invalid data type for argument #1 (%d).", data->type); return SCRIPT_CMD_FAILURE; } if( !battle_config.reserved_sealed_id ) { ShowError("script_getsealeditem: Sealeditem is disable. Set a value for reserved_sealed_id on your battle.conf file."); return SCRIPT_CMD_FAILURE; } // <amount> if( (amount = script_getnum(st,3)) <= 0) return SCRIPT_CMD_SUCCESS; //return if amount <=0, skip the useles iteration memset(&it,0,sizeof(it)); it.identify = 1; it.bound = BOUND_NONE; if( !(it.equip&EQP_HEAD_TOP) || !(it.equip&EQP_ARMOR) || !(it.equip&EQP_HAND_L) || !(it.equip&EQP_HAND_R) || !(it.equip&EQP_GARMENT) || !(it.equip&EQP_SHOES) || !(it.equip&EQP_ACC_L) || !(it.equip&EQP_ACC_R) || !(it.equip&EQP_HEAD_MID) || !(it.equip&EQP_HEAD_LOW) ) { ShowError("script_getsealeditem: Cannot create this sealeditem, it only works for equipments."); return 0; } else if( script_hasdata(st,4) ) sd = map_id2sd(script_getnum(st,4)); // <Account ID> else sd = script_rid2sd(st); // Attached player if( sd == NULL ) // no target return SCRIPT_CMD_SUCCESS; //Check if it's stackable. if (!itemdb_isstackable2(id)) get_count = 1; else get_count = amount; it.nameid = nameid; it.refine = 0; it.attribute = 0; it.card[0] = CARD0_CREATE; it.card[1] = 0; it.card[2] = GetWord(battle_config.reserved_sealed_id, 0); it.card[3] = GetWord(battle_config.reserved_sealed_id, 1); for (i = 0; i < amount; i += get_count) { // if not pet egg if (!pet_create_egg(sd, nameid)) { if ((flag = pc_additem(sd, &it, get_count, LOG_TYPE_SCRIPT))) { clif_additem(sd, 0, 0, flag); if( pc_candrop(sd,&it) ) map_addflooritem(&it,get_count,sd->bl.m,sd->bl.x,sd->bl.y,0,0,0,0); } } } return SCRIPT_CMD_SUCCESS; } For those who can help, thanks in advance!
  21. After buying an item from a vending char I got this warning [Warning]: itemdb_search: Item ID 0 does not exists in the item_db. Using dummy data. Any ideas why? Im using latest git
×
×
  • Create New...