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!

Bitefight Project

Newbie Spellweaver
Joined
Aug 21, 2008
Messages
63
Reaction score
8
Re: [Release] Bitefight Project

for the item equip bug replace the lines

PHP:
foreach($user_items as $item)
{
    if($user_itemRow->id == $item->item_id)
    {
        if($item->equipped)
        {
            $this->app->flash('tab', 3);
            $this->app->response->redirect('/user/overview');
        }
        else
        {
            $item->equipped = 1;
            $item->save();
            $this->app->flash('tab', 3);
            $this->app->response->redirect('/user/overview');
        }
    }

    $itemRow = Item::where('id', $item->item_id)->find_one();
    if($itemRow->model == $user_itemRow->model)
    {
        $item->equipped = 0;
        $item->save();
    }

    $user_item->equipped = 1;
    $user_item->save();
}
 
Newbie Spellweaver
Joined
Aug 21, 2008
Messages
63
Reaction score
8
Re: [Release] Bitefight Project

And the correct session->init. You guys are probably trying to save your sessions to a folder my host has lol

PHP:
    public function init()
	{
		session_cache_limiter(false);
		session_start();

		if(isset($_SESSION['__token']))
		{
			$this->__token = $_SESSION['__token'];
		}
		else
		{
			$this->__token = self::random();
		}
	}
 
Experienced Elementalist
Joined
Jun 8, 2011
Messages
233
Reaction score
10
Re: [Release] Bitefight Project

And the correct session->init. You guys are probably trying to save your sessions to a folder my host has lol

PHP:
    public function init()
	{
		session_cache_limiter(false);
		session_start();

		if(isset($_SESSION['__token']))
		{
			$this->__token = $_SESSION['__token'];
		}
		else
		{
			$this->__token = self::random();
		}
	}

That's a better solution than I found xD so with this will never save session files anymore.
 
Last edited:
Junior Spellweaver
Joined
Oct 23, 2016
Messages
106
Reaction score
4
Re: [Release] Bitefight Project

can you reupload this version ?
thanks

Okey, i am starting to develop bitefight because i kinda already know how it works. I put my index and news page at my current free host and you can follow there for news or read this thread ill update both.

If it says a page is completed in news and you found a bug please let me know.

Demo:

For script download:
Database:

Files:




edit:::
I dont have this files anymore but I found an old script in my bitbucket account, if anyone is interested
 
Back
Top