Jump to content
  • 0

Help to fix this script


MrKiinZ

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  04/03/12
  • Last Seen:  

Hi, can someone please check this script. It seems i can't make it work.

Im newbie on this scipting thing.

- script Fountain -1,{
OnWhisperGlobal:
if (getgmlevel() >= 65) goto admin;
 mes "Use this wisely!";
close;
admin:
 mes "[Fountain]";
 switch(select("Start Event:Not today")) {
case 1:
 next;
 mes "[Fountain]";
 mes "Ok then.";
 close2;
 goto L_announce;
case 2:
 next;
 mes "[Fountain]";
 mes "Bye...";
 close;
}
L_announce:
 announce "[Fountain Event] is about to start in Poring Market!",bc_blue;
 initnpctimer;
 end;
OnTimer10000:
 announce "Those who want to Join please proceed to the center of Poring Market! ",bc_blue;
 end;
OnTimer20000:
 announce "I will summon 100 Treasure Chests that contains cool items inside!",bc_blue;
 end;
OnTimer30000:
 announce "Last call to those who like to join!",bc_blue;
 end;
OnTimer40000:
 announce "Last 10 seconds.",bc_blue;
 end;
OnTimer45000:
 announce "Last 5 seconds.",bc_blue;
 end;
OnTimer46000:
 announce "Last 4 seconds.",bc_blue;
 end;
OnTimer47000:
 announce "Last 3 seconds.",bc_blue;
 end;
OnTimer48000:
 announce "Last 2 seconds.",bc_blue;
 end;
OnTimer49000:
 announce "Last 1 second.",bc_blue;
 end;
OnTimer50000:
 announce "Time's Up! Start summoning now!",bc_blue;
 end;
OnTimer51000:
 goto L_Start;
 end;
L_Start: areamonster "poring_w02",90,87,108,75,1798,100;
 killmonsterall "poring_w02","All";
 end;
}

Edited by Emistry
Please use [CODEBOX] or Attachments for long contents.
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  103
  • Reputation:   28
  • Joined:  09/20/12
  • Last Seen:  

this is what I see (Looking at your mapserver consol when loading script gives alot of detail.

script error on npc/custom/poring1.txt line 62
parse_callfunc: not enough arguments, expected ','
57 :   announce "Time's Up! Start summoning now!",bc_blue;
58 :   end;
59 : OnTimer51000:
60 :   goto L_Start;
61 :   end;
*   62 : L_Start: areamonster "poring_w02",90,87,108,75,1798,100';'
63 :   killmonsterall "poring_w02","All";
64 :   end;
65 : }

This is the function

areamonster "<map name>",<x1>,<y1>,<x2>,<y2>,"<name to show>",<mob id>,<amount>{,"<event label>"};

areamonster "poring_w02",90,87,108,75,"Some Name Here",1798,100;

you also have the script saying it is in prontera, but mapname says poring_w02

Also

Your killmonster all Portion takes effect immediately.

Also Your timer just keeps looping .

also your syntax for the header is wrong(this is the only thing I didnt fix for you)

//- script Fountain -1,{
//OnWhisperGlobal:
//if (getgmlevel() >= 65) goto admin;
//  mes "Use this wisely!";
//close;
prontera.gat,154,210,4	script	Breeze	111,{
if (getgmlevel() >= 65) goto admin;
mes "You feel A slight breeze";
close;
admin:
 mes "[Fountain]";
 switch(select("Start Event:Not today")) {
case 1:
 next;
 mes "[Fountain]";
 mes "Ok then.";
 close2;
 goto L_announce;
case 2:
 next;
 mes "[Fountain]";
 mes "Bye...";
 close;
}
L_announce:
 announce "[Fountain Event] is about to start in Poring Market!",bc_blue;
 initnpctimer;
 end;
OnTimer10000:
 announce "Those who want to Join please proceed to the center of Poring Market! ",bc_blue;
 end;
OnTimer20000:
 announce "I will summon 100 Treasure Chests that contains cool items inside!",bc_blue;
 end;
OnTimer30000:
 announce "Last call to those who like to join!",bc_blue;
 end;
OnTimer40000:
 announce "Last 10 seconds.",bc_blue;
 end;
OnTimer45000:
 announce "Last 5 seconds.",bc_blue;
 end;
OnTimer46000:
 announce "Last 4 seconds.",bc_blue;
 end;
OnTimer47000:
 announce "Last 3 seconds.",bc_blue;
 end;
OnTimer48000:
 announce "Last 2 seconds.",bc_blue;
 end;
OnTimer49000:
 announce "Last 1 second.",bc_blue;
 end;
OnTimer50000:
 announce "Time's Up! Start summoning now!",bc_blue;
 end;
OnTimer51000:
areamonster "poring_w02",90,87,108,75,"Some Name Here",1798,100;
 end;
OnTimer76000:
  announce "Hurry 50 seconds left! ",bc_blue;
 end;
OnTimer125000:
 killmonsterall "poring_w02","All";
stopnpctimer;
 end;
}

this version loads, summons at the right time, then gives users 75 seconds before killmonster is used, you need a timer before killmonster or they die immediately after spawning.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  04/03/12
  • Last Seen:  

Thank you.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  103
  • Reputation:   28
  • Joined:  09/20/12
  • Last Seen:  

unless you inteded them to spawn like they do, I would use

*monster "<map name>",<x>,<y>,"<name to show>",<mob id>,<amount>{,"<event label>"};

the current way they spawn is bunched in a small area where users just wack wildly

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