Jump to content
  • 0

mining probem


backtea

Question


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  56
  • Reputation:   1
  • Joined:  11/21/11
  • Last Seen:  

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 by backtea
Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  56
  • Reputation:   1
  • Joined:  11/21/11
  • Last Seen:  

it's already, but the script error when i attack the monster

it's said arround this line

OnDo:

callfunc "Minner",1;

end;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  56
  • Reputation:   1
  • Joined:  11/21/11
  • Last Seen:  

bump

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  130
  • Reputation:   43
  • Joined:  12/11/11
  • Last Seen:  

Could you share the error message?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  69
  • Reputation:   10
  • Joined:  05/14/12
  • Last Seen:  

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 by Joey
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  69
  • Reputation:   10
  • Joined:  05/14/12
  • Last Seen:  

Ah okay, missed that.

@backtea

Could you provide a screenshot of the error in your mapserver window?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...