Jump to content
  • 0

Hello, I would like to request a script, please read.


Question

Posted (edited)
Hello, I would like to request a script that will automaticaly broadcast and summon a one poring in random Towns

(ex. geffen, prontera, alberta, aldebaran) for 12;00am/pm, 3;00am/pm, 6:00am/pm and 9:00am/pm Time

that will gained zenny if player kills that poring.

 

Thanks! Please tell me if I have to do any server configuration, I guess I have to create a new poring mob who only gained that zeny right? Can you also tell me how? /help /help /help
Edited by d102791estiny

7 answers to this question

Recommended Posts

  • 0
Posted

 

Ahaha~ Fix the bug and add the min countdown~

try it /yawn

- script Poring Event -1,{
OnMinute00:
.h = gettime(3); // hour
.m = gettime(2); // min
.s = gettime(1); // sec


if(.h%3 == 0){
.Map$ = .Maplist$[rand(getarraysize(.Maplist$))];
.min = .min_before_start;
goto OnTimer60000;
}
end;


OnTimer60000:
stopnpctimer;
if(.min){
announce "A special poring will spawn in [ "+Strtoupper(.Map$)+" ] in "+.min+" minutes",bc_all;
.min--;
initnpctimer;
}else{
announce "A special poring has just spawn in [ "+Strtoupper(.Map$)+" ]",bc_all;
monster .Map$,0,0,"--ja--",1002,1,strnpcinfo(3)+.eventlabel$,0;
}
end;


OnPoring:
Zeny = Zeny + .zenygain;
dispbottom .zenygain+"z gain";
announce strcharinfo(0)+" has just kill the special poring in [ "+Strtoupper(.Map$)+" ]",bc_all;
end;


OnInit:
.zenygain = 1000;
setarray .Maplist$,"geffen","prontera","alberta","aldebaran";
.eventlabel$ = "::OnPoring";
.min_before_start = 3;
}

 

 

Thanks a lot i works...

but i did my own customization but nothing works...

 

this is the last request..

 

~~~Poring event wil start in 3 minutes...

~~~Poring event has just spawn in town (ex. izlude)..

 

 

xxx~~~not poring event will spawn in izlude in 3,2,2 minutes.. thanks a lot /kis2

 

 

Ahaha~ Fix the bug and add the min countdown~

try it /yawn

- script Poring Event -1,{
OnMinute00:
.h = gettime(3); // hour
.m = gettime(2); // min
.s = gettime(1); // sec


if(.h%3 == 0){
.Map$ = .Maplist$[rand(getarraysize(.Maplist$))];
.min = .min_before_start;
goto OnTimer60000;
}
end;


OnTimer60000:
stopnpctimer;
if(.min){
announce "A special poring will spawn in [ "+Strtoupper(.Map$)+" ] in "+.min+" minutes",bc_all;
.min--;
initnpctimer;
}else{
announce "A special poring has just spawn in [ "+Strtoupper(.Map$)+" ]",bc_all;
monster .Map$,0,0,"--ja--",1002,1,strnpcinfo(3)+.eventlabel$,0;
}
end;


OnPoring:
Zeny = Zeny + .zenygain;
dispbottom .zenygain+"z gain";
announce strcharinfo(0)+" has just kill the special poring in [ "+Strtoupper(.Map$)+" ]",bc_all;
end;


OnInit:
.zenygain = 1000;
setarray .Maplist$,"geffen","prontera","alberta","aldebaran";
.eventlabel$ = "::OnPoring";
.min_before_start = 3;
}

 

 

Thanks a lot i works...

but i did my own customization but nothing works...

 

this is the last request..

 

~~~Poring event wil start in 3 minutes...

~~~Poring event has just spawn in town (ex. izlude)..

 

 

xxx~~~not poring event will spawn in izlude in 3,2,2 minutes.. thanks a lot /kis2

 

 

SOLVED

announce "A special poring will spawn in [ "+Strtoupper(.Map$)+" ] in "+.min+" minutes",bc_all;

to

announce "A special poring will spawn in "+.min+" minutes",bc_all;

 

Thanks a lot guys /kis2

  • Upvote 1
  • 0
Posted (edited)

Just done it. give it a try~ /yawn 
 

- script Poring Event -1,{
OnMinute00:
.h = gettime(3); // hour
.m = gettime(2); // min
.s = gettime(1); // sec


.Map$ = .Maplist$[getarraysize(.Maplist$)];
if(.h%3 == 0){
announce "A special poring has just spawn in [ "+Strtoupper(.Map$)+" ]",bc_all;
monster .Map$,0,0,"--ja--",1002,1,strnpcinfo(3)+.eventlabel$,0;
}
end;


OnPoring:
Zeny = Zeny + .zenygain;
dispbottom .zenygain+"z gain";
announce strcharinfo(0)+" has just kill the special poring in [ "+Strtoupper(.Map$)+" ]",bc_all;
end;


OnInit:
.zenygain = 1000;
setarray .Maplist$,"geffen","prontera","alberta","aldebaran";
.eventlabel$ = "::OnPoring";
}
Edited by yuchinin
  • 0
Posted

 

Just done it. give it a try~ /yawn 

 

- script Poring Event -1,{
OnMinute00:
.h = gettime(3); // hour
.m = gettime(2); // min
.s = gettime(1); // sec


.Map$ = .Maplist$[getarraysize(.Maplist$)];
if(.h%3 == 0){
announce "A special poring has just spawn in [ "+Strtoupper(.Map$)+" ]",bc_all;
monster .Map$,0,0,"--ja--",1002,1,strnpcinfo(3)+.eventlabel$,0;
}
end;


OnPoring:
Zeny = Zeny + .zenygain;
dispbottom .zenygain+"z gain";
announce strcharinfo(0)+" has just kill the special poring in [ "+Strtoupper(.Map$)+" ]",bc_all;
end;


OnInit:
.zenygain = 1000;
setarray .Maplist$,"geffen","prontera","alberta","aldebaran";
.eventlabel$ = "::OnPoring";
}

 

how to set ? 12;00am/pm, 3;00am/pm, 6:00am/pm and 9:00am/pm Time

  • 0
Posted

Already did isn't it ?

 

OnMinute00:                 // This label will trigger when the server minutes hit 0, that mean it will trigger every hour on 0 min.

 

.h = gettime(3);             // This get the time in hour

 

if(.h%3 == 0)                 // that mean when the variable < .h > is 3 6 9 12 15 18 21 24 % 3 will always get 0

 

Thumb up if this help  /no1


If you don't know that logic you can simply use the

OnHour00:

OnHour03:

OnHour06:

OnHour09:

...

 

got it?  /pat

  • 0
Posted (edited)

Already did isn't it ?

 

OnMinute00:                 // This label will trigger when the server minutes hit 0, that mean it will trigger every hour on 0 min.

 

.h = gettime(3);             // This get the time in hour

 

if(.h%3 == 0)                 // that mean when the variable < .h > is 3 6 9 12 15 18 21 24 % 3 will always get 0

 

Thumb up if this help  /no1

If you don't know that logic you can simply use the

OnHour00:

OnHour03:

OnHour06:

OnHour09:

...

 

got it?  /pat

 

no town name indicate

post-23181-0-89406000-1452591864_thumb.jpg 

 

additional sir that will anounce like poring event will start ing 3 minutes,

 

thank you a lot for the replies /thx

Edited by d102791estiny
  • 0
Posted

Ahaha~ Fix the bug and add the min countdown~

try it /yawn

- script Poring Event -1,{
OnMinute00:
.h = gettime(3); // hour
.m = gettime(2); // min
.s = gettime(1); // sec


if(.h%3 == 0){
.Map$ = .Maplist$[rand(getarraysize(.Maplist$))];
.min = .min_before_start;
goto OnTimer60000;
}
end;


OnTimer60000:
stopnpctimer;
if(.min){
announce "A special poring will spawn in [ "+Strtoupper(.Map$)+" ] in "+.min+" minutes",bc_all;
.min--;
initnpctimer;
}else{
announce "A special poring has just spawn in [ "+Strtoupper(.Map$)+" ]",bc_all;
monster .Map$,0,0,"--ja--",1002,1,strnpcinfo(3)+.eventlabel$,0;
}
end;


OnPoring:
Zeny = Zeny + .zenygain;
dispbottom .zenygain+"z gain";
announce strcharinfo(0)+" has just kill the special poring in [ "+Strtoupper(.Map$)+" ]",bc_all;
end;


OnInit:
.zenygain = 1000;
setarray .Maplist$,"geffen","prontera","alberta","aldebaran";
.eventlabel$ = "::OnPoring";
.min_before_start = 3;
}

 

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