Eclipse
January 05, 2009, 10:39:08 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 +-
Dreadlord Online v1.2 Beta - Need Moderators and Trustworthy Mappers! by thingyguy
Today at 10:34:13 PM

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

Members Online +-
10 Guests, 21 Users
shakadaran,
kira423,
HawkStorm95,
Simius Cruentus,
thingyguy,
Marsh,
Kreator,
MrMiguu™,
Sablefalcon,
Smile!,
Japez,
Ambard,
UnknownChick76,
The Roujo,
Devogen,
‪‫‬‭‮‪‫Kusy,
Gwendalin,
dg1423,
hammer,
FS:CG Admin[Shadowwulf],
Karl
Pages: [1] 2
  Print  
Author Topic: Flying [2/5]  (Read 4760 times)
0 Members and 1 Guest are viewing this topic.
Godlord
Stephanus sum
Veteran
Teh Uberleet
*
Offline Offline

Posts: 4,109


View Profile WWW Email
« on: February 16, 2007, 08:57:30 AM »

Minimalist: TE 1.0

Made in request of: Kyubi
Idea is from: Marsh

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

Code:

Place this script in a new case in ScriptedItems or in a hotkey I don't mind where you put it (this example is with ScriptedSpell):
Quote
Sub ScriptedSpell(index, Script)
Dim Flying
Select Case Script
    Case 0
        Flying= GetVar("Fly.ini", GetPlayerName(index), "Flying")
        If Flying = 1 Then
            Call PutVar("Fly.ini", GetPlayerName(index), "Flying", 0)
            Call SetPlayerClass(index, GetVar("FlyData.ini", GetPlayerName(index), "NormalClass"))
            Call SetPlayerSprite(index, GetVar("FlyData.ini", GetPlayerName(index), "NormalSprite"))
        Else
            Call PutVar("Fly.ini", GetPlayerName(index), "Flying", 1)
            Call PutVar("FlyData.ini",GetPlayerName(index), "NormalClass", GetPlayerClass(index))
            Call PutVar("FlyData.ini", GetPlayerName(index), "NormalSprite", GetPlayerSprite(index))
            Call SetPlayerClass(index, GetVar("FlyConfig.ini", "Config", "FlyClass"))
            Call SetPlayerSprite(index, GetVar("FlyConfig.ini", "Config", "FlySprite"))
        End If
End Select
End Sub

Create an INI called "FlyConfig.ini" (without the "")
Place the next in it:
FlyConfig.ini
Quote
[Config]
FlyClass=#
FlySprite=$

Replace # with the class which is the fly class. Places where you only can fly, put there class blocks.
Replace $ with the sprite which is the fly sprite. If you activated the flying then your sprite will change to this, when you deactivated it then you will change back to normal.

Done.

Function:
This lets players fly :D.

Credits:
The Credits go to me, Godlord.
No posting this script somewhere else without my permission.
No stealing nor re-modifying(Which happened before).



Any questions or suggestions please post them here. No flaming please.
~.:Lidnel:.~
Active Member
***
Offline Offline

Posts: 366

The truth is out there...


View Profile WWW Email
« Reply #1 on: February 16, 2007, 12:24:53 PM »

How does it work?  :P

*Update*
Now understand...
Thats becouse of my bad knowladge of English sorry :(
Dalfo
Newb
*
Offline Offline

Posts: 12


View Profile Email
« Reply #2 on: March 08, 2007, 10:10:06 AM »

mmmmmh

must already be scripted item or spells in souces to make it works ?  ::)
Mr Ryppers
Member
**
Offline Offline

Posts: 34


View Profile Email
« Reply #3 on: March 10, 2007, 01:32:26 PM »

regretfully I'm no scripter.. how would we apply this to a hotkey? so it responds to a button like shift does for running?
would it be possible to have it so it activates flying at one press.. and deactivates when pressed again (instead of deactivating when it is let go like running)

seems to me like hotkeying like this'd be excellent for simple things like sitting down..  just make the 'fly class' have sprites that are sitting down, and reduce the speed of the class to 0 so you couldn't move. just make sure you don't have the class available on the login screen (would that be changing 'locked' to 1 on the class file?).
Godlord
Stephanus sum
Veteran
Teh Uberleet
*
Offline Offline

Posts: 4,109


View Profile WWW Email
« Reply #4 on: March 10, 2007, 01:36:11 PM »

wtf are you saying :confused: go read my tutorial "Sadscript: the beginning" and open your main.txt before ever posting I am very confused now.
Mr Ryppers
Member
**
Offline Offline

Posts: 34


View Profile Email
« Reply #5 on: March 10, 2007, 02:01:05 PM »

ok.. ok.. with your permission godlord I'd like to play around with your code a bit.. see if I can get it to do what I want it to do before I try re-iterating myself.
Godlord
Stephanus sum
Veteran
Teh Uberleet
*
Offline Offline

Posts: 4,109


View Profile WWW Email
« Reply #6 on: March 10, 2007, 02:02:15 PM »

You may modify it but not publicy it as your own made even if you modified it.
Steveo
Veteran
Advanced Member
*
Offline Offline

Posts: 552


View Profile Email
« Reply #7 on: March 10, 2007, 02:11:02 PM »

Yes scripting can be confusing.

It is a highly technical subject.

To get scripting to work you must have experience with  the  "Main.as  file  and where to put things.

The script you put in must be exactly correct or it won't work

In your Server the Scripts function must be turned "on"

I myself think all Scripts submitted must show every step from what exactly the Script does, what exactly it will say, where exactly it is placed in the Main.as file, and finally what exactly to do "in game" to get the script to do its thing ( Hot keys, or Scripted tile, or type in a code...etc...)


I put up a Scripting Tutorial on my site, but it is far from perfect, I will be writing a new Tutorial that takes you through every step with clear and simple instructions  ( for nooby scripters)

BTW  Eclipse Evolution the new game engine has built into it many things that previously were possible only through manual scripting...(ex. Quests) Yaaay!
Godlord
Stephanus sum
Veteran
Teh Uberleet
*
Offline Offline

Posts: 4,109


View Profile WWW Email
« Reply #8 on: March 10, 2007, 02:13:48 PM »

The scripting was not confusing, what the person said was confusing. I think you need to read my reply again.
Danz
NUFC!
Active Member
***
Offline Offline

Posts: 307


ah my favourite shirt


View Profile Email
« Reply #9 on: March 12, 2007, 09:05:59 AM »

He asked if the script could be activated and deactivated by hotkeys :)
Godlord
Stephanus sum
Veteran
Teh Uberleet
*
Offline Offline

Posts: 4,109


View Profile WWW Email
« Reply #10 on: March 12, 2007, 09:09:51 AM »

Yes, he can.
wilikas2
Newb
*
Offline Offline

Posts: 15


View Profile Email
« Reply #11 on: March 22, 2007, 01:04:00 AM »

I don't understand, what are the class files. I tried this and it does not work.
Godlord
Stephanus sum
Veteran
Teh Uberleet
*
Offline Offline

Posts: 4,109


View Profile WWW Email
« Reply #12 on: March 22, 2007, 07:26:10 AM »

class1.ini as example. Classes. ::)
lordjeremiahs
Active Member
***
Offline Offline

Posts: 198


View Profile Email
« Reply #13 on: April 12, 2007, 05:41:34 PM »

what exactly does it do? change the sprite? or just.. make the sprite look bigger and make a shadow below it? or get past through blocked tiles?
Carnival
I'm a statue, baby, knock me out.
Advanced Member
****
Offline Offline

Posts: 709


View Profile Email
« Reply #14 on: April 12, 2007, 05:44:18 PM »

what exactly does it do? change the sprite? or just.. make the sprite look bigger and make a shadow below it? or get past through blocked tiles?

It makes it so that only the class listed in Fly.ini can pass through the tile.
HaleBlazR
Guest


Email
« Reply #15 on: April 12, 2007, 06:25:50 PM »

Thats actually pretty good scripting.  Pretty good idea too.  I kinda did that, but with guild, see, game developers guild can walk everywhere
Godlord
Stephanus sum
Veteran
Teh Uberleet
*
Offline Offline

Posts: 4,109


View Profile WWW Email
« Reply #16 on: April 12, 2007, 11:40:32 PM »

See next to my name stands "Über Scriptorz" lol, explains enough 8). This scripts changes your class and your sprite. To something which is flying. You can also return to normal ;D.

Edit: Saw that there wasn't a sprite change but whatever I will make it later then :P.
blitz_9100
Fury fighter
Member
**
Offline Offline

Posts: 87



View Profile Email
« Reply #17 on: April 26, 2007, 01:56:37 PM »

this is a great script but it only makes me walk in place:(


what did i do wrong?
Godlord
Stephanus sum
Veteran
Teh Uberleet
*
Offline Offline

Posts: 4,109


View Profile WWW Email
« Reply #18 on: April 28, 2007, 02:27:24 PM »

yea you need the sprite change part for it. This was normally meant for flying but can be used for other stuff.

Edit: I added sprite changing to it :).
Skieth
death note fan to the max :D
Active Member
***
Offline Offline

Posts: 295

132414.432354334123452 is my lucky number :D


View Profile Email
« Reply #19 on: May 31, 2007, 10:42:40 AM »

this is proboly a stupid question but, couldn't you just make a flying class and put a class block on the places you wanted to let it fly, and if you wanted it really fancy just put something saying "you jump off the ground and start flying"?
Pages: [1] 2
  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.359 seconds with 32 queries.