Jump to content

Koray

Active Member
  • Posts

    384
  • Joined

  • Last visited

  • Days Won

    58
  • Feedback

    0%

Posts posted by Koray

  1. I think this bug due from mount so is not energy

     

    Try this

    Find pc_mount_bonus function in questlua_pc.cpp

    if( NULL != ch )
    {
    	ch->RemoveAffect(AFFECT_MOUNT_BONUS);
    	ch->AddAffect(AFFECT_MOUNT_BONUS, aApplyInfo[applyOn].bPointType, value, AFF_NONE, duration, 0, false);
    }

    Replace

    if(ch)
    {
    	if (!ch->GetMountVnum())
    		return 0;
    	ch->RemoveAffect(AFFECT_MOUNT_BONUS);
    	ch->AddAffect(AFFECT_MOUNT_BONUS, aApplyInfo[applyOn].bPointType, value, AFF_NONE, duration, 0, false);
    }

     

     

    Hi, the problem happen even using the command "/mount_test ID" then should be on the quest commands. Sure? But i'm going to try it.

    ​Because mount affect values not correct calculated

  2. I think this bug due from mount so is not energy

     

    Try this

    Find pc_mount_bonus function in questlua_pc.cpp

    if( NULL != ch )
    {
    	ch->RemoveAffect(AFFECT_MOUNT_BONUS);
    	ch->AddAffect(AFFECT_MOUNT_BONUS, aApplyInfo[applyOn].bPointType, value, AFF_NONE, duration, 0, false);
    }

    Replace

    if(ch)
    {
    	if (!ch->GetMountVnum())
    		return 0;
    	ch->RemoveAffect(AFFECT_MOUNT_BONUS);
    	ch->AddAffect(AFFECT_MOUNT_BONUS, aApplyInfo[applyOn].bPointType, value, AFF_NONE, duration, 0, false);
    }

     

  3. Quest Part;

     

    Search: 

    local i = tonumber(input(cmdchat("Teleport GetInfo")))+1

    add it upper

    cmdchat("INPUT_BLOCK_ON")
    

    and add it under

    cmdchat("INPUT_BLOCK_OFF") 

    like this

    			cmdchat("INPUT_BLOCK_ON")
    			local i = tonumber(input(cmdchat("Teleport GetInfo")))+1
    			cmdchat("INPUT_BLOCK_OFF") 

    Client part;

     

    Now open game.py

     

    add this commands in serverCommandList

    			"INPUT_BLOCK_ON"        : self.__Input_block_on,
    			"INPUT_BLOCK_OFF"       : self.__Input_block_off,
    

    and add this funcs

    	def __Input_block_on(self):
    		constInfo.CApiSetHide = 1
    		
    	def __Input_block_off(self):
    		constInfo.CApiSetHide = 0 

    try now

     

     

    @.plechito'

  4.  

    @koray

    0531 18:13:07040 :: Traceback (most recent call last):
    
    0531 18:13:07040 ::   File "switcher.py", line 305, in OnPressEscapeKey
    
    0531 18:13:07040 ::   File "switcher.py", line 300, in Close
    
    0531 18:13:07040 :: AttributeError
    0531 18:13:07040 :: : 
    0531 18:13:07040 :: 'module' object has no attribute 'Destroy'
    0531 18:13:07040 :: 
    

     

    ServerStateChecker.Destroy(self)

    change this line

     

    with

    ServerStateChecker.Initialize(self)
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.