The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Storing text
Author Message
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #1
Storing text
Is it possible to store text in special section like:

[text hello]
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut condimentum tellus sit amet tellus consequat mollis. Aliquam nisi ante, consectetur vitae hendrerit vitae, convallis sed ligula. Mauris mauris erat, condimentum sit amet egestas et, porttitor vitae erat. Aenean libero arcu, venenatis fringilla varius sed, tincidunt non augue. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin lacinia ligula in dolor egestas ornare. Nunc vel justo massa. Nam imperdiet ultrices porta. Pellentesque dictum lectus vitae nulla viverra fermentum.

i want to c/p somethings from my website and put them into game, then i can use them in my gumps with dhtmlgump.
(This post was last modified: 09-14-2012 08:40 PM by Shaklaban.)
09-14-2012 12:48 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #2
RE: Stroring text
tried clilocs ?
I just don't know how long the strings can be stored..

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
09-14-2012 12:55 PM
Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #3
RE: Stroring text
can't use clilocs, for example im making daily changes in my shard and put them into the forums, i want to put it into game also. if i put all of them into one line it works but i can't direcly c/p to one line, i must edit whole string to one line every day Big Grin

example script:
Code:
[dialog d_vendor_yardim]
100,100
resizepic 0 20 <def.menu_border> 500 350
dhtmlgump 40 35 440 20 0 0 <DEF.BFONT_green>Altın Yatırma
dhtmlgump 40 55 440 60 0 0 <DEF.BFONT_black>Altın yatırmak için yatırmak istediğiniz altını vendorun üzerine bırakmanız yeterlidir, vendorlar günlük 2500 altın karşılığı çalışır. Ödemesi yapılmayan vendorlar silinir ve çantasındaki eşyalar sahibinin bankasına aktarılır.

dhtmlgump 40 115 440 20 0 0 <DEF.BFONT_green>Altın Çekme
dhtmlgump 40 135 440 80 0 0 <DEF.BFONT_black>Altın çekmek için vendora çift tıklayınca açılan menüdeki hasılatı topla seçeneğini seçebilirsiniz. Vendorun ödemesi de bu hesapta tutulmaktadır, dolayısıyla vendorun çalışması için gerekli altın miktarını vendorda bırakmanız gerekmektedir.

dhtmlgump 40 215 440 20 0 0 <DEF.BFONT_green>Eşya Satılığa Çıkarma
dhtmlgump 40 235 440 120 0 0 <DEF.BFONT_black>Satılığa çıkaracağınız eşyayı vendorun çantasına bırakmanız yeterlidir, bıraktığınızda eşyanın ücreti ve açıklaması sorulur. Ekranda yazı yazdığınız yere ücreti yazıp boşluk bırakarak varsa eşya açıklamasını yazabilirsiniz. Fiyat yazmak yerine ESC tuşuna basmanız durumunda eşya satılık olmaz. Ancak sadece kutuları, normal book'ları ve satılık kutulardaki eşyaları satılamaz olarak ayarlayabilirsiniz.
(This post was last modified: 09-14-2012 12:58 PM by Shaklaban.)
09-14-2012 12:57 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #4
RE: Stroring text
Yeah you're right...
Maybe you can store them on defnames, i don't know,

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
09-14-2012 01:14 PM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #5
RE: Storing text
When creating books, isn't the text stored in blocks? [Page 1] e.t.c...

Could be possible to fudge the gump that way? I'm speculating here, it's early I haven't tried it and I haven't had my coffee yet.

My only other thought is to use mysql and pull the text directly from the forum into the sections of the gump, but I haven't done much with that on sphere so it's a bit of a grey area for me.

[Image: 2nis46r.jpg]
09-14-2012 10:00 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)