Jump to content
  • 0

ItemShop parece estar bugado!


DejongsBR

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.01
  • Content Count:  9
  • Reputation:   0
  • Joined:  09/09/24
  • Last Seen:  

Olá galera! Sou iniciante em emulações. Estou com essa dificuldade ,se alguém puder me ajudar ...

Ao adicionar itenshop ele so regular apenas um item (o primeiro da lista) .. fiz conforme ensina no script_comando mas não aparece os outros itens.. coloquei caveira com item para troca...

tra_fild,65,142,5 itemshop Pontos PVP/WOE 110,7420,1801:80,504:10,505:20

<nome do mapa>,<x>,<y>,<voltado para>%TAB%itemshop%TAB%<Nome do NPC>%TAB%<id do sprite>,<costitemid>{:<desconto>},<itemid>:<preço>{,<itemid>:<preço>...}

Imagem de como fica...

 

Spoiler

imagem.polegar.png.d2cd7b8451cec483afb86058d497897a.png

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   1
  • Joined:  02/04/24
  • Last Seen:  

tra_fild,65,142,5	itemshop	Pontos PVP/WOE	110,7420,1801:80,504:10,505:20

aqui funcionou de boa...

 

conf/misc.conf

// Is item's price at item/point shop discountable?
// 0 = No (Default)
// 1 = Item shops
// 2 = Point shops
// 3 = Item & point shops
discount_item_point_shop: 0

screenAdobeRO010.jpg

Edited by J0hn
error in editing
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.01
  • Content Count:  9
  • Reputation:   0
  • Joined:  09/09/24
  • Last Seen:  

Sera que pode entao ser meu client ? 

Acho que nao porque estou usando a versao 2023 do path

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.01
  • Content Count:  9
  • Reputation:   0
  • Joined:  09/09/24
  • Last Seen:  

Ate no points pvp deste NPC nao consigo adicionar mais de um item ....

 

 

 

image.thumb.png.42ff22fa4e1d33187bd629bafbb3e7a0.png

 

Aqui o script do NPC

 

//===== rAthena Script =======================================
//= WoE Ranking
//===== By: ==================================================
//= BeWan
//https://rathena.org/board/profile/62232-bewan/
//===== Current Version: =====================================
//= 5.0
//===== Description: =========================================
//= WoE Ranking with top kills, deaths and emp breaker
//= Guild Ranking Supported
//===== Change/Update Logs: ==================================
//=3.0 Update:
//=WoE Announcer when you kill someone.
//=Config settings added 1 = on and 0 = off.
//=Fixed some bugs in points.
//=Points update to account based.
//=Update kill and death script and sql
//=Update Ladder data
//===========================================
//=4.0 Update:
//=points config update.
//===========================================
//5.0 Update:
//=update sql query for ranking data.
//===========================================
//6.0 Update:
//=SOON
//============================================================

/*
DROP TABLE IF EXISTS `woe_ranking`;

CREATE TABLE IF NOT EXISTS `woe_ranking` (
`Char_ID` int(11) unsigned NOT NULL DEFAULT '0',
`PlayerName` varchar(255) NULL DEFAULT '',
`Kills` varchar(255) NULL DEFAULT '',
`Deaths` varchar(255) NULL DEFAULT '',
`EmpBreak` varchar(255) NULL DEFAULT '',
PRIMARY KEY (`Char_ID`)
) ENGINE=MyISAM;
*/

prontera,153,190,4    script    BeWan The Ranker    417,{

    set .@menu$, "~ Top "+.top+" Kills:~ Top "+.top+" Deaths:~ Top "+.top+" Breaker:~ Guild Rank:~ WoE Shop:";
    if (getgmlevel() == 99) { set .@menu$, .@menu$ + "~ Reset Data"; }
    switch(select(.@menu$)) {
    case 1:
    query_sql( "DELETE FROM `woe_ranking` WHERE `PlayerName` NOT IN ( SELECT `name` FROM `char` )" ); 
    set .@size, query_sql( "SELECT * FROM `woe_ranking` WHERE `Kills` > '0' ORDER BY CAST(`Kills` AS UNSIGNED) DESC limit "+ .top, .@CharID, .@name$, .@Kills, .@Deaths, .@EmpBreak);
    
    mes "[^FF0000WoE ^0000FFRank ^996600Top ^FF0000" + .top +"^000000]";
    for (set .@c, 0; .@c < .@size; set .@c, .@c + 1)
        mes "Top ^FF0000" +(.@c + 1) +"^000000: ^0000FF" + .@name$[.@c] +"^000000 with ^FF0000" + .@Kills[.@c] +"^000000 Kills";
    close;
    break;
    
    case 2:
    query_sql( "DELETE FROM `woe_ranking` WHERE `PlayerName` NOT IN ( SELECT `name` FROM `char` )" ); 
    set .@size, query_sql( "SELECT * FROM `woe_ranking` WHERE `Deaths` > '0' ORDER BY CAST(`Deaths` AS UNSIGNED) DESC limit "+ .top, .@CharID, .@name$, .@Kills, .@Deaths, .@EmpBreak);
    
    mes "[^FF0000WoE ^0000FFRank ^996600Top ^FF0000" + .top +"^000000]";
    for (set .@c, 0; .@c < .@size; set .@c, .@c + 1)
        mes "Top ^FF0000" +(.@c + 1) +"^000000: ^0000FF" + .@name$[.@c] +"^000000 with ^FF0000" + .@Deaths[.@c] +"^000000 Deaths";
    close;
    break;
    
    case 3:
    query_sql( "DELETE FROM `woe_ranking` WHERE `PlayerName` NOT IN ( SELECT `name` FROM `char` )" ); 
    set .@size, query_sql( "SELECT * FROM `woe_ranking` WHERE `EmpBreak` > '0' ORDER BY CAST(`EmpBreak` AS UNSIGNED) DESC limit "+ .top, .@CharID, .@name$, .@Kills, .@Deaths, .@EmpBreak);
    
    mes "[^FF0000WoE ^0000FFRank ^996600Top ^FF0000" + .top +"^000000]";
    for (set .@c, 0; .@c < .@size; set .@c, .@c + 1)
        mes "Top ^FF0000" +(.@c + 1) +"^000000: ^0000FF" + .@name$[.@c] +"^000000 with ^FF0000" + .@EmpBreak[.@c] +"^000000 Emperium Break";
    close;
    break;
    
    case 4:
    for (set .@x,0; .@x < .top; set .@x,.@x + 1) {
        if (.@x) mes "- - - - - - - - - - - - - - -";
        mes "# ^ff0000" + (.@x + 1) + "^000000: ^0000ff" + ( (.GuildName$[.@x])? .GuildName$[.@x]:"None" ) + "^000000";
        mes " - Guild Master: ^0000ff" + ( (.GuildMaster$[.@x])? .GuildMaster$[.@x]:"None" ) + "^000000";
        mes " - Territories: ^ff0000" + .NumCastles[.@x] + "^000000";
        mes " - Members: ^ff0000" + .NumMembers[.@x] + "^000000";
    }
    end;
    
    case 5:
    mes "[Master BeWan]";
    mes "Hi, "+strcharinfo(0)+"";
    mes "Want to go shopping?";
    next;
    menu "GvG Shop",GvGShop,"Emperium Break Shop",BreakShop,"Nope",ShopNope;
    
    GvGShop:
    callshop "GvG_Points_Shop",1;
    end;
    
    BreakShop:
    callshop "EmpBreak_Points_Shop",1;
    end;
    
    ShopNope:
    mes "[Master BeWan]";
    mes "Well Okay";
    close;

    case 6:
        mes "Good Day! Master.";
        next;
        menu "Are you sure?",yess,"Nope",noo;
        yess:
        query_sql("TRUNCATE TABLE `ragnarok`.`woe_ranking`;");
        mes "Woe Rank Reset Success";
        close;

        noo:
        mes "Well Okay";
        close;
    break;
    }

OnInit: // Script Configuration
    query_sql "CREATE TABLE IF NOT EXISTS `woe_ranking` ( `Char_ID` int(11) unsigned NOT NULL DEFAULT '0', `PlayerName` varchar(255) NULL DEFAULT '', `Kills` varchar(255) NULL DEFAULT '', `Deaths` varchar(255) NULL DEFAULT '', `EmpBreak` varchar(255) NULL DEFAULT '', PRIMARY KEY (`Char_ID`) ) ENGINE=MyISAM";
    set .top, 10;
    set .WoePoints, 1;      //points to add in database/player when kill
    set .WoeDeduct, 2;      //points to deduct in player when died
    
    set .PointConfig, 1;     //enable by default
    set .DeductConfig, 1;    //enable by default
    set .Announcer, 1;        //enable by default
    waitingroom "Woe Rank List",0;
    end;

OnPCKillEvent:
if ((agitcheck() || agitcheck2()) && getmapflag(strcharinfo(3),MF_GVG)){
    query_sql( "SELECT * FROM woe_ranking WHERE `Char_ID` = '"+getcharid(0)+"'", .@CharID, .@Name$, .@Kills, .@Deaths, .@EmpBreak);
    query_sql "INSERT INTO `woe_ranking` VALUE ( "+getcharid(0)+", '"+escape_sql(strcharinfo(0))+"', '"+.WoePoints+"', '"+.@Deaths+"', '"+.@EmpBreak+"') ON DUPLICATE KEY UPDATE `Kills` = `Kills` + '"+.WoePoints+"' ";
        
    if(.PointConfig == 1){
        set #WOEPOINTS, #WOEPOINTS + .WoePoints;
        dispbottom "You got "+.WoePoints+" WoE Point(s). You now have "+#WOEPOINTS+" total WoE Point(s).";
    }
}
end;

OnPCDieEvent:
if ((agitcheck() || agitcheck2()) && getmapflag(strcharinfo(3),MF_GVG)){
    query_sql( "SELECT * FROM `woe_ranking` WHERE `Char_ID` = '"+getcharid(0)+"'", .@CharID, .@Name$, .@Kills, .@Deaths, .@EmpBreak);
    query_sql "INSERT INTO `woe_ranking` VALUE ( "+getcharid(0)+", '"+escape_sql(strcharinfo(0))+"', '"+.@Kills+"', '1', '"+.@EmpBreak+"') ON DUPLICATE KEY UPDATE `Deaths` = `Deaths` + 1";
    
    if(.DeductConfig == 1){
        set #WOEPOINTS, #WOEPOINTS - .WoeDeduct;
        dispbottom "You lost "+.WoeDeduct+" WoE Point(s) and You now have "+#WOEPOINTS+" WoE Point(s).";    
    }
    if(.Announcer == 1){
        query_sql( "SELECT `guild_id` FROM `char` WHERE `name` = '"+rid2name(killerrid)+"' ", .GuildID );
        announce "[ Woe Announcer ]: "+strcharinfo(0)+" of ["+getguildname(getcharid(2))+"] has been killed by "+rid2name(killerrid)+" of ["+getguildname(.GuildID)+"]", bc_all,0x00FFFF;
    }
}
end;

}

//Shop
-    pointshop    GvG_Points_Shop    1,#WOEPOINTS,1202:5,503:1000,7420:1000
-    pointshop    EmpBreak_Points_Shop    1,#BREAKPOINTS,2311:10,504:50,7420:1000
Edited by Mael
Use a codebox
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...