Jump to content
  • 0

[Solve] Event Script


manabeast

Question


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

I need a Auto Event Script run like this.

-Every Saturday 12am will Annouce "The Gate Of Garden Open. Just 15 Player only, are able to Enter" (correct me if grammer wrong or not format)

-Will Spawn 15 Treasure box in Prontera Random spot.

inside Treasure box have

Key to the Secret Garden (i found on ratemyserver)

http://ratemyserver....&isearch=Search

-1 Npc Name "Garden Entrance" in Prontera,x,y,0 (Required Key to the Secret Garden) Will Warp to "maze.gat / maze,x,y,0

-1 more Reward Npc in Maze,x,y,0. talk to that Npc will Get Reward and warp to prontera,x,y)

-Reward Npc msg

Congratulation!! you are have Pass The Gate Of Garden Test.

Please Take your Reward. and i will send you back.

First: 100k & 2862

Second: 50k & 5682

Third: 20k

Edited by manabeast
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

ok, i will try to make it ^^. map can get from here. ofcause not make by me. is share by judas. i dunno who make this map. forgot tell you need set mapflag on that map to prevent people save,memo,ecall,teleport. one more do you think this event need timer? example like 35 minit for this event only? or no need?

about reward

do you any suggestion on reward? i dunno want put what. for my server lv100, what else could use for reward?

about release

after make you can release this cool event at your post =) becos the map also not make by me =P

-----------------------------------------------------------------------------------------------------------------------------------------------------------------

Reply:

Garden Entrance

Location:prontera,163,176,2 (will Warp player to maze,383,167)

Reward Npc

Location:maze,383,138

Mobs db txt

3839,E_TREASURE1,Treasure Box,Treasure Box,99,49,0,0,0,0,0,0,100,0,0,0,0,0,999,0,0,0,0,0,26,0x120,0,0,0,0,0,0,0,0,0,0,0,0,7559,1000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

Mobs db SQL

REPLACE INTO `mob_db` VALUES (3639,'E_TREASURE1','Treasure Chest','Treasure Chest',99,1000,0,0,0,0,0,0,10,10,0,0,0,0,0,0,0,0,0,0,80,0x40,0,0,0,0,0,0,0,0,0,0,0,0,7559,1000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);

there is rate 1000 is how many? i try in game 1000 not 100% is how many persen%?

bump?

hi..., where is the key treasure box spawn? i can't find where to put this code in “3839“

and one more error @@", one more is where to set time? where time for this script open warp portal and treasure box?

Maze.rar

post-472-0-58599200-1328351419_thumb.png

Edited by Arcenciel
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  189
  • Reputation:   16
  • Joined:  11/20/11
  • Last Seen:  

I can make this script, but you will need to make a monster "Treasure Box" to drop the item.

**Edit**

Here is a rough script that I made, it has not been tested yet, Sorry! I'm sleepy right now ._.

prontera,157,190,4 script Garden Entrance 793,{

OnInit:
set .@garden$,maze // <Customizable>
set .@x,50; // <Customizable>
set .@y,55; // <Customizable>
set .playersmax,15; // <Customizable>
set .playersin,0;
disablenpc "Garden Entrance";
end;

if(gettime(4)==6) && (gettime(3)==12) {
enablenpc "Garden Entrance";
Announce "The Mystical Gate of the Secret Garden has opened! Fifteen players may enter.",bc_all || bc_blue;
mes "Rumor has it that there was once an ancient secret garden located near prontera!";
if(countitem(7559) < 1) close;
next;
mes "I see that you have the key... Very well, since you have the key, I can warp you to the gate.";
next;
mes "Do you want me to? Only [" + .playersmax - .playersin + "] can enter.";
next;
if(select("Yes:No") == 2) close;
if(.playersin == .playersmax)
{ mes "Sorry the max players has been reached.";
} else {
warp ".@garden$",.@x,.@y;
set .playersin,.playersin + 1;
close;
}
} else {
disablenpc "Garden Entrance";
}

maze,60,60,4 script Ancient Hero of the Garden 793,{

OnInit:
set .@spawn,1902; // <Customizable>
set .@garden$,maze // <Customizable>
disablenpc "Ancient Hero of the Garden";
end;

if(getmapusers(maze) == 15) {
monster "maze",0,0,"Treasure of the Secret Garden",.@spawn,10,"Ancient Hero of the Garden::L_MDeath";
} else { end; }
if(getmapmobs(.@spawn) == 0) {
mes "I see you have found the treasure ...";
next;
if(.@first == 1 ) { goto L_First; }
else if(.@second == 1 ) { goto L_Second; }
else if(.@third == 1 ) { goto L_Third; }
else if(.@rand > 3) { mes "I see that you did not get the sacred mark of the treasure..."; }
end;

L_First:
mes "Wow... You got the ultimate mark of the treasure ...";
next;
mes "I believe this is yours then...";
getitem 2862;
set zeny, zeny + 100000;
close;

L_Second:
mes "Wow... You got the legendary mark of the treasure ...";
next;
mes "I believe this is yours then...";
getitem 5682;
set zeny, zeny + 50000;
close;

L_Third:
mes "Wow... You got the holy mark of the treasure ...";
next;
mes "I believe this is yours then...";
set zeny, zeny + 20000;
close;

L_MDeath:
set .@rand, rand(1,15);
if(.@rand == 1) { set .@first,1; }
else if(.@rand == 2) { set .@second,1; }
else if(.@rand == 3) { set .@third,1; }
else if(.@rand > 3) { end; }
Edited by iFoxkun
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...