Jump to content
  • 0

Can somebody make this npc please?


eboni001

Question


  • Group:  Members
  • Topic Count:  79
  • Topics Per Day:  0.02
  • Content Count:  327
  • Reputation:   4
  • Joined:  06/22/13
  • Last Seen:  

Hello guys, as title say i need an npc like this:

 

In my server i have Naruto Headprotectors, All kage hats and Naruto Sunglasses, each kage is twice, Slotted[1] and no slotted[0], i also have 1 Naruto Sunglasses by each Headprotector and each kage hat,

What i want is an npc that have this options:

 

-Change my Headprotector for a Sunglasses.

-Change my sunglasses for a Headprotector.

-Nothing at this moment, I'll be back later.

 

i want npc can change slotted kage by slotted sunglasses, non-slotted kage by non-slotted sunglasses, and if possible (I saw this in another server) if i try to change a HP or kage and it have a card compounded

on it the sunglasses/HP i received from the npc have the same card.

 

id's >>--<< id's

id #1-8048  <--viceversa-->  id #18-8128

id #2-8049  <--viceversa-->  id #19-8129

id #3-8050  <--viceversa-->  id #20-8130

id #4-8051  <--viceversa-->  id #21-8131

id #5-8052  <--viceversa-->  id #22-8132

id #6-8053  <--viceversa-->  id #23-8133

id #7-8054  <--viceversa-->  id #24-8134

id #8-8055  <--viceversa-->  id #25-8135

id #9-8056  <--viceversa-->  id #26-8136

id #10-8057  <--viceversa-->  id #27-8137

id #11-8058  <--viceversa-->  id #28-8138

id #12-8059  <--viceversa-->  id #29-8139

id #13-8060  <--viceversa-->  id #30-8140

id #14-8061  <--viceversa-->  id #31-8141

id #15-8062  <--viceversa-->  id #32-8142

id #16-8063  <--viceversa-->  id #33-8143

id #17-8064  <--viceversa-->  id #34-8144

Somebody please help me with this npc ;) and thanks in advance.



Bump

Edited by eboni001
Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  193
  • Reputation:   14
  • Joined:  12/02/11
  • Last Seen:  

http://pastebin.com/raw.php?i=dnng4smb

http://pastebin.com/raw.php?i=JwYBip1V

 

Test it first before using (I already tested though)

 

edit: error on card xD wait a sec...

edit2: it's working, but try it first maybe I missed something..

 

Oh yeah, don't forget to configure the NPC beforehand..

OnInit:
setarray .item1[1],8048,8049,8050,8051,8025,8053,8054,8055,8056,8057,8058,8059,8060,8061,8062,8063,8064;
setarray .item2[1],8128,8129,8130,8131,8132,8133,8134,8135,8136,8137,8138,8139,8140,8141,8142,8143,8144;

// -- Just to test don't uncomment this line or you can just delete it anyway... --
//setarray .item1[1],2102,2221; 
//setarray .item2[1],2106,2227;

you need to do @reloadscript or restart your server...

Edited by 2essy2killu
  • Upvote 1
Link to comment
Share on other sites

  • 1

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  193
  • Reputation:   14
  • Joined:  12/02/11
  • Last Seen:  

http://pastebin.com/raw.php?i=98Hxhjbh

 

try it

Edited by 2essy2killu
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  79
  • Topics Per Day:  0.02
  • Content Count:  327
  • Reputation:   4
  • Joined:  06/22/13
  • Last Seen:  

http://pastebin.com/raw.php?i=dnng4smb

http://pastebin.com/raw.php?i=JwYBip1V

 

Test it first before using (I already tested though)

 

edit: error on card xD wait a sec...

edit2: it's working, but try it first maybe I missed something..

 

Oh yeah, don't forget to configure the NPC beforehand..

OnInit:
setarray .item1[1],8048,8049,8050,8051,8025,8053,8054,8055,8056,8057,8058,8059,8060,8061,8062,8063,8064;
setarray .item2[1],8128,8129,8130,8131,8132,8133,8134,8135,8136,8137,8138,8139,8140,8141,8142,8143,8144;

// -- Just to test don't uncomment this line or you can just delete it anyway... --
//setarray .item1[1],2102,2221; 
//setarray .item2[1],2106,2227;

you need to do @reloadscript or restart your server...

You Are Awesome!! Really thank you this npc work Very Good WoW im very happy with this npc :D

http://pastebin.com/raw.php?i=dnng4smb

http://pastebin.com/raw.php?i=JwYBip1V

 

Test it first before using (I already tested though)

 

edit: error on card xD wait a sec...

edit2: it's working, but try it first maybe I missed something..

 

Oh yeah, don't forget to configure the NPC beforehand..

OnInit:
setarray .item1[1],8048,8049,8050,8051,8025,8053,8054,8055,8056,8057,8058,8059,8060,8061,8062,8063,8064;
setarray .item2[1],8128,8129,8130,8131,8132,8133,8134,8135,8136,8137,8138,8139,8140,8141,8142,8143,8144;

// -- Just to test don't uncomment this line or you can just delete it anyway... --
//setarray .item1[1],2102,2221; 
//setarray .item2[1],2106,2227;

you need to do @reloadscript or restart your server...

hey i have a question, why the .@npcname is not working? npc shown dialog but not the name

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  193
  • Reputation:   14
  • Joined:  12/02/11
  • Last Seen:  

hey i have a question, why the .@npcname is not working? npc shown dialog but not the name

 

set .@npcname$, "[ ^FF0000Trader^000000 ]";

make sure it's the variable name

 

.@ variables are integer not string

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  79
  • Topics Per Day:  0.02
  • Content Count:  327
  • Reputation:   4
  • Joined:  06/22/13
  • Last Seen:  

hey i have a question, why the .@npcname is not working? npc shown dialog but not the name

 

set .@npcname$, "[ ^FF0000Trader^000000 ]";

make sure it's the variable name

 

.@ variables are integer not string

look i have it like this

 

prontera,183,194,2    script    Sunglasses Expert    528,{

goto T_Main;

// -------- The Configuration -----------
// Item 1
//   ^
//   |       Players can trade this item Vice Versa
//   v
// Item 2
OnInit:
//setarray .item1[1],8048,8049,8050,8051,8025,8053,8054,8055,8056,8057,8058,8059,8060,8061,8062,8063,8064;
//setarray .item2[1],8128,8129,8130,8131,8132,8133,8134,8135,8136,8137,8138,8139,8140,8141,8142,8143,8144;

// -- Just to test don't uncomment this line or you can just delete it anyway... --
setarray .item1[1],8048,8049,8050,8051,8052,8053,8056,8054,8055,8057,8058,8059,8060,8061,8062,8063,8064;
setarray .item2[1],8128,8129,8130,8131,8132,8133,8136,8134,8135,8137,8138,8139,8140,8141,8142,8143,8144;
// --------------------------------------------------------------------------------

set .@npcname$, "[ ^FF0000Sunglasses Expert^000000 ]";

end;
// --------------------------------------

// -------- The Main Script -------------
T_Main:
mes .@npcname$;
mes "Hi I am the Sunglasses Expert, I Can Help You Trading Some of Your Hats or Headgears, If They Are Coming From Another Country.";
next;
mes .@npcname$;
mes "Do You Want To Make Any Deal Relating With Glasses?";
next;

    // Generating Menu
    for (.@i=1; .@i < getarraysize(.item1); .@i++) {
    set .@menu$,.@menu$+"^DD0000"+getitemname(.item1[.@i])+"^000000 <-> ^0000DD"+getitemname(.item2[.@i])+"^000000:";
    }
    .@menu$ = delchar(.@menu$,(getstrlen(.@menu$)-1));
    set @choice,select(.@menu$);
    next;
    mes .@npcname$;
    mes "Hmm which item you want to trade ?";
    // Generating Menu pt 2
    set .@menu$,"^DD0000"+getitemname(.item1[@choice])+"^000000 <-> ^0000DD"+getitemname(.item2[@choice])+"^000000:^DD0000"+getitemname(.item2[@choice])+"^000000 <-> ^0000DD"+getitemname(.item1[@choice])+"^000000:";
    //---------menu ""+getitemname(.item1[@choice])+" to "+getitemname(.item2[@choice])+"",choice1,
    //---------        ""+getitemname(.item2[@choice])+" to "+getitemname(.item1[@choice])+"",choice2;
    set @choice2,select(.@menu$);
    next;
    mes .@npcname$;
    getinventorylist;
    if (@choice2 == 1) {
        if(countitem(.item1[@choice]) == 0) {
        mes "You don't have ^FF0000"+getitemname(.item1[@choice])+".";
        end;
        }
        if(countitem(.item1[@choice]) > 1) {
        mes "Please make sure you only have 1 ^FF0000"+getitemname(.item1[@choice])+"^000000 on your inventory.";
        end;
        }
            for (@i=0; @i <= @inventorylist_count; @i=@i+1) {
                if(@inventorylist_id[@i] == .item1[@choice]) {
                set @itemid,@i;
                break;
                }
            }
        getitem2 .item2[@choice],1,1,0,0,@inventorylist_card1[@itemid],@inventorylist_card2[@itemid],@inventorylist_card3[@itemid],@inventorylist_card4[@itemid];
        delitem .item1[@choice],1;
        mes "Thanks for the deal.";
        end;
    } else if (@choice2 == 2) {
        if(countitem(.item2[@choice]) == 0) {
        mes "You don't have ^FF0000"+getitemname(.item2[@choice])+".";
        end;
        }
        if(countitem(.item2[@choice]) > 1) {
        mes "Please make sure you only have 1 ^FF0000"+getitemname(.item2[@choice])+"^000000 on your inventory.";
        end;
        }
            for (@i=0; @i <= @inventorylist_count; @i=@i+1) {
                if(@inventorylist_id[@i] == .item2[@choice]) {
                set @itemid,@i;
                break;
                }
            }
        getitem2 .item1[@choice],1,1,0,0,@inventorylist_card1[@itemid],@inventorylist_card2[@itemid],@inventorylist_card3[@itemid],@inventorylist_card4[@itemid];
        delitem .item2[@choice],1;
        mes "Thanks for the deal.";
        end;
    }
    

// --------------------------------------

}
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...