Jump to content

iFoxkun

Members
  • Posts

    189
  • Joined

  • Last visited

Posts posted by iFoxkun

  1. Which conversion tool did you use? In SPR Conview there's an Encode option and the problem you have right there tends to occur when you leave Encode checked while converting .bmp to .spr. There also seems to be a frame missing in your sprite. Try a different act or add the missing frame.

    Ohhh~ Thanks, actually is it possible to delete that frame?

  2. If it were headgears just copy the item_db info of it

    Ex.

    5132,Angeling_Hat,Angeling Hat,5,20,,700,,2,,0,0xFFFFFFFF,7,2,256,,0,0,[color=#ff0000]204[/color],{ bonus2 bSubRace,RC_DemiHuman,10; },{},{}
    

    The red colored "204" is the view id, to classify which view the item uses. Each headgear uses a view ID.

    so if you were to duplicate this Ex.

    [color=#00ffff]32767[/color],Angeling_Hat,Angeling Hat,5,20,,700,,2,,[color=#0000ff]1[/color],0xFFFFFFFF,7,2,256,,0,0,[color=#FF0000]204[/color],{ [color=#ee82ee]bonus bAllstats,30;[/color] },{},{}
    

    The Cyan "32767" is a different item ID for another item (must change to a different Item ID not taken to duplicate

    The Blue "1" is the changed slot (you can change)

    The Red "204" is the same id, so it gets the view id of the Angeling Hat

    The Violet "bonus bAllstats,30;" is a different effect (you can change)

    Of course you must add the Item description in idnum2desctable.txt

    Ex.

    32767#
    (description)
    #
    
    Item Display name in idnum2displaynametable.txt
    Ex. 
    [code] 32767#Angeling_Hat# 

    And to get the Item.bmp and Collection.bmp You must add the name of the .bmps to the idnum2itemresnametable.txt

    Ex.

     32767#(name of bmp files)# 

  3. prontera,139,182,5 script TCG Mids 793,{
    mes .name$;
    mes "You currently have "+countitem(.tcg_item)+" TCG.";
    mes "Would you like to look at the shop?";
    next;
    if(select("Yes:No") == 2) {close;}
    close2;
    callshop "TCG_SHOP2",1;
    npcshopattach "TCG_SHOP2";
    dispbottom "You currently have "+countitem(.tcg_item)+" TCG.";
    end;
    
    OnBuyItem:
    for(set @i,0; @i < getarraysize(@bought_nameid); set @i,@i+1) {
    for(set @j,0; @j < getarraysize(.TCG_ITEMS2); set @j,@j+1) {
    if(.TCG_ITEMS2[@j] == @bought_nameid[@i]) {
    set @itemcost,(.ITEMPRICE2[@j]*@bought_quantity[@i]);
    set @totalcost,(@totalcost+@itemcost);
    break;
    }
    }
    }
    
    if(@totalcost > countitem(.tcg_item)) {
    dispbottom "You don't have enough TCG.";
    } else {
    for(set @i,0; @i < getarraysize(@bought_nameid); set @i,@i+1) {
    getitem @bought_nameid[@i],@bought_quantity[@i];
    }
    delitem .tcg_item,@totalcost;
    dispbottom "Thank you for shopping.";
    dispbottom "You now have "+countitem(.tcg_item)+" TCG left.";
    }
    set @totalcost,0;
    deletearray @bought_nameid[0],128;
    deletearray @bought_quantity[0],128;
    end;
    
    OnInit:
    npcshopdelitem "TCG_SHOP2",909; // Leave this alone
    set .name$,"[TCG Mids]";
    set .tcg_item,7227; // Input TCG ID
    setarray .TCG_ITEMS2[0],20000; // Item IDs - 128 max
    setarray .ITEMPRICE2[0],25 // Item prices - Should followe ID's order
    
    for(set .@i,0; .@i < getarraysize(.TCG_ITEMS2); set .@i,.@i+1) {
    npcshopadditem "TCG_SHOP2",.TCG_ITEMS2[.@i],.ITEMPRICE2[.@i];
    }
    end;
    }
    
    - shop TCG_SHOP2 -1,909:20
    

    Oh ito, change mo ng iyong script sa ito, kasi ng setarray pwede mag put only 128 values. to add more:

    change mo ng "TCG_SHOP2" -> "TCG_SHOP3" , and changing the numbers to add. (sorry tagalog is bad D:)

    Okay sige~ Change your script to this~ it can old up to 128 items compared to yours which is only 64 due to only 1 array. this has 2 arrays. 1 for price & 1 for item id. To make a another same npc. Change "TCG_SHOP2" to "TCG_SHOP3", change the number only to make it easier.

  4. prontera,139,182,5 script TCG Mids 793,{
    mes .name$;
    mes "You currently have "+countitem(.tcg_item)+" TCG.";
    mes "Would you like to look at the shop?";
    next;
    if(select("Yes:No") == 2) {close;}
    close2;
    callshop "TCG_SHOP2",1;
    npcshopattach "TCG_SHOP2";
    dispbottom "You currently have "+countitem(.tcg_item)+" TCG.";
    end;
    
    OnBuyItem:
    for(set @i,0; @i < getarraysize(@bought_nameid); set @i,@i+1) {
    for(set @j,0; @j < getarraysize(.TCG_ITEMS2); set @j,@j+1) {
    if(.TCG_ITEMS2[@j] == @bought_nameid[@i]) {
    set @itemcost,(.ITEMPRICE2[@j]*@bought_quantity[@i]);
    set @totalcost,(@totalcost+@itemcost);
    break;
    }
    }
    }
    
    if(@totalcost > countitem(.tcg_item)) {
    dispbottom "You don't have enough TCG.";
    } else {
    for(set @i,0; @i < getarraysize(@bought_nameid); set @i,@i+1) {
    getitem @bought_nameid[@i],@bought_quantity[@i];
    }
    delitem .tcg_item,@totalcost;
    dispbottom "Thank you for shopping.";
    dispbottom "You now have "+countitem(.tcg_item)+" TCG left.";
    }
    set @totalcost,0;
    deletearray @bought_nameid[0],128;
    deletearray @bought_quantity[0],128;
    end;
    
    OnInit:
    npcshopdelitem "TCG_SHOP2",909; // Leave this alone
    set .name$,"[TCG Mids]";
    set .tcg_item,7227; // Input TCG ID
    setarray .TCG_ITEMS2[0],20000; // Item IDs - 128 max
    setarray .ITEMPRICE2[0],25 // Item prices - Should followe ID's order
    
    for(set .@i,0; .@i < getarraysize(.TCG_ITEMS2); set .@i,.@i+1) {
    npcshopadditem "TCG_SHOP2",.TCG_ITEMS2[.@i],.ITEMPRICE2[.@i];
    }
    end;
    }
    
    - shop TCG_SHOP2 -1,909:20
    

    Oh ito, change mo ng iyong script sa ito, kasi ng setarray pwede mag put only 128 values. to add more:

    change mo ng "TCG_SHOP2" -> "TCG_SHOP3" , and changing the numbers to add. (sorry tagalog is bad D:)

  5. - script Wing -1,{
    OnWhisperGlobal:
    // == No Sprite
    if(isequipped(24990)) {
    if(@whispervar0$ == "none") {
    atcommand "@changelook 2 0";
    end;
    } else { end; }
    }
    // == Angel Wings
    if(isequipped(24990)) {
    if(@whispervar0$ == "AngelWings") {
    atcommand "@changelook 2 1500";
    end;
    } else { end; }
    }
    }
    

    Try it without the space.

    Nope It didn't work, I even tried changing Angel Wings to Angel_Wings but it didn't work ;_;

    I believe its because you are using the same whispervar? I'm not sure; Its been almost 2 years since i've used the script

    Oh really, i thought it would be okay due to the "if" command.

    but if i change the "@whispervar0$" to "@whispervar1$". It's like this

    Var0 # Var1 meaning that something has to be infront of it correct D:?

    Like I said man, I havent used the script in 2 years so I'm not 100% sure, try combining the 2 Ifs like so:

    - script Wing -1,{
    OnWhisperGlobal:
    // == No Sprite
    if(isequipped(24990)) {
    if(@whispervar0$ == "none") {
    atcommand "@changelook 2 0";
    end;
    } else {
    if(@whispervar0$ == "Angel Wings") {
    atcommand "@changelook 2 1500";
    end; }
    }
    }
    }
    

    It works for Angel Wings but instead of changing the middle headgear it changes the upper and the "none" doesn't work anymore D:

    EDIT:

    "none works, but for upper D;

    EDIT AGAIN!:

    I was wearing 2 dyna's -.- It works! Thanks~

  6. I believe its because you are using the same whispervar? I'm not sure; Its been almost 2 years since i've used the script

    Oh really, i thought it would be okay due to the "if" command.

    but if i change the "@whispervar0$" to "@whispervar1$". It's like this

    Var0 # Var1 meaning that something has to be infront of it correct D:?

  7. Not sure why it doesn't work. When I PM the npc "none" it works, but when I PM "Angel Wings" it doesn't work. Heres the script D;

    
    - script Wing -1,{
    
    OnWhisperGlobal:
    
    // == No Sprite
    if(isequipped(24990)) {
    if(@whispervar0$ == "none") {
    atcommand "@changelook 2 0";
    end;
    } else { end; }
    }
    
    // == Angel Wings
    if(isequipped(24990)) {
    if(@whispervar0$ == "Angel Wings") {
    atcommand "@changelook 2 1500";
    end;
    } else { end; }
    }
    
    }
    

  8. No, but its morally wrong... I mean sure, you can steal someone else item effect but you'll know that you took it which is morally wrong

    Well yeah~ I'm just asking~. I'm just scared the fact that there is a chance another server has the exact same item and effect that I put in ;_;.

  9. This is likely a client issue, off the top of my head have you checked msgstringtable.txt in your data folder?

    Actually Nope. I don't know other things besides adding sprites and the num2/idnum2 and clientinfo.xml

    you actually need to hex your client

    no diffs has this yet

    What would I need to change? o-o
  10. This is likely a client issue, off the top of my head have you checked msgstringtable.txt in your data folder?

    Actually Nope. I don't know other things besides adding sprites and the num2/idnum2 and clientinfo.xml

×
×
  • Create New...