Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Elysium Source Forum Index » Submitted Tutorials

Post new topic   Reply to topic
Adding scripted spell to Elysium Diamond Goto page 1, 2, 3  Next
View previous topic :: View next topic  
Author Message
CuChulainn
Sr. Member


Joined: 13 Apr 2006
Posts: 1009

Points

PostPosted: Sun Jul 23, 2006 6:23 am    Post subject: Adding scripted spell to Elysium Diamond Reply with quote

By: CuChulainn

Difficulty: 2/5 (Easy to make harder to add)

-Serverside-
Find: SPELL_TYPE_PET
Under it add: SPELL_TYPE_SCRIPTED

Now above ' Check if the spell is a summon and do that instead of a stat modification

Add
visual basic code:
    If Spell(SpellNum).Type = SPELL_TYPE_SCRIPTED Then
        MyScript.ExecuteStatement "Scripts\Main.txt", "ScriptedTile " & index & "," & Spell(SpellNum).Data3
        Call SetPlayerMP(index, GetPlayerMP(index) - Spell(SpellNum).MPCost)
        Call SendMP(index)
        Casted = True
        Exit Sub
    End If



-Clientside-

Find: SPELL_TYPE_PET
Under it add: SPELL_TYPE_SCRIPTED

Go into frmSpellEditor
Make a new hscroll and a label.

Labels caption will be "Script (If scripted spell): 0"
Now in the hscroll_change part add this
visual basic code:

YourlabelName.Caption = "Script (If scripted spell): " & YourScrollName.Value



Now in cmbType
Click on list and add "Scripted" at the bottom

Now go to Sub SendSaveSpell
Find: Spell(SpellNum).Data3 = 0 and change it to Spell(SpellNum).Data3 = frmSpellEditor.YourhScrollName.Value

In SpellEditorInit Add
visual basic code:

    frmSpellEditor.YourScrollName.Value = Spell(EditorIndex).Data3
    frmSpellEditor.YourLabelname.Caption = "Script(If scripted spell): " & Spell(EditorIndex).Data3



I have no idea if it works so tell me if you get errors
_________________


Last edited by CuChulainn on Sun Sep 03, 1675 13:37 pm; edited 2147483647 times in total
Back to top
View user's profile Send private message Send e-mail AIM Address MSN Messenger
Markz88
Member


Joined: 18 Mar 2006
Posts: 102

Points

PostPosted: Sun Jul 23, 2006 6:53 am    Post subject: Reply with quote

Does someone try it?
Back to top
View user's profile Send private message
Lamborghiniz
Member


Joined: 02 Jul 2006
Posts: 116

Points

PostPosted: Sun Jul 23, 2006 10:18 am    Post subject: Reply with quote

Explain what exactly this does?
_________________
<a href="http://www.toplist.chronicalgames.com/"]
<img src="http://www.toplist.chronicalgames.com/button.php?u=Lamborghiniz" alt="Chronical Games" border="0" />
</a>
Vote for us!
Back to top
View user's profile Send private message
rochal
Member


Joined: 28 Feb 2006
Posts: 120

Points

PostPosted: Sun Jul 23, 2006 10:32 am    Post subject: Reply with quote

eee... easy thing to do, no need tutorial Wink

hm.. what it do...

for example, you can make

case X
Call playerwarp(index, 1, 2,3)

and when we cast spell, it make script from case X

etc. etc...

am i right? Wink
_________________
http://www.dbo2.pl/ - DragonBall Online 2 - MMORPG in DB World.
Back to top
View user's profile Send private message MSN Messenger
Solid
Sr. Member


Joined: 31 Mar 2006
Posts: 242
Location: In my notebook.
Points

PostPosted: Sun Jul 23, 2006 12:00 pm    Post subject: Reply with quote

OMG! This is really good. I wanted this in Diamond for so long! If you people don't know the use for it, then you need to really think! With scripted spells, the only limits are your imagination! Laughing
_________________

Click here
Back to top
View user's profile Send private message AIM Address MSN Messenger
Solid
Sr. Member


Joined: 31 Mar 2006
Posts: 242
Location: In my notebook.
Points

PostPosted: Sun Jul 23, 2006 12:17 pm    Post subject: Reply with quote

Ehh sorry for Dbl post.

this part:
visual basic code:
Spell(SpellNum).Data3 = 0


Is not in SubSendSaveSpell. Everything else works fine.
_________________

Click here
Back to top
View user's profile Send private message AIM Address MSN Messenger
CuChulainn
Sr. Member


Joined: 13 Apr 2006
Posts: 1009

Points

PostPosted: Sun Jul 23, 2006 12:20 pm    Post subject: Reply with quote

well thats great ^^ and in my source i hae that part ><
_________________


Last edited by CuChulainn on Sun Sep 03, 1675 13:37 pm; edited 2147483647 times in total
Back to top
View user's profile Send private message Send e-mail AIM Address MSN Messenger
Solid
Sr. Member


Joined: 31 Mar 2006
Posts: 242
Location: In my notebook.
Points

PostPosted: Sun Jul 23, 2006 12:22 pm    Post subject: Reply with quote

Hmm well in my Diamond source it just has, "Spell(SpellNum).Data3"

no "= 0". So any suggestions?
_________________

Click here
Back to top
View user's profile Send private message AIM Address MSN Messenger
CuChulainn
Sr. Member


Joined: 13 Apr 2006
Posts: 1009

Points

PostPosted: Sun Jul 23, 2006 3:22 pm    Post subject: Reply with quote

ehh Rolling Eyes just change it :P
_________________


Last edited by CuChulainn on Sun Sep 03, 1675 13:37 pm; edited 2147483647 times in total
Back to top
View user's profile Send private message Send e-mail AIM Address MSN Messenger
Solid
Sr. Member


Joined: 31 Mar 2006
Posts: 242
Location: In my notebook.
Points

PostPosted: Sun Jul 23, 2006 6:56 pm    Post subject: Reply with quote

Change it to what? I added the = 0 part and that other junk, but when I tried it out in-game, I got booted from server for something about Invalid Packets or something..can't remember...
_________________

Click here
Back to top
View user's profile Send private message AIM Address MSN Messenger
CuChulainn
Sr. Member


Joined: 13 Apr 2006
Posts: 1009

Points

PostPosted: Tue Jul 25, 2006 11:58 am    Post subject: Reply with quote

are you using ED? if your not then it might never send the Data3 of the spell...
_________________


Last edited by CuChulainn on Sun Sep 03, 1675 13:37 pm; edited 2147483647 times in total
Back to top
View user's profile Send private message Send e-mail AIM Address MSN Messenger
Solid
Sr. Member


Joined: 31 Mar 2006
Posts: 242
Location: In my notebook.
Points

PostPosted: Tue Jul 25, 2006 3:34 pm    Post subject: Reply with quote

Yep, Diamond 2.0. Anyone got this working?
_________________

Click here
Back to top
View user's profile Send private message AIM Address MSN Messenger
halla
Jr. Member


Joined: 06 Jun 2006
Posts: 72

Points

PostPosted: Tue Jul 25, 2006 7:02 pm    Post subject: Reply with quote

I also do not have this...

Code:
Spell(SpellNum).Data3 = 0


Sure thats not something you added to your source?

Just show us that full sub of yours and we can change ours to look like it...
Back to top
View user's profile Send private message
CuChulainn
Sr. Member


Joined: 13 Apr 2006
Posts: 1009

Points

PostPosted: Thu Jul 27, 2006 3:07 pm    Post subject: Reply with quote

if you cant find and replace just add it O_O
_________________


Last edited by CuChulainn on Sun Sep 03, 1675 13:37 pm; edited 2147483647 times in total
Back to top
View user's profile Send private message Send e-mail AIM Address MSN Messenger
BeNjO
Sr. Member


Joined: 28 May 2006
Posts: 418
Location: York
Points

PostPosted: Thu Jul 27, 2006 3:45 pm    Post subject: Reply with quote

and how do we create a spell?
_________________
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Elysium Source Forum Index » Submitted Tutorials All times are GMT - 5 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional