caspa Posted June 4, 2018 Posted June 4, 2018 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? Quote
0 AnnieRuru Posted June 4, 2018 Posted June 4, 2018 (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 June 4, 2018 by AnnieRuru 1 Quote
1 AnnieRuru Posted June 4, 2018 Posted June 4, 2018 @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 ? 1 Quote
0 AnnieRuru Posted June 4, 2018 Posted June 4, 2018 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 ? Quote
0 caspa Posted June 4, 2018 Author Posted June 4, 2018 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..... Quote
0 caspa Posted June 4, 2018 Author Posted June 4, 2018 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? Quote
0 caspa Posted June 4, 2018 Author Posted June 4, 2018 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... Quote
Question
caspa
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.