Jump to content

From quest to client side.


Recommended Posts

Does someone knows how to make the client side for this quest?(its a killgui) :

 

quest counti begin
state start begin
when login begin
cmdchat("update_pvmpvp "..pc.getqf("kills_pvp").." "..pc.getqf("kills_pvm"))
end


when kill begin
if npc.is_pc() then
pc.setqf("kills_pvp", pc.getqf("kills_pvp")+1)
else 
pc.setqf("kills_pvm", pc.getqf("kills_pvm")+1)
end
cmdchat("update_pvmpvp "..pc.getqf("kills_pvp").." "..pc.getqf("kills_pvm"))
end
end
end

I did something like this:

self.tasho = ui.ExpandedImageBox()
self.tasho.LoadImage("test/bg.tga")
self.tasho.SetPosition((wndMgr.GetScreenWidth()-286)/2,-115)
self.tasho.Show()


self.KillReich = ui.TextLine()
self.KillReich.SetParent(self.tasho)
self.KillReich.SetPosition(240, 75)
self.KillReich.SetText("AllPVPKills: " + KillReich)
self.KillReich.Show()


self.KillMob = ui.TextLine()
self.KillMob.SetParent(self.tasho)
self.KillMob.SetPosition(-200,5)
self.KillMob.SetText("Monstri: " + KillMob)
self.KillMob.Show()


##KILLGUI
"kills_pvp" : self.__KillReich,
"kills_pvm" : self.__KillMob,
##END_KILLGUI




def __Abrir(self):
self.abrir_cuentas_guardadas.Hide()
self.cerrar_cuentas_guardadas.Show()
self.KillReich.Show()
self.KillMob.Show()


def __Abrir2(self):
self.abrir_cuentas_guardadas.Show()
self.cerrar_cuentas_guardadas.Hide()
self.KillMob.Hide()
self.KillReich.Hide()


 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



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