Eclipse
January 05, 2009, 06:56:27 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Chat Help Rules Arcade Search Calendar Gallery Login Register  
 
 
 
Recent Topics +-
Merrimint by Hikaru
Today at 06:54:23 PM

Spike's Adminishness! by Niko
Today at 06:54:14 PM

~ Paradise uncharted ~ Supported by Dezire Software Forums by The BanHammer! [Thor!]
Today at 06:51:17 PM

New Colony Online by Warconn
Today at 06:51:02 PM

Disparity Recruiting by Keebler Elf
Today at 06:48:29 PM

Lostica [Project Revamp] by The Tribal
Today at 06:47:36 PM

Azkanan's Workshop (Graphics) by Devogen
Today at 06:39:57 PM

Anywhere to download the v3 beta? by The Tribal
Today at 06:38:28 PM

Does anybody know the math involved in dmg to def? by Syner
Today at 06:30:40 PM

My New Computer! by The BanHammer! [Thor!]
Today at 06:25:05 PM

Members Online +-
17 Guests, 29 Users
Keebler Elf,
Hikaru,
Alster,
Echo ♥ Pie,
WolfHammer,
Niko,
Mitus,
westin444,
Teh Jna,
Seba,
The Tribal,
‪‫‬‭‮‪‫‬‭Admiral Refuge,
The BanHammer! [Thor!],
linetrip,
Airscar,
ralir,
Ambard,
kdjrgej,
Warconn,
SoiWilliamSoi,
Gwendalin,
Leaf [zach],
Kreator,
Peter,
>~(Squiddle)~<,
Devogen,
Syner,
Dimx,
FS:CG Admin[Shadowwulf]
Pages: [1]
  Print  
Author Topic: Guild MOTD  (Read 1714 times)
0 Members and 1 Guest are viewing this topic.
Topher
Active Member
***
Offline Offline

Posts: 203



View Profile Email
« on: August 02, 2006, 02:04:47 PM »

****************
*Guild MOTD Script.*
****************
-Scripted By Topher892
-Debugged by Emblem
-This Script allows guild owners (with Guild Access 4) to set a MOTD that their Guild Members will see when they log on.

INSTALLATION
STEP 1
Add This to your Sub JoinGame(index):

Code: [Select]

Dim GMOTD
GMOTD = Trim(GetVar("guilds.ini", GetPlayerGuild(index), "Motd"))


And then this to the bottom of the sub JoinGame(index)[/color]

Code: [Select]

If GetPlayerGuild(index) = "" Then
Call PlayerMsg(index, "You are not in a guild!", 9)
Else
Call PlayerMsg(index, GetPlayerGuild(index) & ": " & GMOTD, 9)
End If


STEP 2
Add this to your commands sub, under the /warpto command:


Code: [Select]
   If LCase(Mid(TextSay, 1, 6)) = "/gmotd" Then
        If Len(TextSay) > 7 Then
            TextSay = Mid(TextSay, 7, Len(TextSay) - 6)          
                If GetPlayerGuildAccess(index) < 4 Then
                   Call PlayerMsg(index, "You must be the guild's owner to change the MOTD!", 12)
   Exit Sub
                ElseIf GetPlayerGuildAccess(index) = 4 Then
                   Call PutVar("guilds.ini", GetPlayerGuild(index), "Motd", Trim(TextSay))
                   Call PlayerMsg(index, GetPlayerGuild(index) & " MOTD changed to: " & TextSay & ".", 11)
                End if  
            End If
            Exit Sub
        End If


USING THIS SCRIPT
The owner of the guild (guild member with level 4 access) can use the command "/gmotd [insert desired Guild MOTD here]" to set their guild's message. They can change the message whenever they like as long as they have access 4 in the guild.

This script is tested and does work! Thanks,
Topher & Emblem
Rogue
Veteran
Advanced Member
*
Offline Offline

Posts: 670


GARBLE GARBLE


View Profile WWW Email
« Reply #1 on: August 02, 2006, 02:25:31 PM »

nice
The Emblem
Uber Programmer
Emblem
Advanced Member
******
Offline Offline

Posts: 517


The game


View Profile Email
« Reply #2 on: August 02, 2006, 03:00:29 PM »

I did help him debug this but, most(if not 100%) of the credit goes to Topher! Hes an awesome scripter!
Topher
Active Member
***
Offline Offline

Posts: 203



View Profile Email
« Reply #3 on: August 02, 2006, 07:51:39 PM »

:D  Thanks!  :D
Haxxor
Guest


Email
« Reply #4 on: August 02, 2006, 08:21:47 PM »

uhh...GMOTD is not set equal to anything...

Code: [Select]
Dim GMOTD
GMOTD = Trim(GetVar("guilds.ini", GetPlayerGuild(index), "Motd"))
Topher
Active Member
***
Offline Offline

Posts: 203



View Profile Email
« Reply #5 on: August 03, 2006, 04:53:32 AM »

EDIT: Ok I see what you mean here....yeah sorry about that  :oops:
Topher
Active Member
***
Offline Offline

Posts: 203



View Profile Email
« Reply #6 on: August 03, 2006, 02:08:48 PM »

Fixed  :D
XManiaK
Newb
*
Offline Offline

Posts: 16


View Profile Email
« Reply #7 on: August 27, 2007, 10:27:02 AM »

I can't do the Step 2 i dont know where the commands sub are and i dont find where it says /warpto

 


STEP 2
Add this to your commands sub, under the /warpto command:

ok i found it! and the script works!! very cool gratz for the script! =D
kenny
Eclipse Gfx/scripter
Advanced Eclipser
*****
Offline Offline

Posts: 1,238


~Good Scripter~


View Profile WWW Email
« Reply #8 on: August 27, 2007, 01:18:11 PM »

Not bad at all, but all you did was modify a script and a variable :P
Riley [Firon3]
Active Member
***
Offline Offline

Posts: 358



View Profile Email
« Reply #9 on: May 10, 2008, 09:43:25 AM »

[Edit]

My bad, I misread the script... No need to reply this post...
Pages: [1]
  Print  
 
 

Powered by EzPortal
Powered by MySQL Powered by PHP Powered by SMF 2.0 Beta 4 | SMF © 2006–2008, Simple Machines LLC | Sitemap Valid XHTML 1.0! Valid CSS!
Page created in 0.438 seconds with 33 queries.