Jump to content

Capuche

Developer
  • Posts

    2407
  • Joined

  • Last visited

  • Days Won

    52

Everything posted by Capuche

  1. Update translation follow up r17284 and r17285 for @channel system http://pastebin.com/pbTCRamh
  2. The script makes randomly a new mission when you want to take one. No need to add new mission.
  3. Try this - EDIT : please take the last script - Put your setting at the end of the script.
  4. - script Security -1,{ OnNPCKillEvent: set @count_rand_mob, @count_rand_mob +1 ; if( @count_rand_mob < @rand_mob ) end; OnTimer1800000: set @count_rand_mob, 0; stopnpctimer; if( @loop ) end; OnPCLoginEvent: set @rand_mob, rand( 300,500 ); cutin "ein_soldier",2; if (getgmlevel()>=85) goto gm_admin; set @loop, 1; setoption 0x40; setoption 0x2000; pcblockmove getcharid(3),1; percentheal 100,100; mes "Hallo, apa kamu bot ?? kalau tidak.. Ketik nomor yang sesuai ya."; atcommand "@noask"; mes "Ini login untuk antibot."; mes "Ketik nomor yang sesuai dengan warna di tanda ####"; next; set .@number1, rand (1000000,9999999); set .@number2, rand (1000000,9999999); set .@number3, rand (1000000,9999999); set .@number4, rand (1000000,9999999); set .@number5, rand (1000000,9999999); set .@number6, rand (1000000,9999999); set .@number00, rand (1000000,9999999); set .@number01, rand (1000000,9999999); set .@number02, rand (1000000,9999999); set .@number03, rand (1000000,9999999); set .@number04, rand (1000000,9999999); set .@number05, rand (1000000,9999999); set .@number06, rand (1000000,9999999); set .@number07, rand (1000000,9999999); set .@number08, rand (1000000,9999999); set .@number09, rand (1000000,9999999); set .@number10, rand (1000000,9999999); set .@number66, rand (1000,9999); set .@number99, rand (100,999); set .@Col, rand (6); if(.@Col == 0) goto colred; if(.@Col == 1) goto colorg; if(.@Col == 2) goto colblu; if(.@Col == 3) goto colvio; if(.@Col == 4) goto colgre; mes "^F5F9FD"+ .@number99 +"^000000^FFF9EE"+ .@number66 +"^000000^FF8C00"+ .@number2 +"^000000^F5F9FD"+ .@number05 +"^000000"; mes "^F8F8FF"+ .@number66 +"^000000^F7F7FF"+ .@number99 +"^000000^A52A2A"+ .@number6 +"^000000^F5F9FD"+ .@number05 +"^000000"; mes "^F5F9FD"+ .@number99 +"^000000^FFF9EE"+ .@number66 +"^000000^9400D3"+ .@number4 +"^000000^F8F8FF"+ .@number06 +"^000000"; mes "^F5F9FD"+ .@number66 +"^000000^F7F7FF"+ .@number99 +"^000000^FF0000"+ .@number1 +"^000000^F5F9FD"+ .@number02 +"^000000"; mes "^F8F8FF"+ .@number99 +"^000000^FFF9EE"+ .@number66 +"^000000^0000FF"+ .@number3 +"^000000^F8F8FF"+ .@number01 +"^000000"; mes "^F5F9FD"+ .@number99 +"^000000^F7F7FF"+ .@number66 +"^000000^008000"+ .@number5 +"^000000^F5F9FD"+ .@number03 +"^000000"; mes "^F7F7FF#^F5F9FD#^FFF9FA#^A52A2A####^FFF9EE##^F8F8FF#"; next; input .@number; next; goto brochk; colgre: mes "^FFF9EE"+ .@number66 +"^000000^FFF9EE"+ .@number99 +"^000000^008000"+ .@number5 +"^000000^F5F9FD"+ .@number04 +"^000000"; mes "^FFF9FA"+ .@number99 +"^000000^F7F7FF"+ .@number66 +"^000000^FFA500"+ .@number2 +"^000000^F5F9FD"+ .@number03 +"^000000"; mes "^F5F9FD"+ .@number66 +"^000000^FFF9EE"+ .@number99 +"^000000^FF0000"+ .@number1 +"^000000^F5F9FD"+ .@number00 +"^000000"; mes "^FFF9EE"+ .@number99 +"^000000^FFF9EE"+ .@number66 +"^000000^9400D3"+ .@number4 +"^000000^F5F9FD"+ .@number01 +"^000000"; mes "^F7F7FF"+ .@number66 +"^000000^FFF9FA"+ .@number99 +"^000000^0000FF"+ .@number3 +"^000000^F5F9FD"+ .@number06 +"^000000"; mes "^FFF9EE"+ .@number99 +"^000000^F5F9FD"+ .@number66 +"^000000^A52A2A"+ .@number6 +"^000000^F5F9FD"+ .@number05 +"^000000"; mes "^F7F7FF#^FFF9FA#^F5F9FD#^008000####^F5F9FD#^F8F8FF#^FFF9EE##"; next; input .@number; next; goto grechk; colvio: mes "^F7F7FF"+ .@number66 +"^000000^FFF9EE"+ .@number99 +"^000000^9400D3"+ .@number4 +"^000000^F5F9FD"+ .@number09 +"^000000"; mes "^F7F7FF"+ .@number66 +"^000000^FFF9EE"+ .@number99 +"^000000^FFA500"+ .@number2 +"^000000^F5F9FD"+ .@number04 +"^000000"; mes "^F7F7FF"+ .@number66 +"^000000^FFF9EE"+ .@number99 +"^000000^A52A2A"+ .@number6 +"^000000^F5F9FD"+ .@number05 +"^000000"; mes "^FFF9EE"+ .@number99 +"^000000^F7F7FF"+ .@number66 +"^000000^FF0000"+ .@number1 +"^000000^F5F9FD"+ .@number06 +"^000000"; mes "^FFF9EE"+ .@number99 +"^000000^F7F7FF"+ .@number66 +"^000000^0000FF"+ .@number3 +"^000000^F5F9FD"+ .@number08 +"^000000"; mes "^FFF9EE"+ .@number99 +"^000000^F7F7FF"+ .@number66 +"^000000^008000"+ .@number5 +"^000000^F5F9FD"+ .@number01 +"^000000"; mes "^F5F9FD#^FFF9EE#^FFF9FA#^9400D3####^F8F8FF#^F5F9FD##^F7F7FF##"; next; input .@number; next; goto viochk; colblu: mes "^F8F8FF"+ .@number01 +"^000000^FFA500"+ .@number2 +"^000000^F7F7FF"+ .@number66 +"^000000^F5F9FD"+ .@number99 +"^000000"; mes "^FFF9EE"+ .@number09 +"^000000^A52A2A"+ .@number6 +"^000000^F5F9FD"+ .@number66 +"^000000^FFF9EE"+ .@number99 +"^000000"; mes "^F5F9FD"+ .@number08 +"^000000^FF0000"+ .@number1 +"^000000^F7F7FF"+ .@number66 +"^000000^FFF9EE"+ .@number99 +"^000000"; mes "^F8F8FF"+ .@number07 +"^000000^0000FF"+ .@number3 +"^000000^F5F9FD"+ .@number66 +"^000000^F5F9FD"+ .@number99 +"^000000"; mes "^FFF9EE"+ .@number06 +"^000000^008000"+ .@number5 +"^000000^F5F9FD"+ .@number66 +"^000000^FFF9EE"+ .@number99 +"^000000"; mes "^F5F9FD"+ .@number05 +"^000000^9400D3"+ .@number4 +"^000000^F7F7FF"+ .@number66 +"^000000^F5F9FD"+ .@number99 +"^000000"; mes "^FFF9EE###^0000FF####^F8F8FF####^F5F9FD#^FFF9FA#^F7F7FF##"; next; input .@number; next; goto bluchk; colorg: mes "^FFF9EE"+ .@number4 +"^000000^A52A2A"+ .@number6 +"^000000^F5F9FD"+ .@number07 +"^000000"; mes "^F8F8FF"+ .@number3 +"^000000^9400D3"+ .@number4 +"^000000^F5F9FD"+ .@number00 +"^000000"; mes "^F5F9FD"+ .@number1 +"^000000^FF0000"+ .@number1 +"^000000^F5F9FD"+ .@number06 +"^000000"; mes "^F8F8FF"+ .@number2 +"^000000^0000FF"+ .@number3 +"^000000^F5F9FD"+ .@number04 +"^000000"; mes "^F5F9FD"+ .@number5 +"^000000^FF8C00"+ .@number2 +"^000000^F5F9FD"+ .@number08 +"^000000"; mes "^F5F9FD"+ .@number6 +"^000000^008000"+ .@number5 +"^000000^F8F8FF"+ .@number10 +"^000000"; mes "^F5F9FD#^FFF9EE####^FFA500####^F5F9FD#^F5F9FD####^F7F7FF##^FFF9FA##"; next; input .@number; next; goto orgchk; colred: mes "^F5F9FD"+ .@number6 +"^000000^A52A2A"+ .@number6 +"^000000^F8F8FF"+ .@number10 +"^000000"; mes "^F8F8FF"+ .@number5 +"^000000^008000"+ .@number5 +"^000000^F5F9FD"+ .@number09 +"^000000"; mes "^F5F9FD"+ .@number3 +"^000000^9400D3"+ .@number4 +"^000000^F8F8FF"+ .@number08 +"^000000"; mes "^F8F8FF"+ .@number1 +"^000000^0000FF"+ .@number3 +"^000000^F5F9FD"+ .@number07 +"^000000"; mes "^F5F9FD"+ .@number2 +"^000000^FFA500"+ .@number2 +"^000000^F5F9FD"+ .@number05 +"^000000"; mes "^F8F8FF"+ .@number5 +"^000000^FF0000"+ .@number1 +"^000000^F5F9FD"+ .@number02 +"^000000"; mes "^F5F9FD##^FF0000####^F8F8FF####^FFF9FA#^FFF9EE#^F7F7FF#"; next; input .@number; next; goto redchk; redchk: if(.@number < .@number1 || .@number > .@number1) goto LOG_FAIL; goto OK; orgchk: if(.@number < .@number2 || .@number > .@number2) goto LOG_FAIL; goto OK; bluchk: if(.@number < .@number3 || .@number > .@number3) goto LOG_FAIL; goto OK; viochk: if(.@number < .@number4 || .@number > .@number4) goto LOG_FAIL; goto OK; grechk: if(.@number < .@number5 || .@number > .@number5) goto LOG_FAIL; goto OK; brochk: if(.@number < .@number6 || .@number > .@number6) goto LOG_FAIL; goto OK; LOG_FAIL: mes "Kamu salah mengetik nomor."; next; mes "Saya keluarkan kamu dari server!"; next; atcommand "@kick " + strcharinfo(0); end; OK: mes "^4233F4"+strcharinfo(0)+"^000000!"; mes "Terima kasih untuk tidak menggunakan bot di server ini."; announce "Player "+strcharinfo(0)+" masuk di server ini !!",bc_all; setoption 0x40,0; setoption 0x2000,0; pcblockmove getcharid(3),0; percentheal 100,100; atcommand "@noask"; cutin "ein_soldier",255; //callfunc "LadderWork","Cash",10,"#CASHPOINTS"; next; mes "Selamat bermain di server ini"; dispbottom "Cash points kamu sekarang "+#CASHPOINTS+"."; attachnpctimer; initnpctimer; set @loop, 0; close; gm_admin: mes "Selamat datang GM ^4233F4"+strcharinfo(0)+"^000000!"; announce "GM "+strcharinfo(0)+" masuk di server ini !!",bc_all; cutin "ein_soldier",255; //callfunc "LadderWork","Cash",10,"#CASHPOINTS"; next; mes "Selamat bermain di server ini"; dispbottom "Cash points kamu sekarang "+#CASHPOINTS+"."; close; }
  5. You mean to change the appearence of the player in novice ? If so, use changebase :
  6. Because of the trigger part If someone is in the trigger range (here 1x1 cases near to the npc) the npc acte like if you click on it. Without the curly error the npc seems working for me : it randomly enable the npc 1 or 2. if ($switch == 0){ set $switch,1; if (rand(1,2) == 1) { enablenpc "Water_Exit_1"; enablenpc "Water_False_1"; } else { enablenpc "Water_Exit_2"; enablenpc "Water_False_2"; disablenpc strnpcinfo(0); } } end;
  7. First of all, have you implemented @aura command ?
  8. - script Announcements -1,{ OnInit: setarray .announcer_mes$[0],"Check our website for latest News and Patches, & Vote For Us @ http://and-ro.tk ´«"; set .size_messages, getarraysize( .announcer_mes$ ); set .announcer_ticks, 10; // in secs -- Replace 300 with seconds, time between individual announcements. set .announcer_wait, .announcer_ticks * 1000; initnpctimer; end; OnTimer1800000: // = 1800 secs = 30 mins while( .@loop < .size_messages ) { announce .announcer_mes$[.@loop], 0; sleep .announcer_wait; set .@loop,.@loop + 1; } stopnpctimer; initnpctimer; end; } I cleaned your script a little but it worked for me Check your mapserver maybe you have an error ?
  9. -> The mode of your emp must be type boss if you don't want the player can see the hp bar. -> Remove the semi-colon at the end of the line. -> I think you miss some columns : take a look at the mob_db typo.
  10. case 4: mes "[Seiyablem]"; mes "Um... S Class?"; mes "You sure about this?"; mes "Alright... Let me know the Armor to which you'd like to add a Slot, and I'll tell what I need to try it."; next; switch(select("Majestic Goat:Spiky Band:Bone Helm:Corsair:Crown:Tiara:Sphinx Hat:Robe of Cast:Earring:Ring:Bow Thimble")) { case 1: callfunc "Func_Socket",2256,5160,40,51,2000,985,2; case 2: callfunc "Func_Socket",2258,5161,40,51,2000,985,2; case 3: callfunc "Func_Socket",5017,5162,40,51,2000,985,2; case 4: callfunc "Func_Socket",5019,5163,40,51,2000,985,2; case 5: callfunc "Func_Socket",2235,5165,40,51,2000,985,2; case 6: callfunc "Func_Socket",2234,5164,40,51,2000,985,2; case 7: callfunc "Func_Socket",5053,5166,40,51,1000,985,2; case 8: callfunc "Func_Socket",2343,2360,40,51,1000,985,2; case 9: callfunc "Func_Socket",2602,2622,40,51,1000,985,2; case 10: callfunc "Func_Socket",2601,2621,40,51,1000,985,2; case 11: callfunc "Func_Socket",2619,2671,40,51,1000,985,2; } Following the typo function callfunc "Func_Socket",2256,5160,40,51,2000,985,2; 2000 are the fee => 2 millions zeny
  11. prontera,150,148,0 script Seller 100,{ function checkcountstats; mes .npc$; mes "Hello there " +strcharinfo(0)+ ". Want to buy some status points or skill points?"; next; if (select("Yes:No") - 1) close; mes .npc$; mes "Then what do you want to buy?"; next; if( prompt( "Status Points", "Skill Points", "Nothing") == 3 ) close; else if( @menu == 1 ) { // stats points mes .npc$; mes "How many points do you want? Each status points cost 200,000 zeny"; next; input .@amount; if ( Zeny < ( .@amount * .cost ) || .@amount <= 0 ) { mes .npc$; mes "You don't have enough money to buy status points."; close; } else { mes .npc$; mes "Where do you want to put your " +.@amount+ " status points?"; next; .@s = select("Strength:Agility:Vitality:Intelligence:Dexterity:Luck:Nothing") -1; if( .@s == 6 ) close; else if( checkcountstats( .@s ) ) { // can't bypass the max stats def in player.conf mes .npc$; mes "You already have the max points for this stat."; close; } mes .npc$; mes "Here you go!"; statusup2 .stat_up[.@s], .@amount; set Zeny, Zeny - ( .@amount * .cost ); close; } } // skills points mes .npc$; mes "How many points do you want? Each skill points cost 200,000 zeny"; next; input .@amount; if ( Zeny < ( .@amount * .cost ) || .@amount <= 0 ) { mes .npc$; mes "You don't have enough money to buy skill points."; close; } else { set Zeny, Zeny - ( .@amount * .cost ); set SkillPoint, SkillPoint + .@amount; mes .npc$; mes "Done buying " +.@amount+ " skill points."; close; } function checkcountstats { .@eac = eaclass(); .@s = getarg(0); if( .@eac&EAJL_BABY && .@eac&EAJL_THIRD ) { if( readparam( .stat_up[.@s] ) >= .max_param_baby_3 ) return 1; else return 0; } else if( .@eac&EAJL_BABY ) { if( readparam( .stat_up[.@s] ) >= .max_param_baby ) return 1; else return 0; } else if( .@eac&EAJL_THIRD ) { if( readparam( .stat_up[.@s] ) >= .max_param_3 ) return 1; else return 0; } else { if( readparam( .stat_up[.@s] ) >= .max_param ) return 1; else return 0; } } OnInit: set .npc$,"[ " +strnpcinfo(1)+ " ]"; // NPC Name set .cost,200000; // Zeny amount needed // setarray .stat_up, bStr, bAgi, bVit, bInt, bDex, bLuk; .max_param = getbattleflag( "max_parameter" ); .max_param_3 = getbattleflag( "max_third_parameter" ); .max_param_baby = getbattleflag( "max_baby_parameter" ); .max_param_baby_3 = getbattleflag( "max_baby_third_parameter" ); end; } Base on Patskie's script. Credit to him
  12. Try sleep2 after the header or gettimetick prontera,150,150,5 script truc 58,{ sleep2 2000; // 2 secs delay npctalk "hono hono hono"; end; } prontera,150,150,5 script truc 2 58,{ if( @time_tick - gettimetick(2) > 2 ) end; @time_tick = gettimetick(2) + 2; // current time in secs since.. long ago +2 secs npctalk "hono hono hono"; end; } There are others commands but these are the usual
  13. A link to the update map_msg_frn with msg 451 translated : http://pastebin.com/pbTCRamh
  14. db/re/mob_db.txt // ID,Sprite_Name,kROName,iROName,LV,HP,SP,EXP,JEXP,Range1,ATK1,ATK2,DEF,MDEF,STR,AGI,VIT,INT,DEX,LUK,Range2,Range3,Scale,Race,Element,Mode,Speed,aDelay,aMotion,dMotion,MEXP,MVP1id,MVP1per,MVP2id,MVP2per,MVP3id,MVP3per,Drop1id,Drop1per,Drop2id,Drop2per,Drop3id,Drop3per,Drop4id,Drop4per,Drop5id,Drop5per,Drop6id,Drop6per,Drop7id,Drop7per,Drop8id,Drop8per,Drop9id,Drop9per,DropCardid,DropCardper 1288,EMPELIUM,Emperium,Emperium,90,7,1,0,0,1,60,73,64,50,1,17,80,50,26,20,10,12,0,8,26,0x160,300,1288,288,384,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 Follow the structure of the database and change the HP
  15. getitemname2 function is in this topic I don't have the warning when I use this script, maybe it's on another npc ?
  16. You have Statusup command if you don't want to see this @com in atcommandlog
  17. Check your mapserv when you are stucked and report the error here.
  18. Please post the line where you put this item script.
  19. Replace - script DailyQuestItemChanger -1,{ OnInit: Start: set $QuestItem1, rand(701,1065); set $QuestItem1HM, rand(1,200); set $QuestItem2, rand(701,1065); set $QuestItem2HM, rand(1,150); set $QuestItem3, rand(701,1065); set $QuestItem3HM, rand(1,50); set $DailyQuestToday,0; OnHour24: set $QuestItem1, rand(701,1065); set $QuestItem1HM, rand(1,200); set $QuestItem2, rand(701,1065); set $QuestItem2HM, rand(1,150); set $QuestItem3, rand(701,1065); set $QuestItem3HM, rand(1,50); set $DailyQuestToday,0; goto Start; end; } by - script DailyQuestItemChanger -1,{ OnInit: Start: OnHour24: for( set .@i, 0; .@i < 3; set .@i, .@i +1 ) { do set .@tmp[.@i], rand(701,1065); while( getiteminfo( .@tmp[.@i],0 ) == -1 ); } set $QuestItem1, .@tmp[0]; set $QuestItem1HM, rand(1,200); set $QuestItem2, .@tmp[1]; set $QuestItem2HM, rand(1,150); set $QuestItem3, .@tmp[2]; set $QuestItem3HM, rand(1,50); set $DailyQuestToday,0;
  20. Btw you don't use the variable from this query, why don't remove this line ?
  21. SA_LIGHTNINGLOADER or SA_FLAMELAUNCHER are not sc_const, you should use SC_FIREWEAPON SC_WATERWEAPON SC_WINDWEAPON SC_EARTHWEAPON
  22. It seems you don't use rathena. Try this http://eathena.ws/forum/topic/40-euphys-quest-shop/
  23. You don't use rathena. Try this one : /* create table auction_item ( auction_id int(11) primary key auto_increment, seller_id int(11), seller_name varchar(23), time datetime, nameid smallint(6), amount smallint(6), identify tinyint(1), refine tinyint(3), attribute tinyint(1), card0 smallint(6), card1 smallint(6), card2 smallint(6), card3 smallint(6) ) engine = innodb; drop table auction_item; create table auction_bidder ( id int(11) primary key auto_increment, auction_id int(11), buyer_id int(11), buyer_name varchar(23), time datetime, nameid smallint(6), amount smallint(6), identify tinyint(1), refine tinyint(3), attribute tinyint(1), card0 smallint(6), card1 smallint(6), card2 smallint(6), card3 smallint(6) ) engine = innodb; drop table auction_bidder; */ prontera,155,186,5 script kjsdhfksh 100,{ mes "aaa"; next; if ( select( "list", "sell" ) == 1 ) { set .@nb, query_sql( "select * from auction_item limit 128", .@id, .@cid, .@name$, .@time$, .@itemid, .@amount, .@identify, .@refine, .@attribute, .@card1, .@card2, .@card3, .@card4 ); for ( set .@i, 0; .@i < .@nb; set .@i, .@i +1 ) mes .@time$[.@i] +" -> "+ .@amount[.@i] +"x "+ callfunc( "getitemname2", .@itemid[.@i], .@identify[.@i], .@refine[.@i], .@attribute[.@i], .@card1[.@i], .@card2[.@i], .@card3[.@i], .@card4[.@i] ); close; } close2; callshop "auction_item", 2; end; OnSellItem: for ( set .@i, 0; .@i < getarraysize( @sold_nameid ); set .@i, .@i +1 ) { query_sql "insert into auction_item values ( null, "+ getcharid(0) +", '"+ escape_sql( strcharinfo(0) ) +"', now(), "+ @sold_nameid[.@i] +", "+ @sold_quantity[.@i] +", "+ @sold_identify[.@i] +", "+ @sold_refine[.@i] +", "+ @sold_attribute[.@i] +", "+ @sold_card1[.@i] +", "+ @sold_card2[.@i] +", "+ @sold_card3[.@i] +", "+ @sold_card4[.@i] +" )"; if( getiteminfo( @sold_nameid[.@i],2 ) == 4 || getiteminfo( @sold_nameid[.@i],2 ) == 5 ) delitem2 @sold_nameid[.@i], @sold_quantity[.@i], @sold_identify[.@i], @sold_refine[.@i], @sold_attribute[.@i], @sold_card1[.@i], @sold_card2[.@i], @sold_card3[.@i], @sold_card4[.@i]; else delitem @sold_nameid[.@i], @sold_quantity[.@i]; } end; OnInit: npcshopattach "auction_item"; end; } - shop auction_item -1,501:-1 EDIT: Forgot a coma
  24. Capuche

    RFYL

    Try this one http://rathena.org/board/topic/74941-help-rfyl-event-automated/ http://rathena.org/board/topic/66289-rfyl/
×
×
  • Create New...