Jump to content

Question

Posted (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 by backtea

7 answers to this question

Recommended Posts

Posted

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?

Posted (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 by Joey
Posted

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.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...