Jump to content

ReFresh

Active Member
  • Posts

    1797
  • Joined

  • Last visited

  • Days Won

    4
  • Feedback

    0%

Posts posted by ReFresh

  1. Hey guys,

    I'm trying to color the text variable, but there's a problem. When I try to send a message to player, I'll get an erorr: item prism needed, also if I have item prism in my inventory, error will be same and the message won't be send.

    I know why it's happening, it's because in server input_main.cpp exist a function, which is checking for the characters like | etc. But I cannot get rid out of it.

    Someone got some idea how it could be solved?

    PS: I don't want to remove item prism requirement for highlighting items in chat.

    net.SendWhisperPacket(self.targetName, player.GetName() + " (" + str(player.GetStatus(player.LEVEL)) +") " + "|cFF8000FF" + text)

    Thanks for possible answers!

    Sincerely,

    ReFresh

  2. It's simple looking, but it's nice 🙂 I believe many people will use it for their servers, if you release it. Don't read trolls comments and take an example from Mali, he is releasing tons of nicely coded systems for free. Why? I think, it makes him happy to see people use his systems on their own servers and second thing, he is getting better and better in his programming experience. Everything what is free and useful is appreciated by the community, you will see that.

    • Love 3
  3. Hey guys,

    I was trying to add escape key function to intrologin.py to get out from login board to server list.

    I tried to add this:

    def OnPressEscapeKey(self):	
    	self.__RefreshServerList()
    	self.__OpenServerBoard()

    It didn't work.

    Then I tried another way:

    def OnKeyDown(self, key):
    
    	if 1 == key:
    		self.__RefreshServerList()
    		self.__OpenServerBoard()
    	return True

    And it didn't work too.

    I have no clue, why it's not working. I'll be really glad for some ideas.

    Thanks for possible answers!

    Sincerely,

    ReFresh

  4. 1 hour ago, RnYPT said:

    I have the weapons in the inventory, i can spawn them and everything but when i wear them the character gets "naked"

    Maybe you didn't change the path in gr2 model directly. The client can't find the path to the model.

  5. Hey guys,

    I just noticed that the party role button for members won't disappear when the party leader goes offline.

    The fix should be applied probably in this function in uiparty.py:

    Spoiler
    	def SetAffect(self, affectSlotIndex, affectValue):
    
    		if affectSlotIndex >= len(self.partyAffectImageList):
    			return
    
    		if affectValue > 0:
    			self.partyAffectImageList[affectSlotIndex].Show()
    		else:
    			self.partyAffectImageList[affectSlotIndex].Hide()
    
    		self.affectValueDict[affectSlotIndex] = affectValue

    As you can see there is no check for the party leader offline state, so the party roles won't disappear from members.

    Someone knows some kind of offline check for the party leader, which should be added there to fix the party role hiding for party members when the party leader is offline?

    Thanks for possible answers!

    Sincerely,

    ReFresh

  6. 58 minutes ago, duwen123 said:

    So you just drag the folder with the source into one of those editors? And the intellisense works? For eg. parameter info in methods.

    Most of the mentioned editors have drag & drop option, it's almost standard today. I'm editing server source, python, lua in Notepad++ and client source in normal Visual Studio. You don't need something else. You only should take care about encoding of files and that's all, what you need.

    • Love 1
  7. Hey guys,

    I was trying to remove random HP & SP on characters by doing following:

    src/char.cpp:

    Spoiler
    // these lines:
    int iHP = number(JobInitialPoints[GetJob()].hp_per_lv_begin, JobInitialPoints[GetJob()].hp_per_lv_end);
    int iSP = number(JobInitialPoints[GetJob()].sp_per_lv_begin, JobInitialPoints[GetJob()].sp_per_lv_end);
    
    // changed to this:
    int iHP = JobInitialPoints[GetJob()].hp_per_lv_end;
    int iSP = JobInitialPoints[GetJob()].sp_per_lv_end;
    
    // these lines:
    SetRandomHP((iLv - 1) * number(JobInitialPoints[GetJob()].hp_per_lv_begin, JobInitialPoints[GetJob()].hp_per_lv_end));
    SetRandomSP((iLv - 1) * number(JobInitialPoints[GetJob()].sp_per_lv_begin, JobInitialPoints[GetJob()].sp_per_lv_end));
    
    // changed to this:
    SetRandomHP((iLv - 1) * JobInitialPoints[GetJob()].hp_per_lv_end);
    SetRandomSP((iLv - 1) * JobInitialPoints[GetJob()].sp_per_lv_end);

    src/questlua_pc.cpp:

    Spoiler
    // this line:
    ch->SetRandomHP((ch->GetLevel()-1) * number(JobInitialPoints[job].hp_per_lv_begin, JobInitialPoints[job].hp_per_lv_end));
    
    // changed to this:
    ch->SetRandomHP((ch->GetLevel()-1) * JobInitialPoints[job].hp_per_lv_end);
    
    // this line:
    ch->SetRandomSP((ch->GetLevel()-1) * number(JobInitialPoints[job].sp_per_lv_begin, JobInitialPoints[job].sp_per_lv_end));
    
    // changed to this:
    ch->SetRandomSP((ch->GetLevel()-1) * JobInitialPoints[job].sp_per_lv_end);

    But the characters still have little bit different HP. What else I must change to have same HP on all characters?

    At max status, which is 125 max HP looks like this (SP looks like same on all characters) with no items equipped, no bonuses attached:

    Spoiler

    spacer.png

    Thanks for possible answers!

    Sincerely,

    ReFresh

×
×
  • 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.