Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

FIX Csro-r Item Mall

Newbie Spellweaver
Joined
May 7, 2014
Messages
13
Reaction score
0
This is working only with zend server, after 30 days will expire, there is another solution to host files?

Tried all php version in iis, mssql connection is working but I get only white page.
 
Last edited:
Skilled Illusionist
Joined
Jan 5, 2009
Messages
343
Reaction score
391
This is working only with zend server, after 30 days will expire, there is another solution to host files?

Tried all php version in iis, mssql connection is working but I get only white page.

i'm usually runnin php apps on nginx + php-fpm :D give it a try, and it works on linux :p
 
Last edited:
Elite Diviner
Joined
May 15, 2009
Messages
403
Reaction score
414
In addition for sroprot, I made a small class to block the IP in windows firewall...
source:

compile it and add as reference to sroprot...

here's an example, btw this example below has block timer:
Code:
using System;
using System.Runtime.InteropServices;
using System.Text;
using System.Net;
using System.Collections.Generic;
using System.Threading;
using FirewallControl;

namespace sroprot.Core
{
    public sealed class FirewallManager
    {
        static FirewallManager m_Instance = null;


        private FirewallManager() { }


        public static FirewallManager getInstance()
        {
            if (m_Instance == null)
            {
                m_Instance = new FirewallManager();
            }
            return m_Instance;
        }


        public static string FWRuleName = "SR_Blocklist";


        private List<FwBlockList> blocklist = new List<FwBlockList>();


        private Thread m_FirewallWorker = null;


        private bool m_IsRunning = false;
        private bool m_IsCreated = false;


        private Firewall FWCtrl = new Firewall();
        
        private struct FwBlockList
        {
            public String ipaddr;
            public DateTime time;
        }
        
        public void AddToFwBlockList(string ip)
        {
            try
            {
                Global.BlockedIpAddresses.Add(ip);


                DateTime time = new DateTime();
                time = DateTime.Now;
                                
                FwBlockList item = new FwBlockList()
                {
                    ipaddr = ip,
                    time = time
                };
                blocklist.Add(item);
                if (Global.EnableFirewallBlocking)
                {
                    FWCtrl.AddBlockAddresses(ip);
                }                
            }
            catch
            {
                Console.WriteLine("Status: Failed to add entry");
                return;
            }
        }


        public void RemToFwBlockList(string ip)
        {
            try
            {                
                Global.BlockedIpAddresses.Remove(ip);
                if (Global.EnableFirewallBlocking)
                {
                    FWCtrl.RemoveBlockAddresses(ip);
                }                
            }
            catch
            {
                Console.WriteLine("Status: Failed to add entry");
                return;
            }
        }


        void FirewallThread()
        {
            while (this.m_IsRunning)
            {
                try
                {
                    if (blocklist != null)
                    {
                        for (int i = 0; i < blocklist.Count; i++)
                        {
                            var addr = blocklist[i].ipaddr;
                            var time = blocklist[i].time;


                            TimeSpan span = new TimeSpan();
                            span = DateTime.Now - time;


                            int timespan = span.Seconds;


                            if (timespan > Global.IPBlockDuration)
                            {
                                blocklist.RemoveAll
                                (
                                    structure => structure.ipaddr == addr
                                );
                                RemToFwBlockList(addr);
                            }
                        }
                    }
                }
                catch
                {
                    Console.WriteLine("Status: Error failed to start FirewallThread thread");
                }
                Thread.Sleep(1);
            }
        }


        public void StartFirewall(string p1, string p2)
        {
            if (this.m_IsRunning)
                return;


            try
            {
                if (Global.EnableFirewallBlocking)
                {
                    this.FWCtrl.CreateRule(FWRuleName, p1 + "," + p2);


                    if (this.FWCtrl.RuleIsCreated)
                    {
                        Console.WriteLine("Status: {0} firewall rule was created!", FWRuleName);
                    }
                }
                this.m_FirewallWorker = new Thread(this.FirewallThread);
                this.m_IsRunning = true;
                this.m_FirewallWorker.Start();
            }
            catch
            {
                Console.WriteLine("Status: Error at starting m_FirewallWorker thread");
                return;
            }
        }


        void StopFwThread()
        {
            if (!this.m_IsRunning)
                return;


            try
            {
                this.m_FirewallWorker.Abort();
                this.m_FirewallWorker = null;
            }
            catch
            {
                Console.WriteLine("Status: Error at aborting m_FirewallWorker thread");
                return;
            }
            this.m_IsRunning = false;
        }
    }
}

To fix disconnections or no responds from server issue in sroprot..
In UserContexts.cs go to DoRecvFromClientCallback and DoRecvFromModuleCallback functions and make it to process only a complete buffer, cuz SilkroadSecurityApi was made in blocking method...

correct me if I'm wrong with this.. I'm not a pro programmer...
 
Newbie Spellweaver
Joined
Nov 22, 2012
Messages
51
Reaction score
1
I wonder why Premium Silk or (point) are invisible from item mall info
also I noticed that Gift Silk is still showing 0
if gift silk is useless on these files how can I enable point or premium silk in item mall info and disable gift silk from it ?
edit
by taking a quick look at sro_client unfortunately they are coded
the ifnewitemmallmyinfo.cpp is coded to show only silk and gift silk -.-
 
Last edited:
Skilled Illusionist
Joined
Feb 13, 2012
Messages
388
Reaction score
68
it's fixed at item mall and web item mall but what about npc?
 
Junior Spellweaver
Joined
May 13, 2013
Messages
170
Reaction score
3
siyoteam - FIX Csro-r Item Mall - RaGEZONE Forums


any idea?
 
Last edited:
Newbie Spellweaver
Joined
Feb 23, 2012
Messages
40
Reaction score
1
Helpp another pc not connectionn

port 15779 error
port 5000 connected but no silk

PHP:
;SroProt common configuration file
;--------------------------------------------------
[server]

;Will appear at console window title
name=PlayXenon-Revolution

;Traffic limiter
MaxBytesPerSecondRecv=10000
MaxBytesPerSecondSend=10000
ReportTrafficAbuser=true

;Use __IPLockDown procedure to assign account to ip address
acc_ip_limitation=true

;Maximum connections per one IP Address
PerAddressConnectionLimit=5

;Ingame feature fixes
item_mall_buy_fix=true
silk_display_fix=true
web_item_mall_token_fix=true

;SQL Connection string (required)
sql_str=Server=myy\SQLEXPRESS;Database=SILK_ACCOUNTDB;User Id=h1;Password=hnserver;

;Server count, Section names - server_0, server_1 and so on]
count=2

;Log levels to display
display_notify=true
display_warning=true
display_error=true

;--------------------------------------------------
[server_0]
;All interfaces=127.0.0.1
bind_ip=myip
bind_port=15779

;Destination module address
module_ip=myip
module_port=5000


type=GatewayServer
;Security flags for each server user context
blowfish=false
sec_bytes=false
handshake=false
;--------------------------------------------------
[server_1]
;All interfaces=127.0.0.1
bind_ip=myip
bind_port=15884

;Destination module address
module_ip=myip
module_port=5005

type=AgentServer

blowfish=false
sec_bytes=false
handshake=false
;--------------------------------------------------
[agent_redir]
count=1

[agent_redir_0]
src_ip=myip
src_port=5005
dest_ip=myip
dest_port=15884
 
Initiate Mage
Joined
Oct 12, 2014
Messages
2
Reaction score
0
Can anyone help me with teamviewer ??
im tired try and try and nothing
 
Initiate Mage
Joined
Mar 20, 2020
Messages
4
Reaction score
0
[QUOTE = siyoteam; 8332443] dc'niz var ancak _STRG_ADD_ITEMS_FROM_WEB_ITEM_DATA, TypeID1 = 3 TypeID2 = 5 TypeID3 = 5

öğesinin düzeltilmesi Gerekiyor _STRU_ADD_ITEMS_FROM_WEB_ITEM_DATA _BUY_AME_OTEM_OTEM_Q_OUR ettik> [_BUY_AME_INGEM_INGEM]

bro How would you fix it, could you please share it



you have dc but _STRG_ADD_ITEMS_FROM_WEB_ITEM_DATA not support items with TypeID1 = 3 TypeID2 = 5 TypeID3 = 5

need fix _STRG_ADD_ITEMS_FROM_WEB_ITEM_DATA and add in _BUY_INGAME_MALL_ITEM the ability to buy PACKAGE items

okay thank you health thank you man
 
Back
Top