utofaery

Members
  • Content count

    78
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by utofaery

  1. I have a broken pet egg exchanging old egg to new egg script which need help in fixing. - script F_PetTrader FAKE_NPC,{ disable_items; getinventorylist; for ( [email protected] = 0; [email protected] < @inventorylist_count; [email protected] ) { [email protected]_type = getiteminfo( @inventorylist_id[[email protected]], ITEMINFO_TYPE ); if ( [email protected]_type == IT_PETEGG ) { if ( .petid[ @inventorylist_id[[email protected]] ] && [email protected][ @inventorylist_id[[email protected]] ] ) { [email protected][[email protected]++] = @inventorylist_id[[email protected]]; [email protected][ @inventorylist_id[[email protected]] ] = false; } } } [email protected]$ = "+&Sort&Count&Item&Name+&^FF0000Quit^000000:"; for ( [email protected] = 0; [email protected] < getarraysize([email protected]); [email protected] ) { mes getitemname( [email protected][[email protected]] ); [email protected]$ += [email protected] + " " + countitem([email protected][[email protected]] ) + " " + getitemname([email protected][[email protected]]) + " :"; dispbottom ( " [email protected] :: " + [email protected] + " Count item :: " + countitem([email protected][[email protected]] ) + " ItemName :: " + getitemname([email protected][[email protected]]) ) ; } [email protected] = select([email protected]$)-1; if ( [email protected] > getarraysize([email protected]) ) { dispbottom ( " Dont mess with bug or I bug you! " ) ; close2; end; } else { mes (" [email protected] " + [email protected] ); [email protected] = [email protected][[email protected]]; [email protected] = countitem([email protected][[email protected]] ); if ( [email protected] ) { delitem ( [email protected], [email protected] ) ; makepet ( [email protected] ); mes ( " Exchanged :: " + [email protected] + " of " + [email protected] ) ; } else { dispbottom ( " [email protected] :: " + [email protected] + " [email protected] :: " + [email protected] ) ; } } close; OnInit: [email protected] = query_sql( "select id from item_db where type & "+( 7 ), [email protected] ); freeloop true; for ( [email protected] = 0; [email protected] < [email protected]; [email protected] ) .petid[ [email protected][[email protected]] ] = true; end; } It is suppose to list what egg in player inventory but always returning poring egg.. sometimes nothing is listed..or 0 somewhere is broken and I failed to find out where and the [email protected]$ part is confusing for me since it's not something I always messing with.
  2. Yes woe script is messy for me to get my hand on .. its a web hard to know where to where.. 1 original guardian + extra guardian (auto respawn) Was meant for harder woe conquering. If not conquer can it be spawned too? With auto respawn. 2 correcto..I fail to get the point of it. If you will do show me how will I merge those extra part into the woe-fe and worse script.
  3. As we know that Thursday is emperium war day... on server start map server spiting multiple error of these few lines may be 30 or more time. [Error]: script_rid2sd: fatal error ! player not attached! [Debug]: Function: strcharinfo (1 parameter): [Debug]: Data: constant name='PC_MAP' value=3 [Debug]: Source (NPC): testflag at guild_vs2 (52,52) [Status]: NPC_Event:[OnAgitStart] Run (49) Events by @AgitStart. << and then it ends here..
  4. First off don't get mad to link from rathena: https://rathena.org/board/topic/118192-on-checking-array-items-infinite-loop/ This is the test case I try to redo the thing but it's gotten into loop again and again. Don't get mad at me for not understanding this stuff. I always ask things till I get it.
  5. I dont really know how to change that, all I do is copy paste from previous post then go on typing then it became colourful...
  6. Sir, What will be the max expandable limit of this expandable Inventory expanding?
  7. Yes my script is total mess. Which is why am posting for help. Only those don't want to be helped will refuse to ask for it or worst reject it. But something else comes in my mind. Curiously... Why is there got bhatch; And there hasn't got any breturntoegg; ? Or could you create something like that too? Side stuff: At this time I am using phone to browsing here But out of curiosity why there is so many guess which outnumbered members which logged in.
  8. [email protected] = query_sql( "select id from item_db where equip_locations & "+( EQP_COSTUME_HEAD_TOP|EQP_COSTUME_HEAD_MID|EQP_COSTUME_HEAD_LOW|EQP_COSTUME_GARMENT ), [email protected] ); Say after collected this list EQP_COSTUME_HEAD_TOP|EQP_COSTUME_HEAD_MID|EQP_COSTUME_HEAD_LOW|EQP_COSTUME_GARMENT I want to put extra check which exclude some of the item from being listed in the [email protected][[email protected]++] = @inventorylist_id[[email protected]]; like putting in an extra check so it doesn't get included in the [email protected][[email protected]++]?? mes getitemname( [email protected][[email protected]] ); then in this part it won't list the excluded "certain item"?
  9. Scroll ... cant be done yet unless you create custom SC_ProtectGarment / SC_ProtectShoes. This can be put into Garment or Shoes or any combo items??? autobonus... autobonus "{ bonus bUnbreakableGarment,100 }",50,10000,BF_WEAPON,"{ specialeffect(EF_ENHANCE, AREA, playerattached()); }"; on attack has random chance to make garment unbreakable..
  10. I really fix up a lot of other script I have by comparing your script with whatever is in my script folder... I guess it's my bad for not explaining this correctly.. on .nb part where it query_sql to fetch all the costumes, can I have another array to [email protected]ayA which include a list of item which not to be compared or "found"? from the big list of query_sql?
  11. short questions first then long long question... 4. Why @summon'ed white plant or any thing can move but not @summon 2042 (SilverSniper) or @summon 1511 (Amon ra) can't move at all? in eathena amonra moves if summon ( if memory serves me correctly or was it otherwise. ) 5. in cases of storing arrays of Item Id from getinventorylist. can we make use of permanent player variable to store that array?? or should I create a custom sql table for that purpose? 6 have item avail gone from hercules? 1. tested multiple times on gunslinger against pupa... Hercules\conf\map\battle\battle.conf arrow_decrement: 0 << edits inside here works no using up any ammunitions of any kind Hercules\conf\import\battle.conf arrow_decrement: 0 << edits inside here NOT working at all??? ammunitions decreasing... so question is does the import folder of hercules actually working at all?? entries on Hercules\conf\map\battle.conf is unchanged. another case bow_unequip_arrow: false // xsa // true Setting placed in Hercules\conf\import\battle.conf no read but if place in Hercules\conf\map\battle\items.conf it got read and effective so how hercules import folder actually works for battle.conf? don't know if other files in import folder behaves like this or not. 2. When multiple stormgust cast'ed on the same cell and mapserver keep putting out [Warning]: skill_unitgrouptickset_search: tickset is full. ( failed for skill 'W Z_STORMGUST' on unit 2 ) does it has something to do with this setting? or should I set it to 31 instead so it don't put any warning of this type? land_skill_limit: 14 // xsa // 9 // Note 3: Value is a bit field. If no description is given, // assume unit types (1: Pc, 2: Mob, 4: Pet, 8: Homun, 16: Mercenary) 3 I have script like this: How do I check if getarg(1) == empty or null which is suppose to be filled as .x1 but it's not filled (which is intended)
  12. Not really since I am the one not get used to read all those source stuff so anything I change error'ed out on me...
  13. Not my suggestion but forced by microsoft to download that 17763 version of visual studio. it says i have something missing blablabla and need download a whole package of 8~10 GB of stuff which is so far away from what I intended. (which is the small visual studio download suggested by someone here and the download size would be (less than 2GB) which opps me out regarding the heal error I found it... original line in skill.c //xsa if (status->isimmune(bl) || (dstmd != NULL && (dstmd->class_ == MOBID_EMPELIUM || mob_is_battleground(dstmd)))) but I make it to this line: if ( dstmd->class_ == mob_is_battleground(dstmd))//xsa so it crash whenever I try to these skills. case HLIF_HEAL: // [orn] case AL_HEAL: case AB_HIGHNESSHEAL: case SU_TUNABELLY: but if I change that line to this It's not crashing anymore... if (status->isimmune(bl) || (dstmd != NULL && (mob_is_battleground(dstmd))))//xsa if (status->isimmune(bl) << how to make heal work on immuned Player (AKA GTB card equipped player) or anything???
  14. browedit has not updated since I dont know when but I think it work perfectly fine with anything 2016 but not after...
  15. Why and how does it repeat the costume at the first place ? was it because there is not enough limitation or conditions check that causing the loop then? and the loop can loop more than once?? because in some cases I have seen [email protected] got bigger than [email protected] in some test for ( [email protected] = 0; [email protected] < [email protected]; [email protected] ) side note: for the code box thing could changes be made so that it only run Codebox script after posting? so it load faster when trying to posting (aka before post is made) then after the post is made only then it load it's code?
  16. Nah all this time I am on window 7 Enterprise ultimate x32<<EDIT with visual studio 2017 and let the installer which downloaded from microsoft download all the package itself which resulted in 8~10GB total size and then when try to compile visual studio says retarget project or nothing... so I retarget ok build solution done. ... nothing happen lol. except where I did source edit which resulted heal(28) not working... The only sad thing about hercules is development is slowish compare to rathena but rathena is a ship with lots of hole and slow speed...
  17. I don't know if you realise this. You could retarget project even if you are not on Windows 10 SDK 10.0.15063 Windows 8.1 SDK I used 10.0.17763.0 and retarget project by rightclicking solution in solution explorer. function ok I think even in newer version of sdk for both rathena and hercules (retarget) and about download speed Do make use of internet download manager ... it's like "@speed 0" compare to normal way of download which is "@speed 100" it shorten download time by at least 75% if you use it.
  18. Disregard this post dummy me not see it as discord ..thing thought that's ragnarok stuff though
  19. k The down side is Only player can't play or use Heal(28) and some unknown crashy stuff... any way thanks for helping though.
  20. Why is that is you try to use npc to check player job class will randomly crashes mapserver and mostly occur to rebellion or gunslinger class?? eg. prontera,154,174,5 script Tester 4_M_PAY_SOLDIER,{ mes ("Good day~~!"); if ( Class == Job_Rebellion ) { mes ("Class :: " + jobname(Job_Rebellion) ) ; } close2; end; } if talk to said npc multiple time can randomly crashes map server is this normal?? Client 20180621 if matters.
  21. 1. In the ancient age where everyone is still crawling around "eathena" which died out already, I ask a question, can we get something like Skill_avail.txt just like mob_avail.txt? and no answer or it's too complicated to do... I guess it's hard since skill are tied to source or what's not then.. 2. I see 2 way you could go from where you are right now. It would do you good if you would choose "plan D", since this "Plan C" of yours are currently dying. But if you do insist use custom skill way to implement it downside are you gonna have to do your own graphic for the "custom skill" (really cool sprite to showoff somehow)
  22. 5 because your answer simply is a single yes so i take it both can which is setarray #name[[email protected]] , blablabla setarray #name$[[email protected]] , blablabla can be done. and sql CREATE something blablabal? 6 means only need this line only? Sprite: 909 2 land_skill_limit: 14 // xsa // 9 < this is in config files and tested with @summon 1956 atleast 30 of them against target with really high hp about 7m and all 1956 casted aoe spell (multiple stormgust and meteorstorm) at the target like 10 minimum count of aoe spell on cell where target is at. then map server spit up alot of these ... [Warning]: skill_unitgrouptickset_search: tickset is full. ( failed for skill 'WZ_STORMGUST' on unit 2 ) 1. then it's weird last time it need me go to change every file but not import folder to take effect... 3 One simple question: does array start with -1 or 0? sometime it return 0 sometime -1 confusing...
  23. May be high on coffee or something lol any way thanks for that script haven't test it yet.
  24. I found this script 1. I hope to know how do I make a script to check for only a specific monster count from script without use bindatcmd? like directly check for specific monster count in a map but not other monster on the same map.
  25. Have you search through this file already ?? Ragnarok\data\luafiles514\lua files\skillinfoskilltreeview.lub << this is the reason if it's not the server doing it. skillinfo_f.lub << and this is the script from the client doing the showing skill position << check it out... The reason I suggest you to go through the links is because it would be easier to add new skill lol. Skill are unique stuff not like mob can be avail'ed although hercules I have not found item_avail.txt.