Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Transfering Cash & Wearing Items

  1. #1
    iScripter
    Join Date
    Dec 2013
    Location
    Poland
    Posts
    69
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    38
    Rep Power
    4

    Exclamation Transfering Cash & Wearing Items

    Hi ! I make my own script for Dawnport and i need one action when my hero goes mainland. I do not know how i can make a thing like transfering all balance to main character. Need something like that:

    Code:
    ~Hi
    ~Deposit All
    ~Yes
    ~Withdraw 55
    ~Yes
    ~Balance
    ~Transfer
    ~(Cash From Balance)
    ~Name
    ~Yes
    Will be great if on "SETUP" i can wrote name of main character

    After my character on Dawnport take backpack i want him to open it and wear the items. Need action for moving a items like brass armor etc from backpack to item slot.
    Last edited by Eli; 01-24-2015 at 10:37 AM.

  2. #2
    Moderator Furieri's Avatar
    Join Date
    Jun 2012
    Location
    Vitoria - ES / Brasil
    Posts
    792
    Mentioned
    62 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    199 Post(s)
    Reputation
    158
    Rep Power
    7
    On Setup:
    Lua Code:
     
    MainCharName = "Main Character"


    You have to find about getnewmessage() in forum. Then:
    Lua Code:
     
    say("Hi")
    npcsay("Deposit all")
    npcsay("yes")
    npcsay("Balance")
    npcsay("Transfer")
    npcsay(Balance)
    npcsay(MainCharName)
    npcsay("yes")

  3. #3
    iScripter
    Join Date
    Dec 2013
    Location
    Poland
    Posts
    69
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    38
    Rep Power
    4
    Quote Originally Posted by isaacbf View Post
    On Setup:
    Lua Code:
     
    MainCharName = "Main Character"


    You have to find about getnewmessage() in forum. Then:
    Lua Code:
     
    say("Hi")
    npcsay("Deposit all")
    npcsay("yes")
    npcsay("Balance")
    npcsay("Transfer")
    npcsay(Balance)
    npcsay(MainCharName)
    npcsay("yes")
    I'm not so good with hard english well it's hard to find for me.. Ye i know that all about "npcsay". In ur action bot still do not know how many cash it have to send :P

  4. #4
    Focus Group Targets's Avatar
    Join Date
    Nov 2013
    Location
    PoA - Brazil
    Posts
    456
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    48 Post(s)
    Reputation
    109
    Rep Power
    5
    Lua Code:
     
    say('hi')
    wait(300,1000)
    npcsay('deposit all')
    wait(300,1000)
    npcsay('yes')
    wait(300,1000)
    npcsay('withdraw 55')
    wait(300,1000)
    npcsay('yes')
    wait(300,1000)
    npcsay('balance')
    wait(500,1000)
    updateworld()
    wait(500,1000)
    npcsay('transfer '..balance)
    wait(300,1000)
    npcsay(MainCharName)
    wait(300,1000)
    npcsay('yes')


    Same Action, create a variable in Setup called MainCharName



  5. #5
    iScripter
    Join Date
    Dec 2013
    Location
    Poland
    Posts
    69
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    38
    Rep Power
    4
    Quote Originally Posted by Targets View Post
    Lua Code:
     
    say('hi')
    wait(300,1000)
    npcsay('deposit all')
    wait(300,1000)
    npcsay('yes')
    wait(300,1000)
    npcsay('withdraw 55')
    wait(300,1000)
    npcsay('yes')
    wait(300,1000)
    npcsay('balance')
    wait(500,1000)
    updateworld()
    wait(500,1000)
    npcsay('transfer '..balance)
    wait(300,1000)
    npcsay(MainCharName)
    wait(300,1000)
    npcsay('yes')


    Same Action, create a variable in Setup called MainCharName
    Thanks a lot ! What about 2nd problem? Items from BP till slot.

  6. #6
    iScripter
    Join Date
    Dec 2013
    Location
    Poland
    Posts
    69
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    38
    Rep Power
    4
    @Targets - REP + for u WORKING !

    Still searching 2nd action

  7. #7
    iScripter
    Join Date
    Dec 2013
    Location
    Poland
    Posts
    69
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    38
    Rep Power
    4
    Anyone know what action i have to use for move my item from backpack to item place?

    Need it so hard.. ;(

  8. #8
    iBot User Chudson's Avatar
    Join Date
    Nov 2014
    Posts
    82
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    24 Post(s)
    Reputation
    57
    Rep Power
    3
    Lua Code:
     
    moveitems("arrow", "all", "ammo", 100)


    "arrow" = name of item that you want to move
    "all" = name of backpack with item ("all" - move item from any backpack)
    "ammo" = slot of you char.
    "helmet" = helmet slot
    "armor" = armor slot
    "weapon" = weapon slot (in not sure, it can be "rhand"
    i dont know what name is for shield slot
    "legs" = legs slot
    "boots" = for boots slot

  9. #9
    iScripter
    Join Date
    Dec 2013
    Location
    Poland
    Posts
    69
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    38
    Rep Power
    4
    Quote Originally Posted by Chudson View Post
    Lua Code:
     
    moveitems("arrow", "all", "ammo", 100)


    "arrow" = name of item that you want to move
    "all" = name of backpack with item ("all" - move item from any backpack)
    "ammo" = slot of you char.
    "helmet" = helmet slot
    "armor" = armor slot
    "weapon" = weapon slot (in not sure, it can be "rhand"
    i dont know what name is for shield slot
    "legs" = legs slot
    "boots" = for boots slot
    Thanks ! Ill try it later

    Anyone know what name has shield slot?

  10. #10
    Focus Group Targets's Avatar
    Join Date
    Nov 2013
    Location
    PoA - Brazil
    Posts
    456
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    48 Post(s)
    Reputation
    109
    Rep Power
    5
    i think that is "shield"



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •