Jump to content

Angeluz

Members
  • Posts

    109
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Angeluz

  1. same problem try with this scl enable devtoolset-7 bash which gcc gcc --version make clean ./configure make server
  2. here https://github.com/llchrisll/ROenglishRE/blob/master/Renewal/data/sclientinfo.xml#L12
  3. try with this - script KillMon2Cash -1,{ OnNPCKillEvent: .@gettimetick = gettimetick(2); if (rand(100) < 1 && .@gettimetick > @delay) { getitem 50001,1; @delay = .@gettimetick + 60; // 60 seconds } end; OnInit: bindatcmd "check", "KillMon2Cash::OnCheckTime"; end; OnCheckTime: if (( @delay - gettimetick(2)) <=0 ) message strcharinfo(0),"Your next drop is ready!"; else message strcharinfo(0),"Next drop in "+ ( @delay - gettimetick(2) ) + " seconds."; end; }
  4. my bad - script KillMon2Cash -1,{ OnNPCKillEvent: .@gettimetick = gettimetick(2); if (rand(100) < 1 && .@gettimetick > @delay) { getitem 50001,1; @delay = .@gettimetick + 60; // 60 seconds } end; OnInit: bindatcmd "check", "KillMon2Cash::OnCheckTime"; end; OnCheckTime: message strcharinfo(0),"Next drop in "+ ( @delay - gettimetick(2) ) + " seconds."; end; }
  5. that's specifically what the code I gave you earlier does. But remember, they will only be counted from when you placed that code onwards, if someone collected the reward before they can do it again, although only once more.
  6. Do you want it to be a unique prize per server? Or do you want to have them charge it once per account? That is, if two Ministrels reach the maximum level, will it only be given to one? Or that if I arrive with a minister and then with an archbishop, I can't collect it with the archbishop? i change it to sniper and creator 99/60 i take it first with creator then i change to sniper in same account, with new account and dont let me if you already take the price before start doesnt work you need to start from scratch
  7. maybe something like that - script KillMon2Cash -1,{ OnNPCKillEvent: .@gettimetick = gettimetick(2); if (rand(100) < 1 && .@gettimetick > @delay) { getitem 50001,1; @delay = .@gettimetick + 60; // 60 seconds } end; OnInit: bindatcmd "check", "KillMon2Cash::OnCheckTime"; end; OnCheckTime: message strcharinfo(0),"Next drop in "+ ( @delay - .@gettimetick ) + " seconds."; end; }
  8. this is just warning dont worry Maybe u did a bad update
  9. you need to use 49 points in first class
  10. here https://github.com/rathena/rathena/blob/master/npc/pre-re/mobs/dungeons/prt_maze.txt#L87 in pre-re https://github.com/rathena/rathena/blob/master/npc/re/mobs/dungeons/prt_maze.txt#L78 in re
  11. Does it give you an error in the code or does it not work?
  12. Try with this freya,218,220,6 script Max Level 4_LGTSCIENCE,{ set .@gm_level, 99; // GM level required to set the reward set .@maxbase, 175; set .@maxjob, 60; set .@defaultreward, 39997; setarray .@rewardablejobs[0], Job_Rune_Knight_T, Job_Genetic_T, Job_Guillotine_Cross_T, Job_Minstrel_T, Job_Mechanic_T, Job_Royal_Guard_T, Job_Wanderer_T, Job_Ranger_T, Job_Sura_T, Job_Arch_Bishop_T, Job_Shadow_Chaser_T, Job_Sorcerer_T, Job_Warlock_T, Job_Kagerou, Job_Oboro; Begin: mes "[ ^FF7700Race to Max Level^000000 ]"; mes "Hello, " + ((getgmlevel() >= .@gm_level) ? "master! What do you want to do today?" : "are you here for your reward?"); next; switch(select(((getgmlevel() >= .@gm_level) ? "Set Reward:Restart Race" : ":") + ":YES Please!:What is the Reward?:Who was rewarded?:Cancel")) { case 1: goto SetReward; case 2: goto RestartRace; case 3: goto GetReward; case 4: goto ExplainRace; case 5: goto ShowRewarded; default: end; } SetReward: mes "[ ^FF7700Race to Max Level^000000 ]"; if ($reward == 0) set $reward, .@defaultreward; mes "The reward is " + getitemname($reward) + " (ID: " + $reward + ")."; mes "Do you want to change it?"; next; if (select("Yes:No") == 1) { mes "[ ^FF7700Race to Max Level^000000 ]"; mes "Please enter the new reward item ID."; input .@rewardid; next; mes "[ ^FF7700Race to Max Level^000000 ]"; mes "Set " + getitemname(.@rewardid) + " as the reward?"; if(select("Yes:No") == 1) { set $reward, .@rewardid; } } goto Begin; RestartRace: mes "[ ^FF7700Race to Max Level^000000 ]"; mes "Are you sure you want to restart the race?"; next; if (select("Yes:No") == 1) { for (.@i = 0; .@i < getarraysize(.@rewardablejobs); .@i++) { set $rewarded$[.@rewardablejobs[.@i]], ""; } announce "The Race to Max Level has begun! Claim a reward once you reach " + .@maxbase + " base and job " + .@maxjob + " !!", bc_all; } goto Begin; GetReward: mes "Let's see... " + strcharinfo(0) + ", huh?"; set .@competitioner, 0; for (.@i = 0; .@i < getarraysize(.@rewardablejobs); .@i++) { if (Class == .@rewardablejobs[.@i]) { set .@competitioner, 1; if (BaseLevel < .@maxbase || JobLevel < .@maxjob) { mes "I'm sorry, but you still need to level a bit more."; } else if ($rewarded$[Class] == strcharinfo(0) || getd("$MaxLevel" + get_unique_id() + "") == 1) { mes "You have already claimed your reward."; } else if ($rewarded$[Class] != "") { mes "Too late!"; mes "The reward for " + jobname(Class) + " was already claimed by " + $rewarded$[Class] + "."; } else goto GiveReward; } } if (.@competitioner == 0) mes "You need to change your job."; close; GiveReward: set $rewarded$[Class], strcharinfo(0); next; mes "[ ^FF7700Race to Max Level^000000 ]"; mes "Congratulations! You were the first " + jobname(Class) + " to reach " + .@maxbase + " base and " + .@maxjob + " class!"; getitem $reward, 1; setd "$MaxLevel" + get_unique_id() + "",1; announce strcharinfo(0) + " ~ " + jobname(Class) + " ~ Has Reached Max. Level and Received " + getitemname($reward) + "!", bc_all; close; ExplainRace: mes "[ ^FF7700Race to Max Level^000000 ]"; mes "Yes! When you reach the maximum level for your class, talk to me and you'll be rewarded with a special item."; next; goto Begin; ShowRewarded: mes "[ ^FF7700Race to Max Level^000000 ]"; for (.@i = 0; .@i < getarraysize(.@rewardablejobs); .@i++) { mes jobname(.@rewardablejobs[.@i]) + ": " + (($rewarded$[.@rewardablejobs[.@i]] != "") ? $rewarded$[.@rewardablejobs[.@i]] : "^ff0000Nobody^000000"); } next; goto Begin; OnInit: while (1) { showscript " Race to 175 Winners! "; sleep 1000; } end; } I recommend you to use the code boxes next time
  13. Hi, Is it possible to remove the following window? I want to make it so that when all people are found they don't have to confirm, but enter automatically. I have tried to get my hands on these functions but I have not been able to get it to work, any ideas? https://github.com/rathena/rathena/blob/master/src/map/battleground.cpp#L1213 https://github.com/rathena/rathena/blob/master/src/map/battleground.cpp#L1370 https://github.com/rathena/rathena/blob/master/src/map/clif.cpp#L18550
  14. try with: https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L4531 *changebase <job ID number>{,<account ID>}; This command will change a character's appearance to that of the specified job class. Nothing but appearance will change. The command will run for the invoking character unless an account ID is given. changebase Job_Novice; // Changes player to Novice sprite. changebase Class; // Changes player back to default sprite. https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L963 OnPCLoadMapEvent: This special label triggers when a player steps in a map marked with the 'loadevent' mapflag and attaches its RID. The fact that this label requires a mapflag for it to work is because, otherwise, it'd be server-wide and trigger every time a player would change maps. Imagine the server load with 1,000 players (oh the pain...)
  15. intenta colocando estos archivos spr.grf
  16. revisa que la codificación en ambos sea la misma
  17. try with this case 4: if(!getcharid(2)){ mes "you don't have guild"; close; } if(!guild_has_permission(GUILD_PERM_STORAGE)){ mes "you don't have permission for the guild storage"; close; } query_sql("SELECT `time`,`name`,`nameid`,`amount` FROM `guild_storage_log` WHERE `guild_id` = '" + getcharid(2) + "' order by `id` ASC", .@time$ ,.@name$,.@item_id,.@amount); if(!.@item_id){ mes "there is no log yet"; close; } dispbottom "=========================================================",0xFFD64F; dispbottom "===================== Guild Storage Log =======================",0xFFD64F; dispbottom "=========================================================",0xFFD64F; + if( getarraysize(.@item_id) > 30 ) + set .@aux, 30; + else + set .@aux, getarraysize(.@item_id); - for(.@i=0;.@i<getarraysize(.@item_id) ;.@i++) + for(.@i=0;.@i<.@aux ;.@i++) dispbottom .@time$[.@i] + " Player[" + .@name$[.@i] + "] Item Name[" + getitemname(.@item_id[.@i]) + "] Item Amount[" + .@amount[.@i] + "]",((.@amount[.@i] > 0)?0x03c6fc:0xFF0000); dispbottom "=========================================================",0xFFD64F;
  18. in src/map/battleground.cpp @@ -1146,12 +1146,14 @@ void bg_team_getitem(int bg_id, int nameid, int amount) { std::shared_ptr<s_battleground_data> bg; struct map_session_data *sd; - struct item_data *id; struct item it; int get_amount, j, flag; std::shared_ptr<s_battleground_data> bgd = util::umap_find(bg_team_db, bg_id); - if (amount < 1 || bgd == NULL || (id = itemdb_exists(nameid)) == NULL) + + std::shared_ptr<item_data> id = item_db.find(nameid); + + if (amount < 1 || bgd == NULL || id == nullptr ) return; if( battle_config.bg_reward_rates != 100 ) amount = amount * battle_config.bg_reward_rates / 100; @ -1199,12 +1201,13 @@ bg_result (0 Won | 1 Tie | 2 Lost) void bg_team_rewards(int bg_id, int nameid, int amount, int kafrapoints, int quest_id, const char *var, int add_value, int bg_arena, int bg_result) { struct map_session_data *sd; - struct item_data *id; struct item it; int j, flag, get_amount; std::shared_ptr<s_battleground_data> bgd = util::umap_find(bg_team_db, bg_id); - if (amount < 1 || bgd == NULL || (id = itemdb_exists(nameid)) == NULL) + std::shared_ptr<item_data> id = item_db.find(nameid); + + if (amount < 1 || bgd == NULL || id == nullptr) return; if( battle_config.bg_reward_rates != 100 ) in src/map/script.cpp @@ -21458,7 +21458,7 @@ BUILDIN_FUNC(bg_logincount) enum e_result_validate_emblem { // Used as Result for clif_validate_emblem EMBVALIDATE_SUCCESS = 0, EMBVALIDATE_ERR_RAW_FILEFORMAT, // Invalid File Format (Error in zlib/decompression or malformed BMP header) - EMBVALIDATE_ERR_TRANSPARENCY // uploaded emblem does not met the requirements of battle_config.emblem_transparency_limit + EMBVALIDATE_ERR_TRANSPARENCY // uploaded emblem does not met the requirements of inter_config.emblem_transparency_limit }; static enum e_result_validate_emblem clif_validate_emblem(const uint8* emblem, unsigned long emblem_len) { @ -21473,7 +21473,7 @@ static enum e_result_validate_emblem clif_validate_emblem(const uint8* emblem, u )) return EMBVALIDATE_ERR_RAW_FILEFORMAT; */ - if (battle_config.emblem_transparency_limit != 100) { + if (inter_config.emblem_transparency_limit != 100) { int i, transcount = 1, tmp[3]; for (i = offset; i < buf_len - 1; i++) { int j = i % 3; @ -21481,7 +21481,7 @@ static enum e_result_validate_emblem clif_validate_emblem(const uint8* emblem, u if (j == 2 && (tmp[0] == 0xFFFF00FF) && (tmp[1] == 0xFFFF00) && (tmp[2] == 0xFF00FFFF)) //if pixel is transparent transcount++; } - if (((transcount * 300) / (buf_len - offset)) > battle_config.emblem_transparency_limit) //convert in % to chk + if (((transcount * 300) / (buf_len - offset)) > inter_config.emblem_transparency_limit) //convert in % to chk return EMBVALIDATE_ERR_TRANSPARENCY; }
  19. try with this https://github.com/rathena/rathena/commit/8038e713221166b45fdd7dac495d77d5e0f1a870#diff-94a3758e581cfbf622cab5780ec183c5ecb1e4442edec6179a2a71f9e9a25b31
  20. ¿Cuántos colocaste en el exe para 28 Increase Headgear ViewID ?
  21. Try this prontera,143,173,5 script Level Reset 757,{ if (BaseLevel < 255||JobLevel < 120 ) { mes "You need to be at least level 255 and Job level 120."; } if (RESET_COUNT >= 20 ) { mes "I'm sorry, but you can't use this npc again"; close; } else if (select("Reset", "cancel") == 1) { resetlvl 1; RESET_COUNT++; StatusPoint += (RESET_COUNT * 10); // free 10 status point per reset. if (RESET_COUNT && RESET_COUNT % 10 == 0) { getitem 512, 10; // every 10 reset get apple. } } end; }
×
×
  • Create New...