- verb "em(ote)"
- {
- global ply, labl, fivetemp$, text$, temp$;
- local person;
- (* April Fools' stuff. *) local string@, string2@, count, n, word$, punc$;
- person = node[ply].persona;
- if (amigod(ply)<CELANI and room[PLY_ROOM(ply)].flag[65]) then
- {
- unimsg(ply,"In order to reduce spam, you may not emote here.\n");
- return;
- }
- if game.flag[175] and PLY_ROOM(ply) = search_room("town_hall") and !player[ply].flag[1802] then
- {
- unimsg(ply, "You may not emote here at this time.\n");
- return;
- }
- labl=0;
- fivetemp$=words$(game.input$,2,0);
- if (words$(game.input$,2,0)="") then
- {
- unimsg(ply,msg$(620));
- return;
- }
- if !balance_check(ply,1,1,0) then return;
- if (persona[person].data[2]<95 and length(text$)>80) then
- {
- unimsg(ply,"Sadly, you aren't able to act out something that complicated.\n");
- return;
- }
- if pos(fivetemp$, "^", 0) then
- {
- game.Advemote=1;
- fivetemp$=replace$(fivetemp$, "^", UC$(player[ply].name$));
- }
- text$=fivetemp$;
- if game.month <= 4 (*and game.day = 1*) then
- {
- word$ = words$(text$, count, count);
- n = how_many_words_in_string(text$);
- count = 1;
- while count <= n do
- {
- word$ = words$(text$, count, count);
- push(string@, word$);
- word$ = "";
- count += 1;
- }
- n = size(string@);
- count = 0;
- while count <= n do
- {
- for count in string@ do
- {
- word$ = shift$(string@);
- if !alnum(right$(word$, 1)) then
- {
- punc$ = right$(word$, 1);
- word$ = left$(word$, length(word$)-1);
- }
- else if word$ = "say" then
- word$ = "sing";
- else if word$ = "says" then
- word$ = "sings";
- else if word$ = "saying" then
- word$ = "singing";
- if punc$ then word$ += punc$;
- punc$ = "";
- push(string2@, word$);
- }
- count+=1;
- }
- text$ = join$(string2@, " ");
- }
- eardivine(ply);
- text$=downdots$(text$);
- text$=condense_spaces$(text$);
- (*text$=drunken_communication$(ply,text$);*)
- if (!game.Advemote) then
- unimsg(ply,msg$(41045));
- else
- {
- text$=capitalise$(text$);
- (*unimsg(ply,"You have emoted: " +text$ + "\n");*)
- count = 1;
- while words$(text$, count, count) != left$("\"", 1) do
- {
- unimsgc(ply, CONFIG_SAYS, words$(text$,0, count - 1));
- count += 1;
- while words$(text$, count, count) != right$("\"", 1) do
- {
- unimsgc(ply, CONFIG_EMOTES, words$(text$, count + 1, 0));
- count += 1;
- }
- }
- }
- temp$=makename$(ply);
- if PREDATION_MASK(ply) then temp$ = predation_get_name$(ply);
- if MUTED(node[ply].persona) then return;
- fivetemp$=downdots$(fivetemp$);
- emotesee(ply, fivetemp$);
- if (!game.Advemote) then
- use_balance(ply,100);
- else
- use_balance(ply,500);
- game.Advemote=0;
- ply_remove_pose(ply,1);
- }
- verb "em(ote)"
- {
- global ply, labl, fivetemp$, text$, temp$;
- local person;
- (* April Fools' stuff. *) local string@, string2@, count, n, word$, punc$;
- person = node[ply].persona;
- if (amigod(ply)<CELANI and room[PLY_ROOM(ply)].flag[65]) then
- {
- unimsg(ply,"In order to reduce spam, you may not emote here.\n");
- return;
- }
- if game.flag[175] and PLY_ROOM(ply) = search_room("town_hall") and !player[ply].flag[1802] then
- {
- unimsg(ply, "You may not emote here at this time.\n");
- return;
- }
- labl=0;
- fivetemp$=words$(game.input$,2,0);
- if (words$(game.input$,2,0)="") then
- {
- unimsg(ply,msg$(620));
- return;
- }
- if !balance_check(ply,1,1,0) then return;
- if (persona[person].data[2]<95 and length(text$)>80) then
- {
- unimsg(ply,"Sadly, you aren't able to act out something that complicated.\n");
- return;
- }
- if pos(fivetemp$, "^", 0) then
- {
- game.Advemote=1;
- fivetemp$=replace$(fivetemp$, "^", UC$(player[ply].name$));
- }
- text$=fivetemp$;
- if game.month <= 4 (*and game.day = 1*) then
- {
- word$ = words$(text$, count, count);
- n = how_many_words_in_string(text$);
- count = 1;
- while count <= n do
- {
- word$ = words$(text$, count, count);
- push(string@, word$);
- word$ = "";
- count += 1;
- }
- n = size(string@);
- count = 0;
- while count <= n do
- {
- for count in string@ do
- {
- word$ = shift$(string@);
- if !alnum(right$(word$, 1)) then
- {
- punc$ = right$(word$, 1);
- word$ = left$(word$, length(word$)-1);
- }
- else if word$ = "say" then
- word$ = "sing";
- else if word$ = "says" then
- word$ = "sings";
- else if word$ = "saying" then
- word$ = "singing";
- if punc$ then word$ += punc$;
- punc$ = "";
- push(string2@, word$);
- }
- count+=1;
- }
- text$ = join$(string2@, " ");
- }
- eardivine(ply);
- text$=downdots$(text$);
- text$=condense_spaces$(text$);
- (*text$=drunken_communication$(ply,text$);*)
- if (!game.Advemote) then
- unimsg(ply,msg$(41045));
- else
- {
- text$=capitalise$(text$);
- (*unimsg(ply,"You have emoted: " +text$ + "\n");*)
- count = 1;
- while words$(text$, count, count) != left$("\"", 1) do
- {
- unimsgc(ply, CONFIG_SAYS, words$(text$,0, count - 1));
- count += 1;
- while words$(text$, count, count) != right$("\"", 1) do
- {
- unimsgc(ply, CONFIG_EMOTES, words$(text$, count + 1, 0));
- count += 1;
- }
- }
- }
- temp$=makename$(ply);
- if PREDATION_MASK(ply) then temp$ = predation_get_name$(ply);
- if MUTED(node[ply].persona) then return;
- fivetemp$=downdots$(fivetemp$);
- emotesee(ply, fivetemp$);
- if (!game.Advemote) then
- use_balance(ply,100);
- else
- use_balance(ply,500);
- game.Advemote=0;
- ply_remove_pose(ply,1);
- }
- verb "em(ote)"
- {
- global ply, labl, fivetemp$, text$, temp$;
- local person;
- (* April Fools' stuff. *) local string@, string2@, count, n, word$, punc$;
- person = node[ply].persona;
- if (amigod(ply)<CELANI and room[PLY_ROOM(ply)].flag[65]) then
- {
- unimsg(ply,"In order to reduce spam, you may not emote here.\n");
- return;
- }
- if game.flag[175] and PLY_ROOM(ply) = search_room("town_hall") and !player[ply].flag[1802] then
- {
- unimsg(ply, "You may not emote here at this time.\n");
- return;
- }
- labl=0;
- fivetemp$=words$(game.input$,2,0);
- if (words$(game.input$,2,0)="") then
- {
- unimsg(ply,msg$(620));
- return;
- }
- if !balance_check(ply,1,1,0) then return;
- if (persona[person].data[2]<95 and length(text$)>80) then
- {
- unimsg(ply,"Sadly, you aren't able to act out something that complicated.\n");
- return;
- }
- if pos(fivetemp$, "^", 0) then
- {
- game.Advemote=1;
- fivetemp$=replace$(fivetemp$, "^", UC$(player[ply].name$));
- }
- text$=fivetemp$;
- if game.month <= 4 (*and game.day = 1*) then
- {
- word$ = words$(text$, count, count);
- n = how_many_words_in_string(text$);
- count = 1;
- while count <= n do
- {
- word$ = words$(text$, count, count);
- push(string@, word$);
- word$ = "";
- count += 1;
- }
- n = size(string@);
- count = 0;
- while count <= n do
- {
- for count in string@ do
- {
- word$ = shift$(string@);
- if !alnum(right$(word$, 1)) then
- {
- punc$ = right$(word$, 1);
- word$ = left$(word$, length(word$)-1);
- }
- else if word$ = "say" then
- word$ = "sing";
- else if word$ = "says" then
- word$ = "sings";
- else if word$ = "saying" then
- word$ = "singing";
- if punc$ then word$ += punc$;
- punc$ = "";
- push(string2@, word$);
- }
- count+=1;
- }
- text$ = join$(string2@, " ");
- }
- eardivine(ply);
- text$=downdots$(text$);
- text$=condense_spaces$(text$);
- (*text$=drunken_communication$(ply,text$);*)
- if (!game.Advemote) then
- unimsg(ply,msg$(41045));
- else
- {
- text$=capitalise$(text$);
- (*unimsg(ply,"You have emoted: " +text$ + "\n");*)
- count = 1;
- while words$(text$, count, count) != left$("\"", 1) do
- {
- unimsgc(ply, CONFIG_SAYS, words$(text$,0, count - 1));
- count += 1;
- while words$(text$, count, count) != right$("\"", 1) do
- {
- unimsgc(ply, CONFIG_EMOTES, words$(text$, count + 1, 0));
- count += 1;
- }
- }
- }
- temp$=makename$(ply);
- if PREDATION_MASK(ply) then temp$ = predation_get_name$(ply);
- if MUTED(node[ply].persona) then return;
- fivetemp$=downdots$(fivetemp$);
- emotesee(ply, fivetemp$);
- if (!game.Advemote) then
- use_balance(ply,100);
- else
- use_balance(ply,500);
- game.Advemote=0;
- ply_remove_pose(ply,1);
- }
- verb "em(ote)"
- {
- global ply, labl, fivetemp$, text$, temp$;
- local person;
- (* April Fools' stuff. *) local string@, string2@, count, n, word$, punc$;
- person = node[ply].persona;
- if (amigod(ply)<CELANI and room[PLY_ROOM(ply)].flag[65]) then
- {
- unimsg(ply,"In order to reduce spam, you may not emote here.\n");
- return;
- }
- if game.flag[175] and PLY_ROOM(ply) = search_room("town_hall") and !player[ply].flag[1802] then
- {
- unimsg(ply, "You may not emote here at this time.\n");
- return;
- }
- labl=0;
- fivetemp$=words$(game.input$,2,0);
- if (words$(game.input$,2,0)="") then
- {
- unimsg(ply,msg$(620));
- return;
- }
- if !balance_check(ply,1,1,0) then return;
- if (persona[person].data[2]<95 and length(text$)>80) then
- {
- unimsg(ply,"Sadly, you aren't able to act out something that complicated.\n");
- return;
- }
- if pos(fivetemp$, "^", 0) then
- {
- game.Advemote=1;
- fivetemp$=replace$(fivetemp$, "^", UC$(player[ply].name$));
- }
- text$=fivetemp$;
- if game.month <= 4 (*and game.day = 1*) then
- {
- word$ = words$(text$, count, count);
- n = how_many_words_in_string(text$);
- count = 1;
- while count <= n do
- {
- word$ = words$(text$, count, count);
- push(string@, word$);
- word$ = "";
- count += 1;
- }
- n = size(string@);
- count = 0;
- while count <= n do
- {
- for count in string@ do
- {
- word$ = shift$(string@);
- if !alnum(right$(word$, 1)) then
- {
- punc$ = right$(word$, 1);
- word$ = left$(word$, length(word$)-1);
- }
- else if word$ = "say" then
- word$ = "sing";
- else if word$ = "says" then
- word$ = "sings";
- else if word$ = "saying" then
- word$ = "singing";
- if punc$ then word$ += punc$;
- punc$ = "";
- push(string2@, word$);
- }
- count+=1;
- }
- text$ = join$(string2@, " ");
- }
- eardivine(ply);
- text$=downdots$(text$);
- text$=condense_spaces$(text$);
- (*text$=drunken_communication$(ply,text$);*)
- if (!game.Advemote) then
- unimsg(ply,msg$(41045));
- else
- {
- text$=capitalise$(text$);
- (*unimsg(ply,"You have emoted: " +text$ + "\n");*)
- count = 1;
- while words$(text$, count, count) != left$("\"", 1) do
- {
- unimsgc(ply, CONFIG_SAYS, words$(text$,0, count - 1));
- count += 1;
- while words$(text$, count, count) != right$("\"", 1) do
- {
- unimsgc(ply, CONFIG_EMOTES, words$(text$, count + 1, 0));
- count += 1;
- }
- }
- }
- temp$=makename$(ply);
- if PREDATION_MASK(ply) then temp$ = predation_get_name$(ply);
- if MUTED(node[ply].persona) then return;
- fivetemp$=downdots$(fivetemp$);
- emotesee(ply, fivetemp$);
- if (!game.Advemote) then
- use_balance(ply,100);
- else
- use_balance(ply,500);
- game.Advemote=0;
- ply_remove_pose(ply,1);
- }
- verb "em(ote)"
- {
- global ply, labl, fivetemp$, text$, temp$;
- local person;
- (* April Fools' stuff. *) local string@, string2@, count, n, word$, punc$;
- person = node[ply].persona;
- if (amigod(ply)<CELANI and room[PLY_ROOM(ply)].flag[65]) then
- {
- unimsg(ply,"In order to reduce spam, you may not emote here.\n");
- return;
- }
- if game.flag[175] and PLY_ROOM(ply) = search_room("town_hall") and !player[ply].flag[1802] then
- {
- unimsg(ply, "You may not emote here at this time.\n");
- return;
- }
- labl=0;
- fivetemp$=words$(game.input$,2,0);
- if (words$(game.input$,2,0)="") then
- {
- unimsg(ply,msg$(620));
- return;
- }
- if !balance_check(ply,1,1,0) then return;
- if (persona[person].data[2]<95 and length(text$)>80) then
- {
- unimsg(ply,"Sadly, you aren't able to act out something that complicated.\n");
- return;
- }
- if pos(fivetemp$, "^", 0) then
- {
- game.Advemote=1;
- fivetemp$=replace$(fivetemp$, "^", UC$(player[ply].name$));
- }
- text$=fivetemp$;
- if game.month <= 4 (*and game.day = 1*) then
- {
- word$ = words$(text$, count, count);
- n = how_many_words_in_string(text$);
- count = 1;
- while count <= n do
- {
- word$ = words$(text$, count, count);
- push(string@, word$);
- word$ = "";
- count += 1;
- }
- n = size(string@);
- count = 0;
- while count <= n do
- {
- for count in string@ do
- {
- word$ = shift$(string@);
- if !alnum(right$(word$, 1)) then
- {
- punc$ = right$(word$, 1);
- word$ = left$(word$, length(word$)-1);
- }
- else if word$ = "say" then
- word$ = "sing";
- else if word$ = "says" then
- word$ = "sings";
- else if word$ = "saying" then
- word$ = "singing";
- if punc$ then word$ += punc$;
- punc$ = "";
- push(string2@, word$);
- }
- count+=1;
- }
- text$ = join$(string2@, " ");
- }
- eardivine(ply);
- text$=downdots$(text$);
- text$=condense_spaces$(text$);
- (*text$=drunken_communication$(ply,text$);*)
- if (!game.Advemote) then
- unimsg(ply,msg$(41045));
- else
- {
- text$=capitalise$(text$);
- (*unimsg(ply,"You have emoted: " +text$ + "\n");*)
- @h@count = 1;
- while words$(text$, count, count) != left$("\"", 1) do
- {
- unimsgc(ply, CONFIG_SAYS, words$(text$,0, count - 1));
- count += 1;
- while words$(text$, count, count) != right$("\"", 1) do
- {
- unimsgc(ply, CONFIG_EMOTES, words$(text$, count + 1, 0));
- count += 1;
- }
- }@h@
- }
- ## The text between the highlights is what is affected.
- temp$=makename$(ply);
- if PREDATION_MASK(ply) then temp$ = predation_get_name$(ply);
- if MUTED(node[ply].persona) then return;
- fivetemp$=downdots$(fivetemp$);
- emotesee(ply, fivetemp$);
- if (!game.Advemote) then
- use_balance(ply,100);
- else
- use_balance(ply,500);
- game.Advemote=0;
- ply_remove_pose(ply,1);
- }
