Jump to content

utofaery

Members
  • Posts

    228
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by utofaery

  1. my bad change 100 and 200 to anything. - script cashmvp -1,{ OnNPCKillEvent: .@i1 = 100; .@i2 = 200; if ( getmonsterinfo( killedrid , MOB_MVPEXP) > 0 ) { .@a = callfunc("F_Rand",.@i1,.@i2); atcommand ("@Cash " + .@a); dispbottom ("Increased Cash " + .@a ); } end; }
  2. what I meant was did you patch your client?? with that option? when it is chosen (green). did it say error when choosing that option? if not then you have not patch client with that option enabled. This will need refer to this >>>https://github.com/rathena/rathena/wiki/Clientinfo.xml <version>30</version>
  3. 1. Why not use import folder?? https://github.com/rathena/rathena/wiki/Import_folder 2 comparing result shows from your char athena means your rathena version is outdated somehow 3. Did recompile server after edit mmo.h, core.h? 4. Is Disable Packet Encryption green / enabled when patch ragnarok unpatched client? this is vital when you disable packet obfuscation on server. 5. packet_db.txt is not have to mess with..latest rathena version 6. you did not provide Clientinfo.xml or Sclientinfo.xml!
  4. dispbottom instead of dispbotton??? Update: Should be good.
  5. 1. Erm I wanted a full "@reloadscript" through ingame clicking the npc which containing the "@reloadscript" and execute the "@reloadscript" command 2. I have always not good at remembering file path so "@reloadnpc" file_name.txt is not good for me 3. not really looking for "@reloaditemdb". I meant to use item in player's inventory or quick slot then execute the "@reloadscript" from the item
  6. in that job master file go to OnInit: then .ThirdClass = true; // Enable third classes? change .ThirdClass = false; // Enable third classes?
  7. 1 How do I properly use or call atcommand "@reloadscript" from an npc or an Item? tried atcommand "@reloadscript"; but something seems to be lacking or missing
  8. db/pre-re/item_db.txt db/Re/item_db.txt
  9. Check'ed on client of date : 20180621 said cases did not happen so be sure to use any client dated to 20171025 onwards use nemo to check your client date to be sure it is newer client > 20171025 and onwards Checked with item 969 job novice 71% 1450 weight with knife and cotton shirt shows overweight with 70 Gold (969) 69% 1410 weight with knife and cotton shirt shows no overweight with 68 Gold (969)
  10. Computer specs?? maybe ?? if your computer are from 2014 and onwards no said lagness should happen. I did spawn 500 poring in tight map to check that kind of lagness with lots of aoe spell. so said lagness should not occur unless your computer specs aren't up the par then lots of aoe spell happening the same time with lots of monster and player moving around means lagness in client.
  11. Recompile your server after you do things mention in the quote! in the past eathena can also support ItemId bigger than 32767 if you did the things in the quote and >>>(RECOMPILE Your Server)<<< after you did that it should all work. Item Id actually can be more Like in hercules it does support more than 32767
  12. Change the item's Aegis name Eg: Item 1: xxxx,SuperduperCustom1,ItemNameCustom1,.... Item 2: xxxx,SuperduperCustom2,ItemNameCustom2,.... Item 3: xxxx,SuperduperCustom3,ItemNameCustom3,....
  13. 1. Update KRO 2. redownload new KRO client if it's not updated assuming you are currently using something older than 2014 or somehow?
  14. Q1. If a hunter using Rudra Bow(holy element) using a fire arrow, what is the actual element delivered when attacking? Q2. same as Q1, but endow with water by profesor, what is the actual element delivered when attacking? Q3. How do any one would kill a monster with high perfect Flee ( Flee2 ) ? Skill wise?
  15. Q> Should I choose homevolution; in npc script or atcommand("@homevolve"); in npc script? and which one actually work or is a better choice ?? (Note: not in item script)
  16. Here updated script as per notty's help //= should be compatible rAthena git // credit to AnnieRuru and n0tttt for helping // prontera,164,175,4 script Mass Junk Seller 1_M_MERCHANT,{ mes ( " OPTIONe " ) ; switch ( select ("EQUIPS:ETC:IDENTIFY") ) { case 1: callfunc ("F_SellEquips"); case 2: callfunc ("F_SellETC"); case 3: callfunc ("F_IdentifyUnidentifiedx"); } close2; end; } function script F_SellETC { setarray(.@noSell0x[0], 1231, 969, 4001 ); getinventorylist(); for ( set .@i,0; .@i < @inventorylist_count; set .@i,.@i + 1) { if ( getiteminfo( (@inventorylist_id[.@i] ) ,ITEMINFO_TYPE ) == IT_ETC ) { .@FinishCheck = 0; for( .@c = 0; .@c < getarraysize(.@noSell0x); ++.@c ) { if ( @inventorylist_id[.@i] == .@noSell0x[.@c] ) { // Yes to sell .@FinishCheck++; } } if ( .@FinishCheck == 0 ) { setarray .@sellid[getarraysize(.@sellid)],@inventorylist_id[.@i]; } } } .@sellarraysize = getarraysize(.@sellid); .@xTItemCount = 0; .@xTItemZeny = 0; .@over = getskilllv("MC_OVERCHARGE"); if(.@over > 0) .@plus = 5 + 2*.@over - .@over/10; message strcharinfo(0),( " Sell array size " + .@sellarraysize ); if ( .@sellarraysize > 0) { .@i = 0; while (.@i <= .@sellarraysize) { .@SitemID = .@sellid[.@i]; if ( ( .@sellid[.@i] != 0 ) && ( .@sellid[.@i] > 0 ) && ( countitem(.@sellid[.@i] ) > 0 ) ) { .@SitemName$ = getitemname(.@sellid[.@i]); .@SitemCount = countitem(.@sellid[.@i]); .@SitemPrice = ( getiteminfo(.@sellid[.@i],1) * (100 + .@plus) / 100 ) ; .@xTItemZeny = .@xTItemZeny + ( .@SitemPrice * .@SitemCount ) ; .@xTItemCount = .@xTItemCount + .@SitemCount; dispbottom ("ItemCount :: " + .@SitemCount + " ItemPrice :: " + .@SitemPrice + " ItemID :: " + .@sellid[.@i] + " ItemName :: " + .@SitemName$ ); delitem2 (.@SitemID,.@SitemCount,true,0,0,0,0,0,0); } ++.@i; } Zeny = Zeny + .@xTItemZeny ; dispbottom ( " Total Zeny Gained :: " + .@xTItemZeny + " for total item sold :: " + .@xTItemCount ) ; } if ( .@sellarraysize == 0 ) { dispbottom ( " Nah ! no item can be sale, you liar! " ); } close2; end; } function script F_SellEquips { setarray(.@noSell0x[0], 1231, 969, 4001 ); getinventorylist(); for ( set .@i,0; .@i < @inventorylist_count; set .@i,.@i + 1) { if ( ( getiteminfo(@inventorylist_id[.@i],ITEMINFO_TYPE) == IT_WEAPON ) || ( getiteminfo(@inventorylist_id[.@i],ITEMINFO_TYPE) == IT_ARMOR ) ) && ( @inventorylist_equip[.@i] == 0 ) && ( @inventorylist_refine[.@i] == 0 ) && ( @inventorylist_card1[.@i] == 0 ) && ( @inventorylist_card2[.@i] == 0 ) && ( @inventorylist_card3[.@i] == 0 ) && ( @inventorylist_card4[.@i] == 0 ) { .@FinishCheck = 0; for( .@c = 0; .@c < getarraysize(.@noSell0x); ++.@c ) { if ( @inventorylist_id[.@i] == .@noSell0x[.@c] ) { // Yes to sell .@FinishCheck++; } } if ( .@FinishCheck == 0 ) { setarray .@sellid[getarraysize(.@sellid)],@inventorylist_id[.@i]; } } } .@sellarraysize = getarraysize(.@sellid); .@xTItemCount = 0; .@xTItemZeny = 0; .@over = getskilllv("MC_OVERCHARGE"); if(.@over > 0) .@plus = 5 + 2*.@over - .@over/10; message strcharinfo(0),( " Sell array size " + .@sellarraysize ); if ( .@sellarraysize > 0) { .@i = 0; while (.@i <= .@sellarraysize) { .@SitemID = .@sellid[.@i]; if ( ( .@sellid[.@i] != 0 ) && ( .@sellid[.@i] > 0 ) && ( countitem(.@sellid[.@i] ) > 0 ) ) { .@SitemName$ = getitemname(.@sellid[.@i]); .@SitemCount = countitem(.@sellid[.@i]); .@SitemPrice = ( getiteminfo(.@sellid[.@i],1) * (100 + .@plus) / 100 ) ; .@xTItemZeny = .@xTItemZeny + ( .@SitemPrice * .@SitemCount ) ; .@xTItemCount = .@xTItemCount + .@SitemCount; dispbottom ("ItemCount :: " + .@SitemCount + " ItemPrice :: " + .@SitemPrice + " ItemID :: " + .@sellid[.@i] + " ItemName :: " + .@SitemName$ ); delitem2 (.@SitemID,.@SitemCount,true,0,0,0,0,0,0); } ++.@i; } Zeny = Zeny + .@xTItemZeny ; dispbottom ( " Total Zeny Gained :: " + .@xTItemZeny + " for total item sold :: " + .@xTItemCount ) ; } if ( .@sellarraysize == 0 ) { dispbottom ( " Nah ! no item can be sale, you liar! " ); } close2; end; } function script F_IdentifyUnidentifiedx { .@a = 0; .@b = 0; .@i = 0; .@icount = 0; .@ZCount = 0; getinventorylist; for( set .@a,0; .@a < @inventorylist_count; set .@a, .@a + 1 ) { if ( @inventorylist_identify[.@a] == 1 ) continue; .@b++; } if ( .@b == 0 ) message strcharinfo(0),( " No Item was Identified! " ); if ( .@b > 0 ) { for( set .@i,0; .@i < @inventorylist_count; set .@i, .@i + 1 ) { if ( @inventorylist_identify[.@i] == 1 ) continue; if ( getskilllv("MC_IDENTIFY") == 1 && Sp >= 10 ) { } if ( countitem("Spectacles") ) { delitem(Spectacles, 1); } if ( getskilllv("RG_COMPULSION") && Zeny >= ( 100 - ( 5 + 4 * getskilllv("RG_COMPULSION") ) )* 2/5 ) { Zeny -= ( 100 - ( 5 + 4 * getskilllv("RG_COMPULSION") ) )* 2/5; } if ( getskilllv("MC_DISCOUNT") && Zeny >= ( 100 - ( 5 + 2 * getskilllv("MC_DISCOUNT") ) )* 2/5 ) { Zeny -= ( 100 - ( 5 + 2 * getskilllv("MC_DISCOUNT") ) )* 2/5; } if ( Zeny >= 40 ) { Zeny -= 40; .@ZCount = .@ZCount + 40; } if( countitem(@inventorylist_id[.@i]) >= 1 ) { delitem2 @inventorylist_id[.@i],1,false,0,0,0,0,0,0; getitem @inventorylist_id[.@i],1; .@icount++; .@b++; } } if ( .@icount > 0 ) message strcharinfo(0),( "Identified "+ .@icount +" Items. Deducted "+.@ZCount+"Zeny" ); if ( .@icount == 0 ) message strcharinfo(0),( " No Item was Identified! " ); } close2; end; } /*Uncomment to test prontera,162,175,4 script Mass Etc Granter 1_M_MERCHANT,{ callfunc ("F_GiveETCItem"); end; } prontera,160,175,4 script Mass Equip Granter 1_M_MERCHANT,{ callfunc ("F_GiveEquipItem"); end; } prontera,158,175,4 script Unidentified EQ Granter 1_M_MERCHANT,{ callfunc ("F_MakeUnIndentifiedItem"); end; } function script F_GiveETCItem { getitem( Jellopy , 1 ); getitem( Clover , 1 ); getitem( Feather , 1 ); getitem( Wooden_Block , 1 ); getitem( Flower , 1 ); } function script F_MakeUnIndentifiedItem { getitem2("Knife",1,0,0,0,0,0,0,0); getitem2("Javelin",1,0,0,0,0,0,0,0); getitem2("Mace",1,0,0,0,0,0,0,0); getitem2("Rod",1,0,0,0,0,0,0,0); getitem2("Club",1,0,0,0,0,0,0,0); getitem2("Main_Gauche",1,0,0,0,0,0,0,0); getitem2("Cotton_Shirt",1,0,0,0,0,0,0,0); getitem2("Adventureres_Suit_",1,0,0,0,0,0,0,0); } function script F_GiveEquipItem { getitem( Knife , 1 ); getitem( Javelin , 1 ); getitem( Mace , 1 ); getitem( Rod , 1 ); getitem( Club , 1 ); } */ Note: 1. The main reason for this script is it's tiresome when you got to press a lot of time to sell those item with @autoloot 100 and it's not fun to do that 2. This script is not tested on Rathena don't blame me for anything.
  17. Eg: if an array set has this : setarray .@item_id, 501,502,503,504,505,509,506,507,508,509,510,501; how to turn it to become like this : setarray .@item_id, 501,502,503,504,505,506,507,508,509,510; Note: original Array is actually iteminventorylist so it is not in any sorting orders.
  18. Nevermind that fix all stuff.. Thanks for all. Release the fixed up script . New question: How do I make it to show the real count of sold item and real sold item zeny??
  19. .@warpName$ = getmapinfo( strnpcinfo(3) ); // //pvp_n_3-4 For you suggestion map server spit out the error on this Or is there any other command I can resort to get what map name player or the interacting NPC map name with?
  20. Answer to your questions: https://rathena.org/board/topic/114960-card-item-limitation/?do=findComment&comment=343029 why did you created post or topic in between forums?? https://rathena.org/board/topic/118003-not-equip-equal-cards/?do=findComment&comment=356502 http://herc.ws/board/topic/16525-not-equip-equal-cards/
  21. I need help fixing this part of the script function script F_MvpArenaWarp { .@warpName$ = getmapinfo( strnpcinfo(3); // //pvp_n_3-4 .@nextwarp1$ = substr( .@warpName$ , 0, 5 ); //pvp_n_ .@nextwarp2$ = substr( .@warpName$ , 6, 6 ); //3 .@nextwarp3$ = substr( .@warpName$ , 7, 8 ); //-4 .@i = .@nextwarp2$; .@i = .@i + 1; .@nextwarp2$ = .@i; .@warpMap$ = .@nextwarp1$ + .@nextwarp2$ + .@nextwarp3$ ; dispbottom ( "Warped to :: " + .@warpName$ ); sleep (500); warp .@warpMap$,102,102; end; } .@warpName$ = getmapinfo( strnpcinfo(3); // //pvp_n_3-4 this is the line not working. always returning 0 in game.
  22. 1. I mean randomly taking items out until player reaches carryweight 90%. would there be something like that not restocking since that isn't what I wanted that is something for automation and botter loved. 2. Could you give example how it should be structured? since commandscript document has not that entry. map server spit this error for this line of code
  23. I need help with this selling IT_ETC and IT_ARMOR and IT_WEAPON Everytime I click it, it just go to no selling anything at all.
  24. Q.1 Help me make a script to take item from storage or from cart to player and stop moving item to player before overweight 90% Q.2 What should this be correctly done? or should be changed to? What I need is "getmapinfo" to rathena command functioning by get what player or npc are at and return map name etc .@warpName$ = getmapinfo(MAPINFO_NAME); // //pvp_n_3-4 .@nextwarp1$ = substr( .@warpName$ , 0, 5 ); //pvp_n_ .@nextwarp2$ = substr( .@warpName$ , 6, 6 ); //3 .@nextwarp3$ = substr( .@warpName$ , 7, 8 ); //-4 Q.3 Help me to remove the "Eden Warper" and the "Guild storage" in the attached image below. Q.4 Does this correctly work on attached player if use inside npc? Note: that attached player is not Creator / Genetic Q.5 How to kick attached player from script??
  25. .@x = 10; change 10 to any value
×
×
  • Create New...