Jump to content

Question

Posted

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? 

6 answers to this question

Recommended Posts

  • 0
Posted (edited)
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
  • 1
Posted

@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
  • 0
Posted
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.....

  • 0
Posted
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? 

  • 0
Posted
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... ❤️

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...