Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

achap89

Members
  • Posts

    384
  • Joined

  • Last visited

    Never

Posts posted by achap89

  1. Ok so this really is as simple as Ballie says (Credit to Ballie)

    Ok Im assuming you are using Eclipse Stable.  So on that note.

    All files metioned are in your server folder>scripts>events

    I want you post the red in your Commands.ess right after
    ```
    '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    ' End Plug (Profile.ess) '
    '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    End Select

    Call PlayerMsg(Index, TextSay(0) & " isn't a valid command.", BRIGHTRED)
    End Sub
    ```
    I know its not your main.txt blah blah but for me its just easier as it is in your commands and that keeps all of them together.

    Now I want you copy the blue text, open your LeftGame.ess and paste it in the area show below

    >! '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    ' Module: LeftGame.ess '
    ' Author: Stephan J.R. van Schaik '
    ' Date: August 30th, 2009. '
    ' Version: 1.0.0 '
    '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    >! '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    ' Function: LeftGame '
    ' Brief: executes when a player leaves the game. '
    ' Parameters: '
    ' Index: the index number of the player who left. '
    '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    Sub LeftGame(Index)
    Call GlobalMsg(GetPlayerAccessTitle(Index) & " " & GetPlayerName(Index) & " has left " & GameName & "!", GREY)
    'Paste the blue code here'
    EndSub


    Finnaly open up your scriptedspells.ess and paste the code one at the bottom of ballies tut.  If you dont have any other case except Case 0 then delete all the text in your file and paste this

    >! '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    ' Module: ScriptedSpell.ess '
    ' Author: Stephan J.R. van Schaik '
    ' Date: August 30th, 2009. '
    ' Version: 1.0.0 '
    '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    >! '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    ' Function: ScriptedSpell '
    ' Brief: executes when somebody casts a spell. '
    ' Parameters: '
    ' Index: the index of the player. '
    ' Script: the script to execute. '
    '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    Sub ScriptedSpell(Index, Script)
    Select Case Script
    Case 0
    Call PlayerMsg(Index, "This scripted spell has no apparent use.", WHITE)
    >! Exit Sub
    Case 1
    If GetPlayerTarget(index) > 0 Then
    Call Buff(GetPlayerTarget(index), 0, 5, 10)
    End If
    Exit Sub
    >! Case Else
    Call PlayerMsg(Index, "No spell script found. Please contact an admin to solve this problem.", WHITE)
    >! Exit Sub
    End Select
    End Sub


    >! @Ballie:
    >! > It's been a while in production, but finally I've finished my stat buffing script. I've run into a few problems that seemingly have no answer, but have worked around them.
    >
    > It's a fairly simple script to add. Simply paste this at the bottom of your main.txt:
    >
    > ```
    > [color]Sub Buff(index, stat, amount, duration)
    > If GetVar("Buff.ini", GetPlayerName(index), CStr(stat)) = "" Then
    >   Select Case stat
    >   Case 0
    >     Call SetPlayerStr(index, GetPlayerStr(index) + Int(Amount))
    >   Case 1
    >     Call SetPlayerDef(index, GetPlayerDef(index) + Int(Amount))
    >   Case 2
    >     Call SetPlayerMagi(index, GetPlayerMagi(index) + Int(Amount))
    >   Case 3
    >     Call SetPlayerSpeed(index, GetPlayerSpeed(index) + Int(Amount))
    >   Case Else
    >   Exit Sub
    >     End Select
    >     Call SendStats(index)
    >     Call PutVar("Buff.ini", GetPlayerName(index), CStr(stat), Cstr(amount))
    >     duration = duration * 1000
    >     Call SetTimer("Debuff " & index & ", " & CStr(stat), duration)
    >     Call SendHP(index)
    >     Call SendMP(index)
    >     Call SendSP(index)
    >   End If
    > End Sub
    >  
    > Sub Debuff(index, stat)
    > Amount = GetVar("Buff.ini", GetPlayerName(index), CStr(stat)) 
    >   Select Case stat
    > Case "0"
    >   Call SetPlayerStr(index, GetPlayerStr(index) - Int(Amount))
    > Case "1"
    >   Call SetPlayerDef(index, GetPlayerDef(index) - Int(Amount))
    > Case "2"
    >   Call SetPlayerMagi(index, GetPlayerMagi(index) - Int(Amount))
    > Case "3"
    >   Call SetPlayerSpeed(index, GetPlayerSpeed(index) - Int(Amount))
    >   End Select
    > Call SendStats(index)
    > Call PutVar("Buff.ini", GetPlayerName(index), CStr(stat), "")
    > Call RemoveTimer("Debuff " & index & ", " & CStr(stat))
    > Call SendHP(index)
    > Call SendMP(index)
    > Call SendSP(index)
    > End Sub[/color]
    >
    > Now, paste this in your [i]LeftGame[/i] sub:
    >
    > [code][color]If GetVar("Buff.ini", GetPlayerName(index), "0") <> "" Then
    > Call Debuff(index, "0")
    > End If
    > If GetVar("Buff.ini", GetPlayerName(index), "1") <> "" Then
    > Call Debuff(index, "1")
    > End If
    > If GetVar("Buff.ini", GetPlayerName(index), "2") <> "" Then
    > Call Debuff(index, "2")
    > End If
    > If GetVar("Buff.ini", GetPlayerName(index), "3") <> "" Then
    > Call Debuff(index, "3")
    > End If[/color][/code]
    >
    > Now, you can call a buff spell using this:
    >
    > [code]Call Buff(index, stat, amount, duration)[/code]
    >
    > [i]index[/i] - The index number of the player.
    > [i]stat[/i] - The stat number (0 is strength, 1 is defense, 2 is magic, and 3 is speed).
    > [i]amount[/i] - How much the stat will be boosted by.
    > [i]duration[/i] - The length (in seconds) that the spell will last.
    >
    > There are checks in place that prevent infinite stat gains from multiple buffs or logging out.
    >
    > For those non-scripters out there, here's one way to use this to make a spell that buffs your target.
    >
    > [code]Case 1
    > If GetPlayerTarget(index) > 0 Then
    > Call Buff(GetPlayerTarget(index), 0, 5, 10)
    > End If[/code]
    >
    > And you'd just insert that in your scripted spells sub.
    >
    > ```
  2. Find the width of your sprite sheet…  Make a new image file set the width to whatever the sprite sheets width is and change the height to, oh lets say 10000 that should leave plenty of room.  Btw for Bigsprites the width is 768 for just your 32*64 your width is 384
  3. @[PIE:

    > Rodriguez link=topic=66237.msg713755#msg713755 date=1290105810]
    > @Soul:
    >
    > > No.
    > >
    > > http://www.spriters-resource.com/
    > > http://www.google.com/
    >
    > What he said.
    >
    > - Adulese

    What they said also http://www.touchofdeathforums.com/resources.php has a variaty of sprits tilesheets ect…
  4. @314piwm:

    > You may be able to find someone to give you a client+server with lots of features for free but I doubt it.  If you come up with a creative idea and a well thought out game then there are some programmers, scripters, and other forum members that may join you out of interest.  Short of money, I would say that is your best bet.
    >
    > Off topic….  you seem to like XD'ing

    I agree…  Maybe just work on the game on you weekends learn to edit sources until you get your game online and friends to work with.
  5. @jncoblack15:

    > thats my issue. im a visual learner, not a reading one. I tried to understand the basics of scripting by reading the totorials, and looking it up on google, as well as finding things out on youtube. but I still don't get it. XD

    I agree with robin.  You should probably just stick to mapping. As there are many videos to teach that.
  6. Lol why thank you. ;) I do love being weird.  And yes I can spell and count you morons.  It was all ment for fun.  Got it?  I highly doubt it, since you obviously are unable to comprehend a ducking joke.  Congratulations, jeff, you were just added to my "Worlds top 10 idiots."
  7. Honestly wargod its not up to you.  It is up to the game owner.  If he/she decides they want to pay their mappers than boom.  If not then at be glad there using you anyways.  You should really be more greatfull and if you want money go get a job.
×
×
  • Create New...