orangethekid Posted August 31, 2017 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 5 Reputation: 0 Joined: 05/17/16 Last Seen: November 10, 2023 Share Posted August 31, 2017 Hi. i'm looking a make a permanent global variable my pupose is to make a server event. 1.every one must find a 'jellopy' and send to npc. 2.npc will keep all 'jellopy' from all players. 3.my goal is 1,000,000 'jellopy' or all player finish a quest 1,000,000 times. (repeat event) 4.when reach a goal server will make a bonus EXP rate or some thing else. -so if i want to do this i must has a variable that keep all 'jellopy' from all player. -is this must be keep in a database table if i want to make an anoucement on website ? and one more question. how to call a variable from conf/*_*.config such as EXP rate / Drop rate thank you Quote Link to comment Share on other sites More sharing options...
0 Stolao Posted August 31, 2017 Group: Developer Topic Count: 48 Topics Per Day: 0.01 Content Count: 1443 Reputation: 344 Joined: 10/17/12 Last Seen: Tuesday at 08:32 PM Share Posted August 31, 2017 "$" - A global permanent variable. They are stored by map-server in database table `mapreg`. $name - permanent global integer variable $Jellopy Quote Link to comment Share on other sites More sharing options...
0 orangethekid Posted August 31, 2017 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 5 Reputation: 0 Joined: 05/17/16 Last Seen: November 10, 2023 Author Share Posted August 31, 2017 42 minutes ago, Stolao said: "$" - A global permanent variable. They are stored by map-server in database table `mapreg`. $name - permanent global integer variable $Jellopy Thanks. i've try with a simple code but is seem my 'mapreg' is not update a value of $variable. it's work while mapserv is runninig but when i shutdown it's become a default value. Quote Link to comment Share on other sites More sharing options...
0 Stolao Posted August 31, 2017 Group: Developer Topic Count: 48 Topics Per Day: 0.01 Content Count: 1443 Reputation: 344 Joined: 10/17/12 Last Seen: Tuesday at 08:32 PM Share Posted August 31, 2017 1 minute ago, orangethekid said: Thanks. i've try with a simple code but is seem my 'mapreg' is not update a value of $variable. it's work while mapserv is runninig but when i shutdown it's become a default value. show your script 1 Quote Link to comment Share on other sites More sharing options...
0 orangethekid Posted August 31, 2017 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 5 Reputation: 0 Joined: 05/17/16 Last Seen: November 10, 2023 Author Share Posted August 31, 2017 (edited) i try by this one talk and add point. mes "Now you have "+$gEvent+" event point."; set $gEvent,$gEvent+1; close; edit : problem is solve. i change SQL engine into InnoDB and it work now. Thank you Edited August 31, 2017 by orangethekid Quote Link to comment Share on other sites More sharing options...
Question
orangethekid
Hi. i'm looking a make a permanent global variable
my pupose is to make a server event.
1.every one must find a 'jellopy' and send to npc.
2.npc will keep all 'jellopy' from all players.
3.my goal is 1,000,000 'jellopy' or all player finish a quest 1,000,000 times. (repeat event)
4.when reach a goal server will make a bonus EXP rate or some thing else.
-so if i want to do this i must has a variable that keep all 'jellopy' from all player.
-is this must be keep in a database table if i want to make an anoucement on website ?
and one more question.
how to call a variable from conf/*_*.config such as EXP rate / Drop rate
thank you
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.