View
previous topic :: View
next topic |
Author |
Message |
CuChulainn Sr. Member
Joined: 13 Apr 2006 Posts:
1009
Points
|
Posted: Sun Jul 23,
2006 6:23 am
Post subject: Adding scripted spell to Elysium
Diamond |
|
|
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 |
|
|
Markz88 Member
Joined: 18 Mar
2006 Posts: 102
Points
|
Posted: Sun Jul 23,
2006 6:53 am
Post subject: |
|
|
Does someone try
it? | |
Back
to top |
|
Lamborghiniz Member
Joined: 02 Jul
2006 Posts: 116
Points
|
Posted: Sun Jul 23,
2006 10:18 am
Post subject: |
|
|
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 |
|
rochal Member
Joined: 28 Feb
2006 Posts: 120
Points
|
Posted: Sun Jul 23,
2006 10:32 am
Post subject: |
|
|
eee... easy thing to
do, no need tutorial
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? _________________ http://www.dbo2.pl/ -
DragonBall Online 2 - MMORPG in DB World. | |
Back
to top |
|
Solid Sr. Member
Joined: 31 Mar
2006 Posts: 242 Location: In my
notebook. Points
|
Posted: Sun Jul 23,
2006 12:00 pm
Post subject: |
|
|
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! _________________ Click here | |
Back
to top |
|
Solid Sr. Member
Joined: 31 Mar
2006 Posts: 242 Location: In my
notebook. Points
|
Posted: Sun Jul 23,
2006 12:17 pm
Post subject: |
|
|
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 |
|
CuChulainn Sr. Member
Joined: 13 Apr 2006 Posts:
1009
Points
|
Posted: Sun Jul 23,
2006 12:20 pm
Post subject: |
|
|
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 |
|
Solid Sr. Member
Joined: 31 Mar
2006 Posts: 242 Location: In my
notebook. Points
|
Posted: Sun Jul 23,
2006 12:22 pm
Post subject: |
|
|
Hmm well in my
Diamond source it just has, "Spell(SpellNum).Data3"
no "= 0". So any
suggestions? _________________ Click here | |
Back
to top |
|
CuChulainn Sr. Member
Joined: 13 Apr 2006 Posts:
1009
Points
|
Posted: Sun Jul 23,
2006 3:22 pm
Post subject: |
|
|
ehh just change it :P _________________
Last edited
by CuChulainn on Sun Sep 03, 1675 13:37 pm; edited
2147483647 times in total | |
Back
to top |
|
Solid Sr. Member
Joined: 31 Mar
2006 Posts: 242 Location: In my
notebook. Points
|
Posted: Sun Jul 23,
2006 6:56 pm
Post subject: |
|
|
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 |
|
CuChulainn Sr. Member
Joined: 13 Apr 2006 Posts:
1009
Points
|
Posted: Tue Jul 25,
2006 11:58 am
Post subject: |
|
|
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 |
|
Solid Sr. Member
Joined: 31 Mar
2006 Posts: 242 Location: In my
notebook. Points
|
Posted: Tue Jul 25,
2006 3:34 pm
Post subject: |
|
|
Yep, Diamond 2.0.
Anyone got this working? _________________ Click here | |
Back
to top |
|
halla Jr. Member
Joined: 06 Jun
2006 Posts: 72
Points
|
Posted: Tue Jul 25,
2006 7:02 pm
Post subject: |
|
|
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 |
|
CuChulainn Sr. Member
Joined: 13 Apr 2006 Posts:
1009
Points
|
Posted: Thu Jul 27,
2006 3:07 pm
Post subject: |
|
|
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 |
|
BeNjO Sr. Member
Joined: 28 May
2006 Posts: 418 Location:
York Points
|
Posted: Thu Jul 27,
2006 3:45 pm
Post subject: |
|
|
and how do we create
a spell? _________________
| |
Back
to top |
|
|
|