Jump to content
  • 0

Skull trader ( previous ones confuse me T_T)


Santafe

Question


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  325
  • Reputation:   34
  • Joined:  06/01/13
  • Last Seen:  

Hey guyz! , I need a script which says Hi to the player (such that i can edit the "mes" part later xD) that exchanges skulls for some item say poring coin. Unlike the usual scripts where u exchange 100 for 1 item i want to exchange 1 skull for 1 item. so the relation between the 2 should be 1skull = 1 item. plz help me :/ thanks in advance :D

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  452
  • Reputation:   33
  • Joined:  12/18/14
  • Last Seen:  

Oh crap lol

please put this:

set .skull_required,1; //number of skulls

put set infront of every declaration, sorry about that

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  452
  • Reputation:   33
  • Joined:  12/18/14
  • Last Seen:  

prontera,155,175,5    script    Skull Exchanger    123,{
    
    mes "[ Skull Girl ]";
    mes "I really love "+getitemname(.skull_id)+"s";
    mes "give me "+.skull_required+"x and I will give you";
    mes .exchange_qty+"x "+getitemname(.exchange_id);
    mes "How many do you want to exchange?";
    input .@input;
    if(!.@input){
        next;
        mes "[ Skull Girl ]";
        mes "Come back again~";
        close;
    }
    if(.@input < countitem(.skull_id)){
        next;
        mes "[ Skull Girl ]";
        mes "You don't have enough to exchange that many.";
        close;
    }
    next;
    delitem .skull_id,.skull_required * .@input;
    getitem .exchange_id,.exchange_qty * .@input;
    mes "[ Skull Girl ]";
    mes "Oh em geeee";
    mes "Yasss I hassss "+getitemname(.skull_id)+" nowwww!";
    mes "Me so happy, here take these "+getitemname(.exchange_id)+"!";
    close;

    
    OnInit:
        .skull_required,1; //number of skulls
        .skull_id,7179; //id # of skull
        .exchange_qty,1; //number of exchanged items
        .exchange_id,7539; //id # of exchanged item
    
    end;
}

Not tested, but it should work.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  325
  • Reputation:   34
  • Joined:  06/01/13
  • Last Seen:  

prontera,155,175,5    script    Skull Exchanger    123,{
    
    mes "[ Skull Girl ]";
    mes "I really love "+getitemname(.skull_id)+"s";
    mes "give me "+.skull_required+"x and I will give you";
    mes .exchange_qty+"x "+getitemname(.exchange_id);
    mes "How many do you want to exchange?";
    input .@input;
    if(!.@input){
        next;
        mes "[ Skull Girl ]";
        mes "Come back again~";
        close;
    }
    if(.@input < countitem(.skull_id)){
        next;
        mes "[ Skull Girl ]";
        mes "You don't have enough to exchange that many.";
        close;
    }
    next;
    delitem .skull_id,.skull_required * .@input;
    getitem .exchange_id,.exchange_qty * .@input;
    mes "[ Skull Girl ]";
    mes "Oh em geeee";
    mes "Yasss I hassss "+getitemname(.skull_id)+" nowwww!";
    mes "Me so happy, here take these "+getitemname(.exchange_id)+"!";
    close;

    
    OnInit:
        .skull_required,1; //number of skulls
        .skull_id,7179; //id # of skull
        .exchange_qty,1; //number of exchanged items
        .exchange_id,7539; //id # of exchanged item
    
    end;
}

Not tested, but it should work.

 

Hey panda just got 1 error at the line "."skull_required,1;

is it because im using eamod or smthing else?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  325
  • Reputation:   34
  • Joined:  06/01/13
  • Last Seen:  

Which line is that?

1st line after onInit:
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  325
  • Reputation:   34
  • Joined:  06/01/13
  • Last Seen:  

Oh crap lol

please put this:

set .skull_required,1; //number of skulls

put set infront of every declaration, sorry about that

ROFL works like a charm thanks xD

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...