![]() |
Poster
Ok Im working on a poster for practise. Oh and I must give creidt for the idea, its from Andor.
Well anyways heres the part that goes in the staff room or whatever. // NPC made by yahgrown //posting script //post part only for owner or other people who will post. if (playerchats && strequals(#c,post)) { tokenize #c; if (strequals(#t(0),post)) { setstring server.post,#t(1); } } ===================================== Heres the part that goes in the player system // NPC made by yahgrown //posting script //post part only for owner or other people who will post. if (playerchats && strequals(#c,post)) { tokenize #c; if (strequals(#t(0),post)) { setstring server.post,#t(1); } } ============================================== I know there somthing wrong with the staff weapon. Because when I do it manually, open flags and type in "server.post=finally up, thanks for the support" It will disply it. Can someone help? |
Put the part you want your #t(1) to be in quotes. I know, I made one of these for my Classic house (no, it's not up ;'( )
|
you mean like...
// NPC made by yahgrown
//posting script //post part only for owner or other people who will post. if (playerchats && strequals(#c,post)) { tokenize #c; if (strequals(#t(0),post)) { setstring server.post,"#t(1)"; } } what it doesnt work :( |
opps i mixxed it up >.< the scripts are
This is what goes in the staff thing // NPC made by yahgrown //posting script //post part only for owner or other people who will post. if (playerchats && strequals(#c,post)) { tokenize #c; if (strequals(#t(0),post)) { setstring server.post,#t(1); } } This is what goes in the player system // NPC made by yahgrown //Reciving Part Goes in players system //Updater Script For Cosmo Canyon //Scripted By Owner (SirMiz,Blitz,hourZ,Phenomena) //Varibles $font = "Verdana"; // //Get Post showimg 204,@#s(server.post),screenwidth-693,60; changeimgvis 204,4; |
Quote:
|
Thats all wrong.
NPC Code: |
I allready made something like that a while ago...
Mah script: --- Start --- // NPC made by Jaguar // Edited by Androk if (created) { message Latest AN News; } if (playerchats&&startswith(AN News:,#c)&&strequals(#g,Androk's Network)) { setstring this.AN_Sign1,#e(00,30,#c); setstring this.AN_Sign2,#e(030,30,#c); setstring this.AN_Sign3,#e(060,30,#c); setstring this.AN_Sign4,#e(090,30,#c); setstring this.AN_Sign5,#e(120,30,#c); setstring this.AN_Sign6,#e(150,30,#c); } if (playertouchsme) { say2 #s(this.AN_Sign1)#b#s(this.AN_Sign2)#b#s(this.AN_S ign3)#b#s(this.AN_Sign4)#b#s(this.AN_Sign5)#b#s(th is.AN_Sign6)#b; } --- End --- I that what ya needed? |
NPC Code: doesnt work sir |
oh good god you *****s
NPC Code: This may be buggy as hell, because I haven't tested it, in another NPC do this code NPC Code: |
erm
still dont work
|
Did you say
Quote:
|
Ok fixxed one prob now the next
Admin Part:
NPC Code: Player Part: NPC Code: Ok now when I type something real long like this " Ok, big news theres a new quest up and we hired a few gps. Please do not ask to be GP. We will be hiring FAQs Soon so go around the server or read about the quests items and other stuff on the Cosmo Canyon website because you have to know alot to be FAQ. Thanks -SirMix " it keeps printing with out returning... like it keeps going.... oh any how do you change the size? thanks for ya help btw |
changeimgzoom
but systems like this need something like a breaking in it so if the text is to long it's in the next line: example: if(playerenters){ this.lenght=int(screenwidth/16)-10; this.lines=int(strlen(#s(server.chat))/this.lenght); this.actlenght=0; this.actline=1; for(this.i=0;this.i <= this.lines;this.i++){ showimg 201+this.i,@#e(this.actlenght,this.actlenght+this. lenght,#s(server.chat)),30,80+(this.actline*15); changeimgvis 201+this.i,4; this.actlenght+=this.lenght; this.actline++; } } now write something veeeeeeeeerrrrrrryyyyyyy long in the server.chat-string like server.chat=hiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiM MMMMMMMMMMMMYYYYYYYYYYYYYNNNNNNNNAAAAAAAAAAAMMMMMM MMMMMMMEEEEEEEEEIIIIIIIIIIIIISSSSSSSSSSSSSSSSSSTTT TTTTTTTTDDDDDDDDDDDOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOO the other thin is changeimgzoom... but it's only enabled for pay servers so it will be in multiple lines :) |
| All times are GMT +2. The time now is 09:06 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.