Jump to content

WillJocker

Members
  • Posts

    33
  • Joined

  • Last visited

Posts posted by WillJocker

  1. Hi guys, am I right? I need a healing NPC that walks around the map and has a delay of 40 seconds. In addition to healing, this NPC must also summon the "sanctuary" ability every 10 minutes at the coordinate he is at, and if possible interact with nearby players saying good morning, good afternoon or simply a Hi. Can you help me please? Thank you for time

  2. I started working on a script where the idea is for the player to be able to advertise their item in-game, and for someone else to see the catalog and be able to buy the item. However, I'm not able to make it work in relation to items with refinement, cards and the like. Can you help me, please?
    Here is the section that needs review and correction:

                setarray .@item_data_array$[0], explode(",", .@item_data$);
                set .@identify, atoi(.@item_data_array$[0]); // Identificado (1 ou 0)
                set .@refine, atoi(.@item_data_array$[1]); // Nível de refino
                set .@attribute, atoi(.@item_data_array$[2]); // Atributo (0 ou 1)
                set .@card1, atoi(.@item_data_array$[3]); // Card1
                set .@card2, atoi(.@item_data_array$[4]); // Card2
                set .@card3, atoi(.@item_data_array$[5]); // Card3
                set .@card4, atoi(.@item_data_array$[6]); // Card4
    
                // Devolve o item ao comprador com os dados completos
                getitem2 .@item_id, 1, .@identify, .@refine, .@attribute, .@card1, .@card2, .@card3, .@card4;

    error log:

    [Error]:
    script error on npc/testescrips/testez.txt line 49
        parse_line: expected ';'
        44 :                 mes "Preþo invßlido.";
        45 :                 close;
        46 :             }
        47 :
        48 :             // ObtÚm os dados completos do item (incluindo cartas, refino, etc.)
    *   49 :             set .@card1, getinventorycardid'('.@item_index, 0); // Card1
        50 :             set .@card2, getinventorycardid(.@item_index, 1); // Card2
        51 :             set .@card3, getinventorycardid(.@item_index, 2); // Card3
        52 :             set .@card4, getinventorycardid(.@item_index, 3); // Card4
        53 :             set .@refine, getinventoryrefinerycnt(.@item_index); // Refino
        54 :             set .@identify, getinventoryidentify(.@item_index); // Identificado (1 ou 0)

    image.thumb.png.eaeb9c6b2d1a051acd323a19d7eba0a5.png

  3. Hello everyone! I would like some help to make a small change to the CR_ACIDDEMONSTRATION skill, where if the player is ready, a custom item would be charged to execute the skill. On other maps, the 2 normal items (Acid Flask and Greek Fire Flask) would continue to be required. However, I was unable to find a way to change this condition within the skill.cpp in the src-map. Can you help me, please?

    I tried to add a new call, on line 13631 (before case AM_DEMONSTRATION:) but without success either. It seems that the system did not read the code that I put after it. Can you please tell me where I can change it to make this work? If you can provide the code, great, but if you can't, that's okay, I'll keep trying ❤️

  4. 2 hours ago, rokimoki said:

    Ok I will check that.

    @rokimoki

     

    Another situation that occurs is that the icon counts the time logged in. It should count the time of the event, even if the character is offline, because if he logs out and logs in hours later, the icon will still be there.

  5. On 1/29/2025 at 7:58 PM, rokimoki said:

    Why don't instead doing random just give 1st of 10, then 2nd of 10, and so? when 10th of 10, reset to 1st of 10. Easier to implement without weird stuff, how much items you want to implement? 

    Thanks for the answer, I managed to solve this one ❤️ thanks!

  6. 15 hours ago, rokimoki said:

    Yes it does, but maybe the variable is misstyped.

    Check line 265: set CHEFFENIAPOINT, CHEFFENIAPOINT + 1;

    the last update error:

    image.png.f31368b8d279677509e7c5d9294fbf5c.png

    @rokimoki

    I'm thinking about the same as the item to remove or delay, or npc is not consuming the item to delay... could I add to consume both the main item and the item to delay in case the player wants to repeat the event before the time, please?

  7. On 1/31/2025 at 6:50 PM, rokimoki said:

    For me works perfectly and server don't crash. I fixed a bug in this version, but, for me works neat, I can show another video if you want. Check icon type and client versions.

    PS: Post server errors when crashing or more info.

    bossnia_new.txt 21.93 kB · 2 downloads

    @rokimokinice, 

    I think all that's missing is to score tower points for the player to be able to use them in the store, or is it already there? I didn't find anything related to set points in the NPC

  8. 22 hours ago, rokimoki said:

    Ok @WillJocker this is the final version, test it please.

    - The npc gives the info of timing left before enter again, (only if activated the npc of course).

    - Now shows an icon with the duration of the 3 hours, but, you must configure a new icon in client and server side, I can't help you with this, because I don't even know how to, so you may ask for help in client and I hope some one can helps. Why? Because I can only show a icon that is already in the client, because it gets info from client when you pass the mouse arrow hover the icon.

    bossnia_new.txt 21.71 kB · 1 download

    @rokimoki

    I think I discovered a little problem. If the person has the icon and relogs, the server crashes and it takes about 2 minutes for the person to be able to click

  9. 1 hour ago, rokimoki said:

    Okay lets see, I will upload this version I'm using in this video, tell me if something wrong: @WillJocker

    https://www.youtube.com/watch?v=huv8n9KlAkU

    EDIT: It's working even the rare item drop and rate configuration... Duplicate scripts will break the NPC, maybe there is a solution but, just keep it simple.

     

    bossnia_new.txt 20.77 kB · 0 downloads

    @rokimoki

    Very good! I tested @ctime and the ranking and they are working perfectly ❤️ Did you get the icon on the side, please?

    When the player is in Delay, is it possible to also show it on the NPC, please?

  10. 10 minutes ago, rokimoki said:

    I am sorry remaining time when its done. I will review again, the system is not simple because Timer stuff as you can see can cause problems. You can think on solutions that make the system easier or just wait, during the week I have less time to work on this, but don't worry, this week will be finished or abandoned xd.

    No rush, thanks for now <3, I'll wait

  11. Hello!
    How are you?
    Is it possible for a BOX system (being a random item) to not see repeated items? For example, in the box there are 10 items, will I only be able to repeat the items I picked up after I pick up all 10 in a unique way?

  12. 7 hours ago, rokimoki said:

    The custom timer being full xd Idk that, I'll look into it, it didnt happen to me.

    The % drop, ok, i'll look into it.

    The VIP system.. I mean, I don't even know if that really works, but the delay as for now, can be used by anyone who has it.

    EDIT:
    - The icon is not going to show for now, and I won't try until everything is finished.
    - Some how, when I kill also triggers like 8 times for me, idk why.... investigating...

    EDIT2:

    The 8 times triggering issue is because duplicates I bet, and timers events, will work with just 1 npc for now.

    Edit3:

    Try this new version, I think it's almost done.  @WillJocker

    bossnia_new.txt 20.77 kB · 0 downloads

    @rokimoki

    @ctime has stopped working
    It is not adding any mob eliminations to the database

    When it is on delay, can you tell me the remaining time please?

  13. 10 hours ago, rokimoki said:

    Okay, is not finished yet, but I need you to keep testing while I finish the final version.

    For now implemented:
    - Timer cooldown, kick after 3 hours (Tested)
    - If you have item, ignores the cooldown (I can't test this and vip because I don't have the items)
    - You gain points (CHEFFENIAPOINT) by killing mvps (Not implemted, I forgot)
    - You get kill counts by killing mvps (Not tested)
    - You should see a simple ladder (Not tested)
    - You can use @ctime to check your time left (Tested)
    - You get rare item while killing MVP (Not tested and is not fully implemented yet, but you should get something at 5%)

    To do:
    - Ladder system but good, I can't show personal points I think, but I can show total count kills and which one killed, but I'll finish tomorrow.
    - Some optimizations maybe or refactoring, which meh, only need to adjust the timer check to 1 minute instead 1 second.

    I need you to test those things and report me back please. @WillJocker

    EDIT: Check OnInit configurations, I think you should not edit by now.

     

    bossnia_new.txt 19.61 kB · 0 downloads

    Hi!

    @rokimoki

    1. - MapServer Error:

    image.thumb.png.3ba12e4b9fc93ee6feb7de993fb2dd7a.pngimage.png.470a6ff458e0854a2f5caa75ed158341.png

    2. Icon does not appear 

    image.png.bf9f02281dcc4dd1311e82ce378fee8e.png

    3. If the player accessed the event once, left the room and tries to return, the NPC charges for the items again (he shouldn't charge again, as he has 3 hours to enjoy it)

    4. The elimination count is adding up wrong, it's not adding up 1 elimination, it's adding up several of each mob

    for example, mob ID 1190 added 6 eliminations instead of 1

    image.png.fdd53fe4e1e8ab8479fc0463cc5bea50.png

    5. The drop item list is not working, I tested several % and did not get any items in the eliminations

     

    - obs:

    The item to remove Delay can be used by all players, not just VIP, is that right? I haven't been able to test it yet

  14. Hello everyone! Good evening! Can you help me please? I need a quest NPC that has the following situation: in the first dialogue this NPC asks to deliver to him 10x YGG and 10x Red Potion, only after this delivery the NPC releases two options, both being Quests.

    Menu 1: requests 10 YGG and 1 GTB letter and delivers 1 custom item ID 18200

    Menu 2: requests 10 YGG, 10 red potions and 10 gold delivers 1 custom item ID 18201.

    @rokimoki help pls

  15. 8 minutes ago, rokimoki said:

    Hi, good. Before start, one more question, in the step 3, you say 1-day delay, so... If I have 20001 item, I can enter always, 3 hours kick me, I go again pay the fee and join, but if I don't have 20001, just 1 run per day, right?

    I don't know the fake icon system, but I've seen other temporary maps that creates a personalized new @command to check time left (everything inside the script).

    @rokimoki yees!

    This restriction (delay) must be per Account

    Showing the time in icon form would be wonderful.Thanks for now ❤️

    Within the Ranking, could you add it this way?
    ex: Player - X points
    rokimoki - 100 points
    clicking on the user, goes to the details, in these details it shows for example: rokimoki eliminated 2 freooni, 2 baphomet, 2 thief beetle, among others
    if it is not possible, that's fine, just showing the points is already very good 😄

     

    obs:

    remembering that this ranking only counts mvps within the maps of this event

    bossnia_01
    bossnia_02
    bossnia_03
    bossnia_04

  16. 4 hours ago, rokimoki said:

    I will try to help but... I don't know much about this event, so to avoid reading everything and figure out some possible issues, answer me please.

    1) Time to start and end the event automatically 
    When to when? fixed time? random? think, easier the better

    2) Every time someone eliminates an MVP, it counts as a Cheffenia point, e.g.: CHEFFENIAPOINT, then I will create a store with these points
    Like character variable or item? set CHEFFENIAPOINT, CHEFFENIAPOINT + 1 ??

    3) Time limit to stay inside the Room of 3 hours, being able to reduce this time if you have a specific item ID 20001

    You have 3 hours reserved, but, reduce if you get 20001? how much? how do you get the item?

    4) 5% chance to grant a random item (ID: 607 and 20000) to the player's entire party and announce it on the Map
    5% to get 50% 607 or 50% 20000 ?? and how? killing what?

    5) Would it be possible to have a ranking of the top 10 players?
    Ok but I will create a new table probabbly, easier for me, I did some mvp rank so, will be easy this part.

    @rokimoki

     

    First of all, thanks for answering ❤️
    Let's go!

    1) The event must take place on Saturday and Sunday, from 10:00 am to 5:00 pm

    2) Character Variable, as used in "MVP Rankings")

    3) Add a 1-day delay to access the event again, however, having the item ID: 20001 in the inventory, the NPC would allow re-entering the room, without the need for this delay. Note: It is important to limit the player's time in this room. Which would be 3 hours, the player staying 3 hours in this map will automatically be transported to Prontera, and the system should tell him that he used the time in the room.
    Note 2: Using the "Fake Icon" system, is it possible to show in the corner of the screen as if it were a "buff" the player's current time in the room? It would be much more dynamic

    4) By defeating any MVP within this event
    There would be a 5% chance to obtain the item ID 607
    and a 2% chance to obtain the item ID 20001

    5) Nice. The count should be using only MVP eliminations within that map

  17. Hi 🙂

    Can you help me please? I would like to make a change to this beautiful script, which would be: to summon an mvp it would cost 2 coins ID 607 and to summon a mini boss it would cost 1 coin same ID. Can you help me please?

    //===== rAthena Script =======================================
    //= Private MVP & Branch Room
    //===== By: ==================================================
    //= AnnieRuru
    //===== Current Version: =====================================
    //= 1.0
    //===== Compatible With: =====================================
    //= rAthena Project
    //===== Description: =========================================
    //= Allows players to rent an MVP room for personal use,
    //= or for a party or guild.
    //===== Additional Comments: =================================
    //= 1.0 First version, edited. [Euphy]
    //============================================================
    
    prontera,148,174,5	script	Private MVP Room	100,{
    	mes "[Private MVP Room]";
    	mes "Please select a private MVP room.";
    	if ( getvariableofnpc( .rentcost, "MVP Summoner" ) )
    		mes "The cost to rent a room for "+ getvariableofnpc( .timeout, "MVP Summoner" ) +" minutes is "+ callfunc("F_InsertComma", getvariableofnpc( .rentcost, "MVP Summoner" ) ) +" zeny.";
    	else
    		mes "You can only use the room for only "+ getvariableofnpc( .timeout, "MVP Summoner" ) +" minutes.";
    	mes " ";
    	for ( .@i = 1; .@i <= 8; .@i++ )
    		if ( getvariableofnpc( .renttime[.@i], "MVP Summoner" ) )
    			mes "Room #"+ .@i +" = "+ .color$[ .type[.@i] ] + .whoinuse$[.@i] +"^000000";
    	next;
    	.@room = select(
    		"MVP Room 1 ["+ getmapusers("06guild_01") +"]",
    		"MVP Room 2 ["+ getmapusers("06guild_02") +"]",
    		"MVP Room 3 ["+ getmapusers("06guild_03") +"]",
    		"MVP Room 4 ["+ getmapusers("06guild_04") +"]",
    		"MVP Room 5 ["+ getmapusers("06guild_05") +"]",
    		"MVP Room 6 ["+ getmapusers("06guild_06") +"]",
    		"MVP Room 7 ["+ getmapusers("06guild_07") +"]",
    		"MVP Room 8 ["+ getmapusers("06guild_08") +"]");
    	if ( getvariableofnpc( .renttime[.@room], "MVP Summoner" ) ) {
    		if ( .inuseid[.@room] == getcharid( .type[.@room] ) ) {
    			warp "06guild_0"+ .@room, 0,0;
    			close;
    		} else {
    			mes "[Private MVP Room]";
    			mes "This room is reserved for ";
    			mes .color$[ .type[.@room] ] + .whoinuse$[.@room] +"^000000.";
    			mes "Please select another.";
    			close;
    		}
    	}
    	mes "[Private MVP Room]";
    	mes "Reserve this room for...";
    	next;
    	set .@type, select( "For my party members", "For my guild members", "For personal account use" );
    	if ( !getcharid(.@type) ) {
    		mes "[Private MVP Room]";
    		mes "You do not own a "+( ( .@type == 1 )? "Party" : "Guild" )+".";
    		close;
    	}
    	else if ( Zeny < getvariableofnpc( .rentcost, "MVP Summoner" ) ) {
    		mes "You don't have enough zeny to rent a room.";
    		close;
    	}
    	else if ( getvariableofnpc( .renttime[.@room], "MVP Summoner" ) ) {
    		mes "[Private MVP Room]";
    		mes "I'm sorry, somebody else has already registered this room faster than you.";
    		close;
    	}
    	for ( .@i = 1; .@i <= 8; .@i++ ) {
    		if ( ( getvariableofnpc( .renttime[.@i], "MVP Summoner" ) ) && .@type == .type[.@i] && getcharid(.@type) == .inuseid[.@i] ) {
    			mes "[Private MVP Room]";
    			mes "You already rented Room#"+ .@i +". Use that room instead.";
    			close;
    		}
    	}
    	set .type[.@room], .@type;
    	set .inuseid[.@room], getcharid(.@type);
    	set .whoinuse$[.@room], strcharinfo( ( .@type == 3 )? 0 : .@type );
    	Zeny -= getvariableofnpc( .rentcost, "MVP Summoner" );
    	warp "06guild_0"+ .@room, 0,0;
    	killmonsterall "06guild_0"+ .@room;
    	donpcevent "MVP Summoner#"+ .@room +"::OnEnterMap";
    	close;
    OnInit:
    	.color$[1] =  "^EE8800"; // party color
    	.color$[2] =  "^70CC11"; // guild color
    	.color$[3] =  "^0000FF"; // account color
    	end;
    }
    
    -	script	MVP Summoner	-1,{
    	mes "[MVP Summoner]";
    	mes "Time left: " + callfunc( "Time2Str", .renttime[ atoi( strnpcinfo(2) ) ] + .timeout * 60 );
    	mes "Hi, what can I do for you?";
    	next;
    	switch ( select(.menu$) ) {
    	case 1:
    		mes "[MVP Summoner]";
    		if ( mobcount( "this", strnpcinfo(3)+"::OnMobDead" ) ) {
    			mes "I cannot offer heal service when there are monsters around.";
    			close;
    		}
    		sc_end SC_STONE;
    		sc_end SC_SLOWDOWN;
    		sc_end SC_FREEZE;
    		sc_end SC_SLEEP;
    		sc_end SC_CURSE;
    		sc_end SC_SILENCE;
    		sc_end SC_CONFUSION;
    		sc_end SC_BLIND;
    		sc_end SC_BLEEDING;
    		sc_end SC_DECREASEAGI;
    		sc_end SC_POISON;
    		sc_end SC_HALLUCINATION;
    		sc_end SC_STRIPWEAPON;
    		sc_end SC_STRIPARMOR;
    		sc_end SC_STRIPHELM;
    		sc_end SC_STRIPSHIELD;
    		sc_end SC_CHANGEUNDEAD;
    		sc_end SC_ORCISH;
    		sc_end SC_BERSERK;
    		sc_end SC_SKE;
    		sc_end SC_SWOO;
    		sc_end SC_SKA;
    		percentheal 100,100;
    		specialeffect2 EF_HEAL;
    		mes "You are completely healed.";
    		close;
    	case 2:
    		if ( mobcount( "this", strnpcinfo(3)+"::OnMobDead" ) ) {
    			mes "[MVP Summoner]";
    			mes "I cannot summon another MVP when there are monsters around.";
    			close;
    		} else if ( .mvpcost ) {
    			mes "[MVP Summoner]";
    			mes "The cost to summon an MVP is "+ callfunc( "F_InsertComma", .mvpcost ) +" zeny.";
    			next;
    			set .@menu, select(.mvpid_menu$) -1;
    			mes "[MVP Summoner]";
    			if ( Zeny < .mvpcost ) {
    				mes "You don't have enough zeny to summon an MVP.";
    				close;
    			}
    		} else {
    			set .@menu, select(.mvpid_menu$) -1;
    			mes "[MVP Summoner]";
    		}
    		mes "Please get ready.";
    		close2;
    		if ( Zeny < .mvpcost ) end;
    		Zeny -= .mvpcost;
    		monster "this", 0, 0, "--ja--", .mvpid[.@menu], 1, strnpcinfo(3)+"::OnMobDead";
    		end;
    	case 3:
    		if ( mobcount( "this", strnpcinfo(3)+"::OnMobDead" ) ) {
    			mes "[MVP Summoner]";
    			mes "I cannot summon another mini-boss when there are monsters around.";
    			close;
    		} else if ( .bosscost ) {
    			mes "[MVP Summoner]";
    			mes "The cost to summon a mini-boss is "+ callfunc( "F_InsertComma", .bosscost ) +" zeny.";
    			next;
    			set .@menu, select(.bossid_menu$) -1;
    			mes "[MVP Summoner]";
    			if ( Zeny < .bosscost ) {
    				mes "You doesn't have enough zeny to summon a mini-boss.";
    				close;
    			}
    		} else {
    			set .@menu, select(.bossid_menu$) -1;
    			mes "[MVP Summoner]";
    		}
    		mes "Please get ready.";
    		close2;
    		if ( Zeny < .bosscost ) end;
    		Zeny -= .bosscost;
    		monster "this", 0, 0, "--ja--", .bossid[.@menu], 1, strnpcinfo(3)+"::OnMobDead";
    		end;
    	case 4:
    		if ( mobcount( "this", strnpcinfo(3)+"::OnMobDead" ) > 0 ) {
    			mes "[MVP Summoner]";
    			mes "I cannot offer this service when there are monsters around.";
    			close;
    		}
    		close2;
    		callshop "MVP room#branch", 1;
    		end;
    	case 5:
    		mes "[MVP Summoner]";
    		mes "Are you sure you want to leave this room?";
    		next;
    		if ( select( "Yes:No") == 1 )
    			warp .respawnmap$, .respawnx, .respawny;
    		close;
    	case 6:
    		mes "[MVP Summoner]";
    		if ( getmapusers( strcharinfo(3) ) > 1 ) {
    			mes "There are still some players in this room. Make sure you are the last member in this room to use this option.";
    			close;
    		}
    		mes "Are you sure you want to give up this room?";
    		if ( .rentcost )
    			mes "You will need to pay again to enter this room.";
    		next;
    		if ( select( "Yes", "No" ) == 2 ) close;
    		awake strnpcinfo(0);
    		end;
    	}
    	close;
    
    OnMobDead:
    	end;
    
    OnEnterMap:
    	.@id = atoi( strnpcinfo(2) );
    	.renttime[.@id] = gettimetick(2);
    	sleep .timeout * 60000;
    	mapwarp strnpcinfo(4), .respawnmap$, .respawnx, .respawny;
    	.renttime[.@id] = 0;
    	killmonsterall strnpcinfo(4);
    	end;
    
    OnInit:
    	if ( !getstrlen( strnpcinfo(2) ) ) {
    
    //	Config ---------------------------------------------------------------------------------------
    
    	// Room rental time, in minutes.
    	// When time runs out, all players inside the room will be kicked out.
    	// Do NOT set this to zero!
    	set .timeout, 60;
    
    	set .rentcost, 100000;	// Zeny cost for renting a room (0 = free)
    	set .mvpcost, 100000;	// Zeny cost to summon an MVP (0 = free)
    	set .bosscost, 50000;	// Zeny cost to summon a boss monster (0 = free)
    
    	//	Options setting inside MVP room
    	set .@menu[1], 1;	// Turn Heal option On/Off
    	set .@menu[2], 1;	// Turn MVP Summoning On/Off
    	set .@menu[3], 1;	// Turn Mini boss Summoning On/Off
    	set .@menu[4], 0;	// Sell items (branches) On/Off (see shop below, before the mapflags)
    
    	// Respawn point when players leave the room
    	set .respawnmap$, "prontera";
    	set .respawnx, 150;
    	set .respawny, 174;
    
    	setarray .mvpid[0],
    		1511,//	Amon Ra
    		1647,// Assassin Cross Eremes
    		1785,//	Atroce
    		1630,//	Bacsojin
    		1039,//	Baphomet
    		1874,//	Beelzebub
    		1272,//	Dark Lord
    		1719,//	Datale
    		1046,//	Doppelgangger
    		1389,//	Dracula
    		1112,//	Drake
    		1115,//	Eddga
    		1418,//	Evil Snake Lord
    		1871,//	Fallen Bishop
    		1252,//	Garm
    		1768,//	Gloom Under Night
    		1086,//	Golden Thief Bug
    		1885,//	Gopinich
    		1649,// High Priest Magaleta
    		1651,// High Wizard Katrinn
    		1832,//	Ifrit
    		1492,//	Incantation Samurai
    		1734,//	Kiel D-01
    		1251,//	Knight of Windstorm
    		1779,//	Ktullanux
    		1688,//	Lady Tanee
    		1646,// Lord Knight Seyren
    		1373,//	Lord of Death
    		1147,//	Maya
    		1059,//	Mistress
    		1150,//	Moonlight Flower
    		1087,//	Orc Hero
    		1190,//	Orc Lord
    		1038,//	Osiris
    		1157,//	Pharaoh
    		1159,//	Phreeoni
    		1623,//	RSX 0806
    		1650,// Sniper Shecil
    		1583,//	Tao Gunka
    		1708,//	Thanatos
    		1312,//	Turtle General
    		1751,//	Valkyrie Randgris
    		1685,// Vesper
    		1648,// Whitesmith Harword
    		1917,// Wounded Morocc
    		1658;//	Ygnizem
    
    	setarray .bossid[0],
    		1096,// Angeling
    		1388,// Archangeling
    		1795,// Bloody Knight
    		1830,// Bow Guardian
    		1839,// Byorgue
    		1309,// Cat O' Nine Tail
    		1283,// Chimera
    		1302,// Dark Illusion
    		1198,// Dark Priest
    		1582,// Deviling
    		1091,// Dragon Fly
    		1093,// Eclipse
    		1205,// Executioner
    		1783,// Galion
    		1592,// Gangster
    		1120,// Ghostring
    		1259,// Gryphon
    		1720,// Hydro
    		1090,// Mastering
    		1289,// Maya Purple
    		1262,// Mutant Dragon
    		1203,// Mysteltainn
    		1870,// Necromancer
    		1295,// Owl Baron
    		1829,// Sword Guardian
    		1204,// Tirfing
    		1089,// Toad
    		1092,// Vagabond Wolf
    		1765;// Valkyrie
    
    //	Config Ends ------------------------------------------------------------------------
    
    		if ( !.timeout ) set .timeout, 60;
    		.menu$ = ( .@menu[1] ? "Heal" : "" ) +":" ;
    		.menu$ = .menu$ + ( .@menu[2] ? "Summon MVP" : "" ) +":";
    		.menu$ = .menu$ + ( .@menu[3] ? "Summon Mini-boss" : "" ) +":";
    		.menu$ = .menu$ + ( .@menu[4] ? "Buy branches" : "" ) +":";
    		.menu$ = .menu$ + "Leave this room:Give up this room";
    		if ( .@menu[2] ) {
    			.@size = getarraysize( .mvpid );
    			for ( .@i = 0; .@i < .@size; .@i++ )
    				.mvpid_menu$ = .mvpid_menu$ + getmonsterinfo( .mvpid[.@i], MOB_NAME ) +":";
    		}
    		if ( .@menu[3] ) {
    			.@size = getarraysize( .bossid );
    			for ( .@i = 0; .@i < .@size; .@i++ )
    				.bossid_menu$ = .bossid_menu$ + getmonsterinfo( .bossid[.@i], MOB_NAME ) +":";
    		}
    	}
    	else {
    		mapannounce strnpcinfo(4), "An administrator has refreshed the server. Please re-register this room.", bc_map;
    		mapwarp strnpcinfo(4), .respawnmap$, .respawnx, .respawny;
    	}
    	end;
    }
    
    -	shop	MVP room#branch	-1,604:100000,12103:1000000
    
    06guild_01,49,49,4	duplicate(MVP Summoner)	MVP Summoner#1	116
    06guild_02,49,49,4	duplicate(MVP Summoner)	MVP Summoner#2	116
    06guild_03,49,49,4	duplicate(MVP Summoner)	MVP Summoner#3	116
    06guild_04,49,49,4	duplicate(MVP Summoner)	MVP Summoner#4	116
    06guild_05,49,49,4	duplicate(MVP Summoner)	MVP Summoner#5	116
    06guild_06,49,49,4	duplicate(MVP Summoner)	MVP Summoner#6	116
    06guild_07,49,49,4	duplicate(MVP Summoner)	MVP Summoner#7	116
    06guild_08,49,49,4	duplicate(MVP Summoner)	MVP Summoner#8	116
    
    06guild_01	mapflag	nowarpto
    06guild_02	mapflag	nowarpto
    06guild_03	mapflag	nowarpto
    06guild_04	mapflag	nowarpto
    06guild_05	mapflag	nowarpto
    06guild_06	mapflag	nowarpto
    06guild_07	mapflag	nowarpto
    06guild_08	mapflag	nowarpto
    06guild_01	mapflag	nomemo
    06guild_02	mapflag	nomemo
    06guild_03	mapflag	nomemo
    06guild_04	mapflag	nomemo
    06guild_05	mapflag	nomemo
    06guild_06	mapflag	nomemo
    06guild_07	mapflag	nomemo
    06guild_08	mapflag	nomemo
    06guild_01	mapflag	noteleport
    06guild_02	mapflag	noteleport
    06guild_03	mapflag	noteleport
    06guild_04	mapflag	noteleport
    06guild_05	mapflag	noteleport
    06guild_06	mapflag	noteleport
    06guild_07	mapflag	noteleport
    06guild_08	mapflag	noteleport
    06guild_01	mapflag	nosave	SavePoint
    06guild_02	mapflag	nosave	SavePoint
    06guild_03	mapflag	nosave	SavePoint
    06guild_04	mapflag	nosave	SavePoint
    06guild_05	mapflag	nosave	SavePoint
    06guild_06	mapflag	nosave	SavePoint
    06guild_07	mapflag	nosave	SavePoint
    06guild_08	mapflag	nosave	SavePoint
    06guild_01	mapflag	nopenalty
    06guild_02	mapflag	nopenalty
    06guild_03	mapflag	nopenalty
    06guild_04	mapflag	nopenalty
    06guild_05	mapflag	nopenalty
    06guild_06	mapflag	nopenalty
    06guild_07	mapflag	nopenalty
    06guild_08	mapflag	nopenalty

     

  18. Hello guys! how are you?

     

    Can you help me please? I would like to add 5 functions to the system below, which would be:

    1) Time to start and end the event automatically

    2) Every time someone eliminates an MVP, it counts as a Cheffenia point, e.g.: CHEFFENIAPOINT, then I will create a store with these points

    3) Time limit to stay inside the Room of 3 hours, being able to reduce this time if you have a specific item ID 20001

    4) 5% chance to grant a random item (ID: 607 and 20000) to the player's entire party and announce it on the Map

    5) Would it be possible to have a ranking of the top 10 players?

     

    SCRIPT: 

    //===== rAthena Script ======================================= 
    //= Bossnia Warp NPCs
    //===== By: ================================================== 
    //= Masao
    //===== Current Version: ===================================== 
    //= 1.3
    //===== Compatible With: ===================================== 
    //= rAthena Project
    //===== Description: ========================================= 
    //= Bossnia MVP event.
    //===== Additional Comments: ================================= 
    //= 1.0 Converted from the official script.
    //= 1.1 Optimized. [Euphy]
    //= 1.2 Moved spawns and warps (by Masao) to this file. [Euphy]
    //= 1.3 Added VIP features. [Euphy]
    //============================================================ 
    
    // Entrance NPCs
    //============================================================
    prontera,132,125,4	script	Bossnia Staff#1	908,{
    	mes "[Riss]";
    	mes "Hello?";
    	mes "I found some beautiful places";
    	mes "while I travelled all over the world.";
    	mes "I am an adventurer.";
    	mes "Haha~";
    	next;
    	mes "[Riss]";
    	mes "What? My name is...";
    	mes "'Bossnia Staff'?? No no...";
    	mes "Well, my name is not so important.";
    	mes "Sometimes you should be generous.";
    	mes "No time for considering that kind of small stuff";
    	mes "when you have to concentrate on more important things.";
    	next;
    	mes "[Riss]";
    	mes "Hum... anyway I want to say... something..";
    	mes "While I was travelling through some places,";
    	mes "I found a really fearful place.";
    	next;
    	mes "[Riss]";
    	mes "Most of the time when you come to a place,";
    	mes "there is one strong and fearful monster.";
    	mes "Isn't it?";
    	next;
    	mes "[Riss]";
    	mes "But... but... in there...";
    	mes "There are lots of fearful and strong monsters in there...";
    	mes "That was really frightful.";
    	next;
    	mes "[Riss]";
    	mes "If I had reacted a bit later... a few seconds...";
    	mes "I might have been killed.";
    	next;
    	mes "[Riss]";
    	mes "What?";
    	mes "You want to go in there?";
    	mes "Oh~ Boy~ you didn't get me.";
    	mes "In there.......";
    	next;
    	mes "[Riss]";
    	mes "Uh... you already know?";
    	mes "Although you know the place, you want to go in...";
    	mes "Good, I will send you there.";
    	mes "But after you went there, don't hold";
    
    	// If the VIP system is enabled, players pay a Reset Stone for 5 entrances (with a choice of warps).
    	// If it's disabled, players pay 5,000z per entrance.
    	if (VIP_SCRIPT) {
    		mes "a grudge against me. It'll cost you 1 Reset Stone for 5 access.";
    		next;
    		mes "[Riss]";
    		if (bossnia_event > 0) {
    			set .@type,1;
    			mes "Remaining access: "+bossnia_event;
    		} else if (countitem(6320)) {
    			set .@type,2;
    			mes "Do you want to go?";
    		} else {
    			mes "You don't have a ticket now.....";
    			mes "So come to me again with a Reset Stone later.";
    			close;
    		}
    		next;
    		if(select("Enter:Leave") == 2)
    			close;
    		set .@i, select("First:Second:Third:Fourth");
    		switch(select("Warp 1:Warp 2:Warp 3:Warp 4")) {
    			case 1: set .@x,31; set .@y,208; break;
    			case 2: set .@x,31; set .@y,31; break;
    			case 3: set .@x,208; set .@y,31; break;
    			case 4: set .@x,208; set .@y,208; break;
    		}
    		if (.@type == 1)
    			set bossnia_event, bossnia_event-1;
    		else {
    			delitem 6320,1; //Premium_Reset_Stone
    			set bossnia_event,4;
    		}
    		specialeffect2 EF_MAXPOWER;
    		warp "bossnia_0"+.@i,.@x,.@y;
    		close;
    	} else {
    		mes "a grudge against me. Also it costs 5,000 zeny.";
    		next;
    		if( countitem( 607 ) >= 10 ){
    			mes "[Riss]";
    			mes "Would you really like to take the challenge?";
    			mes "Ok, just choose the course.";
    			next;
    			set .@i, select("First:Second:Third:Fourth");
    			mes "[Riss]";
    			mes "Take care, boy~";
    			mes "Don't hold a grudge against me.";
    			close2;
    			delitem 607,10;
    			warp "bossnia_0"+.@i,rand(202,204),rand(202,204);
    			end;
    		} else {
    			mes "[Riss]";
    			mes "You don't have enough money...";
    			mes "Come back when you have at least 5,000 zeny.";
    			close;
    		}
    	}
    }
    geffen,124,169,4	duplicate(Bossnia Staff#1)	Bossnia Staff#2	908
    payon,165,150,4	duplicate(Bossnia Staff#1)	Bossnia Staff#3	908
    morocc,142,100,4	duplicate(Bossnia Staff#1)	Bossnia Staff#4	908
    lighthalzen,203,140,4	duplicate(Bossnia Staff#1)	Bossnia Staff#5	908
    rachel,132,144,4	duplicate(Bossnia Staff#1)	Bossnia Staff#6	908
    
    // Warp Portals
    //============================================================
    bossnia_01,204,204,0	warp	bossnia01	1,1,prontera,155,180
    bossnia_02,204,204,0	warp	bossnia02	1,1,prontera,155,180
    bossnia_03,204,204,0	warp	bossnia03	1,1,prontera,155,180
    bossnia_04,204,204,0	warp	bossnia04	1,1,prontera,155,180
    
    // Monster Spawns
    //============================================================
    
    //----------------------------------------------------------------------------
    // bossnia_01 - Bossnia
    //----------------------------------------------------------------------------
    bossnia_01,0,0	monster	Garm	1252,5,7200000
    bossnia_01,0,0	monster	Gloom Under Night	1768,2,7200000
    bossnia_01,0,0	monster	Dark Lord	1272,3,7200000
    bossnia_01,0,0	monster	Doppelganger	1046,10,7200000
    bossnia_01,0,0	monster	Dracula	1389,5,1800000
    bossnia_01,0,0	monster	Drake	1112,10,1800000
    bossnia_01,0,0	monster	Detale	1719,2,7200000
    bossnia_01,0,0	monster	Maya	1147,10,1800000
    bossnia_01,0,0	monster	Mistress	1059,1,1800000
    //bossnia_01,0,0	monster	Baphomet	1039,10,1800000
    bossnia_01,0,0	monster	Egnigem Cenia	1658,10,1800000
    bossnia_01,0,0	monster	Amon Ra	1511,1,1800000
    bossnia_01,0,0	monster	Atroce	1785,10,1800000
    bossnia_01,0,0	monster	Vesper	1685,2,7200000
    bossnia_01,0,0	monster	Eddga	1115,1,1800000
    bossnia_01,0,0	monster	Osiris	1038,10,7200000
    bossnia_01,0,0	monster	Orc Lord	1190,10,7200000
    bossnia_01,0,0	monster	Orc Hero	1087,2,1800000
    bossnia_01,0,0	monster	Samurai Specter	1492,1,3600000
    bossnia_01,0,0	monster	Moonlight Flower	1150,1,3600000
    bossnia_01,0,0	monster	Lord of the Dead	1373,1,3600000
    bossnia_01,0,0	monster	Ktullanux	1779,2,7200000
    bossnia_01,0,0	monster	Kiel D-01	1734,2,7200000
    bossnia_01,0,0	monster	Thanatos Phantom	1708,2,7200000
    bossnia_01,0,0	monster	Lady Tanee	1688,1,3600000
    bossnia_01,0,0	monster	Tao Gunka	1583,1,3600000
    bossnia_01,0,0	monster	Turtle General	1312,10,7200000
    bossnia_01,0,0	monster	Pharaoh	1157,2,3600000
    bossnia_01,0,0	monster	Stormy Knight	1251,2,3600000
    bossnia_01,0,0	monster	Falling Bishop	1871,5,7200000
    bossnia_01,0,0	monster	Phreeoni	1159,10,7200000
    bossnia_01,0,0	monster	Golden Thief Bug	1086,10,3600000
    bossnia_01,0,0	monster	Evil Snake Lord	1418,10,7200000
    bossnia_01,0,0	monster	RSX-0806	1623,5,7200000
    bossnia_01,0,0	monster	Assassin Cross Eremes	1647,1
    bossnia_01,137,118,1,1	monster	Whitesmith Howard	1648,1
    bossnia_01,122,195,1,1	monster	Beelzebub	1873,1
    bossnia_01,45,118,1,1	monster	Beelzebub	1873,1
    bossnia_01,196,122,1,1	monster	Valkyrie Randgris	1751,1
    bossnia_01,142,61,1,1	monster	Ifrit	1832,1
    
    //----------------------------------------------------------------------------
    // bossnia_02 - Bossnia
    //----------------------------------------------------------------------------
    bossnia_02,0,0	monster	Garm	1252,5,7200000
    bossnia_02,0,0	monster	Gloom Under Night	1768,2,7200000
    bossnia_02,0,0	monster	Dark Lord	1272,3,7200000
    bossnia_02,0,0	monster	Doppelganger	1046,10,7200000
    bossnia_02,0,0	monster	Dracula	1389,5,1800000
    bossnia_02,0,0	monster	Drake	1112,10,1800000
    bossnia_02,0,0	monster	Detale	1719,2,7200000
    bossnia_02,0,0	monster	Maya	1147,10,1800000
    bossnia_02,0,0	monster	Mistress	1059,1,1800000
    //bossnia_02,0,0	monster	Baphomet	1039,10,1800000
    bossnia_02,0,0	monster	Egnigem Cenia	1658,10,1800000
    bossnia_02,0,0	monster	Amon Ra	1511,1,1800000
    bossnia_02,0,0	monster	Atroce	1785,10,1800000
    bossnia_02,0,0	monster	Vesper	1685,2,7200000
    bossnia_02,0,0	monster	Eddga	1115,1,1800000
    bossnia_02,0,0	monster	Osiris	1038,10,7200000
    bossnia_02,0,0	monster	Orc Lord	1190,10,7200000
    bossnia_02,0,0	monster	Orc Hero	1087,2,1800000
    bossnia_02,0,0	monster	Samurai Specter	1492,1,3600000
    bossnia_02,0,0	monster	Moonlight Flower	1150,1,3600000
    bossnia_02,0,0	monster	Lord of the Dead	1373,1,3600000
    bossnia_02,0,0	monster	Ktullanux	1779,2,7200000
    bossnia_02,0,0	monster	Kiel D-01	1734,2,7200000
    bossnia_02,0,0	monster	Thanatos Phantom	1708,2,7200000
    bossnia_02,0,0	monster	Lady Tanee	1688,1,3600000
    bossnia_02,0,0	monster	Tao Gunka	1583,1,3600000
    bossnia_02,0,0	monster	Turtle General	1312,10,7200000
    bossnia_02,0,0	monster	Pharaoh	1157,2,3600000
    bossnia_02,0,0	monster	Stormy Knight	1251,2,3600000
    bossnia_02,0,0	monster	Falling Bishop	1871,5,7200000
    bossnia_02,0,0	monster	Phreeoni	1159,10,7200000
    bossnia_02,0,0	monster	Golden Thief Bug	1086,10,3600000
    bossnia_02,0,0	monster	Evil Snake Lord	1418,10,7200000
    bossnia_02,0,0	monster	RSX-0806	1623,5,7200000
    bossnia_02,0,0	monster	Assassin Cross Eremes	1647,1
    bossnia_02,137,118,1,1	monster	Whitesmith Howard	1648,1
    bossnia_02,122,195,1,1	monster	Beelzebub	1873,1
    bossnia_02,45,118,1,1	monster	Beelzebub	1873,1
    bossnia_02,196,122,1,1	monster	Valkyrie Randgris	1751,1
    bossnia_02,142,61,1,1	monster	Ifrit	1832,1
    
    //----------------------------------------------------------------------------
    // bossnia_03 - Bossnia
    //----------------------------------------------------------------------------
    bossnia_03,0,0	monster	Garm	1252,5,7200000
    bossnia_03,0,0	monster	Gloom Under Night	1768,2,7200000
    bossnia_03,0,0	monster	Dark Lord	1272,3,7200000
    bossnia_03,0,0	monster	Doppelganger	1046,10,7200000
    bossnia_03,0,0	monster	Dracula	1389,5,1800000
    bossnia_03,0,0	monster	Drake	1112,10,1800000
    bossnia_03,0,0	monster	Detale	1719,2,7200000
    bossnia_03,0,0	monster	Maya	1147,10,1800000
    bossnia_03,0,0	monster	Mistress	1059,1,1800000
    //bossnia_03,0,0	monster	Baphomet	1039,10,1800000
    bossnia_03,0,0	monster	Egnigem Cenia	1658,10,1800000
    bossnia_03,0,0	monster	Amon Ra	1511,1,1800000
    bossnia_03,0,0	monster	Atroce	1785,10,1800000
    bossnia_03,0,0	monster	Vesper	1685,2,7200000
    bossnia_03,0,0	monster	Eddga	1115,1,1800000
    bossnia_03,0,0	monster	Osiris	1038,10,7200000
    bossnia_03,0,0	monster	Orc Lord	1190,10,7200000
    bossnia_03,0,0	monster	Orc Hero	1087,2,1800000
    bossnia_03,0,0	monster	Samurai Specter	1492,1,3600000
    bossnia_03,0,0	monster	Moonlight Flower	1150,1,3600000
    bossnia_03,0,0	monster	Lord of the Dead	1373,1,3600000
    bossnia_03,0,0	monster	Ktullanux	1779,2,7200000
    bossnia_03,0,0	monster	Kiel D-01	1734,2,7200000
    bossnia_03,0,0	monster	Thanatos Phantom	1708,2,7200000
    bossnia_03,0,0	monster	Lady Tanee	1688,1,3600000
    bossnia_03,0,0	monster	Tao Gunka	1583,1,3600000
    bossnia_03,0,0	monster	Turtle General	1312,10,7200000
    bossnia_03,0,0	monster	Pharaoh	1157,2,3600000
    bossnia_03,0,0	monster	Stormy Knight	1251,2,3600000
    bossnia_03,0,0	monster	Falling Bishop	1871,5,7200000
    bossnia_03,0,0	monster	Phreeoni	1159,10,7200000
    bossnia_03,0,0	monster	Golden Thief Bug	1086,10,3600000
    bossnia_03,0,0	monster	Evil Snake Lord	1418,10,7200000
    bossnia_03,0,0	monster	RSX-0806	1623,5,7200000
    bossnia_03,0,0	monster	Assassin Cross Eremes	1647,1
    bossnia_03,137,118,1,1	monster	Whitesmith Howard	1648,1
    bossnia_03,122,195,1,1	monster	Beelzebub	1873,1
    bossnia_03,45,118,1,1	monster	Beelzebub	1873,1
    bossnia_03,196,122,1,1	monster	Valkyrie Randgris	1751,1
    bossnia_03,142,61,1,1	monster	Ifrit	1832,1
    
    //----------------------------------------------------------------------------
    // bossnia_04 - Bossnia
    //----------------------------------------------------------------------------
    bossnia_04,0,0	monster	Garm	1252,5,7200000
    bossnia_04,0,0	monster	Gloom Under Night	1768,2,7200000
    bossnia_04,0,0	monster	Dark Lord	1272,3,7200000
    bossnia_04,0,0	monster	Doppelganger	1046,10,7200000
    bossnia_04,0,0	monster	Dracula	1389,5,1800000
    bossnia_04,0,0	monster	Drake	1112,10,1800000
    bossnia_04,0,0	monster	Detale	1719,2,7200000
    bossnia_04,0,0	monster	Maya	1147,10,1800000
    bossnia_04,0,0	monster	Mistress	1059,1,1800000
    //bossnia_04,0,0	monster	Baphomet	1039,10,1800000
    bossnia_04,0,0	monster	Egnigem Cenia	1658,10,1800000
    bossnia_04,0,0	monster	Amon Ra	1511,1,1800000
    bossnia_04,0,0	monster	Atroce	1785,10,1800000
    bossnia_04,0,0	monster	Vesper	1685,2,7200000
    bossnia_04,0,0	monster	Eddga	1115,1,1800000
    bossnia_04,0,0	monster	Osiris	1038,10,7200000
    bossnia_04,0,0	monster	Orc Lord	1190,10,7200000
    bossnia_04,0,0	monster	Orc Hero	1087,2,1800000
    bossnia_04,0,0	monster	Samurai Specter	1492,1,3600000
    bossnia_04,0,0	monster	Moonlight Flower	1150,1,3600000
    bossnia_04,0,0	monster	Lord of the Dead	1373,1,3600000
    bossnia_04,0,0	monster	Ktullanux	1779,2,7200000
    bossnia_04,0,0	monster	Kiel D-01	1734,2,7200000
    bossnia_04,0,0	monster	Thanatos Phantom	1708,2,7200000
    bossnia_04,0,0	monster	Lady Tanee	1688,1,3600000
    bossnia_04,0,0	monster	Tao Gunka	1583,1,3600000
    bossnia_04,0,0	monster	Turtle General	1312,10,7200000
    bossnia_04,0,0	monster	Pharaoh	1157,2,3600000
    bossnia_04,0,0	monster	Stormy Knight	1251,2,3600000
    bossnia_04,0,0	monster	Falling Bishop	1871,5,7200000
    bossnia_04,0,0	monster	Phreeoni	1159,10,7200000
    bossnia_04,0,0	monster	Golden Thief Bug	1086,10,3600000
    bossnia_04,0,0	monster	Evil Snake Lord	1418,10,7200000
    bossnia_04,0,0	monster	RSX-0806	1623,5,7200000
    bossnia_04,0,0	monster	Assassin Cross Eremes	1647,1
    bossnia_04,137,118,1,1	monster	Whitesmith Howard	1648,1
    bossnia_04,122,195,1,1	monster	Beelzebub	1873,1
    bossnia_04,45,118,1,1	monster	Beelzebub	1873,1
    bossnia_04,196,122,1,1	monster	Valkyrie Randgris	1751,1
    bossnia_04,142,61,1,1	monster	Ifrit	1832,1

     

  19. 19 hours ago, Angeluz said:

    try with this

     

    -	script	KillMon2Cash	-1,{
    OnNPCKillEvent:
    .@gettimetick = gettimetick(2);
    if (rand(100) < 1 && .@gettimetick > @delay) {
    	getitem 50001,1;
    	@delay = .@gettimetick + 60; // 60 seconds
    }
    end;
    
    OnInit:
    	bindatcmd "check", "KillMon2Cash::OnCheckTime";
    	end;
    	
    OnCheckTime:
      	if (( @delay - gettimetick(2)) <=0 )
    		message strcharinfo(0),"Your next drop is ready!";
      	else
      		message strcharinfo(0),"Next drop in "+ ( @delay - gettimetick(2) ) + " seconds.";
    	end;
    }

     

    thx! very nicee ❤️

  20. 20 hours ago, Angeluz said:

    my bad

     

    -	script	KillMon2Cash	-1,{
    OnNPCKillEvent:
    .@gettimetick = gettimetick(2);
    if (rand(100) < 1 && .@gettimetick > @delay) {
    	getitem 50001,1;
    	@delay = .@gettimetick + 60; // 60 seconds
    }
    end;
    
    OnInit:
    	bindatcmd "check", "KillMon2Cash::OnCheckTime";
    	end;
    	
    OnCheckTime:
    	message strcharinfo(0),"Next drop in "+ ( @delay - gettimetick(2) ) + " seconds.";
    	end;
    }

     

    image.thumb.png.464330397ca4d85a29e57c05e483c4e5.png

    in the first drop looks like this:can adjust for the first one to appear, for example: Drop available now

    after passing the 60s it looks like this

    and image.thumb.png.3f726e0d1bfca81dafa7ccfcaf8df835.png

    counting negative

  21. On 1/22/2023 at 12:34 PM, Angeluz said:

    maybe something like that

     

    -	script	KillMon2Cash	-1,{
    OnNPCKillEvent:
    .@gettimetick = gettimetick(2);
    if (rand(100) < 1 && .@gettimetick > @delay) {
    	getitem 50001,1;
    	@delay = .@gettimetick + 60; // 60 seconds
    }
    end;
    
    OnInit:
    	bindatcmd "check", "KillMon2Cash::OnCheckTime";
    	end;
    	
    OnCheckTime:
    	message strcharinfo(0),"Next drop in "+ ( @delay - .@gettimetick ) + " seconds.";
    	end;
    }

     

    time error ?

    image.thumb.png.8334c029bcfc64cade0679118d78bfae.png

×
×
  • Create New...