Jump to content
  • 0

Tbox summon


Scotch

Question


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  118
  • Reputation:   0
  • Joined:  09/19/12
  • Last Seen:  

Can anyone teach me how to edit this is script?

i want it run every 3hrs...because this runs every hour

 

and why 2tcg will i get? 1 is drop in the ground and 1 for auto in my inventory..how to fix this bug?

 

it duplicates the tcg

 

// --- Exteria Ragnarok Online [ExRO] 's Property ---
// ---   Please visit http://www.exteriaro.com    ---
// ---           Scripted By: ARTHistic           ---
// ---         Do Not Revomed the Credits         ---

prontera,122,192,4	script	Treasure Box Summoner	856,{
	mes "[ Treasure Hunt Event ]";
	mes "Hello, I'm a new mage here in Midgard. Every hour, I tried to cast my summoning spells and there a chance that i can summon a Treasure Box that will give you items once you destroy it. I only cast my spell on main city and I immediately announce to everyone once I perfectly cast my spells. Anyways, I will give you a little hint...";
        if( $@tboxevent == 0 ){
        	mes "I ^ff0000failed^000000 to summoned the Treasure Box last time.^000000";
	}else {
        	mes "^I successfully summoned the Treasure Box last time.";
	}
	mes " ";
	mes "Scripted by: ^777777ARTHistic^000000";
	close;

OnMinute00:
	set $@tboxevent, rand(4);
	if ( $@tboxevent != 0 ){
		announce "Treasure Chest Event Manager: I perfectly cast my summoning skills.",0;
		sleep2 5000;
		announce "A rare Treasure Box will be spawned in 30 seconds at Prontera.",0;
		sleep2 30000;
		monster "prontera.gat",0,0,"Treasure Box",1845,1,"Treasure Box Summoner::OnTBoxKilled";
		end;
	}else {
		announce "Treasure Chest Event Manager: I cast my summoning skills.",0;
		end;
	}
	end;

OnTBoxKilled:
	announce "The rare Treasure Box has been founded and destroyed by "+strcharinfo(0)+"!", bc_all;
	getitem 7227, 1;
	end;
}
Edited by skenywitdafer
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

OnMinute00:

 

change to

OnClock0000:
OnClock0300:
OnClock0600:
//etc..

or...

OnMinute00:
if( gettime(3) % 3 != 0 ) end;
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  118
  • Reputation:   0
  • Joined:  09/19/12
  • Last Seen:  

sir how about this bug if someone kill the tbox 2 tcg will get 1 will drop and 1 will go to inventory?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


OnTBoxKilled:

announce "The rare Treasure Box has been founded and destroyed by "+strcharinfo(0)+"!", bc_all;

getmapxy( .@map$,.@x,.@y,0 );

makeitem 7227,1,.@map$,.@x,.@y;

getitem 7227, 1;

end;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  118
  • Reputation:   0
  • Joined:  09/19/12
  • Last Seen:  

ok sir i will try this



sir it will triple the tcg again



bump

Edited by skenywitdafer
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...