backtea Posted June 1, 2012 Group: Members Topic Count: 21 Topics Per Day: 0.00 Content Count: 56 Reputation: 1 Joined: 11/21/11 Last Seen: June 29, 2024 Share Posted June 1, 2012 (edited) can anyone help me with this script? when i attack mineral monster it's say error in log server also i can't get the item prontera,150,150,5 script Mining Engineer 848,{ mes "Hello " + strcharinfo(0) + ", would you like to rent mining items?"; if( select( "Yes:No" ) == 1) rentitem 6010, 3600; mes "Do you want to warp to the mining field right now?"; mes "Warping will cost 5,000,000"; if( select( "Yes:No" ) == 2) goto L_exit; if( Zeny < 5000000 ) { mes "Not enough Zeny."; close; } attachnpctimer strcharinfo(0); initnpctimer; callfunc("MiningTimer"); warp "ordeal_1-1",149,158; end; OnTimer3600000: warp "SavePoint", 0, 0; OnTimerQuit: stopnpctimer; set mining_start, 0; end; L_exit: mes "Ok, cya..."; close; } function script Minner { if(getarg(0) == 2) { undisguise; if(strcharinfo(3) == "ordeal_1-1") warp "SavePoint", 0, 0; end; } if(getarg(0) == 1 && strcharinfo(3) == "ordeal_1-1") { if(getequipid(4) != 6010 || getequipid(1) != 5009) end; if(rand(1000) < 800) getitem 1010, 1; if(rand(1000) < 700) getitem 1011, 1; if(rand(1000) < 400) getitem 984, 1; if(rand(1000) < 400) getitem 985, 1; specialeffect2 154; end; } bonus bAspd, -30; bonus bCritical, 100; bonus bAtkRate, -100; if(getequipid(1) == 5009) disguise 848; else undisguise; return; } - script Minnerx -1,{ OnDo: callfunc "Minner",1; end; OnLill: set .@t,1; OnInit: if(!.@t) set .@t,100; monster "ordeal_1-1",0,0,"--ja--",1907,.@t,"Minnerx::OnLill"; end; } //=========== TIMER SHOW ==================== <header>,{ mes "^66CCFF[Mining Area]^000000"; mes "Mining Time Limit:"; mes "^FF0000" + mine_day$ + "/" + mine_month$ + "/" + mine_year$ + " " + mine_hour$ + ":" + mine_minute$ + "^000000"; close; } //=========================================== function script MiningTimer { setarray .@daymonth[0], 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31; set mine_minute$, ( (gettime(2) < 10) ? "0" + gettime(2) : "" + gettime(2) ); if((gettime(3)+1) == 24) set mine_hour$, "00"; else if((gettime(3)+1) < 10) set mine_hour$, "0" + (gettime(3)+1); else set mine_hour$, "" + (gettime(3) + 1); if( mine_hour$ == "00") set mine_day$, "" + (gettime(5) + 1); else set mine_day$, "" + gettime(5); if( atoi(mine_day$) > .@daymonth[gettime(6)-1]) set mine_day$, "1"; if( mine_day$ == "1" ) set mine_month$, "" + (gettime(6) + 1); else set mine_month$, "" + gettime(6); if( mine_month$ == "13" ) { set mine_month$, "1"; set mine_year$, "" + (gettime(7) + 1); } else set mine_year$, "" + gettime(7); return; } ordeal_1-1 mapflag loadevent ordeal_1-1 mapflag noskill ordeal_1-1 mapflag nowarp ordeal_1-1 mapflag nowarpto ordeal_1-1 mapflag noteleport ordeal_1-1 mapflag nosave SavePoint ordeal_1-1 mapflag noteleport ordeal_1-1 mapflag novending ordeal_1-1 mapflag noreturn ordeal_1-1 mapflag nomemo ordeal_1-1 mapflag nobranch Edited June 1, 2012 by backtea Quote Link to comment Share on other sites More sharing options...
Rikimaru Posted June 3, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 658 Reputation: 57 Joined: 11/20/11 Last Seen: July 1, 2017 Share Posted June 3, 2012 Maybe it's this : //=========== TIMER SHOW ==================== <header>,{ mes "^66CCFF[Mining Area]^000000"; mes "Mining Time Limit:"; mes "^FF0000" + mine_day$ + "/" + mine_month$ + "/" + mine_year$ + " " + mine_hour$ + ":" + mine_minute$ + "^000000"; close; } //=========================================== Shouldn't you change the <header> to something else? Quote Link to comment Share on other sites More sharing options...
backtea Posted June 4, 2012 Group: Members Topic Count: 21 Topics Per Day: 0.00 Content Count: 56 Reputation: 1 Joined: 11/21/11 Last Seen: June 29, 2024 Author Share Posted June 4, 2012 it's already, but the script error when i attack the monster it's said arround this line OnDo: callfunc "Minner",1; end; Quote Link to comment Share on other sites More sharing options...
backtea Posted June 6, 2012 Group: Members Topic Count: 21 Topics Per Day: 0.00 Content Count: 56 Reputation: 1 Joined: 11/21/11 Last Seen: June 29, 2024 Author Share Posted June 6, 2012 bump Quote Link to comment Share on other sites More sharing options...
plankt Posted June 6, 2012 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 130 Reputation: 43 Joined: 12/11/11 Last Seen: July 16, 2017 Share Posted June 6, 2012 Could you share the error message? Quote Link to comment Share on other sites More sharing options...
_Dynosawr_ Posted June 6, 2012 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 69 Reputation: 10 Joined: 05/14/12 Last Seen: June 26, 2012 Share Posted June 6, 2012 (edited) I loaded it up and it's working fine for me. The only problem being this: //=========== TIMER SHOW ==================== <header>,{ mes "^66CCFF[Mining Area]^000000"; mes "Mining Time Limit:"; mes "^FF0000" + mine_day$ + "/" + mine_month$ + "/" + mine_year$ + " " + mine_hour$ + ":" + mine_minute$ + "^000000"; close; } //=========================================== Which I changed to this: //=========== TIMER SHOW ==================== - script MiningArea -1,{ mes "^66CCFF[Mining Area]^000000"; mes "Mining Time Limit:"; mes "^FF0000" + mine_day$ + "/" + mine_month$ + "/" + mine_year$ + " " + mine_hour$ + ":" + mine_minute$ + "^000000"; close; } //=========================================== Edited June 6, 2012 by Joey Quote Link to comment Share on other sites More sharing options...
Rikimaru Posted June 6, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 658 Reputation: 57 Joined: 11/20/11 Last Seen: July 1, 2017 Share Posted June 6, 2012 I loaded it up and it's working fine for me. The only problem being this: //=========== TIMER SHOW ==================== <header>,{ mes "^66CCFF[Mining Area]^000000"; mes "Mining Time Limit:"; mes "^FF0000" + mine_day$ + "/" + mine_month$ + "/" + mine_year$ + " " + mine_hour$ + ":" + mine_minute$ + "^000000"; close; } //=========================================== Which I changed to this: //=========== TIMER SHOW ==================== - script MiningArea -1,{ mes "^66CCFF[Mining Area]^000000"; mes "Mining Time Limit:"; mes "^FF0000" + mine_day$ + "/" + mine_month$ + "/" + mine_year$ + " " + mine_hour$ + ":" + mine_minute$ + "^000000"; close; } //=========================================== I said the same,but he said he already changed that. Quote Link to comment Share on other sites More sharing options...
_Dynosawr_ Posted June 7, 2012 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 69 Reputation: 10 Joined: 05/14/12 Last Seen: June 26, 2012 Share Posted June 7, 2012 Ah okay, missed that. @backtea Could you provide a screenshot of the error in your mapserver window? Quote Link to comment Share on other sites More sharing options...
Question
backtea
can anyone help me with this script?
when i attack mineral monster it's say error in log server also i can't get the item
Edited by backteaLink to comment
Share on other sites
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.