Eclipse
January 05, 2009, 09:00:29 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 +-
[$$] Paying Paypal - GFX artists [$$] by Ninja-Tech
Today at 09:00:27 PM

Dreadlord Online v1.2 Beta - Need Moderators and Trustworthy Mappers! by kira423
Today at 09:00:04 PM

SnowCap by The Tribal
Today at 09:00:01 PM

Disparity Recruiting by Ninja-Tech
Today at 08:59:42 PM

The New Eclipse Raid on Runscape by The Tribal
Today at 08:57:00 PM

THE Cult by The Tribal
Today at 08:49:34 PM

Teh Cult by Simius Cruentus
Today at 08:44:15 PM

Makai Realms by kira423
Today at 08:41:25 PM

My Game by Kreator
Today at 08:40:25 PM

Server Status by westin444
Today at 08:27:23 PM

Members Online +-
17 Guests, 14 Users
ralir,
Ninja-Tech,
Amperglyph,
The Tribal,
HawkStorm95,
kira423,
Peter,
westin444,
Kainan54,
‪‫‬‭‮‪‫‬‭The Admiral,
Kreator,
The Troy,
Baron,
The Roujo
Pages: [1]
  Print  
Author Topic: |FREE SCRIPT| GuildNames/Custom Names (Difficulty: 2/5)  (Read 2499 times)
0 Members and 1 Guest are viewing this topic.
Ne0n
๑RBO Developer๑
Developer
Active Member
*
Offline Offline

Posts: 308



View Profile WWW Email
« on: February 23, 2007, 12:45:45 AM »

DESCRIPTION:
What this script does is add a custom message next to your character name, Can be used as guild names/custom names/custom status

ADVANCED SCRIPTERS:It's like the /away command just custom
WARNING: Make a copy of your Main.txt before starting, post here if you have questions

Type: /msg "Anything"
Then: /change

Example
Neo Daniel     ---> Neo Daniel [ Anything ]
Neo Daniel     ---> Neo Daniel [ Fury PK ]
Neo Daniel     ---> Neo Daniel [ Afk~! ]

To Disable just type /change again.

NOTE: You can still PK and Train
ADVANCED SCRIPTERS: It MUST be turned OFF to keep doing quests using FlagHeight
NOTE2: BLUE TEXT IS HOW TO LOCATE WHERE TO ADD THE SCRIPT / BEGINNERS

STEP1: On main.txt ADD the next script under Sub Commands(index) After the end of the /wish command
If you haven't modified under Sub Commands look for the word "wish", paste the script after "Loop,End If,Exit Sub,End If" <- all that:

Quote
        If LCase(Mid(TextSay, 1, 4)) = "/msg" Then 'Script By Neo Daniel       
        If Len(TextSay) > 6 Then
            TextSay = Mid(TextSay, 6, Len(TextSay) - 5)
                   Call PutVar("accounts\" & GetPlayerLogin(index) & ".ini", "CHAR" & GetPlayerCharNum(index), "Msg", " [ " & Trim(TextSay) & " ]")
                   Call PlayerMsg(index, "Message Saved!", 11)
        End If
        Exit Sub
    End If

STEP2: On main.txt ADD the next under Select Case LCase After the /away script
Use the find tool and look for "Select Case LCase" If you haven't modified anything under, place the script after End IF

Quote
    Case "/change"  'Script by Neo Daniel
        'CAN BE USED FOR ADMINS WITH THIS SCRIPT-> If GetPlayerAccess(index) >= 1 Then
            If GetVar("accounts\" & GetPlayerLogin(index) & ".ini", "CHAR" & GetPlayerCharNum(index), "Status") = 0 Then
                Call PlayerMsg(Index,"Mensaje Cambiado!", 11)
                Call PutVar("accounts\" & GetPlayerLogin(index) & ".ini", "CHAR" & GetPlayerCharNum(index), "Status", 1)
                Call PutVar("accounts\" & GetPlayerLogin(index) & ".ini", "CHAR" & GetPlayerCharNum(index), "TempPlayerName", GetPlayerName(index))
                Call SetPlayerName(index, GetPlayerName(index) & GetVar("accounts\" & GetPlayerLogin(index) & ".ini", "CHAR" & GetPlayerCharNum(index), "Msg"))
                Call SendPlayerData(index)
                Exit Sub
            ElseIf GetVar("accounts\" & GetPlayerLogin(index) & ".ini", "CHAR" & GetPlayerCharNum(index), "Status") = 1 Then
                Call SetPlayerName(index, GetVar("accounts\" & GetPlayerLogin(index) & ".ini", "CHAR" & GetPlayerCharNum(index), "TempPlayerName"))
                Call PlayerMsg(Index,"Mensaje vuelto a la normalidad!", 11)
                Call PutVar("accounts\" & GetPlayerLogin(index) & ".ini", "CHAR" & GetPlayerCharNum(index), "Status", 0)
                Call SendPlayerData(index)
                Exit Sub
            End If                       
        'AND ENABLING THIS-> End If
Heytherejake
Eclipse Evolution Dev
Active Member
***
Offline Offline

Posts: 426

Currently working on C++ 3D


View Profile WWW Email
« Reply #1 on: February 23, 2007, 05:02:31 AM »

Looks good! Your first script?
Ne0n
๑RBO Developer๑
Developer
Active Member
*
Offline Offline

Posts: 308



View Profile WWW Email
« Reply #2 on: February 23, 2007, 10:01:04 AM »

Haha yeah, i'll keep adding more.. jake is an example for all of us to follow >=P
avatar.alex
Active Member
***
Offline Offline

Posts: 304


View Profile Email
« Reply #3 on: July 03, 2007, 07:49:07 PM »

is it possible instead of the name showing next to it...a little ICON or something could show up?
Balliztik
Veteran
Advanced Eclipser
*
Offline Offline

Posts: 1,987


View Profile Email
« Reply #4 on: July 03, 2007, 08:58:09 PM »

is it possible instead of the name showing next to it...a little ICON or something could show up?
Nope.
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.357 seconds with 32 queries.