wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Resources > Code Resources > Systems
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 02-26-2009, 12:06 AM   #31
lucifekit
User
 
Join Date: Nov 2008
Posts: 18

lucifekit has little to show at this moment (2)

Default

Hey ,i had encountered a bug,that's when my trigger have many recipe(about 100),some recipe don't work(when i deleted them all but the did'nt worked recipe it's worked).

Have you notice abouts this:(

The bug recipe is TYD and NMK:

Code:
function Trig_T_Actions takes nothing returns nothing
//Phi tieu +1->+10
    call AddRecipe( 'I02O', 'I02L', 0, 0, 0, 0, 'I02K' )//1->2
    call AddRecipe( 'I030', 'I02K', 0, 0, 0, 0, 'I02J' )//2->3
    call AddRecipe( 'I031', 'I02J', 0, 0, 0, 0, 'I02I' )//3->4
    call AddRecipe( 'I032', 'I02I', 0, 0, 0, 0, 'I02H' )//4->5
    call AddRecipe( 'I033', 'I02H', 0, 0, 0, 0, 'I02G' )//5->6
    call AddRecipe( 'I034', 'I02G', 0, 0, 0, 0, 'I02F' )//6->7
    call AddRecipe( 'I035', 'I02F', 0, 0, 0, 0, 'I02C' )//7->8
    call AddRecipe( 'I036', 'I02C', 0, 0, 0, 0, 'I02E' )//8->9
    call AddRecipe( 'I037', 'I02E', 0, 0, 0, 0, 'I02D' )//9->10
//DAO
    call AddRecipe( 'I02O', 'I01D', 0, 0, 0, 0, 'I01C' )//1->2
    call AddRecipe( 'I030', 'I01C', 0, 0, 0, 0, 'I01B' )//2->3
    call AddRecipe( 'I031', 'I01B', 0, 0, 0, 0, 'I01A' )//3->4
    call AddRecipe( 'I032', 'I01A', 0, 0, 0, 0, 'I01E' )//4->5
    call AddRecipe( 'I033', 'I01E', 0, 0, 0, 0, 'I01F' )//5->6
    call AddRecipe( 'I034', 'I01F', 0, 0, 0, 0, 'I019' )//6->7
    call AddRecipe( 'I035', 'I019', 0, 0, 0, 0, 'I018' )//7->8
    call AddRecipe( 'I036', 'I018', 0, 0, 0, 0, 'I017' )//8->9
    call AddRecipe( 'I037', 'I017', 0, 0, 0, 0, 'I01G' )//9->10
//BAO TAY
    call AddRecipe( 'I02O', 'I02S', 0, 0, 0, 0, 'I02R' )//1->2
    call AddRecipe( 'I030', 'I02R', 0, 0, 0, 0, 'I02T' )//2->3
    call AddRecipe( 'I031', 'I02T', 0, 0, 0, 0, 'I02U' )//3->4
    call AddRecipe( 'I032', 'I02U', 0, 0, 0, 0, 'I02V' )//4->5
    call AddRecipe( 'I033', 'I02V', 0, 0, 0, 0, 'I02Z' )//5->6
    call AddRecipe( 'I034', 'I02Z', 0, 0, 0, 0, 'I02W' )//6->7
    call AddRecipe( 'I035', 'I02W', 0, 0, 0, 0, 'I02X' )//7->8
    call AddRecipe( 'I036', 'I02X', 0, 0, 0, 0, 'I02Y' )//8->9
    call AddRecipe( 'I037', 'I02Y', 0, 0, 0, 0, 'I02Q' )//9->10
//KIEM
    call AddRecipe( 'I02O', 'I01O', 0, 0, 0, 0, 'I01L' )//1->2
    call AddRecipe( 'I030', 'I01L', 0, 0, 0, 0, 'I01M' )//2->3
    call AddRecipe( 'I031', 'I01M', 0, 0, 0, 0, 'I01N' )//3->4
    call AddRecipe( 'I032', 'I01N', 0, 0, 0, 0, 'I01K' )//4->5
    call AddRecipe( 'I033', 'I01K', 0, 0, 0, 0, 'I01J' )//5->6
    call AddRecipe( 'I034', 'I01J', 0, 0, 0, 0, 'I01I' )//6->7
    call AddRecipe( 'I035', 'I01I', 0, 0, 0, 0, 'I01H' )//7->8
    call AddRecipe( 'I036', 'I01H', 0, 0, 0, 0, 'I01P' )//8->9
    call AddRecipe( 'I037', 'I01P', 0, 0, 0, 0, 'I01Q' )//9->10
//BONG
    call AddRecipe( 'I02O', 'I01V', 0, 0, 0, 0, 'I01R' )//1->2
    call AddRecipe( 'I030', 'I01R', 0, 0, 0, 0, 'I01T' )//2->3
    call AddRecipe( 'I031', 'I01T', 0, 0, 0, 0, 'I01X' )//3->4
    call AddRecipe( 'I032', 'I01X', 0, 0, 0, 0, 'I01Y' )//4->5
    call AddRecipe( 'I033', 'I01Y', 0, 0, 0, 0, 'I01Z' )//5->6
    call AddRecipe( 'I034', 'I01Z', 0, 0, 0, 0, 'I01S' )//6->7
    call AddRecipe( 'I035', 'I01S', 0, 0, 0, 0, 'I01W' )//7->8
    call AddRecipe( 'I036', 'I01W', 0, 0, 0, 0, 'I020' )//8->9
    call AddRecipe( 'I037', 'I020', 0, 0, 0, 0, 'I01U' )//9->10
//CHUY
    call AddRecipe( 'I02O', 'I021', 0, 0, 0, 0, 'I022' )//1->2
    call AddRecipe( 'I030', 'I022', 0, 0, 0, 0, 'I023' )//2->3
    call AddRecipe( 'I031', 'I023', 0, 0, 0, 0, 'I026' )//3->4
    call AddRecipe( 'I032', 'I026', 0, 0, 0, 0, 'I027' )//4->5
    call AddRecipe( 'I033', 'I027', 0, 0, 0, 0, 'I029' )//5->6
    call AddRecipe( 'I034', 'I029', 0, 0, 0, 0, 'I028' )//6->7
    call AddRecipe( 'I035', 'I028', 0, 0, 0, 0, 'I025' )//7->8
    call AddRecipe( 'I036', 'I025', 0, 0, 0, 0, 'I024' )//8->9
    call AddRecipe( 'I037', 'I024', 0, 0, 0, 0, 'I02A' )//9->10
//KICH
    call AddRecipe( 'I02O', 'I012', 0, 0, 0, 0, 'I011' )//1->2
    call AddRecipe( 'I030', 'I011', 0, 0, 0, 0, 'I013' )//2->3
    call AddRecipe( 'I031', 'I013', 0, 0, 0, 0, 'I014' )//3->4
    call AddRecipe( 'I032', 'I014', 0, 0, 0, 0, 'I010' )//4->5
    call AddRecipe( 'I033', 'I010', 0, 0, 0, 0, 'I00X' )//5->6
    call AddRecipe( 'I034', 'I00X', 0, 0, 0, 0, 'I00Y' )//6->7
    call AddRecipe( 'I035', 'I00Y', 0, 0, 0, 0, 'I00Z' )//7->8
    call AddRecipe( 'I036', 'I00Z', 0, 0, 0, 0, 'I015' )//8->9
    call AddRecipe( 'I037', 'I015', 0, 0, 0, 0, 'I016' )//9->10
//Vu khi hoang kim Luc : I03R,Lam: I03P,Tu: I03Q,HT10: I038
//TVT:< > 5 tu
    call AddRecipe( 'I03Q', 'I03Q', 'I03Q', 'I03Q', 'I03Q', 'I016', 'I045' )
//TVC:< > 5 luc
    call AddRecipe( 'I03R', 'I03R', 'I03R', 'I03R', 'I03R', 'I02A', 'I03A' )
//VDKhi:< > 5 lam
    call AddRecipe( 'I03P', 'I03P', 'I03P', 'I03P', 'I03P', 'I01Q', 'I03O' )
//VDKiem:< > 4 tu 1 Ht10
    call AddRecipe( 'I03Q', 'I03Q', 'I03Q', 'I03Q', 'I038', 'I01Q', 'I04C' )
//TLD:< > 4 luc 1 tu
    call AddRecipe( 'I03R', 'I03R', 'I03R', 'I03R', 'I03Q', 'I01G', 'I03B' )
//TLQ:< > 4 luc 1 lam
    call AddRecipe( 'I03R', 'I03R', 'I03R', 'I03R', 'I03P', 'I02Q', 'I02B' )
//TNVLK:< > 4 luc +1 Ht 10
    call AddRecipe( 'I03R', 'I03R', 'I03R', 'I03R', 'I038', 'I016', 'I03F' )
//CLS:< > 4 lam +1 tu
    call AddRecipe( 'I03P', 'I03P', 'I03P', 'I03P', 'I03Q', 'I01Q', 'I03M' )    
//TYK:< >  4 lam +1 luc
    call AddRecipe( 'I03P', 'I03P', 'I03P', 'I03P', 'I03R', 'I01Q', 'I03J' )
//NDC:< > 4 lam +1 Ht10
    call AddRecipe( 'I03P', 'I03P', 'I03P', 'I03P', 'I038', 'I02Q', 'I03D' )
//DM:< > 3 luc 2 tu
    call AddRecipe( 'I03R', 'I03R', 'I03R', 'I03Q', 'I03Q', 'I02D', 'I039' )
//NDD:< > 3 luc 1 tu 1 lam
    call AddRecipe( 'I03R', 'I03R', 'I03R', 'I03Q', 'I03P', 'I01G', 'I03C' )
//CLD:< > 3 luc+1 tu +1Ht10
    call AddRecipe( 'I03R', 'I03R', 'I03R', 'I03Q', 'I038', 'I01G', 'I03N' )
//CBB:< > 3 luc +1 lam +1 Ht 10
    call AddRecipe( 'I03R', 'I03R', 'I03R', 'I03P', 'I038', 'I01U', 'I03H' )
//TNTN:< > 3 lam 2 tu
    call AddRecipe( 'I03P', 'I03P', 'I03P', 'I03Q', 'I03Q', 'I01G', 'I03E' )
//CBR:< > 3 lam +2 luc
    call AddRecipe( 'I03P', 'I03P', 'I03P', 'I03R', 'I03R', 'I02Q', 'I03G' )
//NMC:< > 3 lam + 1 tu 1 luc
    call AddRecipe( 'I03P', 'I03P', 'I03P', 'I03Q', 'I03R', 'I02Q', 'I03L' )
    //NMK:< >2 luc 2 lam 1 tu
    call AddRecipe( 'I03R', 'I03R', 'I03P', 'I03P', 'I03Q', 'I01Q', 'I03K' )
    //TYD:< > 2 luc 2 tu 1 LAM
    call AddRecipe( 'I03R', 'I03R', 'I03Q', 'I03Q', 'I03P', 'I01G', 'I03I' )
//Kim Quang Thien Tam Ngoa 1 ht 5+ 1tu+2giay
    call AddRecipe( 'I008', 'I033', 'I03Q', 'I03Y', 0, 0, 'I03S' )
//An Bang cu kiem du 5 cai la dc
    call AddRecipe( 'I00G', 'I03X', 'I03V', 'I03W', 'I03T', 0, 'I03U' )
endfunction

//===========================================================================
function InitTrig_Cong_thuc_ghep_do takes nothing returns nothing
    set gg_trg_Cong_thuc_ghep_do = CreateTrigger(  )
    call TriggerRegisterTimerEventSingle( gg_trg_Cong_thuc_ghep_do, 0.00 )
    call TriggerAddAction( gg_trg_Cong_thuc_ghep_do, function Trig_T_Actions )
endfunction
lucifekit is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 02-26-2009, 12:15 AM   #32
Ammorth
I blink, therefore I am.
 
Ammorth's Avatar
 
Join Date: Sep 2006
Posts: 1,812

Submissions (10)

Ammorth is a glorious beacon of light (461)Ammorth is a glorious beacon of light (461)Ammorth is a glorious beacon of light (461)Ammorth is a glorious beacon of light (461)

Default

You may need to break up the AddRecipe calls into too separate functions and use execute function to call the second one from the first one. It looks like you are hitting the operation limit for Jass (aka nothing wrong with the script).
__________________
Ammorth is offline   Reply With Quote
Old 02-26-2009, 04:54 AM   #33
lucifekit
User
 
Join Date: Nov 2008
Posts: 18

lucifekit has little to show at this moment (2)

Default

Ah i've set the Amount in Configuration of RecipeSys from 10 to 50 and it's worked.But is it make my map bigger or slower:D?And why is its default value isn't 100,200 or something bigger?
lucifekit is offline   Reply With Quote
Old 03-02-2009, 04:46 PM   #34
Artificial
User
 
Join Date: Aug 2008
Posts: 14

Submissions (1)

Artificial is on a distinguished road (12)

Default

> And why is its default value isn't 100,200 or something bigger?
The bigger you make those values, the less different items you can use for the recipes. If they're 100, you can use 81 different items as ingredients and 81 different ones as results. When they're 10 you can use 819 ones. ^__^
__________________
How to solve problems:
- Write the problem on paper.
- Think hard.
- Write the answer.
♪♫ "Dansa med oss, klappa era händer.
Gör som vi gör, ta några steg åt vänster.
Lyssna och lär, missa inte chansen.
Nu är vi här med caramelldansen."
Artificial is offline   Reply With Quote
Old 08-24-2009, 07:14 PM   #35
Ignitedstar
Moderator
 
Ignitedstar's Avatar


RP Section Moderator
 
Join Date: Jul 2005
Posts: 1,755

Ignitedstar has a spectacular aura about (102)Ignitedstar has a spectacular aura about (102)Ignitedstar has a spectacular aura about (102)Ignitedstar has a spectacular aura about (102)

Send a message via MSN to Ignitedstar Send a message via Yahoo to Ignitedstar
Default

Don't mind my asking, but is the current version compatible with 1.24? Since the current system I'm using no longer works, I am sort of in need of something else. This appeals to me.
__________________
Current Activity: It's a secret, now.
Evaluation: I actually logged in?!?!
"If I speak in the tongues of men and of angels, but have not love,
I am only a resounding gong or a clanging cymbal.
If I have the gift of prophecy and can fathom all mysteries and all knowledge,
and if I have a faith that can move mountains, but have not love, I am nothing."

— 1 Corinthians 13:1-2

Current Works:
None.
Ignitedstar is offline   Reply With Quote
Old 08-24-2009, 07:21 PM   #36
Flame_Phoenix
retired coder | real ilfe
 
Flame_Phoenix's Avatar
 
Join Date: Mar 2007
Posts: 2,208

Submissions (10)

Flame_Phoenix has a spectacular aura about (90)Flame_Phoenix has a spectacular aura about (90)Flame_Phoenix has a spectacular aura about (90)Flame_Phoenix has a spectacular aura about (90)

Send a message via MSN to Flame_Phoenix
Default

I used this system on CCFE. If I remember I think it had 1 rare bug, but I forgot it xD
And yes, it works for 1.24.
__________________
Check out my tutorials at:
1-Creating a Hero Tavern
2-Complete Icon Tutorial - ALL about Icons
3-Making a spell in vJass - Practice Session 1
Check out all my current spells at here
Finally, check my project:
Castle vs Castle Flame Edition
Flame_Phoenix is offline   Reply With Quote
Old 11-08-2009, 01:50 AM   #37
Ignitedstar
Moderator
 
Ignitedstar's Avatar


RP Section Moderator
 
Join Date: Jul 2005
Posts: 1,755

Ignitedstar has a spectacular aura about (102)Ignitedstar has a spectacular aura about (102)Ignitedstar has a spectacular aura about (102)Ignitedstar has a spectacular aura about (102)

Send a message via MSN to Ignitedstar Send a message via Yahoo to Ignitedstar
Default

I have another question about this.

Let's say that I only want recipes to be made when it's in the inventory of a certain unit. All I would have to do is add a condition to the Init function, right? Hah, I probably just answered my own question.

EDIT: Well... It wouldn't hurt to ask another. Now that I think about it, does RecipeSys work as soon as the items made to make the result are gathered? Can I also make RecipeSys work specifically when triggered via an ability? I'm asking this because for my use, it will not be a hero that is a handling the items. It will be something related to a stash, and even then- I want players to have the liberty of putting the 'OK' in when they're ready to make an item.
__________________
Current Activity: It's a secret, now.
Evaluation: I actually logged in?!?!
"If I speak in the tongues of men and of angels, but have not love,
I am only a resounding gong or a clanging cymbal.
If I have the gift of prophecy and can fathom all mysteries and all knowledge,
and if I have a faith that can move mountains, but have not love, I am nothing."

— 1 Corinthians 13:1-2

Current Works:
None.

Last edited by Ignitedstar : 11-08-2009 at 02:00 AM.
Ignitedstar is offline   Reply With Quote
Old 12-21-2009, 06:08 AM   #38
BlackRose
User
 
Join Date: Apr 2009
Posts: 38

BlackRose is on a distinguished road (13)

Default

Doesn't work. Testmap doesn't.
I figured it was because of H2I.

Update?
BlackRose is offline   Reply With Quote
Old 03-29-2010, 02:41 PM   #39
DanThanh
User
 
DanThanh's Avatar
 
Join Date: Apr 2009
Posts: 137

Submissions (1)

DanThanh has little to show at this moment (7)

Send a message via Yahoo to DanThanh
Default

This does not work with patch 1.24 !
__________________
DanThanh is offline   Reply With Quote
Old 03-29-2010, 06:17 PM   #40
Anitarf
Procrastination Incarnate


Development Director
 
Join Date: Feb 2004
Posts: 8,190

Submissions (19)

Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)

2008 Spell olympics - Fire - SilverApproved Map: Old School Alliance TacticsHero Contest #2 - 3rd PlaceSpell making session 2 winner

Default

Quote:
Originally Posted by DanThanh
This does not work with patch 1.24 !
The test map likely still contains the old version of Table. Did you try updating that library before testing?
__________________
Anitarf is offline   Reply With Quote
Old 03-30-2010, 02:05 AM   #41
DanThanh
User
 
DanThanh's Avatar
 
Join Date: Apr 2009
Posts: 137

Submissions (1)

DanThanh has little to show at this moment (7)

Send a message via Yahoo to DanThanh
Default

nah, i will give it a try. Thanks Anitarf, a friendly behavior :)
__________________
DanThanh is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 08:22 PM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services