-
Posts
402 -
Joined
-
Days Won
18 -
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by PACI
-
-
You can always cythonaze your root [, uiscript] files, so even if those kiddies unpack these files, they'll get nothing from it.
-
CHARACTER::ReqSafeboxLoad() at your char.cpp, you can comment the distance check there.
-
If you don't want to modify your source files, you can simply try the following code at your button function:
import interfaceModule
self.__int = interfaceModule.Interface()
self.__int.MakeInterface()
self.__int.AskSafeboxPassword()
Through the game source code you must create a new command at your cmd_general (you can copy and paste the do_click_mall function, however instead of ShowMeMallPassword use ShowMeSafeboxPassword.
-
Depends on the file, is it a default one or?
-
You can open it through your interfaceModule.py: AskSafeboxPassword()
- 1
-
Try this then:
- Add the changes made by Sanchez
- Now open your interfaceModule.py, search for the MakeHyperlinkTooltip function and make it look like this:
Should be enough I think.
-
On 19/07/2016 at 9:33 AM, iltizio said:
local list = {{2453,8758},{5678,88766}}
local index = number(0,table.getn(list)-1)
local x = list[index][0]
local y = list[index][1]
Lua tables start at index 1.
- 1
-
You can do it without touching your source-code with something like:
if number(1,100) > 90 then return end pc.set_skill_level(skillVnum, pc.get_skill_level(skillVnum) + 1)
-
Yeah I wrote it wrong, then I saw the error, and edited my post, but glad that you did what you wanted
- 1
-
Try it like that:
self.AppendTextLine("[%d]" % itemVnum)
- 1
-
Just use the function I said, and should work properly.
- 1
-
player.GetItemIndex(slotPos)
However, the uiToolTip.ItemToolTip.AddItemData() already receives an item vnum, so you must only print it.
- 1
-
That's right, I haven't seen your tooltip events, so you must edit those sentences with your tooltip events' name.
- 1
-
OnMouseOverIn() and OnMouseOverOut() are the called to run the MouseEvent functions, you can't use them to set a mouse event.
You better use:
self.itemImage.SAFE_SetStringEvent("MOUSE_OVER_IN", self.ShowToolTip) self.itemImage.SAFE_SetStringEvent("MOUSE_OVER_OUT", self.HideToolTip)
- 2
-
If you search further, you'll see that this was made by Sanchez a few time ago:
QuoteMaybe someone interested, here it is for the source:
Open game/input_main.cpp and search for this:
int len = snprintf(chatbuf, sizeof(chatbuf), "%s : %s", ch->GetName(), buf);
Replace with this:
int len; if (pinfo->type == CHAT_TYPE_SHOUT) { len = snprintf(chatbuf, sizeof(chatbuf), "|Hmsg:%s|h%s|h|r : %s", ch->GetName(), ch->GetName(), buf); } else { len = snprintf(chatbuf, sizeof(chatbuf), "%s : %s", ch->GetName(), buf); } int len;
On client-side just do the modifications in the interfacemodule.py, the uichat.py modification is not required anymore.
- 1
-
2 minutes ago, Krusty said:
how can i change the time from time_bomb to one day?
limitTime = time.mktime(time.localtime()) + 3600 * 24 * 365 * 1
is this right?
seconds * minutes * hours * days * years
So to one day, keep only de 3600s (which is 60 * 60 * 1).
-
I think the dice func was already fixed on the 40k sources, so there's no need to change it.
- 1
-
Is this what you want?
local party_pids = {party.get_member_pids()} local party_jobs = {} for i = 1, table.getn(party_pids) do q.begin_other_pc_block(party_pids[i]) party_jobs[pc.get_name()] = pc.get_job() q.end_other_pc_block() end for char_name, char_job in pairs(party_jobs) do say(char_name.." job is "..char_job) end
-
You know we tried to deal this with each other, however it wasn't possible. You even paid and because of some connection issues you couldn't receive the dungeon, so I gave your money back again.
-
I did not understand what are you asking for. So you want to activate an event through a GM character, but each non GM character can deactivate itself from the event, am I right?
- 1
-
That is really weird, does it generates any game.core?
-
We don't know why you want to decrypt it, who knows if you're using a server's leaked db to get the users' password.
- 2
-
pc.give_exp() takes two args: string & int.
Better post your quest, that's weird.
-
In that case you can use this func regen_in_map(mapIndex, regenPath) when you are starting the event.
Also, using a kill event giving the mob vnum to start a server_timer in 8 hours which uses the function I said to respawn the mob.
Quest error
in Community Support - Questions & Answers
Posted
The local var items is outside a when/function, never seen such a thing like that, but since you can modify the quest compiler, who knows if that actually works.