-
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 try something like this at your uiInventory.py:
for i in xrange(180): itemVnum = player.GetItemIndex(i) if itemVnum > 0: item.SelectItem(itemVnum) if shop.IsOpen() and item.IsAntiFlag(item.ANTIFLAG_SELL): self.wndItem.LockSlot() else: self.wndItem.UnlockSlot()
I don't really know if this method does this without problems, you must try yourselves and even find other ways to do it.
-
Well you can write the code by yourself if you see the logic on each condition from the object folder.
-
Hey.
Some days ago I saw here Think's post about the /cube crash.
So, this system was made with the purpose of helping those who still don't use the metin2 source files, since the /cube command misses some needed checks, that allow a normal player to send the whole server down. I don't know if there're diff to fix it, so that's why I made it.
This system doesn't uses the /cube command. It works by a quest and lua functions that communicate with the client through cmdchats. So if you want to use it, first make sure that your cube command is deactivated via diff or CMD.
Note that this system may have some bugs and it has been tested on a 34083 environment, I don't know if it works with 2089 - it should -, or less (who use them anyway?).
Known bugs/not included features:
- If we insert more than the items needed to create an item, it'll return "Not enough material" - So.. We must insert the EXACT amount of items to refine smth.
- If at the cube.txt we have at the same npc the same reward item, but different needed items to create it, the system will only include one of them and use the "or" feature. And use the first material icon. E.g: https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gifThere's also a kind of guide of the python-side in the download to install it.
Download:
- 14
- 1
- 1
- 3
- 14
-
What did I wrong? my pet attacks me :|
thug.life.bro
- 3
-
-
You can't do this without being at a when-statement.
-
And where's the problem? Exactly because you're between 50 and 80 it says the message.
But if you want the opposite, just write: if not ( *your code* ) then
-
if pc.get_level() >= 80 and pc.get_level() <= 50 then
Wtf... How can this ever be possible? Whatever your level is, this codition is always false, you're saying this:
if the players' level is superior or equal than 80 and minor or equal than 50 then do something
But how can a number be >= 80 and at the same time <= 50? Try this anyway:
if pc.get_level() >= 50 and pc.get_level() <= 80 then
-
Nobody uses such old core rev. nowadays. You should and you must give a try to newer ones (or even use the source like others) instead.
- 1
-
Ниет.
Or maybe, I don't know, but I don't think so. ^^
yea many people is kids and use old lua quest. but is better write quest on c++ and compile
I like to write quests and I like lua, does that makes me a kid?
- 4
-
Yeah, good point. I forgot to take a look to those stones. I've just seen a shield with applytype 95, which is APPLY_RESIST_WOLFMAN, and I didn't think about the spirit stones.
Okay, new download at the first post. Thanks Agility.
- 1
-
With:
when login with string.find(pc.get_name(), "%[VIP%]") begin
should work fine. 'Cause some functions don't read some special characters (like [] )
- 1
-
Okay, that's now fixed again, I guess. Thank you.
New download at the first post.
- 2
-
I made some updates to the tool, check the first post for further information.
- 1
-
Actually it wouldn't Denis, 'cause here:
if (string.len(pw) >= 6 and string.len(pw) <= 12) and (string.match(pw, "%W") == nil) then
pw wasn't declared, and you want to check the password variable content, so instead of pw it must be password. Also, maybe I'm wrong, but some special characters (e.g: say("~smth~")) don't work, so I guess you might add a space at the beginning of your send_letter(). Anyway, you should check what your syserr says.
- 1
-
Try with this:
function validate_as_password(pw) return (string.len(pw) >= 6 and string.len(pw) <= 12) and (string.match(pw, "%W") == nil) end
- 1
-
-
-
-
Do that by yourself, or pay someone to do it for you.
Your portuguese and I know it.
Sorry but I'm Spanish. Just because I can talk and write in portuguese doesn't mean I'm portuguese. The main language here is english, does that make us english people? Of course not.
Also, this has nothing to do with the thread theme.
- 2
-
Do that by yourself, or pay someone to do it for you.
- 2
-
Will be more better if do it with source
sprintf(szText, "Lv %d", level);
Search in InstanceBaseEffect.ccp
Best Regards,
Can BARAN...
Wauw! Developer CAN BARAN!
Well. At least he didn't post a binary saying that it was the sln.
- 2
-
lol he's trying to help you by teaching you how to write better quests without using useless code n shit, and you're answering bullshit. That's bad, really bad.
In this case, teaching you how to write queries.
- 1
-
Wolfman uses claws as weapon, so I guess there'll be a defense against claws.
Mob spawn function
in Community Support - Questions & Answers
Posted
You can use the a when login statement as kima said, using this function: mob.spawn(mobVnum, x, y, count)