Eclipse Free Mmorpg Maker
March 09, 2010, 04:41:49 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
   Home   Chat Login Register  
 
 
 
+-
+-No Spam / Websites
siedge says: ok when can i start mapping lol
Bit says: teh = the eith = with deit=did it STCIKY keys. -.-
Bit says: Artizan WIP
siedge says: ok spell better i cant read
Bit says: Okay, sure. Question: What do I deit in source? teh copy eith symbols or text in notepad? I edited it with the text one and it wont update..
siedge says: id like to be mapper lol
Bit says: http://spiral13.com > community > download
Bit says: uhh okay
siedge says: bit id like to sign up for artizan
Bit says: anyone on good with source?
View Shout History
+-Recent Topics
New computer by Anna Comnena
Today at 04:38:54 PM

Do Grades Have a Direct Correlation to Intelligence? by Tom Devilliers
Today at 04:35:54 PM

Viking's Monster Graphics by Ninja-Tech
Today at 04:33:26 PM

I'm New/Back/Leaving! by Tom Devilliers
Today at 04:28:24 PM

[Recrutement] Je cherche by Greendude120 ツ
Today at 04:23:06 PM

[Real Life Picture Thread] by Godlord
Today at 03:50:53 PM

Free Music Composition (midi, wmv, and mp3) by togekite
Today at 03:20:37 PM

Im fairly new to this. by lc3
Today at 03:12:12 PM

[Download] StarCraft II Beta by Zetta Monkey (Fabio)
Today at 03:09:24 PM

CTF by Lam3r
Today at 02:58:40 PM

+-Members Online
31 Guests, 26 Users (3 Hidden)
Tom Devilliers,
LegendsOfMyth,
Ichi,
Ninja-Tech,
Gwen,
siedge,
Jna,
Anna Comnena,
IceCream Tuesday,
NëRoXx,
Ice - Fire,
xXR0CK3TXx,
dxxknight@gmail.com,
PainKiller,
Draken,
chiccora,
Rikimaru12,
Bit,
Monkey Boy,
Aeon Trag,
XxshadowAssasinXx,
SHADERS,
Lam3r
Site Author : Topic: Male/Female PD (Difficulty: 2/5)  (Read 3156 times)
0 Members and 1 Guest are viewing this topic.
February 10, 2007, 07:03:00 AM
Active Member
***
User No : 752
Posts: 357
Location : Ukraine
The truth is out there...
  • View Profile
  • WWW


Non-Scripter [2/5]
Beginner [2/5]
Advanced Scripter [1/5]
Expert [1/5]
Pro Scripter [1/5]


This script is very simple. It was created for changing armors to right gender. It works like this: first 100 items - male armors, second 100 - female.

Sub JoinGame(index)
Code: [Select]
Call SetTimer("tmrtest " & index & "," & X, 15)
Sub TMRTEST(index, Script)
Code: (vb) [Select]
Case 1
        Dim i
        Dim armor
        i = 1
        armor = GetPlayerArmorSlot(index)
        If armor => 1 Then 'From what item #
            If armor =< 100 Then 'To what item #
                If GetVar("accounts\" & GetPlayerLogin(index) & ".ini", "CHAR" & GetPlayerCharNum(index), "Sex") = 1 Then '0 - male; 1 - female

                    Do While (i <= 24) 'Something like that I am now mainly busy with PHP
                        If GetPlayerInvItemNum(INDEX, i) = armor then
                            Call SetPlayerInvItemNum(index, i, int(armor)+100)
                            Call SendInventoryUpdate(INDEX, i)
                            Call SendWornEquipment(index)
                            Call SendPlayerData(index)
                            i = 25
                        Else
                            i = i + 1
                         End If
                      Loop
                 End If
            End If
        End If
    End Select
End Sub
« Last Edit: February 14, 2007, 07:04:45 AM by Lidnel » Logged


 Collapse Online (FIRST ECLIPSE ISO RPG)  Progress: 70% Maps: 145/150 Items: 10/400 NPC: 60/100 Classes: 6/6 Graphic: 97% GUI: 100%  
February 14, 2007, 04:42:33 AM
Global Moderator
Demi God
*
User No : 1712
Posts: 6330
  • View Profile
Lidnel here try with this:
Code: [Select]
Sub TMRTEST(index, Script)
    Case 1
        Dim i
        Dim armor
        i = 1
        armor = GetPlayerArmorSlot(index)
        If armor => 1 Then 'From what item #
            If armor =< 100 Then 'To what item #
                If GetVar("accounts\" & GetPlayerLogin(index) & ".ini", "CHAR" & GetPlayerCharNum(index), "Sex") = 1 Then '0 - male; 1 - female

                    Do While (i <= 24) 'Something like that I am now mainly busy with PHP
                        If GetPlayerInvItemNum(INDEX, i) = armor then
                            Call SetPlayerInvItemNum(index, i, int(armor)+100)
                            Call SendInventoryUpdate(INDEX, i)
                            Call SendWornEquipment(index)
                            Call SendPlayerData(index)
                            i = 25
                        Else
                            i = i + 1
                         End If
                      Loop
                 End If
            End If
        End If
    End Select
End Sub
« Last Edit: February 14, 2007, 04:44:25 AM by Godlord » Logged

Quote
(22:18:13) Stephan J.R. van Schaik:
Code: [Select]
try
{
objPlayer->AvoidStone();
}
catch (Stone &e)
{
ShowError("YOU HIT A ducking STONE!");
}
(22:18:47) Joseph Z.:
Code: [Select]
ShowError("You are a ducking STONED!");(22:18:57) Joseph Z.: link

February 14, 2007, 07:05:27 AM
Active Member
***
User No : 752
Posts: 357
Location : Ukraine
The truth is out there...
  • View Profile
  • WWW
Thanks for edit )
Logged


 Collapse Online (FIRST ECLIPSE ISO RPG)  Progress: 70% Maps: 145/150 Items: 10/400 NPC: 60/100 Classes: 6/6 Graphic: 97% GUI: 100%  
February 14, 2007, 10:23:12 AM
Global Moderator
Demi God
*
User No : 1712
Posts: 6330
  • View Profile
No problem. I taught that that way stands in my Sadscript tutorial.
Logged

Quote
(22:18:13) Stephan J.R. van Schaik:
Code: [Select]
try
{
objPlayer->AvoidStone();
}
catch (Stone &e)
{
ShowError("YOU HIT A ducking STONE!");
}
(22:18:47) Joseph Z.:
Code: [Select]
ShowError("You are a ducking STONED!");(22:18:57) Joseph Z.: link

October 30, 2009, 09:30:44 AM
Newb
*
User No : 15284
Posts: 19
  • View Profile
i try to find in main.txt the "Sub TMRTEST(index, Script) "
i dont find it!
help me please!
Logged
October 30, 2009, 09:34:21 AM
The Last Man Alive
Global Moderator
Teh Uberleet
*
User No : 1081
Posts: 3071
  • View Profile
i try to find in main.txt the "Sub TMRTEST(index, Script) "
i dont find it!
help me please!


If it's not in there, Godlord posted one. Just copy and paste his at the bottom of your main.txt.
Logged

Quote
I do not like being labeled a "Grammar Nazi" because it implies that I am the one committing the genocide.

 

Powered by EzPortal
Powered by MySQL Powered by PHP Powered by SMF 2.0 RC2 | SMF © 2006–2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.463 seconds with 36 queries.