- Joined
- Jul 1, 2010
- Messages
- 163
- Reaction score
- 63
Lol with those brackets will be a comment! you fayul XDD just kidding u And well i fixed em in the quote.
Thankss
Our hardware provider has scheduled RAM maintenance to address the recent server instability. Work is expected by 17:00 Central European time.
Brief downtime or interruptions may occur while the faulty memory modules are replaced. We apologise for the recent disruption and appreciate your patience.
Special thanks to our sponsor, HyperFilter!
We keep our community safe. They keep our servers safe. Running your own game servers? Keep them protected with HyperFilter.
Lol with those brackets will be a comment! you fayul XDD just kidding u And well i fixed em in the quote.
Thankss
What are you waiting? edit the post that is incorrect... remove the brackets "--{" and "}--" because those are comment symbols and that event wont work.
I don't think it really matters. It doesn't have to be picture perfect to your standards.
Just sayin. :mellow:
Ac actually just playing with him, but that should be edited,
he is my friend XD![]()
[COLOR="Purple"]AddEvent[/COLOR]( [COLOR="Gray"]"Red Chip Event"[/COLOR] )
[COLOR="Lime"]--{[/COLOR]
[COLOR="Purple"]SetTime[/COLOR]( "[COLOR="Blue"]2000-01-01 00:00", "2012-12-31 23:59[/COLOR]" )
[COLOR="Lime"]-- Event Details[/COLOR]
[COLOR="Purple"]SetKeepConnectEvent[/COLOR]( MIN([COLOR="Red"]60[/COLOR]), "II_CHP_RED", [COLOR="Red"]200[/COLOR] )
[COLOR="Purple"]SetKeepConnectEvent[/COLOR]( MIN([COLOR="Red"]120[/COLOR]), "II_CHP_RED", [COLOR="Red"]1000[/COLOR] )
[COLOR="Lime"]--}[/COLOR]
[COLOR="Purple"]AddEvent[/COLOR]( [COLOR="Gray"]"Tyler's Honkey Donkey Event for Hill Billies"[/COLOR] )
[COLOR="Lime"]--{[/COLOR]
[COLOR="Purple"]SetTime[/COLOR]( "[COLOR="Blue"]2007-06-08 14:23", "2097-06-08 16:11[/COLOR]" )
[COLOR="Lime"]-- Event Details[/COLOR]
[COLOR="Purple"]SetSnowEvent[/COLOR]( [COLOR="Red"]200[/COLOR], [COLOR="Gray"]"Snowing x200 Exp"[/COLOR] )
[COLOR="Lime"]--}[/COLOR]
Thought they were comment symbols.Friend or not, u shouldn't demand this pour soul to change something that isn't even incorrect!
Code:AddEvent( "Red Chip Event" ) SetTime( "2000-01-01 00:00", "2012-12-31 23:59" ) [COLOR="Lime"]--{[/COLOR] SetKeepConnectEvent( MIN(60), "II_CHP_RED", 200 ) SetKeepConnectEvent( MIN(120), "II_CHP_RED", 1000 ) [COLOR="Lime"]--}[/COLOR] AddEvent( "Event Name" ) SetTime( "2007-06-08 14:23", "2097-06-08 16:11" ) SetSnowEvent( 200, "Snowing x200 Exp" )
Having those brackets there just helps clear up the code. In-case you have more than one event, you don't want to get all confused! It's a good practice for every coder to use neatness and stuff. Cause everyone hates it when the code is all jumbled and scrambled onto 1 line.
![]()
Thought they were comment symbols.
Confusion is the leading problem for all errors.Confusion is the leading problem for all errors.
Confusion is the leading problem for all errors.
Thought they were comment symbols.
You should always keep your code nice and clean, nobody wants to look at a messy and sloppy work.
True,
but it was mainly a confusion, because i thought "}--" and "{--" where comments but then i notice they dont do anything?
Please do your research..
A comment or something like it can be added a few ways but the most common is using two forward dashes "//"
Goodjob guys.![]()
Please do your research..
A comment or something like it can be added a few ways but the most common is using two forward dashes "//"
Damn you're clever.
Mario, when doing resource editing, or any coding in particular, don't hesitate with the comments! Leave notes, comments, anything there's going to ease it for you the next time you're going to work with it. I highly recommend it, as it saves so much time.
----------------------------------------------------------
-- FASHION COMBINE ---------------------------------------
----------------------------------------------------------
nFashionCombineChance = [color=red]2500[/color] -- 25%
For some people who has the new rev6 and wants to change chance of fashion combination. Open ItemUpgrade.lua
Code:---------------------------------------------------------- -- FASHION COMBINE --------------------------------------- ---------------------------------------------------------- nFashionCombineChance = [color=red]2500[/color] -- 25%
2500 = Each 1000 is 10% change it to the prefered rate u want.