Jump to content

Litro Endemic

Members
  • Posts

    283
  • Joined

  • Days Won

    10

Everything posted by Litro Endemic

  1. maybe the check on line 51 try cange if (.@card[1] && ((!.@card[2] && .@ref < 7) || (!.@card[3] && .@ref < 9))) { into this if ((.@card[1] && !.@card[2] && (.@ref < 7)) || (.@card[1] && .@card[2] && !.@card[3] && (.@ref < 9))) confused in the check if the 2nd slot enchantment is filled for 3rd enchantment i have edited the paste if you want the corrected ver https://pastebin.com/qA2us0wJ i didn't try it i just re-write this script with out test
  2. i'm make you new one based on this npc... this npc to confusing for me to read https://pastebin.com/qA2us0wJ
  3. are you sure? im using it now.. and there everything is fine try installing the gcc from the source code if you can or if you use centos 64 (centos 32 can't do step below... i have reinstalling my vps 3 times in blind didn't know this haha, hope save you the trouble) you can do this step to upgrade the gcc into version 5.3 yum install centos-release-scl yum install devtoolset-4-gcc* scl enable devtoolset-4 bash which gcc gcc --version dev need to update the guide, i spend the entire night with google to upgrade gcc haha... since afaik there is no linux distro come with gcc 5 by default. the start guide is outdated by now and sorry i didn't know how to contribute directly into the wiki and since im not aware if what im doing is right or not, i didn't have the knowledge on this mater, just by reading from various source how to do this and that.. and if error come up I will just ask anybody (including google) to resolve thats it
  4. can you help updating guide on get started docs i'm getting confused as how to install gcc5 and use it as default compiler https://github.com/rathena/rathena/wiki/Install-on-Centos
  5. that themes is not following inherit system, you need to re config this theme, to make it work as you desired
  6. this will make a nonsense, say you put trap in front of warp, every time the player warped will be knocked back and enter warp repeatedly
  7. the error message tell you it failed to execute sql query, which is updating table cp_createlog it seem there is no existing record found so it failed the task case "vote": // update votepoints $sql = "UPDATE $server->loginDatabase.cp_createlog SET votepoints = votepoints + ? WHERE account_id = ?"; $sth = $server->connection->getStatement($sql); $sth->execute(array((int) $res->votepoints, $account_id)); if ( ! $sth->rowCount()) $errorMessage = sprintf(Flux::message("UnableToVote"), 3); break; you may want to try the query insert if not exist else update, but imho it will be best to create separate table since i check the table cp_createlog purpose is to log creating account proccess... CMIW
  8. i want to have all equipment drop by mob have random item, as of now it need to be listed by id and I want it to categorized by equip location, i have trying to make it my self by editing mob_readdb_drop multiple time and it failed and the last try give me Segmentation fault well here my edited code, well i have no knowledge i'm just trying to make it by my self to learn but it always fail static bool mob_readdb_drop(char* str[], int columns, int current) { unsigned short i; for (i = 0; i <= MAX_MOB_DB; i++) { int j, size; struct mob_db *mob; struct s_mob_drop *drop; struct item_data *id; if ((mob = mob_db(i)) == mob_dummy) { continue; } drop = mob->dropitem; size = ARRAYLENGTH(mob->dropitem); for (j = 0; j < size; j++) { switch(id->equip) { case EQP_ARMOR: drop[j].randomopt_group = RDMOPTG_Armor; break; //case EQP_HAND_L: drop[i].randomopt_group = RDMOPTG_None; //case EQP_HAND_R: drop[i].randomopt_group = RDMOPTG_None; //case EQP_GARMENT: db->dropitem[i].randomopt_group = RDMOPTG_None; case EQP_SHOES: drop[j].randomopt_group = RDMOPTG_Shoes; break; //case EQP_ACC_L: db->dropitem[i].randomopt_group = RDMOPTG_None; //case EQP_ACC_R: db->dropitem[i].randomopt_group = RDMOPTG_Acc; } } } return true; } please help me...
  9. you need to relogin to refresh item data in your inventory
  10. how to set specific mob can't be auto attacked or ignore /nc, like emperium
  11. I want to cap max aspd when the player have a skill, I want to cap it at 150 when the skill is level 1, i have trying code below but the result is always 185 short pc_maxaspd(struct map_session_data *sd) { nullpo_ret(sd); return ((pc_checkskill(sd,NPC_MINING) > 0) ? (145 + (pc_checkskill(sd,NPC_MINING)*5)) : ((sd->class_&JOBL_THIRD) ? battle_config.max_third_aspd : ( ((sd->class_&MAPID_UPPERMASK) == MAPID_KAGEROUOBORO || (sd->class_&MAPID_UPPERMASK) == MAPID_REBELLION) ? battle_config.max_extended_aspd : battle_config.max_aspd ))); } the player getting this skill by using equipment with script skill "NPC_MINING",1; Can someone tell me what gone wrong or how to do it?
  12. bump it Same here i got this too, there is no answer here and in github regarding this, can anyone tell me how to fix this?
  13. Hi, can someone help me? how to make autocomplete identified resource name when adding client item
  14. I'm sorry but the wiki is outdated, you need 2013 visual studio to compile
  15. it was the same - Basic example of creating and using a bit-mask: set @options,2|4|16; //(note: this is the same as 2+4+16, or 22) https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L759
  16. yes and it still disappear and not giving the result from the src code telling me the permanent mean is it will not be cleared with sc_end sc_all, not giving permanent duration like sc_start do
  17. sure.. this bonus_script "{ bonus bStr,1; }",-1,512|2048,0,SI_FOODSTR;
  18. Hello everybody How I can make script_bonus give unlimited duration ?? I have trying to set duration into -1 but it's not making it permanent / unlimited duration
  19. - script Mvp Hunter -1,{ OnNPCKillEvent: //if ( !getmonsterinfo( killedrid, MOB_MVPEXP ) ) end; // add mvp & mini boss mob id's here setarrays .@monster_list, 1002, 1003; for (.@i = 0; .@i < getarraysize(.@monster_list); .@i++) { if (killedrid == .@monster_list[.@i]) break; } if (.@i == getarraysize(.@monster_list)) end; if ( getcharid(1) ) { getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { // what happens if someone in the party member is offline =/ if ( attachrid( $@partymemberaid[.@i] ) ) { getitem 7227, 1; } } } announce "Party ["+ strcharinfo(1) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" and rewarded 1 TCG at "+ strcharinfo(3), 0; } else { getitem 7227, 1; announce "Player ["+ strcharinfo(0) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" and rewarded 1 TCG at "+ strcharinfo(3), 0; } end; } this script may help you, you have to add mob ids that you want it to be given reward when killed
  20. try this // usage : // [npc:Sample]map#512#10 // [npc:Sample]all#512#123 - script Sample -1,{ OnWhisperGlobal: if( getgmlevel() >= 99 ){ // check map if( @whispervar0$ == "all" ) addrid 0; else if( @whispervar0$ == "map" ) addrid 1; else { dispbottom "Error, pick 'map' or 'all'"; end; } // check item set .@itemid,atoi( @whispervar1$ ); set .@amount,atoi( @whispervar2$ ); if( getitemname( .@itemid ) == "null" || .@amount < 1 ){ dispbottom "Enter valid item id and amount."; } if(checkvending() || checkchatting() || checkidle() >= 60 ) end; .@gave = .@gave + 1; getitem .@itemid,.@amount; dispbottom "Gave "+.@amount+" x "+getitemname( .@itemid )+" to "+.@gave+" Player(s)."; } end; }
  21. you can use db/<pre_>re/item_noequip.txt Since its show error like this Cant it be like.. give password to the room ? so it wont show the errors on console? XD Put it on OnInit Label so it will not be created over again when the player talk to the npc something like below prontera,163,152,3 script PvP Battle Room#01::pvparena 810,{ goto Talk; OnInit: waitingroom "PVP Room",0; end; Talk: mes "[PvP Battle Room]"; mes "Pilih Ruangan";
  22. if the item have 3 rndoption and I want to remove 2 rndoption of the item how to do it??
×
×
  • Create New...