Jump to content
  • 0

Simbang Gabi Script like in PRO


Microsoft

Question


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  244
  • Reputation:   17
  • Joined:  11/19/11
  • Last Seen:  

Does anyone have a Simbang Gabi Script like in PRO? 

 

 

http://ragnarok.levelupgames.ph/main/simbang-gabi-event-2013/

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  173
  • Reputation:   0
  • Joined:  06/07/14
  • Last Seen:  

I think this is a good idea for christmas event :3

Edited by c2greentea
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

This script is made, and player is intended to get the item 1 per account (not per char. if you want to make it 1 item per char, then change all global variables (delete the # s) )

 

modify as intended:

1. NPC location

2. NPC sprite

3. prize (getitem sth)

4. Mass Script (what to do)

 

what does this script do?

someone pls help me fillin this section.

 

after the event ended, run this SQL script to cleanup:

DELETE FROM `global_reg_value` WHERE str = "$mass";
DELETE FROM `global_reg_value` WHERE str = "#masstoday";
DELETE FROM `global_reg_value` WHERE str = "#massjoined";

again, if 1 item per char, delete the #s

 

known bugs:

1. Server must be on 24/7. if server missed the onClock1800 and onClock1000, then mass will not be started.

-> alternate: whisp to npc:MassController  message: mass <on|off> to set it.

2. A player who has attended a mass on that period must logout first after 10 AM

 

Depending on the item, it may be tradable / not. the item mentioned on the page you gave is a custom item (i'm not making one.)

if you want to make a similar of it, you can copy the existing one and you can add flag: notrade nostorage to the item (refer: custom item) (not making as well)

 

 

please read the above lines before using  this script.\

 

-    script    MassController    -1,{
OnWhisperGlobal:
if (getgroupid() >= 5 ){
    if(@whispervar0$ == "mass on") {
        set $mass, 1;
        end;
    } else if (@whispervar0$ == "mass off") {
        set $mass, 0;
        end;
    } else { end; }

/*
Day 1: Dec 11, 2013 6PM to Dec 12, 2013 10AM
Day 2: Dec 12, 2013 6PM to Dec 13, 2013 10AM
Day 3: Dec 13, 2013 6PM to Dec 14, 2013 10AM
Day 4: Dec 14, 2013 6PM to Dec 15, 2013 10AM
Day 5: Dec 15, 2013 6PM to Dec 16, 2013 10AM
Day 6: Dec 16, 2013 6PM to Dec 17, 2013 10AM
Day 7: Dec 17, 2013 6PM to Dec 18, 2013 10AM
Day 8: Dec 18, 2013 6PM to Dec 19, 2013 10AM
Day 9: Dec 19, 2013 6PM to Dec 20, 2013 10AM
Day 10: Dec 20, 2013 6PM to Dec 21, 2013 10AM
Day 11: Dec 21, 2013 6PM to Dec 22, 2013 10AM
Day 12: Dec 22, 2013 6PM to Dec 23, 2013 10AM
Day 13: Dec 23, 2013 6PM to Dec 24, 2013 10AM
Day 14: Dec 24, 2013 6PM to Dec 25, 2013 10AM
*/
// if not 12月11日 ~ 12月25日
// means has not 12月11日 (6PM) OR is already 12月25日 (10AM)
// end

onInit:
if ((gettime(6)==12) && (gettime(5) >= 11) && gettime(5) <=25) {
    //enable mass
    onClock1800:
    set $mass,1;
    //disable mass
    onClock1000:
    set $mass,0;
    if (!(gettime(5) == 11)) query_sql("delete from `global_reg_value` where str = \"#masstoday\";");
    }
    end;
}

prontera,160,181,5    script    Ingacio    909,{

// giving the prize (on 12月25日 12.00 PM)
if (gettime(5) == 25) {
    if(gettime(3) > 10) {
        if(gettime(3) > 12) {
            if (!(#christmas_prize_taken)) {
                if (#massjoined == 14) {
                    mes "Merry Christmas!";
                    mes "As you joined the daily masses since 2 weeks ago,";
                    mes "Here's a little gift for you!";
                    getitem 501,1;
                    set #christmas_prize_taken, 1;
                    next;
                    }
                }
            }
        mes "Merry Christmas!";
        mes "Have a wonderful Christmas day!";
        emotion e_ok,0;
        close;
        }
    }
    
if (!((gettime(6)==12) && (gettime(5) >= 11) && gettime(5) <=25)) {
    mes "Welcome to Prontera Church.";
    mes "Please maintain quietness.";
    mes "Thank you.";
    close;
    }

if ($mass == 0) {
    mes "There are currently no mass right now.";
    mes "Please come back again later at ^FF00006 PM^000000";
    close;
    }

if (#masstoday == 1) {
    mes "Thank you for attending today\'s mass";
    mes "May God bless you";
    emotion e_ok,0;
    close;
    }

// here's the mass script. IDK what you want to do.


//mass end. record his attendance
set #masstoday, 1;
set #massjoined, #massjoined + 1;
}

 

 

ch.txt

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  54
  • Reputation:   1
  • Joined:  08/28/14
  • Last Seen:  

1 item per mass? do you have 1 item for 15days straight of attending the mass.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

1 item for 15days straight of attending the mass.


as the request is.

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