Jump to content
  • 0

CTP event?


caspa

Question


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

does anybody have a working click the pub event? the one modified that has OnMinute and not the one that has the Set .Repeat and Set .AM something? 

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

prontera,155,185,5	script	Click-The-Pub	1_F_MARIA,{
	end;
OnWhisperGlobal:
	if ( getgmlevel() >= 99 )
		goto OnMinute00;
	end;
OnMinute00:
	delwaitingroom;
	waitingroom "Click ME", 2, strnpcinfo(0)+"::OnWinner", 1;
	end;
OnWinner:
	warpwaitingpc "prontera", 155, 182, 1;
	attachrid $@warpwaitingpc;
	if ( !checkweight( 501,1 ) ) {
		dispbottom "LOL you don't have enought space to get a reward";
		end;
	}
	getitem 501, 1;
	announce "Click the Pub: Winner is "+ strcharinfo(0) +" !!", bc_all;
	delwaitingroom;
	end;
}

 

Edited by AnnieRuru
  • Love 1
Link to comment
Share on other sites

  • 1

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

@caspa , too simple ...

prontera,155,185,5	script	Click-The-Pub	1_F_MARIA,{
	end;
//OnInit:
	bindatcmd "test", strnpcinfo(0)+"::OnMinute00";
	end;
OnMinute00:
	delwaitingroom;
	waitingroom "Click ME", 2, strnpcinfo(0)+"::OnWinner", 1;
	end;
OnWinner:
	getwaitingroomusers;
	attachrid .@waitingroom_users;
	if ( !checkweight( 501,1 ) ) {
		dispbottom "LOL you don't have enought space to get a reward";
		kickwaitingroomall;
		end;
	}
	getitem 501, 1;
	announce "Click the Pub: Winner is "+ strcharinfo(0) +" !!", bc_all;
	delwaitingroom;
	end;
}

btw I remember you said you are using eamod ...
I don't think your server has *getwaitingroomusers ?

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

what is this "CTP" or "click the pub" event

means the 1st player who join the chat room that shows on top of npc wins ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

2 hours ago, AnnieRuru said:

what is this "CTP" or "click the pub" event

means the 1st player who join the chat room that shows on top of npc wins ?

yes ms annieruru... its a simple event which start every OnMinute** .... first player to click the PUB wins the prize... the game reset then start again on the specified OnMinute.....

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

15 minutes ago, AnnieRuru said:

@caspa , too simple ...


prontera,155,185,5	script	Click-The-Pub	1_F_MARIA,{
	end;
//OnInit:
	bindatcmd "test", strnpcinfo(0)+"::OnMinute00";
	end;
OnMinute00:
	delwaitingroom;
	waitingroom "Click ME", 2, strnpcinfo(0)+"::OnWinner", 1;
	end;
OnWinner:
	getwaitingroomusers;
	attachrid .@waitingroom_users;
	if ( !checkweight( 501,1 ) ) {
		dispbottom "LOL you don't have enought space to get a reward";
		kickwaitingroomall;
		end;
	}
	getitem 501, 1;
	announce "Click the Pub: Winner is "+ strcharinfo(0) +" !!", bc_all;
	delwaitingroom;
	end;
}

btw I remember you said you are using eamod ...
I don't think your server has *getwaitingroomusers ?

thank you so much for the reply ms annie.. hahaha yes i'm using eamod and yeah.. i dont have the getwatingroomuser and the bindatcmd.... is there any way to convert both of them? 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

26 minutes ago, AnnieRuru said:

prontera,155,185,5	script	Click-The-Pub	1_F_MARIA,{
	end;
OnWhisperGlobal:
	if ( getgmlevel() >= 99 )
		goto OnMinute00;
	end;
OnMinute00:
	delwaitingroom;
	waitingroom "Click ME", 2, strnpcinfo(0)+"::OnWinner", 1;
	end;
OnWinner:
	warpwaitingpc "prontera", 155, 182, 1;
	attachrid $@warpwaitingpc;
	if ( !checkweight( 501,1 ) ) {
		dispbottom "LOL you don't have enought space to get a reward";
		end;
	}
	getitem 501, 1;
	announce "Click the Pub: Winner is "+ strcharinfo(0) +" !!", bc_all;
	delwaitingroom;
	end;
}

 

as usual... perfect script... thank you ms. annie... ❤️

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