Eclipse - Free 2D Mmorpg Maker
September 02, 2010, 10:24:24 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Shop Arcade chat Login Register  
 
 
   
 
collapse

* No Spam Or Websites

Refresh History
  • Ertzel: So... Anyone with basic/none/limited photoshop or even paint skills want to make some money converting sprites for me?
    Today at 10:07:35 PM
  • Gamma™: weaver why are you oflfine on H&H? :S
    Today at 10:04:26 PM
  • Ertzel: Ya, only one try per knife, my one try failed :(
    Today at 10:00:17 PM
  • LegendWeaver: is it one use?
    Today at 09:43:15 PM
  • Ertzel: Wish I didnt spend my 1k+ credits to buy the stupid knife that failed at stealing Robins credits >.<
    Today at 09:42:42 PM
  • Wraith: ) Kreator!
    Today at 09:06:52 PM
  • Wraith: yes! you were! (in red text
    Today at 09:06:46 PM
  • ToshiroHayate: Kreator!
    Today at 08:25:02 PM
  • Kreator: o_0 Was I supposed to Wraith?
    Today at 08:16:02 PM
  • [Pie] ICT: Don't worry.. I commented.
    Today at 07:55:08 PM
  • Wraith: Ay, kreator, wtf is up with you not posting anything about my new cliffs??
    Today at 07:50:36 PM

* Recent Topics

[EO] Attaching Problem. by 314piwm
[Today at 10:21:04 PM]


Project Vertigo [2d Tile-based Side-Scrolling Engine] by Miguu
[Today at 10:03:22 PM]


Zacaras Empire (Hiring) by Ertzel
[Today at 08:43:54 PM]


custom cliff tiles by ToshiroHayate
[Today at 08:29:15 PM]


.: RPG Kingdom :. by LegendWeaver
[Today at 08:25:20 PM]


What do you think? by [Pie] ICT
[Today at 07:54:54 PM]


[Show Off] Aztec Stuff by [Pie] ICT
[Today at 07:50:07 PM]


So I herd you liek mudkipz by Kreator
[Today at 07:36:52 PM]


Haven and Hearth: Epic Screenshot Thread by Tompwnage™
[Today at 07:14:21 PM]


The Lonliest Star [RP] by DDunit
[Today at 07:09:46 PM]


* Who's Online


Pages: [1] 2
Site Author : Topic: Skills [4/5]  (Read 9340 times)
0 Members and 1 Guest are viewing this topic.
January 27, 2007, 06:22:10 PM
Global Moderator
Demi God
*
User No : 1712
Posts: 6821
  • 1292 credits
  • View Inventory
  • Send Money To Stephan
    • View Profile


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

    Index:
    • Woodcutting
    • Mining
    • Mining

    Woodcutting
    Code:

    In Sub JoinGame(index) above End Sub add this:
    Code: [Select]
    If GetVar("Skills\DB.ini", GetPlayerName(Index), "Woodcutting") = "0" Then
    Call PutVar("Skills\DB.ini", GetPlayerName(Index), "WoodcuttingExp", "0")
    Call PutVar("Skills\DB.ini", GetPlayerName(Index), "Woodcutting", "1")
    End If

    In Sub OnAttack(index) Add under Sub OnAttack(index) if not added:
    Code: [Select]
    Dim Checked
    In Sub OnAttack(index) Add above of End Sub:
    Code: [Select]
    Checked = CheckIt(index)
    If Checked = 1 Then
    Call WoodcuttingMsg(index, Woodcut)
    End If
    End Sub

    Add this total down in your main:
    Code: [Select]
    Sub GiveItem(index, item, value)
    SLOT = 1
    Do While SLOT < 24
    If GetPlayerInvItemNum(index, SLOT) = 0 Then
    Call SetPlayerInvItemNum(index, SLOT, item)
    Call SetPlayerInvItemValue(index, SLOT, value)
    Call SendInventoryUpdate(index, SLOT)
    SLOT = 24
    End If
    SLOT = SLOT+1
    Loop
    End Sub

    Add this total down in your main:
    Code: [Select]
    Sub CheckIt(index)
    Dim WoodcuttingSpotX
    Dim WoodcuttingSpotY
    Dim I
    Dim memX
    Dim Fish
    Dim WoodcuttingSpotM
    I = 1
    Do While I <= GetVar("Skills\Woodcutting.ini", I ,"items")
    WoodcuttingSpotX = GetVar("Skills\Woodcutting.ini", I ,"X")
    WoodcuttingSpotY = GetVar("Skills\Woodcutting.ini", I ,"Y")
    WoodcuttingSpotM = GetVar("Skills\Woodcutting.ini", I ,"MAP")
    memX = I
    if GetPlayerMap(index) = WoodcuttingSpotM then
    if WoodcuttingSpotY = Int(GetPlayerY(index) + 1) and WoodcuttingSpotX = Int(GetPlayerX(index) + 1) then
    CheckIt = 1
    I = 21
    elseif WoodcuttingSpotY = Int(GetPlayerY(index) - 1) and WoodcuttingSpotX = Int(GetPlayerX(index) - 1) then
    CheckIt = 1
    I = 21
    elseif WoodcuttingSpotY = Int(GetPlayerY(index) + 1) and WoodcuttingSpotX = Int(GetPlayerX(index) - 1) then
    CheckIt = 1
    I = 21
    elseif WoodcuttingSpotY = Int(GetPlayerY(index) - 1) and WoodcuttingSpotX = Int(GetPlayerX(index) + 1) then
    CheckIt = 1
    I = 21
    else
    CheckIt = 0
    I = Int(memX + 1)
    end if
    end if
    loop
    End Sub

    Add this total down in your main:
    Code: [Select]
    Sub WoodcuttingMsg(index, wood)
    Dim wclv
    Dim change
    Dim item
    Dim val
    Dim I
    If wood = 1 Then
    If GetPlayerWeapon = GetVar("Skills\Woodcutting.ini", I ,"weapon") Then
    Call PlayerMsg(index, "You started with cutting some wood", 12)
    I = Rand(1, 10000)
    wclv = GetVar("Skills\DB.ini","GetPlayerName(index), "Woodcutting")
    change = GetVar("Skills\Change.ini", "Woodcutting", wclv & "-" & I)
    change = mid(change, 1, 3) & "00"
    max = GetVar("Skills\max.ini", "Woodcutting", "WCMAX")
    item = GetVar("Skills\Woodcutting.ini", I ,"item")
    val = GetVar("Skills\Woodcutting.ini", I ,"val")
    If I >= change Then
    Call PlayerMsg(index, "You cutted some wood", 12)
    Call GiveItem(index, item, val)
    Call SetWoodcuttingExperience(index, GetVar("Skills\Woodcutting.ini", I ,"exp"))
    Else
    Call PlayerMsg(index, "You failed with cutting some wood", 12)
    End If
    End If
    End If
    End Sub

    Add this total down in your main:
    Code: [Select]
    Sub SetWoodcuttingExperience(index, exp)
    Dim wclv
    Dim pexp
    Dim max
    Dim wcmax
    wclv = GetVar("Skills\DB.ini","GetPlayerName(index), "Woodcutting")
    wcmax = GetVar("Skills\max.ini", "Woodcutting", "maxlv")
    pexp = GetVar("Skills\DB.ini","GetPlayerName(index), "WoodcuttingExp")
    max = GetVar("Skills\max.ini", "Woodcutting", "maxexp" & wclv)
    if Int(pexp + exp) > max then
    if wclv < maxlv then
    Call PutVar("Skills\DB.ini","GetPlayerName(index), "WoodcuttingExp", Int(exp - Int(max - pexp)))
    Call PutVar("Skills\DB.ini","GetPlayerName(index), "Woodcutting", Int(wclv + 1))
    Call PlayerMsg(index, "You gained a woodcutting level", 12)
    elseif wclv = maxlv then
    Call PutVar("Skills\DB.ini","GetPlayerName(index), "WoodcuttingExp", 0)
    Call PutVar("Skills\DB.ini","GetPlayerName(index), "Woodcutting", maxlv)
    end if
    elseif Int(pexp + exp) <= max then
    Call PutVar("Skills\DB.ini","GetPlayerName(index), "WoodcuttingExp", Int(pexp + exp))
    end if
    End Sub


    INI files:

    In map "Skills" on the server create the next files:
    Woodcutting.ini
    Code: [Select]
    [1]
    X=2
    Y=2
    MAP=23
    weapon=2
    item=3
    val=0
    [2]
    X=5
    Y=5
    MAP=99
    weapon=2
    item=45
    val=0

    Change.ini
    Code: [Select]
    [Woodcutting]
    1-1=2
    2-1=5
    1-2=0
    2-2=4

    max.ini
    Code: [Select]
    [Woodcutting]
    WCMAX=2
    maxlv=2
    maxexp1=100
    maxexp2=300


    INI configuration:

    Woodcutting.ini
    Quote
    [1]
    1 is the section of which number goes from 1 to WCMAX out max.ini.

    Quote
    X=2
    2 is the X of the tree.

    Quote
    Y=2
    2 is the Y of the tree.

    Quote
    MAP=23
    23 is the Map of the tree.

    Quote
    weapon=2
    2 is the required weapon number.

    Quote
    item=3
    3 is the item you get if you cutted the tree.

    Quote
    val=0
    0 is the value you get, 0 for non-stackable items, 1 or higher for stackable items.

    Change.ini
    Quote
    2-1=5
    2 is the wclv the person needs to be.
    1 is the WCSection (The thing from 1 to WCMAX)
    5 is the change in percent like 100 (without %). Goes from 0 to 100

    max.ini
    Quote
    WCMAX=2
    2 is the max of WCSections.

    Quote
    maxlv=2
    2 is the Max level you can reach in Woodcutting.

    Quote
    maxexp1=100
    1 is the level, if you're lv 1 then you need to get 100 experience.


    Function:
    Now you can cut wood on some places.


    Notes:
    - You need to block the tree position.


    Mining
    Code:

    In Sub JoinGame(index) above End Sub add this:
    Code: [Select]
    If GetVar("Skills\DB.ini","GetPlayerName(index), "Mining") = 0 Then
    Call PutVar("Skills\DB.ini","GetPlayerName(index), "MiningExp", 0)
    Call PutVar("Skills\DB.ini","GetPlayerName(index), "Mining", 1)
    End If

    In Sub OnAttack(index) Add under Sub OnAttack(index) if not added:
    Code: [Select]
    Dim Checked
    In Sub OnAttack(index) Add above of End Sub:
    Code: [Select]
    Checked = CheckIt(index)
    If Checked = 1 Then
    Call MiningMsg(index, Mine)
    End If
    End Sub

    Add this total down in your main:
    Code: [Select]
    Sub GiveItem(index, item, value)
    SLOT = 1
    Do While SLOT < 24
    If GetPlayerInvItemNum(index, SLOT) = 0 Then
    Call SetPlayerInvItemNum(index, SLOT, item)
    Call SetPlayerInvItemValue(index, SLOT, value)
    Call SendInventoryUpdate(index, SLOT)
    SLOT = 24
    End If
    SLOT = SLOT+1
    Loop
    End Sub

    Add this total down in your main:
    Code: [Select]
    Sub CheckIt(index)
    Dim MiningSpotX
    Dim MiningSpotY
    Dim I
    Dim memX
    Dim MiningSpotM
    I = 1
    Do While I <= GetVar("Skills\Mining.ini", I ,"items")
    MiningSpotX = GetVar("Skills\Mining.ini", I ,"X")
    MiningSpotY = GetVar("Skills\Mining.ini", I ,"Y")
    MiningSpotM = GetVar("Skills\Mining.ini", I ,"MAP")
    memX = I
    if GetPlayerMap(index) = MiningSpotM then
    if MiningSpotY = Int(GetPlayerY(index) + 1) and MiningSpotX = Int(GetPlayerX(index) + 1) then
    CheckIt = 1
    I = 21
    elseif MiningSpotY = Int(GetPlayerY(index) - 1) and MiningSpotX = Int(GetPlayerX(index) - 1) then
    CheckIt = 1
    I = 21
    elseif MiningSpotY = Int(GetPlayerY(index) + 1) and MiningSpotX = Int(GetPlayerX(index) - 1) then
    CheckIt = 1
    I = 21
    elseif MiningSpotY = Int(GetPlayerY(index) - 1) and MiningSpotX = Int(GetPlayerX(index) + 1) then
    CheckIt = 1
    I = 21
    else
    CheckIt = 0
    I = Int(memX + 1)
    end if
    end if
    loop
    End Sub

    Add this total down in your main:
    Code: [Select]
    Sub MiningMsg(index, stone)
    Dim I
    Dim Mlv
    Dim change
    Dim item
    Dim val
    If stone = 1 Then
    If GetPlayerWeapon = GetVar("Skills\Mining.ini", I ,"weapon") Then
    Call PlayerMsg(index, "You started with mining some ores", 12)
    I = Rand(1, 10000)
    Mlv = GetVar("Skills\DB.ini","GetPlayerName(index), "Mining")
    change = GetVar("Skills\Change.ini", "Mining", Mlv & "-" & I)
    change = mid(change, 1, 3) & "00"
    max = GetVar("Skills\max.ini", "Mining", "MMAX")
    item = GetVar("Skills\Mining.ini", I ,"item")
    val = GetVar("Skills\Mining.ini", I ,"val")
    If I >= change Then
    Call PlayerMsg(index, "You mining some ores", 12)
    Call GiveItem(index, item, val)
    Call SetMiningExperience(index, GetVar("Skills\Mining.ini", I ,"exp"))
    Else
    Call PlayerMsg(index, "You failed with cutting some wood", 12)
    End If
    End If
    End If
    End Sub

    Add this total down in your main:
    Code: [Select]
    Sub SetMiningExperience(index, exp)
    Dim Mlv
    Dim pexp
    Dim max
    Dim Mmax
    Mlv = GetVar("Skills\DB.ini","GetPlayerName(index), "Mining")
    Mmax = GetVar("Skills\max.ini", "Mining", "maxlv")
    pexp = GetVar("Skills\DB.ini","GetPlayerName(index), "MiningExp")
    max = GetVar("Skills\max.ini", "Mining", "maxexp" & Mlv)
    if Int(pexp + exp) > max then
    if Mlv < maxlv then
    Call PutVar("Skills\DB.ini","GetPlayerName(index), "MiningExp", Int(exp - Int(max - pexp)))
    Call PutVar("Skills\DB.ini","GetPlayerName(index), "Mining", Int(Mlv + 1))
    Call PlayerMsg(index, "You gained a Mining level", 12)
    elseif Mlv = maxlv then
    Call PutVar("Skills\DB.ini","GetPlayerName(index), "MiningExp", 0)
    Call PutVar("Skills\DB.ini","GetPlayerName(index), "Mining", maxlv)
    end if
    elseif Int(pexp + exp) <= max then
    Call PutVar("Skills\DB.ini","GetPlayerName(index), "MiningExp", Int(pexp + exp))
    end if
    End Sub


    INI files:

    In map "Skills" on the server create the next files:
    Mining.ini
    Code: [Select]
    [1]
    X=2
    Y=2
    MAP=23
    weapon=2
    item=3
    val=0
    [2]
    X=5
    Y=5
    MAP=99
    weapon=2
    item=45
    val=0

    Change.ini
    Code: [Select]
    [Mining]
    1-1=2
    2-1=5
    1-2=0
    2-2=4

    max.ini
    Code: [Select]
    [Mining]
    MMAX=2
    maxlv=2
    maxexp1=100
    maxexp2=300


    INI configuration:

    Mining.ini
    Quote
    [1]
    1 is the section of which number goes from 1 to MMAX out max.ini.

    Quote
    X=2
    2 is the X of the rock.

    Quote
    Y=2
    2 is the Y of the rock.

    Quote
    MAP=23
    23 is the Map of the rock.

    Quote
    weapon=2
    2 is the required weapon number.

    Quote
    item=3
    3 is the item you get if you cutted the rock.

    Quote
    val=0
    0 is the value you get, 0 for non-stackable items, 1 or higher for stackable items.

    Change.ini
    Quote
    2-1=5
    2 is the Mlv the person needs to be.
    1 is the MSection (The thing from 1 to MMAX)
    5 is the change in percent like 100 (without %). Goes from 0 to 100

    max.ini
    Quote
    MMAX=2
    2 is the max of MSections.

    Quote
    maxlv=2
    2 is the Max level you can reach in Mining.

    Quote
    maxexp1=100
    1 is the level, if you're lv 1 then you need to get 100 experience.


    Function:
    Now you can mine ores on some places.


    Notes:
    - You need to block the rock, stone position.


    Mining
    Code:

    In Sub JoinGame(index) above End Sub add this:
    Code: [Select]
    If GetVar("Skills\DB.ini","GetPlayerName(index), "Mining") = 0 Then
    Call PutVar("Skills\DB.ini","GetPlayerName(index), "MiningExp", 0)
    Call PutVar("Skills\DB.ini","GetPlayerName(index), "Mining", 1)
    End If

    In Sub OnAttack(index) Add under Sub OnAttack(index) if not added:
    Code: [Select]
    Dim Checked
    In Sub OnAttack(index) Add above of End Sub:
    Code: [Select]
    Checked = CheckIt(index)
    If Checked = 1 Then
    Call FishMsg(index, Checked)
    End If
    End If

    Add this total down in your Main:
    Code: [Select]
    Sub Giveitem(index, item, value)
    SLOT = 1
    Do While SLOT < 24
    If GetPlayerInvitemNum(index, SLOT) = 0 Then
    Call SetPlayerInvitemNum(index, SLOT, item)
    Call SetPlayerInvitemValue(index, SLOT, value)
    Call SendInventoryUpdate(index, SLOT)
    SLOT = 24
    End If
    SLOT = SLOT+1
    Loop
    End Sub

    Add this total down in your Main:
    Code: [Select]
    Sub CheckIt(index)
    Credits:
    The Credits go to me, Godlord.
    No posting this script somewhere else without my permission.
    « Last Edit: July 16, 2008, 11:26:08 AM by Godlord » Logged


    • I do not provide help through the PM-system, e-mail, Skype or MSN, since this is kind of disturbing. I encourage you to make a new topic with proper spelling and grammar in the appropriate board instead, if possible.
    • I can't stand people who act like if they were children, so please don't.
    • I recommend you to read the rules before posting. It might solve conflicts before they actually occur.
    • I also recommend you to find the solution yourself before making a new topic about your issue. Chances are that other people had the same issue as well.
    January 27, 2007, 06:24:46 PM
    The Mapper
    Global Moderator
    Teh Uberleet
    *
    User No : 2021
    Posts: 3980
  • 0 credits
  • View Inventory
  • Send Money To Soljah
  • Location : Australia
    Check my Mapping Tut's out!
    • View Profile
    • WWW
    umm wow nice godlord!!
    Logged

    Need Help with Mapping? Check out my tutorials!
    -[Soljah]- Aspects of Mapping
    -[Soljah]- Guide to Mapping Interior's

    Mapper by trade? Enter your maps into competitions!! Click the Image below!

    January 27, 2007, 06:28:39 PM
    Global Moderator
    Demi God
    *
    User No : 1712
    Posts: 6821
  • 1292 credits
  • View Inventory
  • Send Money To Stephan
    • View Profile
    Thanks. ;D. Maybe I should use it into my tutorial. lmao.
    Logged


    • I do not provide help through the PM-system, e-mail, Skype or MSN, since this is kind of disturbing. I encourage you to make a new topic with proper spelling and grammar in the appropriate board instead, if possible.
    • I can't stand people who act like if they were children, so please don't.
    • I recommend you to read the rules before posting. It might solve conflicts before they actually occur.
    • I also recommend you to find the solution yourself before making a new topic about your issue. Chances are that other people had the same issue as well.
    January 30, 2007, 10:11:22 AM
    Global Moderator
    Demi God
    *
    User No : 1712
    Posts: 6821
  • 1292 credits
  • View Inventory
  • Send Money To Stephan
    • View Profile
    I updated it a little bit... If you want 2 or them all then you need to modify the Sub OnAttack yourself or wait untill I made a section which explains on how to get 2 or more skills in the attack sub...

    The next new skill will be Smithing.
    Logged


    • I do not provide help through the PM-system, e-mail, Skype or MSN, since this is kind of disturbing. I encourage you to make a new topic with proper spelling and grammar in the appropriate board instead, if possible.
    • I can't stand people who act like if they were children, so please don't.
    • I recommend you to read the rules before posting. It might solve conflicts before they actually occur.
    • I also recommend you to find the solution yourself before making a new topic about your issue. Chances are that other people had the same issue as well.
    January 30, 2007, 02:38:20 PM
    The Mapper
    Global Moderator
    Teh Uberleet
    *
    User No : 2021
    Posts: 3980
  • 0 credits
  • View Inventory
  • Send Money To Soljah
  • Location : Australia
    Check my Mapping Tut's out!
    • View Profile
    • WWW
    Oooo I cant wait  :blob: :blob:
    Logged

    Need Help with Mapping? Check out my tutorials!
    -[Soljah]- Aspects of Mapping
    -[Soljah]- Guide to Mapping Interior's

    Mapper by trade? Enter your maps into competitions!! Click the Image below!

    January 30, 2007, 02:57:19 PM
    Demi God
    User No : 1436
    Posts: 5573
  • 1104 credits
  • View Inventory
  • Send Money To Anna Comnena
  • Location : Colorado
    • View Profile
    For your OnAttack, is that alot of code to go through every time someone attacks? Why not make another sub, and in OnAttack just have checks to see if the player has a particular item? So like if they have a wood axe, it will detect it and call the woodcutter script?
    Logged

    Please don't PM me for H&H hearth secrets!
    Everyone's a newbie at some point!
    You want to keep something a secret? Put it in big red letters in a Sticky post on an Internet forum, nobody will ever see it.
    January 31, 2007, 04:07:45 AM
    Global Moderator
    Demi God
    *
    User No : 1712
    Posts: 6821
  • 1292 credits
  • View Inventory
  • Send Money To Stephan
    • View Profile
    Well I could make them subs, but subs are only needed if you use something to much and in this case I can only put the check X and Y if there is a tree in a sub well I can also add something else in subs well I am going to do it then...
    Logged


    • I do not provide help through the PM-system, e-mail, Skype or MSN, since this is kind of disturbing. I encourage you to make a new topic with proper spelling and grammar in the appropriate board instead, if possible.
    • I can't stand people who act like if they were children, so please don't.
    • I recommend you to read the rules before posting. It might solve conflicts before they actually occur.
    • I also recommend you to find the solution yourself before making a new topic about your issue. Chances are that other people had the same issue as well.
    July 27, 2007, 06:23:15 PM
    Member
    **
    User No : 1760
    Posts: 28
  • 0 credits
  • View Inventory
  • Send Money To Avon
    • View Profile
    Eh.. What's "Total Down" mean? lol..
    I R nub :D
    Logged
    July 27, 2007, 07:26:26 PM
    "But some emotions don't make a lot of noise. It's hard to hear pride. Caring is real faint - like a heartbeat. And pure love - why, some days it's so quiet, you don't even know it's there."
    Member
    **
    User No : 3465
    Posts: 38
  • 0 credits
  • View Inventory
  • Send Money To Brodiaea
  • Death is like being let out of a cage and into...
    • View Profile
    Eh.. What's "Total Down" mean? lol..
    I R nub :D

    I think it means at the bottom of the main text...I think.

    but man did u check the date before you posted ur post?
    Logged

    Hammer-Fall
    ---------------------
    <Graphics (GUI)>0%
    <Graphics (GFX)>=========90%
    <Scripting (Main)>=======70%
    <Scripting (quests)>0%
    <Music>==========100%
    <Story>==========100%
    July 27, 2007, 07:48:18 PM
    Tales of Adriana creator
    Veteran
    Advanced Member
    *
    User No : 1181
    Posts: 671
  • 0 credits
  • View Inventory
  • Send Money To jackal27
  • Location : THA 417, MO
    • View Profile
    You what's cool about necro posting? Yeah... Me neither...
    Logged

    AKA:Lyden

    Tales of Adriana Creator
    July 27, 2007, 07:56:48 PM
    "But some emotions don't make a lot of noise. It's hard to hear pride. Caring is real faint - like a heartbeat. And pure love - why, some days it's so quiet, you don't even know it's there."
    Member
    **
    User No : 3465
    Posts: 38
  • 0 credits
  • View Inventory
  • Send Money To Brodiaea
  • Death is like being let out of a cage and into...
    • View Profile
    You what's cool about necro posting? Yeah... Me neither...

    necro-posting so thats wats it called...
    Logged

    Hammer-Fall
    ---------------------
    <Graphics (GUI)>0%
    <Graphics (GFX)>=========90%
    <Scripting (Main)>=======70%
    <Scripting (quests)>0%
    <Music>==========100%
    <Story>==========100%
    July 27, 2007, 09:58:25 PM
    Member
    **
    User No : 1760
    Posts: 28
  • 0 credits
  • View Inventory
  • Send Money To Avon
    • View Profile
    I think it means at the bottom of the main text...I think.

    but man did u check the date before you posted ur post?
    No. xD
    I just was browsing around and randomly went here and was wondering what that meant.  :P
    Logged
    August 25, 2007, 11:17:51 PM
    Historium Master Designer
    Advanced Member
    ****
    User No : 3943
    Posts: 517
  • 0 credits
  • View Inventory
  • Send Money To Jime307
  • Location : Someplace, Earth
    The King of VB6
    • View Profile
    • WWW
    Fantastic! Thanks!
    Logged

    Programming:
    Advanced: HTML, CSS, Python, SadScript, VB6, C++
    August 27, 2007, 02:01:06 AM
    Newb
    *
    User No : 1028
    Posts: 7
  • 0 credits
  • View Inventory
  • Send Money To Bad Name
    • View Profile
    Code: [Select]
    If GetVar("Skills\DB.ini","GetPlayerName(index), "Woodcutting") = 0 Then
    Call PutVar("Skills\DB.ini","GetPlayerName(index), "WoodcuttingExp", 0)
    Call PutVar("Skills\DB.ini","GetPlayerName(index), "Woodcutting", 1)
    End If

    Should be

    Code: [Select]
    If GetVar("Skills\DB.ini",GetPlayerName(index), "Woodcutting") = 0 Then
    Call PutVar("Skills\DB.ini",GetPlayerName(index), "WoodcuttingExp", 0)
    Call PutVar("Skills\DB.ini",GetPlayerName(index), "Woodcutting", 1)
    End If

    No ? You had " at the start of GetPlayerName(Index)

    Btw my names Uarepoo2, But the stupid name blocker blocks poo lol
    Logged
    August 27, 2007, 02:06:23 AM
    Eclipse Gfx/scripter
    Advanced Eclipser
    *****
    User No : 2911
    Posts: 1211
  • 8 credits
  • View Inventory
  • Send Money To kenny
  • Location : In the shadows stalking the forums at any given moment...
    ~Good Scripter~
    • View Profile
    • WWW
    Lol, nice job of finding that. I wonder if it worked for anyone with that their lol.
    Logged

    <
    Im more of a forum lurker than a talker... I may help if I think its needed. Currently working on Scripts & Custom GFX for game.
    Dont know how to get your game online? try this www.hamachi.cc and install the download, make a network, and distribute client with hamachi ip and and a notepad with your hamachi network/pass... Happy gaming! Also may be able to help with PF, those who can get onto their router already may contact me... others may not because I cant help you.

    My computer geek score is greater than 100% of all people in the world! How do you compare? Click here to find out!
    August 29, 2007, 06:20:43 PM
    Active Member
    ***
    User No : 2847
    Posts: 488
  • 8 credits
  • View Inventory
  • Send Money To 1472000
    • View Profile
    very cool! :D
    Logged
    September 24, 2007, 12:56:31 PM
    Active Member
    ***
    User No : 2847
    Posts: 488
  • 8 credits
  • View Inventory
  • Send Money To 1472000
    • View Profile
    does this work for EE?
    Logged
    September 24, 2007, 01:06:11 PM
    Veteran
    Advanced Eclipser
    *
    User No : 1627
    Posts: 1090
  • 272 credits
  • View Inventory
  • Send Money To Hyperion
  • Location : C anada
    • View Profile
    Necro post Don't do it
    Logged



    I am the Nega-Marsh
    September 25, 2007, 04:57:06 AM
    Eclipse Gfx/scripter
    Advanced Eclipser
    *****
    User No : 2911
    Posts: 1211
  • 8 credits
  • View Inventory
  • Send Money To kenny
  • Location : In the shadows stalking the forums at any given moment...
    ~Good Scripter~
    • View Profile
    • WWW
    This should be a fully working version of the script, all 3 subs in their dont get error from Demon X's script editor.

    Code: [Select]
    Sub SetWoodcuttingExperience(index, exp)
    Dim wclv
    Dim pexp
    Dim max
    Dim wcmax
    wclv = GetVar("\Skills\DB.ini", GetPlayerName(index), "Woodcutting")
    wcmax = GetVar("\Skills\max.ini", "Woodcutting", "maxlv")
    pexp = GetVar("\Skills\DB.ini", GetPlayerName(index), "WoodcuttingExp")
    max = GetVar("\Skills\max.ini", "Woodcutting", "maxexp" & wclv)
    If Int(pexp + exp) > max Then
    If wclv < maxlv Then
    Call PutVar("\Skills\DB.ini", GetPlayerName(index), "WoodcuttingExp", Int(exp - Int(max - pexp)))
    Call PutVar("\Skills\DB.ini", GetPlayerName(index), "Woodcutting", Int(wclv + 1))
    Call PlayerMsg(index, "You gained a woodcutting level", 12)
    ElseIf wclv = maxlv Then
    Call PutVar("\Skills\DB.ini", GetPlayerName(index), "WoodcuttingExp", 0)
    Call PutVar("\Skills\DB.ini", GetPlayerName(index), "Woodcutting", maxlv)
    End If
    ElseIf Int(pexp + exp) <= max Then
    Call PutVar("\Skills\DB.ini", GetPlayerName(index), "WoodcuttingExp", Int(pexp + exp))
    End If
    End Sub

    Sub CheckIt(index)
    Dim WoodcuttingSpotX
    Dim WoodcuttingSpotY
    Dim I
    Dim memX
    Dim Fish
    Dim WoodcuttingSpotM
    I = 1
    Do While I <= GetVar("Skills\Woodcutting.ini", I ,"items")
    WoodcuttingSpotX = GetVar("Skills\Woodcutting.ini", I ,"X")
    WoodcuttingSpotY = GetVar("Skills\Woodcutting.ini", I ,"Y")
    WoodcuttingSpotM = GetVar("Skills\Woodcutting.ini", I ,"MAP")
    memX = I
    If GetPlayerMap(index) = WoodcuttingSpotM Then
    If WoodcuttingSpotY = Int(GetPlayerY(index) + 1) And WoodcuttingSpotX = Int(GetPlayerX(index) + 1) Then
    CheckIt = 1
    I = 21
    ElseIf WoodcuttingSpotY = Int(GetPlayerY(index) - 1) And WoodcuttingSpotX = Int(GetPlayerX(index) - 1) Then
    CheckIt = 1
    I = 21
    ElseIf WoodcuttingSpotY = Int(GetPlayerY(index) + 1) And WoodcuttingSpotX = Int(GetPlayerX(index) - 1) Then
    CheckIt = 1
    I = 21
    ElseIf WoodcuttingSpotY = Int(GetPlayerY(index) - 1) And WoodcuttingSpotX = Int(GetPlayerX(index) + 1) Then
    CheckIt = 1
    I = 21
    Else
    CheckIt = 0
    I = Int(memX + 1)
    End If
    End If
    Loop
    End Sub           

    Sub WoodcuttingMsg(index, wood)
    Dim wclv
    Dim change
    Dim item
    Dim val
    Dim I
    If wood = 1 Then
    If GetPlayerWeapon = GetVar("\Skills\Woodcutting.ini", I ,"weapon") Then
    Call PlayerMsg(index, "You started with cutting some wood", 12)
    I = Rand(1, 10000)
    wclv = GetVar("\Skills\DB.ini",GetPlayerName(index), "Woodcutting")
    change = GetVar("\Skills\Change.ini", "Woodcutting", wclv & "-" & I)
    change = mid(change, 1, 3) & "00"
    max = GetVar("\Skills\max.ini", "Woodcutting", "WCMAX")
    item = GetVar("\Skills\Woodcutting.ini", I ,"item")
    val = GetVar("\Skills\Woodcutting.ini", I ,"val")
    If I >= change Then
    Call PlayerMsg(index, "You cutted some wood", 12)
    Call GiveItem(index, item, val)
    Call SetWoodcuttingExperience(index, GetVar("\Skills\Woodcutting.ini", I ,"exp"))
    Else
    Call PlayerMsg(index, "You failed with cutting some wood", 12)
    End If
    End If
    End If
    End Sub
    Logged

    <
    Im more of a forum lurker than a talker... I may help if I think its needed. Currently working on Scripts & Custom GFX for game.
    Dont know how to get your game online? try this www.hamachi.cc and install the download, make a network, and distribute client with hamachi ip and and a notepad with your hamachi network/pass... Happy gaming! Also may be able to help with PF, those who can get onto their router already may contact me... others may not because I cant help you.

    My computer geek score is greater than 100% of all people in the world! How do you compare? Click here to find out!
    October 02, 2007, 08:55:04 AM
    Member
    **
    User No : 4232
    Posts: 51
  • 0 credits
  • View Inventory
  • Send Money To Jayce Atkins
    • View Profile
    I think I've tried everything that is in the post to get this script to work, but I can't seem to get it. Anybody think they could assist me, if you could I would appreciate it. Please message me.
    Logged
    Pages: [1] 2
     


    Powered by MySQL Powered by PHP Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
    SimplePortal 2.3.1 © 2008-2009, SimplePortal
    Valid XHTML 1.0! Valid CSS!
    Page created in 0.443 seconds with 28 queries.