Package l2p.gameserver.serverpackets

Examples of l2p.gameserver.serverpackets.NpcHtmlMessage.replace()


                        if (clan != null) {
                            html.replace("%clanname%", clan.getName());
                            html.replace("%clanleadername%", clan.getLeaderName());
                        } else {
                            html.replace("%clanname%", "unexistant clan");
                            html.replace("%clanleadername%", "None");
                        }
                    } else {
                        html.replace("%clanname%", "NPC");
                        html.replace("%clanleadername%", "None");
                    }
View Full Code Here


                        } else {
                            html.replace("%clanname%", "unexistant clan");
                            html.replace("%clanleadername%", "None");
                        }
                    } else {
                        html.replace("%clanname%", "NPC");
                        html.replace("%clanleadername%", "None");
                    }
                } else {
                    html.replace("%castlename%", "Open");
                    html.replace("%taxpercent%", "0");
View Full Code Here

                            html.replace("%clanname%", "unexistant clan");
                            html.replace("%clanleadername%", "None");
                        }
                    } else {
                        html.replace("%clanname%", "NPC");
                        html.replace("%clanleadername%", "None");
                    }
                } else {
                    html.replace("%castlename%", "Open");
                    html.replace("%taxpercent%", "0");
                    html.replace("%clanname%", "No");
View Full Code Here

                    } else {
                        html.replace("%clanname%", "NPC");
                        html.replace("%clanleadername%", "None");
                    }
                } else {
                    html.replace("%castlename%", "Open");
                    html.replace("%taxpercent%", "0");
                    html.replace("%clanname%", "No");
                    html.replace("%clanleadername%", getName());
                }
                player.sendPacket(html);
View Full Code Here

                        html.replace("%clanname%", "NPC");
                        html.replace("%clanleadername%", "None");
                    }
                } else {
                    html.replace("%castlename%", "Open");
                    html.replace("%taxpercent%", "0");
                    html.replace("%clanname%", "No");
                    html.replace("%clanleadername%", getName());
                }
                player.sendPacket(html);
            } else if (command.startsWith("Quest")) {
View Full Code Here

                        html.replace("%clanleadername%", "None");
                    }
                } else {
                    html.replace("%castlename%", "Open");
                    html.replace("%taxpercent%", "0");
                    html.replace("%clanname%", "No");
                    html.replace("%clanleadername%", getName());
                }
                player.sendPacket(html);
            } else if (command.startsWith("Quest")) {
                String quest = command.substring(5).trim();
View Full Code Here

                    }
                } else {
                    html.replace("%castlename%", "Open");
                    html.replace("%taxpercent%", "0");
                    html.replace("%clanname%", "No");
                    html.replace("%clanleadername%", getName());
                }
                player.sendPacket(html);
            } else if (command.startsWith("Quest")) {
                String quest = command.substring(5).trim();
                if (quest.length() == 0) {
View Full Code Here

                    if (player.getLoto(i) < 10) {
                        button = "0" + button;
                    }
                    String search = "fore=\"L2UI.lottoNum" + button + "\" back=\"L2UI.lottoNum" + button + "a_check\"";
                    String replace = "fore=\"L2UI.lottoNum" + button + "a_check\" back=\"L2UI.lottoNum" + button + "\"";
                    html.replace(search, replace);
                }
            }
            if (count == 5) {
                String search = "0\">Return";
                String replace = "22\">The winner selected the numbers above.";
View Full Code Here

                }
            }
            if (count == 5) {
                String search = "0\">Return";
                String replace = "22\">The winner selected the numbers above.";
                html.replace(search, replace);
            }
            player.sendPacket(html);
        }
        if (val == 22) {
            if (!LotteryManager.getInstance().isStarted()) {
View Full Code Here

                }
            }
            if ("".equals(message)) {
                message += "There is no winning lottery ticket...<br>";
            }
            html.replace("%result%", message);
        } else if (val == 25) {
            filename = getHtmlPath(npcId, 2);
            html.setFile(filename);
        } else if (val > 25) {
            int lotonumber = LotteryManager.getInstance().getId();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.