-
Posts
263 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by iRETEMAG
-
-
Lycan is included?
-
I managed to fix shop bug.
Just replace shop files.
That works or you just put 1 size items?
What about the rest bug's?
I'm sad because that's nice source.
-
connect: Connection refusedconnect: Connection refusedconnect: Connection refusedconnect: Connection refusedconnect: Connection refusedconnect: Connection refusedconnect: Connection refusedconnect: Connection refusedconnect: Connection refusedconnect: Connection refusedconnect: Connection refusedconnect: Connection refusedconnect: Connection refusedconnect: Connection refusedconnect: Connection refusedconnect: Connection refusedhelp me plz?
Syserr ch1
Syserr auth
Syserr db
Post pls!
(Maybe you have some db problem)
@Syron ?? alô alô?
-
Videos to c++ learn? (Youtube)
PM if you have something to say. -
Decrypt to .txt
- mob_names.txt
- mob_proto.txt
Download: https://mega.co.nz/#!cYQnjJ6I!-8HKJe4EVfQxjeM5Wnupi7Ap6zK9hCT7GgKfZBOeGuU
Any converter for .xml now? or sql?
Thanks.
-
Hi bandits!
I have this mob_proto:
https://mega.co.nz/#!WNFFDC4B!Xe_jLQt8cNWGfeNP5-Pr1R29c3BjPa2sP5CAoMKxz8Y
I wan't to decrypt to xml
Someone? (It's the Metin2.PT Mob_Proto - 13-02-2015) -
Top priority at mail check (waiting too)ªªªªªª
-
quest metin5 begin state start begin when 8001.kill begin local lvlmin= 1 local lvlmax= 10 local reward1 = 50300 local item_table = { 11202 , 11402 , 11602 , 11802 , 21002 } local Irandom = number(1,table.getn(item_table) ) local reward2 = item_table[Irandom] if pc.level >=lvlmin and pc.level <=lvlmax then local r1=number(1, 5) if r1>=2 then game.drop_item_with_ownership(reward1, 1) end local r2=number(1, 3) if r2>=2 then local quantity = number(1,5) local i for i=1,quantity,1 do Irandom = number(1,table.getn(item_table) ) game.drop_item_with_ownership(item_table[Irandom], 1) end end end end end end
Try this... now you will drop different item
Mark solved. Thank you!
- 2
-
quest metin5 begin state start begin when 8001.kill begin local lvlmin= 1 local lvlmax= 10 local reward1 = 50300 local item_table = { 11202 , 11402 , 11602 , 11802 , 21002 } local Irandom = number(1,table.getn(item_table) ) local reward2 = item_table[Irandom] if pc.level >=lvlmin and pc.level <=lvlmax then local r1=number(1, 5) if r1>=2 then game.drop_item_with_ownership(reward1, 1) end local r2=number(1, 3) if r2>=2 then local quantity = number(1,5) -- how many item of reward2 will dropped local i for i=1,quantity,1 do game.drop_item_with_ownership(reward2, 1) end end else -- ? xD end end end end
It's working but I get all reward2 same items.
(slow random?)
-
quest metin5 begin state start begin when 8001.kill begin local lvlmin= 1 local lvlmax= 10 local reward1 = 50300 local item_table = { 11202 , 11402 , 11602 , 11802 , 21002 } local Irandom = number(1,table.getn(item_table) ) local reward2 = item_table[Irandom] if pc.level >=lvlmin and pc.level <=lvlmax then local r1=number(1, 5) if r1>=2 then game.drop_item_with_ownership(reward1, 1) end local r2=number(1, 3) if r2>=2 then local r3=number(1, 5) if r3 == 1 then game.drop_item_with_ownership(reward2, 1) elseif r3 == 2 then game.drop_item_with_ownership(reward2, 1) game.drop_item_with_ownership(reward2, 1) elseif r3 == 3 then game.drop_item_with_ownership(reward2, 1) game.drop_item_with_ownership(reward2, 1) game.drop_item_with_ownership(reward2, 1) elseif r3 == 4 then game.drop_item_with_ownership(reward2, 1) game.drop_item_with_ownership(reward2, 1) game.drop_item_with_ownership(reward2, 1) game.drop_item_with_ownership(reward2, 1) elseif r3 == 5 then game.drop_item_with_ownership(reward2, 1) game.drop_item_with_ownership(reward2, 1) game.drop_item_with_ownership(reward2, 1) game.drop_item_with_ownership(reward2, 1) game.drop_item_with_ownership(reward2, 1) end end end end end end
LE: there was an extra 'end'No way.
Will lag the server.
That quest will be used in all metins / mobs
-
You don't understand... if item can't be stacked (set by anti-flag in item_proto) you will always drop or receive 1 item. Function pc.give_item2(X,Y) is same of game.drop_item_with_ownership(X,Y) because you will receive/drop item X stacked in Y pieces.
So if item are not stacked... in Y you can put any number you want but quantity received is 1.
I know but like @.InyaProduction
explained i can use the for-loop(lua)
for variable = 0, 10, 2 do print ( variable ) end
To do this (what I want)
This simple quest is so
-
Problem (i think ) is this... function "game.drop_item_with_ownership(X,Y)" drop Y quantity of X item... but if you put 200 as Y you will see on the floor always 1 item but it's stacked in 200. In your table you put items can't be stacked (armor) so you will drag always 1 item. Try to change your table with items such as potion red, blu etc... and you will see that it work
This works but not random, exit always 2 items = ex: 11202, 11202
quest metin5 begin state start begin when 8001.kill begin local lvlmin= 1 local lvlmax= 10 local reward1 = 50300 local item_table = { 11202 , 11402 , 11602 , 11802 , 21002 } local Irandom = number(1,table.getn(item_table) ) local reward2 = item_table[Irandom] if pc.level >=lvlmin and pc.level <=lvlmax then local r1=number(1, 5) if r1>=2 then game.drop_item_with_ownership(reward1, 1) end local r2=number(1, 3) if r2>=2 then pc.give_item2(reward2, 1) pc.give_item2(reward2, 1) end else end end end end
-
game.drop_item_with_ownership(reward2, number(1,5))
don't work
-
I dont like just solving the problem for somebody so he doesnt learn anything so ill just give you a little hint:
Look for the loop "for", you can iterate through the item_table
PS: you can get the loops end by table.getn(item_table)
I created this quest (I code myself)
I don't understand english very well
I'm a pro just to write. //more 1 hint//
-
I don't undestand what you mean... do you need to drop sometime another, different or not, item from item_table? Or just more item of reward2?
game.drop_item_with_ownership(reward2, 1)
reward2 is giving 1 item
I want: reward2 give sometimes more than 1 item from
local item_table
-
quest metin5 begin state start begin when 8001.kill begin local lvlmin= 1 local lvlmax= 10 local reward1 = 50300 local item_table = { 11202 , 11402 , 11602 , 11802 , 21002 } local Irandom = number(1,table.getn(item_table) ) local reward2 = item_table[Irandom] if pc.level >=lvlmin and pc.level <=lvlmax then local r1=number(1, 5) if r1>=2 then game.drop_item_with_ownership(reward1, 1) end local r2=number(1, 3) if r2>=2 then game.drop_item_with_ownership(reward2, 1) end else end end end end
I want to put the reward2 giving sometimes more than 1 item
I can giving more than 1 item but the item it's multiplied by the first reward2.
Help?
-
-
-
Works fine. Thank you very much for the nice tutorial.
What program do you use for making gif?
Whats that texture for level 70 armour?
-
I remember my history on metin35
Thank you for share.
Kind Regards
Ken ~ TA
Great times!
- 1
-
Here are my libs if you have any problem with yours:
https://mega.co.nz/#!vIsRiIpR!J7m9jYOY0szNBOf2iRMUh3C324Z0HvJwZ9QWfPawNB0
This weekend i will come with a big update to this source.
Stay tuned !
I'm working at the moment to fix the skills bug.Let's wait...
- 1
-
cd /usr/home/game && sh start.shReal ServerLog OffAsyncSQL: connected to localhost (reconnect 1)Success PLAYERAsyncSQL: connected to localhost (reconnect 1)AsyncSQL: connected to localhost (reconnect 1)AsyncSQL: connected to localhost (reconnect 1)Success ACCOUNTAsyncSQL: connected to localhost (reconnect 1)AsyncSQL: connected to localhost (reconnect 1)AsyncSQL: connected to localhost (reconnect 1)Success COMMONAsyncSQL: connected to localhost (reconnect 1)AsyncSQL: connected to localhost (reconnect 1)AsyncSQL: connected to localhost (reconnect 1)Success HOTBACKUPAsyncSQL: connected to localhost (reconnect 1)AsyncSQL: connected to localhost (reconnect 1)Loading mob_proto from MySQL DB by Syron: 1417/1417 mobs loaded.Loading item_proto from MySQL DB by Syron: 6356 items loaded.socket: Address already in useShared object "libcrypto.so.6" not found, required by "game"Shared object "libcrypto.so.6" not found, required by "game"Shared object "libcrypto.so.6" not found, required by "game"Shared object "libcrypto.so.6" not found, required by "game"how to fix?
if you use 32 bits put this in /usr/lib
if you use 64 bits put this in /usr/lib32
-
-
Lycan [WE NEED YOU]
in Temporary
Posted
Fix for skill bug's please?