St1ng Posted July 13, 2018 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 5 Reputation: 0 Joined: 11/17/16 Last Seen: May 7, 2021 Share Posted July 13, 2018 (edited) Hi i'd like to ask on how to get the Guild Owners? I think its via SqL since the Woe Reward Script under Euphy's Script fetches it via SQL. I wish to insert it on this code wherein only Guild Castle Owners and GM's can enter the said room. i think i would be using this lines to do that? if ( agitcheck() ) if ( getcastledata( "CASTLE", 1) != getcharid(2) ) if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) Would be glad if someone can offer assistance thanks! Heres my code below - script PrivateGoldRoom -1,{ OnTimer3000: makeitem 969, 5, "1@dth3", rand(62, 75),rand(77,75); makeitem 969, 2, "1@dth3", rand(62, 68),rand(77,68); makeitem 969, 2, "1@dth3", rand(62, 60),rand(77,60); makeitem 969, 2, "1@dth3", rand(71, 67),rand(71,63); makeitem 969, 2, "1@dth3", rand(78, 59),rand(69,58); makeitem 969, 5, "1@dth3", rand(76, 73),rand(81,68); // makeitem 969, 5, "1@dth3", rand(63, 74),rand(76,76); makeitem 969, 2, "1@dth3", rand(63, 67),rand(76,69); makeitem 969, 2, "1@dth3", rand(63, 59),rand(76,61); makeitem 969, 2, "1@dth3", rand(72, 66),rand(70,64); makeitem 969, 2, "1@dth3", rand(79, 58),rand(68,59); makeitem 969, 5, "1@dth3", rand(77, 72),rand(80,69); // makeitem 607, 5, "1@dth3", rand(62, 75),rand(77,75); makeitem 607, 2, "1@dth3", rand(62, 68),rand(77,68); makeitem 607, 2, "1@dth3", rand(62, 60),rand(77,60); makeitem 607, 2, "1@dth3", rand(71, 67),rand(71,63); makeitem 607, 2, "1@dth3", rand(78, 59),rand(69,58); makeitem 607, 5, "1@dth3", rand(76, 73),rand(81,68); // stopnpctimer; initnpctimer; end; OnInit: initnpctimer; end; } 1@dth3,70,90,4 script Exit 664,{ warp "dicastes01",255,158; end; } dicastes01,248,158,4 script Guild Gold Room 691,{ set .GMAccess,99; // GM level required to access Session Manager. mes "Would you like to go to the gold room?"; if(select("Yes", "No") == 1) { warp "1@dth3", 0, 0; } close; OnInit: disablenpc "Guild Gold Room"; end; OnWed0356: waitingroom "Guild Gold Room",0; enablenpc "Guild Gold Room"; announce "The Guild Gold Room Warper has Appeared!",0; sleep 3000; announce "The Gold Haven is now Opened for the Castle Winner!",0; sleep 3000; announce "Guild Winners will be able to enter the Gold Haven From 11PM till 12AM",0; end; OnWed0357: disablenpc "Guild Gold Room"; announce "The Gate to Gold Haven is now Closed!",0; sleep 1000; announce "Only Guild Castle Winners are allowed to enter Gold Haven! Be sure to win the next War of Emperium!",0; } 1@dth3 mapflag nobranch 1@dth3 mapflag pvp off 1@dth3 mapflag noskill 1@dth3 mapflag nowarp Edited July 13, 2018 by St1ng Quote Link to comment Share on other sites More sharing options...
0 St1ng Posted July 16, 2018 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 5 Reputation: 0 Joined: 11/17/16 Last Seen: May 7, 2021 Author Share Posted July 16, 2018 bumping my post thanks alot! Quote Link to comment Share on other sites More sharing options...
Question
St1ng
Hi i'd like to ask on how to get the Guild Owners?
I think its via SqL since the Woe Reward Script under Euphy's Script fetches it via SQL.
I wish to insert it on this code wherein only Guild Castle Owners and GM's can enter the said room.
i think i would be using this lines to do that?
if ( agitcheck() )
if ( getcastledata( "CASTLE", 1) != getcharid(2) )
if ( getguildmasterid( getcharid(2) ) != getcharid(0) )
Would be glad if someone can offer assistance thanks!
Heres my code below
- script PrivateGoldRoom -1,{ OnTimer3000: makeitem 969, 5, "1@dth3", rand(62, 75),rand(77,75); makeitem 969, 2, "1@dth3", rand(62, 68),rand(77,68); makeitem 969, 2, "1@dth3", rand(62, 60),rand(77,60); makeitem 969, 2, "1@dth3", rand(71, 67),rand(71,63); makeitem 969, 2, "1@dth3", rand(78, 59),rand(69,58); makeitem 969, 5, "1@dth3", rand(76, 73),rand(81,68); // makeitem 969, 5, "1@dth3", rand(63, 74),rand(76,76); makeitem 969, 2, "1@dth3", rand(63, 67),rand(76,69); makeitem 969, 2, "1@dth3", rand(63, 59),rand(76,61); makeitem 969, 2, "1@dth3", rand(72, 66),rand(70,64); makeitem 969, 2, "1@dth3", rand(79, 58),rand(68,59); makeitem 969, 5, "1@dth3", rand(77, 72),rand(80,69); // makeitem 607, 5, "1@dth3", rand(62, 75),rand(77,75); makeitem 607, 2, "1@dth3", rand(62, 68),rand(77,68); makeitem 607, 2, "1@dth3", rand(62, 60),rand(77,60); makeitem 607, 2, "1@dth3", rand(71, 67),rand(71,63); makeitem 607, 2, "1@dth3", rand(78, 59),rand(69,58); makeitem 607, 5, "1@dth3", rand(76, 73),rand(81,68); // stopnpctimer; initnpctimer; end; OnInit: initnpctimer; end; } 1@dth3,70,90,4 script Exit 664,{ warp "dicastes01",255,158; end; } dicastes01,248,158,4 script Guild Gold Room 691,{ set .GMAccess,99; // GM level required to access Session Manager. mes "Would you like to go to the gold room?"; if(select("Yes", "No") == 1) { warp "1@dth3", 0, 0; } close; OnInit: disablenpc "Guild Gold Room"; end; OnWed0356: waitingroom "Guild Gold Room",0; enablenpc "Guild Gold Room"; announce "The Guild Gold Room Warper has Appeared!",0; sleep 3000; announce "The Gold Haven is now Opened for the Castle Winner!",0; sleep 3000; announce "Guild Winners will be able to enter the Gold Haven From 11PM till 12AM",0; end; OnWed0357: disablenpc "Guild Gold Room"; announce "The Gate to Gold Haven is now Closed!",0; sleep 1000; announce "Only Guild Castle Winners are allowed to enter Gold Haven! Be sure to win the next War of Emperium!",0; } 1@dth3 mapflag nobranch 1@dth3 mapflag pvp off 1@dth3 mapflag noskill 1@dth3 mapflag nowarp
Link to comment
Share on other sites
1 answer 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.