Jump to content
  • 0

Skull trader ( previous ones confuse me T_T)


Question

Posted

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

6 answers to this question

Recommended Posts

  • 0
Posted
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.

  • 0
Posted
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?

  • 0
Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...