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

Thread: Spawn an Image Script

  1. #1

    Spawn an Image Script

    Hello, I need a script which will allow me to place an image for example if I said :image (image name/file). I also would like it to place on my playerx and playery or my mousex and mousey. I would appreciate any help and would love for a script. I would also like a script which allows me to place an item or weapon. So that when I say :weapon or :w the item I say after will be spawned/placed.

    Here is a simple script I made which allows me to place any image on the server as a horse, but it only places the image in the horse template. I would like the whole image to be spawned. Of course the image would have to be on the server for anyone else to see it.

    Code:
    //#CLIENTSIDE
    function onPlayerChats() {
      if (player.chat.starts(":h")) {
        horse = player.chat.substring(3);
        puthorse(horse, player.x, player.y);
      }
    }

    -Thanks John Raven Youngman
    Last edited by Johnyoungman224; 01-03-2015 at 10:24 PM.

  2. #2
    Raven Ventus Victor's Avatar
    Join Date
    Feb 2014
    Location
    Malaysia
    Posts
    2,977
    What's that lol xD Idk a lot of thing

  3. #3
    Quote Originally Posted by Victor View Post
    What's that lol xD Idk a lot of thing
    I could sorta show you the idea on UN if you come.

  4. #4

  5. #5
    Whoever can successfully make me this script will get an item of their choice spawned on Era PC and a free $25 itunes gift card! I really need this script

  6. #6
    i don't think there's a script for that on any server actually, but it wouldn't be hard to make i believe, i'll try to look everywhere i can.
    Questions? Don't be afraid to message me.

  7. #7
    hextraordinary Hex's Avatar
    Join Date
    Jun 2013
    Location
    Straya
    Posts
    2,906
    Quote Originally Posted by Johnyoungman224 View Post
    Whoever can successfully make me this script will get an item of their choice spawned on Era PC and a free $25 itunes gift card! I really need this script
    lol i got the best in the biz working on it

    - - - Updated - - -

    My friend seems to think this will work, since i have no knowledge of coding idk :C

    function onActionServerSide() {
    switch (params[0]) {
    case "dropa": {
    c = params[2];
    putnpc2( player.x + .5 + vecx( player.dir) * 2, player.y + 1 + vecy( player.dir) * 2, "join(\"item_dropped\");");
    with( npcs[ npcscount - 1])
    {
    this.img = "block.png";
    this.nam = c;
    this.own = params[1];
    this.amm = 1;
    }
    }
    }
    }
    //#CLIENTSIDE
    function onPlayerChats() {
    temp.args = player.chat.substring("/drop ".length());

    if (player.chat.starts("/drop ")){
    triggerserver("gui", name, "dropa", player.account, temp.args, temp.dropquant);
    }

  8. #8
    Quote Originally Posted by Myst View Post
    lol i got the best in the biz working on it

    - - - Updated - - -

    My friend seems to think this will work, since i have no knowledge of coding idk :C

    function onActionServerSide() {
    switch (params[0]) {
    case "dropa": {
    c = params[2];
    putnpc2( player.x + .5 + vecx( player.dir) * 2, player.y + 1 + vecy( player.dir) * 2, "join(\"item_dropped\");");
    with( npcs[ npcscount - 1])
    {
    this.img = "block.png";
    this.nam = c;
    this.own = params[1];
    this.amm = 1;
    }
    }
    }
    }
    //#CLIENTSIDE
    function onPlayerChats() {
    temp.args = player.chat.substring("/drop ".length());

    if (player.chat.starts("/drop ")){
    triggerserver("gui", name, "dropa", player.account, temp.args, temp.dropquant);
    }
    If this seems to work, I will keep my word and give the iphone gift card and spawn a weapon of your choice.

  9. #9
    hextraordinary Hex's Avatar
    Join Date
    Jun 2013
    Location
    Straya
    Posts
    2,906
    Quote Originally Posted by Johnyoungman224 View Post
    If this seems to work, I will keep my word and give the iphone gift card and spawn a weapon of your choice.
    hoorah, and what do you mean by spawn a weapon of my choice

  10. #10
    Quote Originally Posted by Myst View Post
    hoorah, and what do you mean by spawn a weapon of my choice
    Well I have some bad news. The script does not work, and also Era has seem to have blocked my program. I have gotten in yesterday but they lowered the time of when it automatically disconnects me. Since you have given effort I will still give you the Gift card. I cannot spawn the weapon though.And what I meant by spawning a weapon was, dropping a weapon that you wanted and giving it to you on era for free. If you would like the code either skype me at Johnyoungman224 or pm me here on the forums.

Posting Permissions

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