Jump to content

Capuche

Developer
  • Posts

    2407
  • Joined

  • Last visited

  • Days Won

    52

Everything posted by Capuche

  1. @Skorm Note the server will display an announce for each instance, even if you detach the rid
  2. Check if the mapflag nochat or novending are enabled on this map
  3. You can create any shop you want cel_in01,58,195,3 script Quest Shop#1 715,{ callfunc "qshop"; }// all shop cel_in01,58,196,3 script Quest Shop#2 715,{ callfunc "qshop",1; }// call only shop ID 1 "Headgears" cel_in01,58,197,3 script Quest Shop#3 715,{ callfunc "qshop",2; }// call only shop ID 2 "Armors" cel_in01,58,198,3 script Quest Shop#4 715,{ callfunc "qshop",1,2; }// call shop ID 1 and 2 cel_in01,58,199,3 script Quest Shop#5 715,{ callfunc "qshop",1,3,4; }// call shop ID 1, 3 and 4
  4. Why not, your way is easier to use. Also F_RandMes is only used in F_Hi and F_Bye functions in a clean version, it's not a lot of work (lol) to change them ////////////////////////////////////////////////////////////////////////////////// // *** Function "F_Hi" ////////////////////////////////////////////////////////////////////////////////// //returns random HELLO message function script F_Hi { return callfunc("F_RandMes",5,"Hi!","Hello!","Good day!","How are you?","Hello there."); } ////////////////////////////////////////////////////////////////////////////////// // *** Function "F_Bye" ////////////////////////////////////////////////////////////////////////////////// //returns random BYE message function script F_Bye { return callfunc("F_RandMes",6,"Bye. See you again.","Later.","Goodbye.","Good luck!","Have a nice day!","Byebye!!!"); }
  5. It may be an issue. Replace the 2 OnAtCommand by OnAtcommand Also replace if( getitemname( .@itemid ) != "" && .@quantity ){ by if( getitemname( .@itemid ) != "null" && .@quantity ){ getitemname return "null" for an non-existent item EDIT wth I post after your report and my post is above your xD
  6. delete the ] in red replace the $ in blue by . You forgot ; at the end of this line. .@i + 1 doesn't increment .@i variable. It must be .@i += 1 or .@i++ This script check if the ip in array i is the same in array i+1. But it won't check if the ip in array i is the same in array i+2 etc With 2 loops .@size = getarraysize(.@names$); for(.@i = 0; .@i < .@size -1; .@i++ ) { .@ip_in_loop1$ = getcharip(.@names$[.@i]); for( .@j = .@i +1; .@j < .@size; .@j++ ) if( .@ip_in_loop1$ == getcharip(.@names$[.@j]) ) .@dual = .@dual + 1; } With setd/getd + 1 loop .@size = getarraysize(.@names$); for( .@i = 0; .@i < .@size; .@i++ ) { if ( getd( ".@ip_"+ getcharip( .@names$[.@i] ) ) ) .@dual = .@dual + 1; setd ".@ip_"+ getcharip(.@names$[.@i]), 1; }
  7. Replace monster "this", 0, 0, "--ja--", getd(".group"+ .@group +"id["+ .@menu +"]"), .@amount; by monster "this", 56, 56, "--ja--", getd(".group"+ .@group +"id["+ .@menu +"]"), .@amount;
  8. That means search the line for Maxsp about Ninja class //MaxSP - Ninja 1,99,25,1,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59,62,65,68,71,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135,139,143,147,151,156,161,166,171,176,181,186,191,196,201,206,211,216,221,226,231,236,241,246,251,257,263,269,275,281,287,293,299,305,311,317,323,329,335,341,347,353,359,365,371,378,386,394,402,410,418,426,434,442,450,458,466,474,482,490,498,506,514,522 and replace by //MaxSP - Ninja 1,99,25:4211:4212,1,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59,62,65,68,71,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135,139,143,147,151,156,161,166,171,176,181,186,191,196,201,206,211,216,221,226,231,236,241,246,251,257,263,269,275,281,287,293,299,305,311,317,323,329,335,341,347,353,359,365,371,378,386,394,402,410,418,426,434,442,450,458,466,474,482,490,498,506,514,522 >.<
  9. In trunk/db/re/skill_cast_db.txt you can increase the casting rate of skill one by one...
  10. Search/replace this line in the file.
  11. Do you use a specific woe controller?
  12. or you can use eaclass if (select("Yes I want.:Not now.") == 2) close; if ( eaclass()&EAJ_UPPERMASK == EAJ_WIZARD ) { mes "you cant warp"; close; }
  13. Oboro/Kagerou appeared in renewal game, that's why there aren't hp/sp data in pre-re db. Add the data in trunk/db/pre-re/job_maxhpsp_db.txt Replace //MaxHP - Ninja 1,99,25,0,40,47,54,61,69,77,85,94,103,202,212,222,232,243,254,265,277,289,301,316,331,346,364,382,400,420,440,460,482,504,526,548,572,596,620,646,672,698,726,754,784,814,844,876,908,940,975,1010,1100,1140,1180,1220,1260,1300,1340,1385,1430,1475,1520,1565,1615,1665,1715,1765,1815,1880,1935,1990,2045,2100,2160,2220,2280,2340,2400,2460,2520,2580,2640,2705,2770,2835,2900,2965,3030,3100,3170,3240,3310,3380,3455,3530,3605,3680,3760,3840,3920,4000,4080 by //MaxHP - Ninja 1,99,25:4211:4212,0,40,47,54,61,69,77,85,94,103,202,212,222,232,243,254,265,277,289,301,316,331,346,364,382,400,420,440,460,482,504,526,548,572,596,620,646,672,698,726,754,784,814,844,876,908,940,975,1010,1100,1140,1180,1220,1260,1300,1340,1385,1430,1475,1520,1565,1615,1665,1715,1765,1815,1880,1935,1990,2045,2100,2160,2220,2280,2340,2400,2460,2520,2580,2640,2705,2770,2835,2900,2965,3030,3100,3170,3240,3310,3380,3455,3530,3605,3680,3760,3840,3920,4000,4080 same about the maxsp
  14. What do you mean?
  15. From my test: I set a new integer variable and log out A new line appear in global_reg_value I set this variable to 0 and log out I can't find the line in global_reg_value anymore don't know if it's related to the emu... maybe it's my phpmyadmin..?
  16. itemheal rand(110),rand(110); is correct = itemheal <hp>,<sp>; itemheal rand(110,120) is not correct
  17. or 12212,Giant_Fly_Wing,Giant Fly Wing,2,2,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "F_CashPartyCall"; },{},{} from trunk/npc/other/CashShop_Functions.txt // Giant Fly Wing //============================================================ // - Warp party leader to random spot on the map. // - Summon Party members on party leader map to that location. // - No arguments. function script F_CashPartyCall { warp "Random",0,0; if(getpartyleader(getcharid(1),2) == getcharid(0)) { getmapxy .@mapl$, .@xl, .@yl, 0; warpparty .@mapl$, .@xl, .@yl, getcharid(1), .@mapl$; } return; }
  18. There was a mistake for ea version. Please take again the script in my previous post.
  19. There is a LOT of differences. You should tell us at first you use ea.. double work for me /sigh Same sources mods (add them manually). Try this npc script - script junho -1,{ function getarrayvalue { return getd( ".save_map_name" + ( getarg(0)/128 ) +"$["+ ( getarg(0)%128 ) +"]" ); } function MapInCompare { set .@map$, getarg(0); set .@num_var, .size_array / 128; for ( set .@i, 0; .@i <= .@num_var; set .@i, .@i +1 ) if ( compare( getd( ".concat_map_name"+ .@i +"$" ),.@map$ ) ) return 1; return 0; } OnNight: set .nightday, 1; set .@size, query_sql( "select `name` from `char` where `online` = 1 limit 128", .@name$ ); for ( set .@i, 0; .@i < .@size; set .@i, .@i +1 ) { getmapxy .@map$, .@x, .@y, 0, .@name$[.@i]; callsub L_check, .@map$; } end; OnPCLoadMapEvent: callsub L_check, strcharinfo(3); end; L_check: set .@map$, getarg(0); if ( !.nightday || getmapflag( .@map$,mf_pvp ) || getmapflag( .@map$,mf_battleground ) || getmapflag( .@map$,mf_gvg ) || compare( .map_black_list$,.@map$ ) || MapInCompare( .@map$ ) ) return; set .@num_var, .size_array / 128; setd ".save_map_name"+ .@num_var +"$["+ ( .size_array%128 ) +"]", .@map$; setd ".concat_map_name"+ .@num_var +"$", getd( ".concat_map_name"+ .@num_var +"$" ) + .@map$ +"|"; set .size_array, .size_array +1; pvpon .@map$; return; OnDay: set .nightday, 0; for ( set .@i, 0; .@i < .size_array; set .@i, .@i +1 ) { pvpoff getarrayvalue( .@i ); sleep 1; } set .@num_array, .size_array/128; while( .@num_array >= 0 ) { setd ".concat_map_name"+ .@num_array +"$", ""; deletearray getd( ".save_map_name" + .@num_array +"$" ); set .@num_array, .@num_array -1; } set .size_array, 0; end; OnInit: setarray .@tmp$, "prontera", "geffen";// yours maps no pvp set .@size, getarraysize( .@tmp$ ); while( .@i < .@size ) { set .map_black_list$, .map_black_list$ + .@tmp$[.@i] +"|"; set .@i, .@i +1; } }
  20. Make an update r17126 r17127 r17409
  21. We can check the bases stats but there aren't any script commands to check the bonus value of a stat, from what I know..
  22. In fact it's with a query query_sql( "SELECT `point` FROM `vote_point` WHERE `loginname` = MD5('"+getcharid(3)+"')", .@vote ); .@vote retrieve the point from vote point table dispbottom "You got "+ .@vote +" vote points."; #VOTEPOINTS is a dummy variable in this script
  23. >.< Put your min group id allowed to connect to your server example : min_group_id_to_connect: 2 allow the groups ID 2, 3.. 99 and above to connect (all group ID above or equal to 2 are allowed to connect on) Groups ID 0, 1 can't connect I believe you must restart your server to enable this setting (@reloadscript doesn't reload this setting)
  24. - OnAgitEnd; + OnAgitEnd: replace ; by :
  25. It doesn't start in gvg, battleground maps and in the maps you want in the setting OnInit: setarray .@tmp$, "prontera", "geffen";// yours maps no pvp It start at night. Also you must recompile your server...
×
×
  • Create New...