Jump to content

buraquera

Members
  • Content Count

    37
  • Avg. Content Per Day

    0
  • Joined

  • Last visited

Community Reputation

1 Neutral

About buraquera

  • Rank
    Drops

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi guys, i have a hunting board script wich i use the official quest system for hunting system and a custom sql table for the system itself (as zeny reward etc..). My issue i cant get the Mob Name or even Mob Killed Count. I cant get them by script so i was having a look on src but i dot know much about c++... What i'm doing at the moment for NPC show the hunting quest information is using a mob_id and mob_max_hunt columns on my custom SQL table but its not a good way as when i need to change the mob hunt amount for example i need to change it on the sql table and also on quest_db.... So... is that hard to have a function to get the mob_id and mob_count from the official quest log ??? Is there any ready to use code??? Tkss
  2. Always see you mapserv.bat to see whats the error. It was mostly syntax in that case. Ive tried this and its working: function script Get_MysteryBox { // If the summ != 100, Junk item is activated and has the difference in chance (45% in this example) set [email protected], 19578; // Apple setarray [email protected],1154,1183,1160,7110,1136,1101,1516; setarray [email protected][1],1,10,25,40,55,70,95; // The difference from the previous number is the chance. So Item 5979 has a (10-6 = 4%chance) set [email protected],rand(1,100); for ([email protected] =1; [email protected] <= getarraysize([email protected]); [email protected]++){ if ([email protected] <= [email protected][[email protected]]){ getitem [email protected][[email protected]],1; if (([email protected][[email protected]]- [email protected][[email protected]])<6) announce "A rare item has been created",bc_all; end; } } }
  3. Really usefull! Tks for that. Why this is not commited?? Any chance of both mine or your script be laggy??
  4. on announce strcharinfo(3) + "has won LvL 99 reward." + (30-$99rewards) + " prizes left.",bc_all; change: strcharinfo(3) to -> strcharinfo(0) *strcharinfo(<type>{,<char_id>}) This function will return either the name, party name or guild name for the invoking character. Whatever it returns is determined by type. 0 - Character's name. 1 - The name of the party they're in if any. 2 - The name of the guild they're in if any. 3 - The name of the map the character is in. If a character is not a member of any party or guild, an empty string will be returned when requesting that information. You better have a read on this entire file before adding new scripts. Will help you a lot. https://github.com/rathena/rathena/blob/master/doc/script_commands.txt
  5. if (rand(99) < [email protected]) to: set [email protected], 99; // For 0.99% or set [email protected],1; // For 0.01% and rand must be: if (rand(9999) < [email protected])
  6. If you want to get 100% chance of get at least a item this code will not work. Because it is working-> Select a random item of the list, and then calculate a chance of get this item, so in you code for ex. the item 20727 has a very little chance as it has 1/12 (total of itens) of chance to choose the item and then 1% of get the item. Its something like 0.1% in the end of get item 20727. function script Get_FreyaItems { // If the summ != 100, Junk item is activated and has the difference in chance (45% in this example) set [email protected], 512; // Apple setarray [email protected],20727,31313,20316,5979,13810,13534,12909,14003; setarray [email protected][1],1,3,6,10,20,30,40,55; // The difference from the previous number is the chance. So Item 5979 has a (10-6 = 4%chance) set [email protected],rand(1,100); for ([email protected] =1; [email protected] <= getarraysize([email protected]); [email protected]++){ if ([email protected] <= [email protected][[email protected]]){ getitem [email protected][[email protected]]; if (([email protected][[email protected]]- [email protected][[email protected]])) <6) announce "A rare item has been created",bc_all; end; } } getitem [email protected],1; //Get apple end; } This is what you want. There any many ways of doing that. I just did it quickly, please try it and tell me. If the summs is 100% so jun item will not be activated. About showing character name and item name, CTRL+F this article *strcharinfo and *getitemname https://github.com/rathena/rathena/blob/master/doc/script_commands.txt In fact, i really recommend you reading in full. Srry poor english and please tell me if it works.
  7. - script RandomItem -1,{ function CheckConditions; OnNPCKillEvent: if (!CheckConditions(strcharinfo(0))) end; .setarray [email protected],4005,2236; // Item array set [email protected],rand(1,getarraysize([email protected]); getitem [email protected][[email protected]],1; end; function CheckConditions { set [email protected],10; // Chance in percentage setarray [email protected]$,"prt_fild01","gef_fild02","moc_fild10"; // Maps for ([email protected] = 0;[email protected] < getarraysize([email protected]$); [email protected]++){ if (getarg(0) == [email protected]$[[email protected]]){ if (rand(99) < [email protected]) return 1; else return 0; } } return 0; } }
  8. Purple: Whats wrong and line. Red: Error description This mean a syntax error. Often is a "typing error". There are no "strcharindo" function but "strcharINFO". Also should be a ";" in the end. So: from announce strcharindo(3) + "has won LvL 99 reward." + (30-$99rewards) + " prizes left". to announce strcharinfo(3) + "has won LvL 99 reward." + (30-$99rewards) + " prizes left.";
  9. Se voce quer somente aumentar o dano, pode alterar no banco de dados -> skill_damage_db Mas se quer mudar a formula tem que mexer na SOURCE. na pasta /map provavelmente a formula estara em battle.cpp e skill.cpp. Depois que mudar, tem que recompilar o server.
  10. Client is not finding the palettes. Maybe you have wrong folders name or something like this. Are you using GRF Editor? If yes, please, post a screenshot of the pallete folder.
  11. - script NPC_Summoner::NPCSummoner -1,{ if (getequipid(EQI_HEAD_TOP) == 30000){ for ([email protected] = 1; [email protected] < 7;[email protected]++){ set [email protected]$,"NPC_Summoner#"[email protected]; getmapxy([email protected]$, [email protected], [email protected], BL_NPC, [email protected]$)) monster [email protected]$,[email protected],[email protected],"Custom Monster",1002,1; hideonnpc [email protected]$; initnpctimer [email protected]$; } } end; OnTimer360000: hideoffnpc strnpcinfo(0); } map,x,y,pos duplicate(NPCSummoner) NPC_Summoner#1 SPRITE_ID map,x,y,pos duplicate(NPCSummoner) NPC_Summoner#2 SPRITE_ID map,x,y,pos duplicate(NPCSummoner) NPC_Summoner#3 SPRITE_ID map,x,y,pos duplicate(NPCSummoner) NPC_Summoner#4 SPRITE_ID map,x,y,pos duplicate(NPCSummoner) NPC_Summoner#5 SPRITE_ID map,x,y,pos duplicate(NPCSummoner) NPC_Summoner#6 SPRITE_ID Something like this.... Note i have not tested the script.
  12. https://rathena.org/board/topic/84798-stolaos-pvp-ladder-v31a/?tab=comments#comment-209546
  13. buraquera

    GM warp npc

    map,x,y,pos script Prontera Warper::PrtWarper SPRITE_ID,{ if (getgmlevel == 99){ input $pass; mes "Password updated"; end; } input [email protected]$; if ([email protected]$ == $pass){ warp "prontera",0,0; end; } }
  14. You didnt get it. All the lines between: #ifdef RENEWAL (...) #endif will not be read if the server mode is set do PRE-REN.
×
×
  • Create New...

Important Information

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