Jump to content
  • 0

Doesn't Warp on the MAP Location.


Question

Posted (edited)

Description : Warping in to 1@mist map and it has 30minutes time to players to fish, after 30minutes it will warp all the players outside the map.

Condition : * When 5/5 Players on the map, You cannot enter on map anymore,

Problem : here are my script it seems fail on warping, I'm not pro yet on scripting :( i need help to fix it,

 - script fisher#announcer -1,{

OnInit:
disablenpc "Fairy Warper#ff";
hideonnpc "Fairy Warper#ff";
end;


Onclock0010:
Onclock0210:
Onclock0410:
Onclock0610:
Onclock0810:
Onclock1010:
Onclock1210:
Onclock1410:
Onclock1610:
Onclock1810:
Onclock2010:
Onclock2210:

announce "Fairy : It's time to catch some FISH!!!",0;

sleep2 10000;
announce "Fairy : Please make your way to Gremory Town.",0;
sleep2 10000;
announce "Fairy : After one minute the Warper will gone.",0;
sleep2 10000;
announce "Fairy : Talk to the warp now if you want to join and It's was 1st come 1st Reserve",0;
enablenpc "Fairy Warper#ff";
initnpctimer;
end;

OnTimer30000:
announce "Fairy : Last 30 seconds.",0;
sleep2 5000;
announce "Fairy : Hurry UP! If you want to join.",0;
end;

OnTimer50000:
announce "Fairy : Last 10 seconds.",0;
end;

OnTimer55000:
announce "Fairy : 5.",0;
end;

OnTimer56000:
announce "Fairy : 4.",0;
end;

OnTimer57000:
announce "Fairy : 3.",0;
end;

OnTimer58000:
announce "Fairy : 2.",0;
end;

OnTimer59000:
announce "Fairy : 1.",0;
end;

OnTimer60000:
announce "Fairy : Time's up. Warper will Open again in one hour.",0;
end;

OnTimer61000:
disablenpc "Fairy Warper#ff";
donpcevent "Fairy Warper#ff::OnEnable";
stopnpctimer;
end;

}


//--------------------------------------------------------

goodev_c02,107,116,3 script Fairy Warper#ff 53,{

if ($@ffish == 5) goto Sorryf;
if (getmapusers("1@mist") >= 5) goto Sorryf;

set $@ffish, $@ffish + 1;

announce strcharinfo(0)+" has enter Fairy Fish Pond",0,0x00FFFF;

warp "1@mist",51,290;

end;

Sorryf:
npctalk "Sorry, we're full na";
close;
end;

OnEnable:
sleep2 1000;
mapannounce "1@mist","Fairy : Take your time to catch some fishy fishy fishy. ",0;
initnpctimer;
end;

OnTimer1800000:
mapannounce "1@mist","Fairy : Ooops Time is UP!",0;
sleep2000;
mapannounce "1@mist","Fairy : You will be warp in 3 seconds",0;
sleep3000;
announce "Fairy : Fairy Warper will Open again in one hour.",0;
stopnpctimer;
areawarp "1@mist",0,0,0,0,"goodev_c02",102,103;
set $@ffish, 0;
end;

Thanks in Advance ;) [original script]

Edited by irawrsilentpls

11 answers to this question

Recommended Posts

Posted
if( getmapusers("1@mist") >= 5 ){
mes "Max User Reached.";
close;
}
addtimer ( 30 * 60000 ),strnpcinfo(0)+"::OnTimeUp";
warp "1@mist",51,290;
end;

OnTimeUp:
message strcharinfo(0),"Time's Up.";
sleep2 3000;
warp "prontera",155,181;
end;

  • Upvote 1
Posted (edited)

Hmm still not working :|

 - script fisher#announcer -1,{

OnInit:
disablenpc "Fairy Warper#ff";
hideonnpc "Fairy Warper#ff";
end;


Onclock0059:
Onclock0210:
Onclock0410:
Onclock0610:
Onclock0810:
Onclock1010:
Onclock1210:
Onclock1410:
Onclock1610:
Onclock1810:
Onclock2010:
Onclock2210:

announce "Fairy : It's time to catch some FISH!!!",0;

sleep2 10000;
announce "Fairy : Please make your way to Gremory Town.",0;
sleep2 10000;
announce "Fairy : After one minute the Warper will gone.",0;
sleep2 10000;
announce "Fairy : Talk to the warp now if you want to join and It's was 1st come 1st Reserve",0;
enablenpc "Fairy Warper#ff";
initnpctimer;
end;

OnTimer30000:
announce "Fairy : Last 30 seconds.",0;
sleep2 5000;
announce "Fairy : Hurry UP! If you want to join.",0;
end;

OnTimer50000:
announce "Fairy : Last 10 seconds.",0;
end;

OnTimer55000:
announce "Fairy : 5.",0;
end;

OnTimer56000:
announce "Fairy : 4.",0;
end;

OnTimer57000:
announce "Fairy : 3.",0;
end;

OnTimer58000:
announce "Fairy : 2.",0;
end;

OnTimer59000:
announce "Fairy : 1.",0;
end;

OnTimer60000:
announce "Fairy : Time's up. Warper will Open again in one hour.",0;
end;

OnTimer61000:
disablenpc "Fairy Warper#ff";
donpcevent "Fairy Warper#ff::OnEnable";
stopnpctimer;
end;

}


//--------------------------------------------------------

moscovia,212,186,3 script Fairy Warper#ff 53,{

if ($@ffish == 5) goto Sorryf;
if( getmapusers("1@mist") >= 5 ){
mes "Max User Reached.";
close;
}
addtimer ( 30 * 60000 ),strnpcinfo(0)+"::OnTimeUp";
warp "1@mist",51,290;
end;

OnTimeUp:
message strcharinfo(0),"Time's Up.";
sleep2 3000;
warp "prontera",155,181;
end;




OnEnable:
sleep2 1000;
mapannounce "1@mist","Fairy : Take your time to catch some fishy fishy fishy. ",0;
initnpctimer;
end;

OnTimer1800000:
mapannounce "1@mist","Fairy : Ooops Time is UP!",0;
sleep2000;
mapannounce "1@mist","Fairy : You will be warp in 3 seconds",0;
sleep3000;
announce "Fairy : Fairy Warper will Open again in one hour.",0;
stopnpctimer;
areawarp "1@mist",0,0,0,0,"goodev_c02",102,103;
set $@ffish, 0;
end;

}

Edited by irawrsilentpls
Posted
goodev_c02,107,116,3 script  Fairy Warper#ff 53,{
if( getmapusers("1@mist") >= 5 ){
mes "Max User Reached.";
close;
}
addtimer ( 30 * 60000 ),strnpcinfo(0)+"::OnTimeUp";
warp "1@mist",51,290;
end;

OnTimeUp:
message strcharinfo(0),"Time's Up.";
sleep2 3000;
warp "prontera",155,181;
end;
}

Posted (edited)

 - script fisher#announcer -1,{

OnInit:
disablenpc "Fairy Warper#ff";
hideonnpc "Fairy Warper#ff";
end;


Onclock0114:
Onclock0210:
Onclock0410:
Onclock0610:
Onclock0810:
Onclock1010:
Onclock1210:
Onclock1410:
Onclock1610:
Onclock1810:
Onclock2010:
Onclock2210:

announce "Fairy : It's time to catch some FISH!!!",0;

sleep2 10000;
announce "Fairy : Please make your way to Gremory Town.",0;
sleep2 10000;
announce "Fairy : After one minute the Warper will gone.",0;
sleep2 10000;
announce "Fairy : Talk to the warp now if you want to join and It's was 1st come 1st Reserve",0;
enablenpc "Fairy Warper#ff";
initnpctimer;
end;

OnTimer30000:
announce "Fairy : Last 30 seconds.",0;
sleep2 5000;
announce "Fairy : Hurry UP! If you want to join.",0;
end;

OnTimer50000:
announce "Fairy : Last 10 seconds.",0;
end;

OnTimer55000:
announce "Fairy : 5.",0;
end;

OnTimer56000:
announce "Fairy : 4.",0;
end;

OnTimer57000:
announce "Fairy : 3.",0;
end;

OnTimer58000:
announce "Fairy : 2.",0;
end;

OnTimer59000:
announce "Fairy : 1.",0;
end;

OnTimer60000:
announce "Fairy : Time's up. Warper will Open again in one hour.",0;
end;

OnTimer61000:
disablenpc "Fairy Warper#ff";
donpcevent "Fairy Warper#ff::OnEnable";
stopnpctimer;
end;

}


//--------------------------------------------------------

goodev_c02,107,116,3 script  Fairy Warper#ff 53,{
if( getmapusers("1@mist") >= 5 ){
mes "Max User Reached.";
close;
}
addtimer ( 30 * 60000 ),strnpcinfo(0)+"::OnTimeUp";
warp "1@mist",51,290;
end;

OnTimeUp:
message strcharinfo(0),"Time's Up.";
sleep2 3000;
warp "prontera",155,181;
end;
}

the NPC still Unclickable hmm

Edited by irawrsilentpls

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...