Eclipse
January 05, 2009, 10:29:50 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 +-
Lostica [Project Revamp] by MrMiguu™
Today at 10:28:55 PM

Party system : is it possible? by The Roujo
Today at 10:24:45 PM

Which version of eclipse do you like most for sadscripting? by The Roujo
Today at 10:24:19 PM

THE Cult by The Roujo
Today at 10:21:24 PM

Actual Map for the continents by FS:CG Admin[Shadowwulf]
Today at 10:20:45 PM

Disparity Recruiting by The Roujo
Today at 10:20:14 PM

World of Hyrule - Official Topic by Kreator
Today at 10:14:43 PM

Free movies? by DrNova
Today at 10:10:40 PM

~ Paradise uncharted ~ Supported by Dezire Software Forums by slym
Today at 10:07:06 PM

I need a little help by waffletamer
Today at 10:03:40 PM

Members Online +-
14 Guests, 20 Users
Devogen,
UnknownChick76,
Smile!,
‪‫‬‭‮‪‫Kusy,
Sablefalcon,
MrMiguu™,
shakadaran,
Gwendalin,
dg1423,
HawkStorm95,
hammer,
FS:CG Admin[Shadowwulf],
Karl,
The Roujo,
kira423,
Ambard,
slym,
Xandus,
Kreator,
DrNova
Pages: [1]
  Print  
Author Topic: GetPlayerSex for TE  (Read 1213 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: May 17, 2007, 10:35:32 AM »

I think on TE when you create a character the first one appaers at /accounts/ your account.ini and the second and third character appaers under /banks account.ini, i use TES so i'm just guessing, correct me if i'm wrong..

just place this at the buttom of your main.txt and if you want to use it you could say

Dim gender
gender = getplayersex(index)
If gender = 0 then
    ---
Else
   ---
End if

Quote
Function GetPlayerSex (index)
DIM CHNUM
DIM GEN
CHNUM = GetPlayerCharNum(index)
   
  If CHNUM = 1 then
  GEN = GetVar("accounts\" & GetPlayerLogin(index) & ".ini", "CHAR" & GetPlayerCharNum(index), "Sex")
  ElseIF CHNUM >= 2 then
  GEN = GetVar("Banks\" & GetPlayerLogin(index) & ".ini", "CHAR" & GetPlayerCharNum(index), "Sex")
  Call PlayerMsg(index, "SEX " & GEN, 15)
End if
GetPlayerSex = GEN   
End Function

i dont want credit im starting to learn this kind of stuff so.. ok cool.
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.43 seconds with 32 queries.